
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ 2.0 (* t 3.0))) (t_2 (sqrt (+ t a))))
(if (<=
(- (/ (* t_2 z) t) (* (- b c) (- (+ a 0.8333333333333334) t_1)))
INFINITY)
(/
x
(+
x
(*
y
(pow
(exp 2.0)
(+ (/ z (/ t t_2)) (* (- b c) (- t_1 (+ a 0.8333333333333334))))))))
(/ x (+ x (* 2.0 (* c (* y a))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 / (t * 3.0);
double t_2 = sqrt((t + a));
double tmp;
if ((((t_2 * z) / t) - ((b - c) * ((a + 0.8333333333333334) - t_1))) <= ((double) INFINITY)) {
tmp = x / (x + (y * pow(exp(2.0), ((z / (t / t_2)) + ((b - c) * (t_1 - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (2.0 * (c * (y * a))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 2.0 / (t * 3.0);
double t_2 = Math.sqrt((t + a));
double tmp;
if ((((t_2 * z) / t) - ((b - c) * ((a + 0.8333333333333334) - t_1))) <= Double.POSITIVE_INFINITY) {
tmp = x / (x + (y * Math.pow(Math.exp(2.0), ((z / (t / t_2)) + ((b - c) * (t_1 - (a + 0.8333333333333334)))))));
} else {
tmp = x / (x + (2.0 * (c * (y * a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = 2.0 / (t * 3.0) t_2 = math.sqrt((t + a)) tmp = 0 if (((t_2 * z) / t) - ((b - c) * ((a + 0.8333333333333334) - t_1))) <= math.inf: tmp = x / (x + (y * math.pow(math.exp(2.0), ((z / (t / t_2)) + ((b - c) * (t_1 - (a + 0.8333333333333334))))))) else: tmp = x / (x + (2.0 * (c * (y * a)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(2.0 / Float64(t * 3.0)) t_2 = sqrt(Float64(t + a)) tmp = 0.0 if (Float64(Float64(Float64(t_2 * z) / t) - Float64(Float64(b - c) * Float64(Float64(a + 0.8333333333333334) - t_1))) <= Inf) tmp = Float64(x / Float64(x + Float64(y * (exp(2.0) ^ Float64(Float64(z / Float64(t / t_2)) + Float64(Float64(b - c) * Float64(t_1 - Float64(a + 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(2.0 * Float64(c * Float64(y * a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = 2.0 / (t * 3.0); t_2 = sqrt((t + a)); tmp = 0.0; if ((((t_2 * z) / t) - ((b - c) * ((a + 0.8333333333333334) - t_1))) <= Inf) tmp = x / (x + (y * (exp(2.0) ^ ((z / (t / t_2)) + ((b - c) * (t_1 - (a + 0.8333333333333334))))))); else tmp = x / (x + (2.0 * (c * (y * a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(N[(t$95$2 * z), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + 0.8333333333333334), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(x / N[(x + N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(z / N[(t / t$95$2), $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(t$95$1 - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{2}{t \cdot 3}\\
t_2 := \sqrt{t + a}\\
\mathbf{if}\;\frac{t_2 \cdot z}{t} - \left(b - c\right) \cdot \left(\left(a + 0.8333333333333334\right) - t_1\right) \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot {\left(e^{2}\right)}^{\left(\frac{z}{\frac{t}{t_2}} + \left(b - c\right) \cdot \left(t_1 - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 99.2%
exp-prod99.2%
associate-/l*99.6%
metadata-eval99.6%
Simplified99.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 c around inf 56.9%
associate-*r/56.9%
metadata-eval56.9%
+-commutative56.9%
metadata-eval56.9%
associate-/r*56.9%
*-commutative56.9%
associate--l+56.9%
sub-neg56.9%
sub-neg56.9%
*-commutative56.9%
associate-/r*56.9%
metadata-eval56.9%
sub-neg56.9%
distribute-neg-frac56.9%
metadata-eval56.9%
Simplified56.9%
Taylor expanded in a around inf 58.0%
Taylor expanded in c around 0 57.8%
+-commutative57.8%
fma-def57.8%
associate-*r*58.0%
*-commutative58.0%
Simplified58.0%
Taylor expanded in c around inf 67.8%
Final simplification98.5%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(fma
y
(pow
(exp 2.0)
(fma
(- b c)
(+ (/ 0.6666666666666666 t) (- -0.8333333333333334 a))
(* (sqrt (+ t a)) (/ z t))))
x)))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / fma(y, pow(exp(2.0), fma((b - c), ((0.6666666666666666 / t) + (-0.8333333333333334 - a)), (sqrt((t + a)) * (z / t)))), x);
}
function code(x, y, z, t, a, b, c) return Float64(x / fma(y, (exp(2.0) ^ fma(Float64(b - c), Float64(Float64(0.6666666666666666 / t) + Float64(-0.8333333333333334 - a)), Float64(sqrt(Float64(t + a)) * Float64(z / t)))), x)) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(y * N[Power[N[Exp[2.0], $MachinePrecision], N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] + N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{\mathsf{fma}\left(y, {\left(e^{2}\right)}^{\left(\mathsf{fma}\left(b - c, \frac{0.6666666666666666}{t} + \left(-0.8333333333333334 - a\right), \sqrt{t + a} \cdot \frac{z}{t}\right)\right)}, x\right)}
\end{array}
Initial program 95.7%
+-commutative95.7%
fma-def95.7%
Simplified97.7%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(-
(/ (* (sqrt (+ t a)) z) t)
(* (- b c) (- (+ a 0.8333333333333334) (/ 2.0 (* t 3.0)))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/ x (+ x (* 2.0 (* c (* y a))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((sqrt((t + a)) * z) / t) - ((b - c) * ((a + 0.8333333333333334) - (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 + (2.0 * (c * (y * a))));
}
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((t + a)) * z) / t) - ((b - c) * ((a + 0.8333333333333334) - (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 + (2.0 * (c * (y * a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((math.sqrt((t + a)) * z) / t) - ((b - c) * ((a + 0.8333333333333334) - (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 + (2.0 * (c * (y * a)))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(sqrt(Float64(t + a)) * z) / t) - Float64(Float64(b - c) * Float64(Float64(a + 0.8333333333333334) - 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(2.0 * Float64(c * Float64(y * a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((sqrt((t + a)) * z) / t) - ((b - c) * ((a + 0.8333333333333334) - (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 + (2.0 * (c * (y * a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + 0.8333333333333334), $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[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\sqrt{t + a} \cdot z}{t} - \left(b - c\right) \cdot \left(\left(a + 0.8333333333333334\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 + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 5 6)) (/.f64 2 (*.f64 t 3))))) < +inf.0Initial program 99.2%
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 c around inf 56.9%
associate-*r/56.9%
metadata-eval56.9%
+-commutative56.9%
metadata-eval56.9%
associate-/r*56.9%
*-commutative56.9%
associate--l+56.9%
sub-neg56.9%
sub-neg56.9%
*-commutative56.9%
associate-/r*56.9%
metadata-eval56.9%
sub-neg56.9%
distribute-neg-frac56.9%
metadata-eval56.9%
Simplified56.9%
Taylor expanded in a around inf 58.0%
Taylor expanded in c around 0 57.8%
+-commutative57.8%
fma-def57.8%
associate-*r*58.0%
*-commutative58.0%
Simplified58.0%
Taylor expanded in c around inf 67.8%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 5e-253)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 5e+139)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* z (sqrt (/ 1.0 t)))
(* (- b c) (- (/ 0.6666666666666666 t) 0.8333333333333334))))))))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5e-253) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 5e+139) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 5d-253) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 5d+139) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + ((b - c) * ((0.6666666666666666d0 / t) - 0.8333333333333334d0)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 5e-253) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 5e+139) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 5e-253: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 5e+139: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 5e-253) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 5e+139) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(Float64(b - c) * Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 5e-253) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 5e+139) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + ((b - c) * ((0.6666666666666666 / t) - 0.8333333333333334))))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 5e-253], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5e+139], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 5 \cdot 10^{-253}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 5 \cdot 10^{+139}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + \left(b - c\right) \cdot \left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 4.99999999999999971e-253Initial program 89.9%
Taylor expanded in t around 0 95.4%
if 4.99999999999999971e-253 < t < 5.0000000000000003e139Initial program 99.2%
Taylor expanded in a around 0 90.4%
*-commutative90.4%
associate-*r/90.4%
metadata-eval90.4%
Simplified90.4%
if 5.0000000000000003e139 < t Initial program 95.5%
Taylor expanded in t around inf 95.6%
mul-1-neg95.6%
distribute-rgt-neg-in95.6%
distribute-neg-in95.6%
metadata-eval95.6%
sub-neg95.6%
Simplified95.6%
Final simplification93.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 4e-251)
(/
x
(+
x
(*
y
(exp (* 2.0 (/ (+ (* z (sqrt a)) (* -0.6666666666666666 (- c b))) t))))))
(if (<= t 0.085)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 2e+139)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+ (* z (sqrt (/ 1.0 t))) (* 0.8333333333333334 (- c b))))))))
(/
x
(+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4e-251) {
tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.085) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 2e+139) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + (0.8333333333333334 * (c - b)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 4d-251) then
tmp = x / (x + (y * exp((2.0d0 * (((z * sqrt(a)) + ((-0.6666666666666666d0) * (c - b))) / t)))))
else if (t <= 0.085d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 2d+139) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + (0.8333333333333334d0 * (c - b)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 4e-251) {
tmp = x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t)))));
} else if (t <= 0.085) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 2e+139) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + (0.8333333333333334 * (c - b)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 4e-251: tmp = x / (x + (y * math.exp((2.0 * (((z * math.sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))) elif t <= 0.085: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 2e+139: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + (0.8333333333333334 * (c - b))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 4e-251) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(a)) + Float64(-0.6666666666666666 * Float64(c - b))) / t)))))); elseif (t <= 0.085) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 2e+139) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(0.8333333333333334 * Float64(c - b)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 4e-251) tmp = x / (x + (y * exp((2.0 * (((z * sqrt(a)) + (-0.6666666666666666 * (c - b))) / t))))); elseif (t <= 0.085) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 2e+139) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + (0.8333333333333334 * (c - b))))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 4e-251], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[a], $MachinePrecision]), $MachinePrecision] + N[(-0.6666666666666666 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 0.085], 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+139], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(0.8333333333333334 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4 \cdot 10^{-251}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{z \cdot \sqrt{a} + -0.6666666666666666 \cdot \left(c - b\right)}{t}}}\\
\mathbf{elif}\;t \leq 0.085:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+139}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + 0.8333333333333334 \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 4.00000000000000006e-251Initial program 89.9%
Taylor expanded in t around 0 95.4%
if 4.00000000000000006e-251 < t < 0.0850000000000000061Initial program 98.5%
Taylor expanded in t around 0 60.4%
Taylor expanded in a around 0 77.9%
if 0.0850000000000000061 < t < 2.00000000000000007e139Initial program 100.0%
Taylor expanded in a around 0 96.2%
*-commutative96.2%
associate-*r/96.2%
metadata-eval96.2%
Simplified96.2%
Taylor expanded in t around inf 96.2%
if 2.00000000000000007e139 < t Initial program 95.5%
Taylor expanded in t around inf 95.6%
mul-1-neg95.6%
distribute-rgt-neg-in95.6%
distribute-neg-in95.6%
metadata-eval95.6%
sub-neg95.6%
Simplified95.6%
Final simplification90.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 0.000105)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 4e+142)
(/
x
(+
x
(*
y
(exp
(* 2.0 (+ (* z (sqrt (/ 1.0 t))) (* 0.8333333333333334 (- c b))))))))
(/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.000105) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 4e+142) {
tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + (0.8333333333333334 * (c - b)))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 0.000105d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 4d+142) then
tmp = x / (x + (y * exp((2.0d0 * ((z * sqrt((1.0d0 / t))) + (0.8333333333333334d0 * (c - b)))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.000105) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 4e+142) {
tmp = x / (x + (y * Math.exp((2.0 * ((z * Math.sqrt((1.0 / t))) + (0.8333333333333334 * (c - b)))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 0.000105: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 4e+142: tmp = x / (x + (y * math.exp((2.0 * ((z * math.sqrt((1.0 / t))) + (0.8333333333333334 * (c - b))))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 0.000105) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 4e+142) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(z * sqrt(Float64(1.0 / t))) + Float64(0.8333333333333334 * Float64(c - b)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 0.000105) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 4e+142) tmp = x / (x + (y * exp((2.0 * ((z * sqrt((1.0 / t))) + (0.8333333333333334 * (c - b))))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 0.000105], 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, 4e+142], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(0.8333333333333334 * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.000105:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+142}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(z \cdot \sqrt{\frac{1}{t}} + 0.8333333333333334 \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 1.05e-4Initial program 94.2%
Taylor expanded in t around 0 77.8%
Taylor expanded in a around 0 81.7%
if 1.05e-4 < t < 4.0000000000000002e142Initial program 100.0%
Taylor expanded in a around 0 96.2%
*-commutative96.2%
associate-*r/96.2%
metadata-eval96.2%
Simplified96.2%
Taylor expanded in t around inf 96.2%
if 4.0000000000000002e142 < t Initial program 95.5%
Taylor expanded in t around inf 95.6%
mul-1-neg95.6%
distribute-rgt-neg-in95.6%
distribute-neg-in95.6%
metadata-eval95.6%
sub-neg95.6%
Simplified95.6%
Final simplification88.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* a (- c b)))))))))
(if (<= t 7.5e-301)
t_1
(if (<= t 5.8e-252)
(/ x (+ x (* 2.0 (* c (* y a)))))
(if (<= t 3.6e-215)
(/ x (* y (exp (/ 1.3333333333333333 (/ t (- b c))))))
(if (<= t 1.9e-33)
1.0
(if (<= t 1.82e+130)
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= 7.5e-301) {
tmp = t_1;
} else if (t <= 5.8e-252) {
tmp = x / (x + (2.0 * (c * (y * a))));
} else if (t <= 3.6e-215) {
tmp = x / (y * exp((1.3333333333333333 / (t / (b - c)))));
} else if (t <= 1.9e-33) {
tmp = 1.0;
} else if (t <= 1.82e+130) {
tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
if (t <= 7.5d-301) then
tmp = t_1
else if (t <= 5.8d-252) then
tmp = x / (x + (2.0d0 * (c * (y * a))))
else if (t <= 3.6d-215) then
tmp = x / (y * exp((1.3333333333333333d0 / (t / (b - c)))))
else if (t <= 1.9d-33) then
tmp = 1.0d0
else if (t <= 1.82d+130) then
tmp = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
double tmp;
if (t <= 7.5e-301) {
tmp = t_1;
} else if (t <= 5.8e-252) {
tmp = x / (x + (2.0 * (c * (y * a))));
} else if (t <= 3.6e-215) {
tmp = x / (y * Math.exp((1.3333333333333333 / (t / (b - c)))));
} else if (t <= 1.9e-33) {
tmp = 1.0;
} else if (t <= 1.82e+130) {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) tmp = 0 if t <= 7.5e-301: tmp = t_1 elif t <= 5.8e-252: tmp = x / (x + (2.0 * (c * (y * a)))) elif t <= 3.6e-215: tmp = x / (y * math.exp((1.3333333333333333 / (t / (b - c))))) elif t <= 1.9e-33: tmp = 1.0 elif t <= 1.82e+130: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))) tmp = 0.0 if (t <= 7.5e-301) tmp = t_1; elseif (t <= 5.8e-252) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(c * Float64(y * a))))); elseif (t <= 3.6e-215) tmp = Float64(x / Float64(y * exp(Float64(1.3333333333333333 / Float64(t / Float64(b - c)))))); elseif (t <= 1.9e-33) tmp = 1.0; elseif (t <= 1.82e+130) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (a * (c - b)))))); tmp = 0.0; if (t <= 7.5e-301) tmp = t_1; elseif (t <= 5.8e-252) tmp = x / (x + (2.0 * (c * (y * a)))); elseif (t <= 3.6e-215) tmp = x / (y * exp((1.3333333333333333 / (t / (b - c))))); elseif (t <= 1.9e-33) tmp = 1.0; elseif (t <= 1.82e+130) tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, 7.5e-301], t$95$1, If[LessEqual[t, 5.8e-252], N[(x / N[(x + N[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e-215], N[(x / N[(y * N[Exp[N[(1.3333333333333333 / N[(t / N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e-33], 1.0, If[LessEqual[t, 1.82e+130], N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\mathbf{if}\;t \leq 7.5 \cdot 10^{-301}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-252}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)}\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-215}:\\
\;\;\;\;\frac{x}{y \cdot e^{\frac{1.3333333333333333}{\frac{t}{b - c}}}}\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-33}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 1.82 \cdot 10^{+130}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < 7.5000000000000006e-301 or 1.82000000000000011e130 < t Initial program 92.8%
Taylor expanded in a around inf 80.7%
if 7.5000000000000006e-301 < t < 5.8000000000000001e-252Initial program 92.9%
Taylor expanded in c around inf 72.3%
associate-*r/72.3%
metadata-eval72.3%
+-commutative72.3%
metadata-eval72.3%
associate-/r*72.3%
*-commutative72.3%
associate--l+72.3%
sub-neg72.3%
sub-neg72.3%
*-commutative72.3%
associate-/r*72.3%
metadata-eval72.3%
sub-neg72.3%
distribute-neg-frac72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in a around inf 59.0%
Taylor expanded in c around 0 72.6%
+-commutative72.6%
fma-def72.6%
associate-*r*72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in c around inf 86.2%
if 5.8000000000000001e-252 < t < 3.5999999999999999e-215Initial program 100.0%
Taylor expanded in t around 0 83.3%
Taylor expanded in a around 0 100.0%
Taylor expanded in x around 0 67.5%
associate-*r/67.5%
associate-/l*67.5%
Simplified67.5%
if 3.5999999999999999e-215 < t < 1.89999999999999997e-33Initial program 97.9%
Taylor expanded in c around inf 69.9%
associate-*r/69.9%
metadata-eval69.9%
+-commutative69.9%
metadata-eval69.9%
associate-/r*69.9%
*-commutative69.9%
associate--l+69.9%
sub-neg69.9%
sub-neg69.9%
*-commutative69.9%
associate-/r*69.9%
metadata-eval69.9%
sub-neg69.9%
distribute-neg-frac69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in a around inf 45.7%
Taylor expanded in x around inf 65.7%
if 1.89999999999999997e-33 < t < 1.82000000000000011e130Initial program 100.0%
Taylor expanded in t around inf 76.3%
mul-1-neg76.3%
distribute-rgt-neg-in76.3%
distribute-neg-in76.3%
metadata-eval76.3%
sub-neg76.3%
Simplified76.3%
Taylor expanded in a around 0 74.6%
Final simplification76.2%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 2.7e-299)
(/ x (- x (* y (- -1.0 (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 1.35e-253)
(/ x (+ x (* 2.0 (* c (* y a)))))
(if (<= t 1.2e-214)
(/ x (* y (exp (/ 1.3333333333333333 (/ t (- b c))))))
(if (<= t 2.4e+81) 1.0 (/ x (+ x (* y (exp (* 2.0 (* c a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.7e-299) {
tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.35e-253) {
tmp = x / (x + (2.0 * (c * (y * a))));
} else if (t <= 1.2e-214) {
tmp = x / (y * exp((1.3333333333333333 / (t / (b - c)))));
} else if (t <= 2.4e+81) {
tmp = 1.0;
} else {
tmp = x / (x + (y * exp((2.0 * (c * 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 <= 2.7d-299) then
tmp = x / (x - (y * ((-1.0d0) - (1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 1.35d-253) then
tmp = x / (x + (2.0d0 * (c * (y * a))))
else if (t <= 1.2d-214) then
tmp = x / (y * exp((1.3333333333333333d0 / (t / (b - c)))))
else if (t <= 2.4d+81) then
tmp = 1.0d0
else
tmp = x / (x + (y * exp((2.0d0 * (c * 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 <= 2.7e-299) {
tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 1.35e-253) {
tmp = x / (x + (2.0 * (c * (y * a))));
} else if (t <= 1.2e-214) {
tmp = x / (y * Math.exp((1.3333333333333333 / (t / (b - c)))));
} else if (t <= 2.4e+81) {
tmp = 1.0;
} else {
tmp = x / (x + (y * Math.exp((2.0 * (c * a)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2.7e-299: tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * ((b - c) / t))))) elif t <= 1.35e-253: tmp = x / (x + (2.0 * (c * (y * a)))) elif t <= 1.2e-214: tmp = x / (y * math.exp((1.3333333333333333 / (t / (b - c))))) elif t <= 2.4e+81: tmp = 1.0 else: tmp = x / (x + (y * math.exp((2.0 * (c * a))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2.7e-299) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 1.35e-253) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(c * Float64(y * a))))); elseif (t <= 1.2e-214) tmp = Float64(x / Float64(y * exp(Float64(1.3333333333333333 / Float64(t / Float64(b - c)))))); elseif (t <= 2.4e+81) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * a)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2.7e-299) tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * ((b - c) / t))))); elseif (t <= 1.35e-253) tmp = x / (x + (2.0 * (c * (y * a)))); elseif (t <= 1.2e-214) tmp = x / (y * exp((1.3333333333333333 / (t / (b - c))))); elseif (t <= 2.4e+81) tmp = 1.0; else tmp = x / (x + (y * exp((2.0 * (c * a))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2.7e-299], N[(x / N[(x - N[(y * N[(-1.0 - N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e-253], N[(x / N[(x + N[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e-214], N[(x / N[(y * N[Exp[N[(1.3333333333333333 / N[(t / N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e+81], 1.0, N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * a), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.7 \cdot 10^{-299}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - 1.3333333333333333 \cdot \frac{b - c}{t}\right)}\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{-253}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)}\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-214}:\\
\;\;\;\;\frac{x}{y \cdot e^{\frac{1.3333333333333333}{\frac{t}{b - c}}}}\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{+81}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot a\right)}}\\
\end{array}
\end{array}
if t < 2.70000000000000002e-299Initial program 89.3%
Taylor expanded in t around 0 94.4%
Taylor expanded in a around 0 85.8%
Taylor expanded in t around inf 60.1%
+-commutative60.1%
Simplified60.1%
if 2.70000000000000002e-299 < t < 1.35e-253Initial program 92.3%
Taylor expanded in c around inf 70.2%
associate-*r/70.2%
metadata-eval70.2%
+-commutative70.2%
metadata-eval70.2%
associate-/r*70.2%
*-commutative70.2%
associate--l+70.2%
sub-neg70.2%
sub-neg70.2%
*-commutative70.2%
associate-/r*70.2%
metadata-eval70.2%
sub-neg70.2%
distribute-neg-frac70.2%
metadata-eval70.2%
Simplified70.2%
Taylor expanded in a around inf 63.3%
Taylor expanded in c around 0 78.0%
+-commutative78.0%
fma-def78.0%
associate-*r*78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in c around inf 92.5%
if 1.35e-253 < t < 1.2000000000000001e-214Initial program 100.0%
Taylor expanded in t around 0 83.3%
Taylor expanded in a around 0 100.0%
Taylor expanded in x around 0 67.5%
associate-*r/67.5%
associate-/l*67.5%
Simplified67.5%
if 1.2000000000000001e-214 < t < 2.3999999999999999e81Initial program 98.9%
Taylor expanded in c around inf 65.7%
associate-*r/65.7%
metadata-eval65.7%
+-commutative65.7%
metadata-eval65.7%
associate-/r*65.7%
*-commutative65.7%
associate--l+65.7%
sub-neg65.7%
sub-neg65.7%
*-commutative65.7%
associate-/r*65.7%
metadata-eval65.7%
sub-neg65.7%
distribute-neg-frac65.7%
metadata-eval65.7%
Simplified65.7%
Taylor expanded in a around inf 46.0%
Taylor expanded in x around inf 58.3%
if 2.3999999999999999e81 < t Initial program 96.4%
Taylor expanded in c around inf 76.5%
associate-*r/76.5%
metadata-eval76.5%
+-commutative76.5%
metadata-eval76.5%
associate-/r*76.5%
*-commutative76.5%
associate--l+76.5%
sub-neg76.5%
sub-neg76.5%
*-commutative76.5%
associate-/r*76.5%
metadata-eval76.5%
sub-neg76.5%
distribute-neg-frac76.5%
metadata-eval76.5%
Simplified76.5%
Taylor expanded in a around inf 70.6%
Final simplification64.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))))
(if (<= t -5e-310)
t_1
(if (<= t 1.2e-253)
(/ x (+ x (* 2.0 (* c (* y a)))))
(if (<= t 7.5e-214)
(/ x (* y (exp (/ 1.3333333333333333 (/ t (- b c))))))
(if (<= t 1.75e-33) 1.0 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(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -5e-310) {
tmp = t_1;
} else if (t <= 1.2e-253) {
tmp = x / (x + (2.0 * (c * (y * a))));
} else if (t <= 7.5e-214) {
tmp = x / (y * exp((1.3333333333333333 / (t / (b - c)))));
} else if (t <= 1.75e-33) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
if (t <= (-5d-310)) then
tmp = t_1
else if (t <= 1.2d-253) then
tmp = x / (x + (2.0d0 * (c * (y * a))))
else if (t <= 7.5d-214) then
tmp = x / (y * exp((1.3333333333333333d0 / (t / (b - c)))))
else if (t <= 1.75d-33) then
tmp = 1.0d0
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(((b - c) * -1.6666666666666667))));
double tmp;
if (t <= -5e-310) {
tmp = t_1;
} else if (t <= 1.2e-253) {
tmp = x / (x + (2.0 * (c * (y * a))));
} else if (t <= 7.5e-214) {
tmp = x / (y * Math.exp((1.3333333333333333 / (t / (b - c)))));
} else if (t <= 1.75e-33) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) tmp = 0 if t <= -5e-310: tmp = t_1 elif t <= 1.2e-253: tmp = x / (x + (2.0 * (c * (y * a)))) elif t <= 7.5e-214: tmp = x / (y * math.exp((1.3333333333333333 / (t / (b - c))))) elif t <= 1.75e-33: tmp = 1.0 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(b - c) * -1.6666666666666667))))) tmp = 0.0 if (t <= -5e-310) tmp = t_1; elseif (t <= 1.2e-253) tmp = Float64(x / Float64(x + Float64(2.0 * Float64(c * Float64(y * a))))); elseif (t <= 7.5e-214) tmp = Float64(x / Float64(y * exp(Float64(1.3333333333333333 / Float64(t / Float64(b - c)))))); elseif (t <= 1.75e-33) tmp = 1.0; 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(((b - c) * -1.6666666666666667)))); tmp = 0.0; if (t <= -5e-310) tmp = t_1; elseif (t <= 1.2e-253) tmp = x / (x + (2.0 * (c * (y * a)))); elseif (t <= 7.5e-214) tmp = x / (y * exp((1.3333333333333333 / (t / (b - c))))); elseif (t <= 1.75e-33) tmp = 1.0; 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[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e-310], t$95$1, If[LessEqual[t, 1.2e-253], N[(x / N[(x + N[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e-214], N[(x / N[(y * N[Exp[N[(1.3333333333333333 / N[(t / N[(b - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e-33], 1.0, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{if}\;t \leq -5 \cdot 10^{-310}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-253}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)}\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-214}:\\
\;\;\;\;\frac{x}{y \cdot e^{\frac{1.3333333333333333}{\frac{t}{b - c}}}}\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-33}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -4.999999999999985e-310 or 1.7499999999999999e-33 < t Initial program 95.0%
Taylor expanded in t around inf 84.5%
mul-1-neg84.5%
distribute-rgt-neg-in84.5%
distribute-neg-in84.5%
metadata-eval84.5%
sub-neg84.5%
Simplified84.5%
Taylor expanded in a around 0 73.2%
if -4.999999999999985e-310 < t < 1.20000000000000005e-253Initial program 93.8%
Taylor expanded in c around inf 69.7%
associate-*r/69.7%
metadata-eval69.7%
+-commutative69.7%
metadata-eval69.7%
associate-/r*69.7%
*-commutative69.7%
associate--l+69.7%
sub-neg69.7%
sub-neg69.7%
*-commutative69.7%
associate-/r*69.7%
metadata-eval69.7%
sub-neg69.7%
distribute-neg-frac69.7%
metadata-eval69.7%
Simplified69.7%
Taylor expanded in a around inf 58.0%
Taylor expanded in c around 0 70.0%
+-commutative70.0%
fma-def70.0%
associate-*r*70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in c around inf 75.8%
if 1.20000000000000005e-253 < t < 7.49999999999999966e-214Initial program 100.0%
Taylor expanded in t around 0 83.3%
Taylor expanded in a around 0 100.0%
Taylor expanded in x around 0 67.5%
associate-*r/67.5%
associate-/l*67.5%
Simplified67.5%
if 7.49999999999999966e-214 < t < 1.7499999999999999e-33Initial program 97.9%
Taylor expanded in c around inf 69.9%
associate-*r/69.9%
metadata-eval69.9%
+-commutative69.9%
metadata-eval69.9%
associate-/r*69.9%
*-commutative69.9%
associate--l+69.9%
sub-neg69.9%
sub-neg69.9%
*-commutative69.9%
associate-/r*69.9%
metadata-eval69.9%
sub-neg69.9%
distribute-neg-frac69.9%
metadata-eval69.9%
Simplified69.9%
Taylor expanded in a around inf 45.7%
Taylor expanded in x around inf 65.7%
Final simplification71.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 0.3)
(/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t))))))
(if (<= t 4e+131)
(/ x (+ x (* y (exp (* (- b c) -1.6666666666666667)))))
(/ x (+ x (* y (exp (* 2.0 (* a (- c b))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.3) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 4e+131) {
tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667))));
} else {
tmp = x / (x + (y * exp((2.0 * (a * (c - b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 0.3d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else if (t <= 4d+131) then
tmp = x / (x + (y * exp(((b - c) * (-1.6666666666666667d0)))))
else
tmp = x / (x + (y * exp((2.0d0 * (a * (c - b))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.3) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else if (t <= 4e+131) {
tmp = x / (x + (y * Math.exp(((b - c) * -1.6666666666666667))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (a * (c - b))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 0.3: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) elif t <= 4e+131: tmp = x / (x + (y * math.exp(((b - c) * -1.6666666666666667)))) else: tmp = x / (x + (y * math.exp((2.0 * (a * (c - b)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 0.3) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); elseif (t <= 4e+131) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(b - c) * -1.6666666666666667))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * Float64(c - b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 0.3) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); elseif (t <= 4e+131) tmp = x / (x + (y * exp(((b - c) * -1.6666666666666667)))); else tmp = x / (x + (y * exp((2.0 * (a * (c - b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 0.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, 4e+131], N[(x / N[(x + N[(y * N[Exp[N[(N[(b - c), $MachinePrecision] * -1.6666666666666667), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.3:\\
\;\;\;\;\frac{x}{x + y \cdot e^{1.3333333333333333 \cdot \frac{b - c}{t}}}\\
\mathbf{elif}\;t \leq 4 \cdot 10^{+131}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(b - c\right) \cdot -1.6666666666666667}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot \left(c - b\right)\right)}}\\
\end{array}
\end{array}
if t < 0.299999999999999989Initial program 94.2%
Taylor expanded in t around 0 77.8%
Taylor expanded in a around 0 81.7%
if 0.299999999999999989 < t < 3.9999999999999996e131Initial program 100.0%
Taylor expanded in t around inf 85.7%
mul-1-neg85.7%
distribute-rgt-neg-in85.7%
distribute-neg-in85.7%
metadata-eval85.7%
sub-neg85.7%
Simplified85.7%
Taylor expanded in a around 0 83.6%
if 3.9999999999999996e131 < t Initial program 95.8%
Taylor expanded in a around inf 80.6%
Final simplification81.8%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 0.01) (/ x (+ x (* y (exp (* 1.3333333333333333 (/ (- b c) t)))))) (/ x (+ x (* y (exp (* 2.0 (* (- b c) (- -0.8333333333333334 a)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.01) {
tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 0.01d0) then
tmp = x / (x + (y * exp((1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = x / (x + (y * exp((2.0d0 * ((b - c) * ((-0.8333333333333334d0) - a))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 0.01) {
tmp = x / (x + (y * Math.exp((1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 0.01: tmp = x / (x + (y * math.exp((1.3333333333333333 * ((b - c) / t))))) else: tmp = x / (x + (y * math.exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 0.01) 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(b - c) * Float64(-0.8333333333333334 - a))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 0.01) tmp = x / (x + (y * exp((1.3333333333333333 * ((b - c) / t))))); else tmp = x / (x + (y * exp((2.0 * ((b - c) * (-0.8333333333333334 - a)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 0.01], 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[(b - c), $MachinePrecision] * N[(-0.8333333333333334 - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 0.01:\\
\;\;\;\;\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(b - c\right) \cdot \left(-0.8333333333333334 - a\right)\right)}}\\
\end{array}
\end{array}
if t < 0.0100000000000000002Initial program 94.2%
Taylor expanded in t around 0 77.8%
Taylor expanded in a around 0 81.7%
if 0.0100000000000000002 < t Initial program 97.5%
Taylor expanded in t around inf 90.1%
mul-1-neg90.1%
distribute-rgt-neg-in90.1%
distribute-neg-in90.1%
metadata-eval90.1%
sub-neg90.1%
Simplified90.1%
Final simplification85.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<= z -1.7e+63)
1.0
(if (<= z -1.25e-23)
(/ x (+ x (+ y (* 2.0 (* a (* y c))))))
(if (<= z -1.7e-103)
1.0
(if (<= z 6.2e-206)
(/ x (- x (* y (- -1.0 (* 1.3333333333333333 (/ (- b c) t))))))
1.0)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1.7e+63) {
tmp = 1.0;
} else if (z <= -1.25e-23) {
tmp = x / (x + (y + (2.0 * (a * (y * c)))));
} else if (z <= -1.7e-103) {
tmp = 1.0;
} else if (z <= 6.2e-206) {
tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (z <= (-1.7d+63)) then
tmp = 1.0d0
else if (z <= (-1.25d-23)) then
tmp = x / (x + (y + (2.0d0 * (a * (y * c)))))
else if (z <= (-1.7d-103)) then
tmp = 1.0d0
else if (z <= 6.2d-206) then
tmp = x / (x - (y * ((-1.0d0) - (1.3333333333333333d0 * ((b - c) / t)))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (z <= -1.7e+63) {
tmp = 1.0;
} else if (z <= -1.25e-23) {
tmp = x / (x + (y + (2.0 * (a * (y * c)))));
} else if (z <= -1.7e-103) {
tmp = 1.0;
} else if (z <= 6.2e-206) {
tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * ((b - c) / t)))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if z <= -1.7e+63: tmp = 1.0 elif z <= -1.25e-23: tmp = x / (x + (y + (2.0 * (a * (y * c))))) elif z <= -1.7e-103: tmp = 1.0 elif z <= 6.2e-206: tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * ((b - c) / t))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (z <= -1.7e+63) tmp = 1.0; elseif (z <= -1.25e-23) tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(a * Float64(y * c)))))); elseif (z <= -1.7e-103) tmp = 1.0; elseif (z <= 6.2e-206) tmp = Float64(x / Float64(x - Float64(y * Float64(-1.0 - Float64(1.3333333333333333 * Float64(Float64(b - c) / t)))))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (z <= -1.7e+63) tmp = 1.0; elseif (z <= -1.25e-23) tmp = x / (x + (y + (2.0 * (a * (y * c))))); elseif (z <= -1.7e-103) tmp = 1.0; elseif (z <= 6.2e-206) tmp = x / (x - (y * (-1.0 - (1.3333333333333333 * ((b - c) / t))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[z, -1.7e+63], 1.0, If[LessEqual[z, -1.25e-23], N[(x / N[(x + N[(y + N[(2.0 * N[(a * N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.7e-103], 1.0, If[LessEqual[z, 6.2e-206], N[(x / N[(x - N[(y * N[(-1.0 - N[(1.3333333333333333 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.7 \cdot 10^{+63}:\\
\;\;\;\;1\\
\mathbf{elif}\;z \leq -1.25 \cdot 10^{-23}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(a \cdot \left(y \cdot c\right)\right)\right)}\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{-103}:\\
\;\;\;\;1\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-206}:\\
\;\;\;\;\frac{x}{x - y \cdot \left(-1 - 1.3333333333333333 \cdot \frac{b - c}{t}\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if z < -1.6999999999999999e63 or -1.2500000000000001e-23 < z < -1.70000000000000001e-103 or 6.2000000000000005e-206 < z Initial program 93.9%
Taylor expanded in c around inf 64.2%
associate-*r/64.2%
metadata-eval64.2%
+-commutative64.2%
metadata-eval64.2%
associate-/r*64.2%
*-commutative64.2%
associate--l+64.2%
sub-neg64.2%
sub-neg64.2%
*-commutative64.2%
associate-/r*64.2%
metadata-eval64.2%
sub-neg64.2%
distribute-neg-frac64.2%
metadata-eval64.2%
Simplified64.2%
Taylor expanded in a around inf 55.1%
Taylor expanded in x around inf 57.0%
if -1.6999999999999999e63 < z < -1.2500000000000001e-23Initial program 100.0%
Taylor expanded in c around inf 71.9%
associate-*r/71.9%
metadata-eval71.9%
+-commutative71.9%
metadata-eval71.9%
associate-/r*71.9%
*-commutative71.9%
associate--l+71.9%
sub-neg71.9%
sub-neg71.9%
*-commutative71.9%
associate-/r*71.9%
metadata-eval71.9%
sub-neg71.9%
distribute-neg-frac71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in a around inf 67.9%
Taylor expanded in c around 0 67.9%
+-commutative67.9%
fma-def67.9%
associate-*r*71.9%
*-commutative71.9%
Simplified71.9%
fma-udef71.9%
associate-*r*71.9%
Applied egg-rr71.9%
if -1.70000000000000001e-103 < z < 6.2000000000000005e-206Initial program 99.9%
Taylor expanded in t around 0 50.6%
Taylor expanded in a around 0 66.0%
Taylor expanded in t around inf 60.8%
+-commutative60.8%
Simplified60.8%
Final simplification59.2%
(FPCore (x y z t a b c) :precision binary64 (if (<= a 6.5e+164) 1.0 (/ x (+ x (+ y (* 2.0 (* c (* y a))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 6.5e+164) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (c * (y * 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+164) then
tmp = 1.0d0
else
tmp = x / (x + (y + (2.0d0 * (c * (y * 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+164) {
tmp = 1.0;
} else {
tmp = x / (x + (y + (2.0 * (c * (y * a)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 6.5e+164: tmp = 1.0 else: tmp = x / (x + (y + (2.0 * (c * (y * a))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 6.5e+164) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y + Float64(2.0 * Float64(c * Float64(y * a)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 6.5e+164) tmp = 1.0; else tmp = x / (x + (y + (2.0 * (c * (y * a))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 6.5e+164], 1.0, N[(x / N[(x + N[(y + N[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 6.5 \cdot 10^{+164}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + \left(y + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)\right)}\\
\end{array}
\end{array}
if a < 6.5000000000000003e164Initial program 97.2%
Taylor expanded in c around inf 70.7%
associate-*r/70.7%
metadata-eval70.7%
+-commutative70.7%
metadata-eval70.7%
associate-/r*70.7%
*-commutative70.7%
associate--l+70.7%
sub-neg70.7%
sub-neg70.7%
*-commutative70.7%
associate-/r*70.7%
metadata-eval70.7%
sub-neg70.7%
distribute-neg-frac70.7%
metadata-eval70.7%
Simplified70.7%
Taylor expanded in a around inf 56.2%
Taylor expanded in x around inf 53.1%
if 6.5000000000000003e164 < a Initial program 89.0%
Taylor expanded in c around inf 61.4%
associate-*r/61.4%
metadata-eval61.4%
+-commutative61.4%
metadata-eval61.4%
associate-/r*61.4%
*-commutative61.4%
associate--l+61.4%
sub-neg61.4%
sub-neg61.4%
*-commutative61.4%
associate-/r*61.4%
metadata-eval61.4%
sub-neg61.4%
distribute-neg-frac61.4%
metadata-eval61.4%
Simplified61.4%
Taylor expanded in a around inf 59.3%
Taylor expanded in c around 0 52.8%
*-commutative52.8%
Simplified52.8%
Final simplification53.0%
(FPCore (x y z t a b c) :precision binary64 (if (<= a 5.8e+168) 1.0 (if (<= a 2.8e+251) (* -0.5 (/ x (* y (* b a)))) 1.0)))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 5.8e+168) {
tmp = 1.0;
} else if (a <= 2.8e+251) {
tmp = -0.5 * (x / (y * (b * a)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (a <= 5.8d+168) then
tmp = 1.0d0
else if (a <= 2.8d+251) then
tmp = (-0.5d0) * (x / (y * (b * a)))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 5.8e+168) {
tmp = 1.0;
} else if (a <= 2.8e+251) {
tmp = -0.5 * (x / (y * (b * a)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 5.8e+168: tmp = 1.0 elif a <= 2.8e+251: tmp = -0.5 * (x / (y * (b * a))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 5.8e+168) tmp = 1.0; elseif (a <= 2.8e+251) tmp = Float64(-0.5 * Float64(x / Float64(y * Float64(b * a)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 5.8e+168) tmp = 1.0; elseif (a <= 2.8e+251) tmp = -0.5 * (x / (y * (b * a))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 5.8e+168], 1.0, If[LessEqual[a, 2.8e+251], N[(-0.5 * N[(x / N[(y * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 5.8 \cdot 10^{+168}:\\
\;\;\;\;1\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{+251}:\\
\;\;\;\;-0.5 \cdot \frac{x}{y \cdot \left(b \cdot a\right)}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if a < 5.8e168 or 2.8e251 < a Initial program 96.5%
Taylor expanded in c around inf 71.9%
associate-*r/71.9%
metadata-eval71.9%
+-commutative71.9%
metadata-eval71.9%
associate-/r*71.9%
*-commutative71.9%
associate--l+71.9%
sub-neg71.9%
sub-neg71.9%
*-commutative71.9%
associate-/r*71.9%
metadata-eval71.9%
sub-neg71.9%
distribute-neg-frac71.9%
metadata-eval71.9%
Simplified71.9%
Taylor expanded in a around inf 58.4%
Taylor expanded in x around inf 53.4%
if 5.8e168 < a < 2.8e251Initial program 89.8%
Taylor expanded in a around inf 80.0%
Taylor expanded in c around 0 63.3%
associate-*r*63.3%
neg-mul-163.3%
Simplified63.3%
Taylor expanded in a around 0 60.0%
*-commutative60.0%
Simplified60.0%
Taylor expanded in b around inf 60.0%
*-commutative60.0%
Simplified60.0%
Final simplification54.1%
(FPCore (x y z t a b c) :precision binary64 (if (<= a 2.8e+164) 1.0 (/ x (+ x (* 2.0 (* c (* y a)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (a <= 2.8e+164) {
tmp = 1.0;
} else {
tmp = x / (x + (2.0 * (c * (y * 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 <= 2.8d+164) then
tmp = 1.0d0
else
tmp = x / (x + (2.0d0 * (c * (y * 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 <= 2.8e+164) {
tmp = 1.0;
} else {
tmp = x / (x + (2.0 * (c * (y * a))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if a <= 2.8e+164: tmp = 1.0 else: tmp = x / (x + (2.0 * (c * (y * a)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (a <= 2.8e+164) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(2.0 * Float64(c * Float64(y * a))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (a <= 2.8e+164) tmp = 1.0; else tmp = x / (x + (2.0 * (c * (y * a)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[a, 2.8e+164], 1.0, N[(x / N[(x + N[(2.0 * N[(c * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 2.8 \cdot 10^{+164}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + 2 \cdot \left(c \cdot \left(y \cdot a\right)\right)}\\
\end{array}
\end{array}
if a < 2.8000000000000002e164Initial program 97.2%
Taylor expanded in c around inf 70.7%
associate-*r/70.7%
metadata-eval70.7%
+-commutative70.7%
metadata-eval70.7%
associate-/r*70.7%
*-commutative70.7%
associate--l+70.7%
sub-neg70.7%
sub-neg70.7%
*-commutative70.7%
associate-/r*70.7%
metadata-eval70.7%
sub-neg70.7%
distribute-neg-frac70.7%
metadata-eval70.7%
Simplified70.7%
Taylor expanded in a around inf 56.2%
Taylor expanded in x around inf 53.1%
if 2.8000000000000002e164 < a Initial program 89.0%
Taylor expanded in c around inf 61.4%
associate-*r/61.4%
metadata-eval61.4%
+-commutative61.4%
metadata-eval61.4%
associate-/r*61.4%
*-commutative61.4%
associate--l+61.4%
sub-neg61.4%
sub-neg61.4%
*-commutative61.4%
associate-/r*61.4%
metadata-eval61.4%
sub-neg61.4%
distribute-neg-frac61.4%
metadata-eval61.4%
Simplified61.4%
Taylor expanded in a around inf 59.3%
Taylor expanded in c around 0 52.8%
+-commutative52.8%
fma-def52.8%
associate-*r*52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in c around inf 52.8%
Final simplification53.0%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 95.7%
Taylor expanded in c around inf 69.1%
associate-*r/69.1%
metadata-eval69.1%
+-commutative69.1%
metadata-eval69.1%
associate-/r*69.1%
*-commutative69.1%
associate--l+69.1%
sub-neg69.1%
sub-neg69.1%
*-commutative69.1%
associate-/r*69.1%
metadata-eval69.1%
sub-neg69.1%
distribute-neg-frac69.1%
metadata-eval69.1%
Simplified69.1%
Taylor expanded in a around inf 56.7%
Taylor expanded in x around inf 51.1%
Final simplification51.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* z (sqrt (+ t a)))) (t_2 (- a (/ 5.0 6.0))))
(if (< t -2.118326644891581e-50)
(/
x
(+
x
(* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b)))))))
(if (< t 5.196588770651547e-123)
(/
x
(+
x
(*
y
(exp
(*
2.0
(/
(-
(* t_1 (* (* 3.0 t) t_2))
(*
(- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0)
(* t_2 (* (- b c) t))))
(* (* (* t t) 3.0) t_2)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ t_1 t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * sqrt((t + a))
t_2 = a - (5.0d0 / 6.0d0)
if (t < (-2.118326644891581d-50)) then
tmp = x / (x + (y * exp((2.0d0 * (((a * c) + (0.8333333333333334d0 * c)) - (a * b))))))
else if (t < 5.196588770651547d-123) then
tmp = x / (x + (y * exp((2.0d0 * (((t_1 * ((3.0d0 * t) * t_2)) - (((((5.0d0 / 6.0d0) + a) * (3.0d0 * t)) - 2.0d0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0d0) * t_2))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((t_1 / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * Math.sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * Math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * Math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = z * math.sqrt((t + a)) t_2 = a - (5.0 / 6.0) tmp = 0 if t < -2.118326644891581e-50: tmp = x / (x + (y * math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))) elif t < 5.196588770651547e-123: tmp = x / (x + (y * math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(z * sqrt(Float64(t + a))) t_2 = Float64(a - Float64(5.0 / 6.0)) tmp = 0.0 if (t < -2.118326644891581e-50) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(a * c) + Float64(0.8333333333333334 * c)) - Float64(a * b))))))); elseif (t < 5.196588770651547e-123) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(t_1 * Float64(Float64(3.0 * t) * t_2)) - Float64(Float64(Float64(Float64(Float64(5.0 / 6.0) + a) * Float64(3.0 * t)) - 2.0) * Float64(t_2 * Float64(Float64(b - c) * t)))) / Float64(Float64(Float64(t * t) * 3.0) * t_2))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(t_1 / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = z * sqrt((t + a)); t_2 = a - (5.0 / 6.0); tmp = 0.0; if (t < -2.118326644891581e-50) tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))); elseif (t < 5.196588770651547e-123) tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))); else tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a - N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -2.118326644891581e-50], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(a * c), $MachinePrecision] + N[(0.8333333333333334 * c), $MachinePrecision]), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[t, 5.196588770651547e-123], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(t$95$1 * N[(N[(3.0 * t), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(N[(5.0 / 6.0), $MachinePrecision] + a), $MachinePrecision] * N[(3.0 * t), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision] * N[(t$95$2 * N[(N[(b - c), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(t * t), $MachinePrecision] * 3.0), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(t$95$1 / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \sqrt{t + a}\\
t_2 := a - \frac{5}{6}\\
\mathbf{if}\;t < -2.118326644891581 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a \cdot c + 0.8333333333333334 \cdot c\right) - a \cdot b\right)}}\\
\mathbf{elif}\;t < 5.196588770651547 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{t_1 \cdot \left(\left(3 \cdot t\right) \cdot t_2\right) - \left(\left(\frac{5}{6} + a\right) \cdot \left(3 \cdot t\right) - 2\right) \cdot \left(t_2 \cdot \left(\left(b - c\right) \cdot t\right)\right)}{\left(\left(t \cdot t\right) \cdot 3\right) \cdot t_2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{t_1}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\\
\end{array}
\end{array}
herbie shell --seed 2023224
(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)))))))))))