
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_1 INFINITY)
(/ x (+ x (* y (exp (* 2.0 t_1)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ (- a (/ 0.6666666666666666 t)) 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.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 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.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 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.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 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.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(c * Float64(Float64(a - Float64(0.6666666666666666 / t)) + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.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 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.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[(c * N[(N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot t\_1}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a - \frac{0.6666666666666666}{t}\right) + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < +inf.0Initial program 99.2%
if +inf.0 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 0.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6467.7%
Simplified67.7%
Final simplification98.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) 1e+40)
(/
1.0
(/
(+
x
(*
y
(exp
(*
2.0
(+
(/ (pow (+ t a) 0.5) (/ t z))
(*
(- b c)
(- (- (/ 0.6666666666666666 t) 0.8333333333333334) a)))))))
x))
(/
x
(+
x
(*
y
(exp
(*
(* (- b c) 2.0)
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 1e+40) {
tmp = 1.0 / ((x + (y * exp((2.0 * ((pow((t + a), 0.5) / (t / z)) + ((b - c) * (((0.6666666666666666 / t) - 0.8333333333333334) - a))))))) / x);
} else {
tmp = x / (x + (y * exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= 1d+40) then
tmp = 1.0d0 / ((x + (y * exp((2.0d0 * ((((t + a) ** 0.5d0) / (t / z)) + ((b - c) * (((0.6666666666666666d0 / t) - 0.8333333333333334d0) - a))))))) / x)
else
tmp = x / (x + (y * exp((((b - c) * 2.0d0) * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 1e+40) {
tmp = 1.0 / ((x + (y * Math.exp((2.0 * ((Math.pow((t + a), 0.5) / (t / z)) + ((b - c) * (((0.6666666666666666 / t) - 0.8333333333333334) - a))))))) / x);
} else {
tmp = x / (x + (y * Math.exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= 1e+40: tmp = 1.0 / ((x + (y * math.exp((2.0 * ((math.pow((t + a), 0.5) / (t / z)) + ((b - c) * (((0.6666666666666666 / t) - 0.8333333333333334) - a))))))) / x) else: tmp = x / (x + (y * math.exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= 1e+40) tmp = Float64(1.0 / Float64(Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64((Float64(t + a) ^ 0.5) / Float64(t / z)) + Float64(Float64(b - c) * Float64(Float64(Float64(0.6666666666666666 / t) - 0.8333333333333334) - a))))))) / x)); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(Float64(b - c) * 2.0) * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= 1e+40) tmp = 1.0 / ((x + (y * exp((2.0 * ((((t + a) ^ 0.5) / (t / z)) + ((b - c) * (((0.6666666666666666 / t) - 0.8333333333333334) - a))))))) / x); else tmp = x / (x + (y * exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], 1e+40], N[(1.0 / N[(N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[Power[N[(t + a), $MachinePrecision], 0.5], $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - 0.8333333333333334), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(N[(N[(b - c), $MachinePrecision] * 2.0), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq 10^{+40}:\\
\;\;\;\;\frac{1}{\frac{x + y \cdot e^{2 \cdot \left(\frac{{\left(t + a\right)}^{0.5}}{\frac{t}{z}} + \left(b - c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} - 0.8333333333333334\right) - a\right)\right)}}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(\left(b - c\right) \cdot 2\right) \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if (-.f64 b c) < 1.00000000000000003e40Initial program 97.2%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
Applied egg-rr97.7%
if 1.00000000000000003e40 < (-.f64 b c) Initial program 92.4%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified89.9%
Taylor expanded in z around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6497.5%
Simplified97.5%
Final simplification97.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<= (- b c) 1e+40)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(* (sqrt (+ t a)) (/ z t))
(*
(- b c)
(- (+ (/ 0.6666666666666666 t) -0.8333333333333334) a))))))))
(/
x
(+
x
(*
y
(exp
(*
(* (- b c) 2.0)
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 1e+40) {
tmp = x / (x + (y * exp((2.0 * ((sqrt((t + a)) * (z / t)) + ((b - c) * (((0.6666666666666666 / t) + -0.8333333333333334) - a)))))));
} else {
tmp = x / (x + (y * exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if ((b - c) <= 1d+40) then
tmp = x / (x + (y * exp((2.0d0 * ((sqrt((t + a)) * (z / t)) + ((b - c) * (((0.6666666666666666d0 / t) + (-0.8333333333333334d0)) - a)))))))
else
tmp = x / (x + (y * exp((((b - c) * 2.0d0) * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((b - c) <= 1e+40) {
tmp = x / (x + (y * Math.exp((2.0 * ((Math.sqrt((t + a)) * (z / t)) + ((b - c) * (((0.6666666666666666 / t) + -0.8333333333333334) - a)))))));
} else {
tmp = x / (x + (y * Math.exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (b - c) <= 1e+40: tmp = x / (x + (y * math.exp((2.0 * ((math.sqrt((t + a)) * (z / t)) + ((b - c) * (((0.6666666666666666 / t) + -0.8333333333333334) - a))))))) else: tmp = x / (x + (y * math.exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(b - c) <= 1e+40) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(sqrt(Float64(t + a)) * Float64(z / t)) + Float64(Float64(b - c) * Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) - a)))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(Float64(b - c) * 2.0) * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((b - c) <= 1e+40) tmp = x / (x + (y * exp((2.0 * ((sqrt((t + a)) * (z / t)) + ((b - c) * (((0.6666666666666666 / t) + -0.8333333333333334) - a))))))); else tmp = x / (x + (y * exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(b - c), $MachinePrecision], 1e+40], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(N[(N[(b - c), $MachinePrecision] * 2.0), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b - c \leq 10^{+40}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\sqrt{t + a} \cdot \frac{z}{t} + \left(b - c\right) \cdot \left(\left(\frac{0.6666666666666666}{t} + -0.8333333333333334\right) - a\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(\left(b - c\right) \cdot 2\right) \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if (-.f64 b c) < 1.00000000000000003e40Initial program 97.2%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified97.2%
if 1.00000000000000003e40 < (-.f64 b c) Initial program 92.4%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified89.9%
Taylor expanded in z around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6497.5%
Simplified97.5%
Final simplification97.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (+ x (* y (exp (* 2.0 (* (sqrt (+ t a)) (/ z t)))))))))
(if (<= z -4e+229)
t_1
(if (<= z 2.9e+141)
(/
x
(+
x
(*
y
(exp
(*
(* (- b c) 2.0)
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (sqrt((t + a)) * (z / t))))));
double tmp;
if (z <= -4e+229) {
tmp = t_1;
} else if (z <= 2.9e+141) {
tmp = x / (x + (y * exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (sqrt((t + a)) * (z / t))))))
if (z <= (-4d+229)) then
tmp = t_1
else if (z <= 2.9d+141) then
tmp = x / (x + (y * exp((((b - c) * 2.0d0) * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (Math.sqrt((t + a)) * (z / t))))));
double tmp;
if (z <= -4e+229) {
tmp = t_1;
} else if (z <= 2.9e+141) {
tmp = x / (x + (y * Math.exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (math.sqrt((t + a)) * (z / t)))))) tmp = 0 if z <= -4e+229: tmp = t_1 elif z <= 2.9e+141: tmp = x / (x + (y * math.exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(sqrt(Float64(t + a)) * Float64(z / t))))))) tmp = 0.0 if (z <= -4e+229) tmp = t_1; elseif (z <= 2.9e+141) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(Float64(b - c) * 2.0) * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (sqrt((t + a)) * (z / t)))))); tmp = 0.0; if (z <= -4e+229) tmp = t_1; elseif (z <= 2.9e+141) tmp = x / (x + (y * exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4e+229], t$95$1, If[LessEqual[z, 2.9e+141], N[(x / N[(x + N[(y * N[Exp[N[(N[(N[(b - c), $MachinePrecision] * 2.0), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(\sqrt{t + a} \cdot \frac{z}{t}\right)}}\\
\mathbf{if}\;z \leq -4 \cdot 10^{+229}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+141}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\left(\left(b - c\right) \cdot 2\right) \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4e229 or 2.90000000000000007e141 < z Initial program 84.3%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified87.7%
Taylor expanded in z around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
+-commutativeN/A
+-lowering-+.f6491.5%
Simplified91.5%
if -4e229 < z < 2.90000000000000007e141Initial program 99.0%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified97.0%
Taylor expanded in z around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6496.2%
Simplified96.2%
Final simplification95.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= y -2.2e+119)
(/ x (+ x (* y (exp (* 2.0 (* a c))))))
(if (<= y -8.5e+54)
(/
x
(+
x
(*
y
(+
(*
c
(+
(* 2.0 (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t)))
(* c (/ (* c -0.3950617283950617) (* t (* t t))))))
1.0))))
(if (<= y 5.9e+38)
(/ x (+ x (* y (exp (* -2.0 (* b (+ a 0.8333333333333334)))))))
1.0))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (y <= -2.2e+119) {
tmp = x / (x + (y * exp((2.0 * (a * c)))));
} else if (y <= -8.5e+54) {
tmp = x / (x + (y * ((c * ((2.0 * ((a + 0.8333333333333334) - (0.6666666666666666 / t))) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0)));
} else if (y <= 5.9e+38) {
tmp = x / (x + (y * exp((-2.0 * (b * (a + 0.8333333333333334))))));
} 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.2d+119)) then
tmp = x / (x + (y * exp((2.0d0 * (a * c)))))
else if (y <= (-8.5d+54)) then
tmp = x / (x + (y * ((c * ((2.0d0 * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t))) + (c * ((c * (-0.3950617283950617d0)) / (t * (t * t)))))) + 1.0d0)))
else if (y <= 5.9d+38) then
tmp = x / (x + (y * exp(((-2.0d0) * (b * (a + 0.8333333333333334d0))))))
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.2e+119) {
tmp = x / (x + (y * Math.exp((2.0 * (a * c)))));
} else if (y <= -8.5e+54) {
tmp = x / (x + (y * ((c * ((2.0 * ((a + 0.8333333333333334) - (0.6666666666666666 / t))) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0)));
} else if (y <= 5.9e+38) {
tmp = x / (x + (y * Math.exp((-2.0 * (b * (a + 0.8333333333333334))))));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if y <= -2.2e+119: tmp = x / (x + (y * math.exp((2.0 * (a * c))))) elif y <= -8.5e+54: tmp = x / (x + (y * ((c * ((2.0 * ((a + 0.8333333333333334) - (0.6666666666666666 / t))) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0))) elif y <= 5.9e+38: tmp = x / (x + (y * math.exp((-2.0 * (b * (a + 0.8333333333333334)))))) else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (y <= -2.2e+119) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(a * c)))))); elseif (y <= -8.5e+54) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(c * Float64(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t))) + Float64(c * Float64(Float64(c * -0.3950617283950617) / Float64(t * Float64(t * t)))))) + 1.0)))); elseif (y <= 5.9e+38) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))))))); 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.2e+119) tmp = x / (x + (y * exp((2.0 * (a * c))))); elseif (y <= -8.5e+54) tmp = x / (x + (y * ((c * ((2.0 * ((a + 0.8333333333333334) - (0.6666666666666666 / t))) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0))); elseif (y <= 5.9e+38) tmp = x / (x + (y * exp((-2.0 * (b * (a + 0.8333333333333334)))))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[y, -2.2e+119], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -8.5e+54], N[(x / N[(x + N[(y * N[(N[(c * N[(N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(c * -0.3950617283950617), $MachinePrecision] / N[(t * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.9e+38], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{+119}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(a \cdot c\right)}}\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{+54}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(c \cdot \left(2 \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right) + c \cdot \frac{c \cdot -0.3950617283950617}{t \cdot \left(t \cdot t\right)}\right) + 1\right)}\\
\mathbf{elif}\;y \leq 5.9 \cdot 10^{+38}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -2.2000000000000001e119Initial program 96.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6467.8%
Simplified67.8%
Taylor expanded in a around inf
Simplified71.2%
if -2.2000000000000001e119 < y < -8.4999999999999995e54Initial program 90.0%
Taylor expanded in c around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6490.3%
Simplified90.3%
Taylor expanded in c around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
Simplified70.9%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6490.3%
Simplified90.3%
if -8.4999999999999995e54 < y < 5.89999999999999981e38Initial program 96.0%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified95.3%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6475.4%
Simplified75.4%
Taylor expanded in t around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6469.6%
Simplified69.6%
if 5.89999999999999981e38 < y Initial program 95.4%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified95.4%
Taylor expanded in x around inf
Simplified67.2%
Final simplification70.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(exp
(*
2.0
(*
c
(+ (- a (/ 0.6666666666666666 t)) 0.8333333333333334)))))))))
(if (<= c -1.65e-38)
t_1
(if (<= c 5.5e+158)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))))));
double tmp;
if (c <= -1.65e-38) {
tmp = t_1;
} else if (c <= 5.5e+158) {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = x / (x + (y * exp((2.0d0 * (c * ((a - (0.6666666666666666d0 / t)) + 0.8333333333333334d0))))))
if (c <= (-1.65d-38)) then
tmp = t_1
else if (c <= 5.5d+158) then
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / (x + (y * Math.exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334))))));
double tmp;
if (c <= -1.65e-38) {
tmp = t_1;
} else if (c <= 5.5e+158) {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * math.exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334)))))) tmp = 0 if c <= -1.65e-38: tmp = t_1 elif c <= 5.5e+158: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(Float64(a - Float64(0.6666666666666666 / t)) + 0.8333333333333334))))))) tmp = 0.0 if (c <= -1.65e-38) tmp = t_1; elseif (c <= 5.5e+158) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = x / (x + (y * exp((2.0 * (c * ((a - (0.6666666666666666 / t)) + 0.8333333333333334)))))); tmp = 0.0; if (c <= -1.65e-38) tmp = t_1; elseif (c <= 5.5e+158) tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision] + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.65e-38], t$95$1, If[LessEqual[c, 5.5e+158], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(\left(a - \frac{0.6666666666666666}{t}\right) + 0.8333333333333334\right)\right)}}\\
\mathbf{if}\;c \leq -1.65 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 5.5 \cdot 10^{+158}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.6500000000000001e-38 or 5.4999999999999998e158 < c Initial program 94.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6487.2%
Simplified87.2%
if -1.6500000000000001e-38 < c < 5.4999999999999998e158Initial program 96.4%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified95.1%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6477.2%
Simplified77.2%
Final simplification80.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<= t 2.4e-46)
(/ x (+ x (* y (exp (/ (* (- b c) 1.3333333333333333) t)))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(* b (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.4e-46) {
tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 2.4d-46) then
tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333d0) / t))))
else
tmp = x / (x + (y * exp((2.0d0 * (b * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 2.4e-46) {
tmp = x / (x + (y * Math.exp((((b - c) * 1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 2.4e-46: tmp = x / (x + (y * math.exp((((b - c) * 1.3333333333333333) / t)))) else: tmp = x / (x + (y * math.exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 2.4e-46) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(Float64(b - c) * 1.3333333333333333) / t))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(b * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 2.4e-46) tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333) / t)))); else tmp = x / (x + (y * exp((2.0 * (b * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 2.4e-46], N[(x / N[(x + N[(y * N[Exp[N[(N[(N[(b - c), $MachinePrecision] * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(b * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.4 \cdot 10^{-46}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{\left(b - c\right) \cdot 1.3333333333333333}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(b \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)\right)}}\\
\end{array}
\end{array}
if t < 2.40000000000000013e-46Initial program 94.0%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified91.0%
Taylor expanded in z around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6484.8%
Simplified84.8%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6479.1%
Simplified79.1%
if 2.40000000000000013e-46 < t Initial program 97.6%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified99.2%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6473.2%
Simplified73.2%
Final simplification76.3%
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
(* (- b c) 2.0)
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
code = x / (x + (y * exp((((b - c) * 2.0d0) * ((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(Float64(Float64(b - c) * 2.0) * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((((b - c) * 2.0) * ((0.6666666666666666 / t) - (a + 0.8333333333333334)))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(N[(N[(b - c), $MachinePrecision] * 2.0), $MachinePrecision] * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{\left(\left(b - c\right) \cdot 2\right) \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right)}}
\end{array}
Initial program 95.7%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified94.9%
Taylor expanded in z around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6487.9%
Simplified87.9%
Final simplification87.9%
(FPCore (x y z t a b c) :precision binary64 (if (<= t 1.8e-46) (/ x (+ x (* y (exp (/ (* (- b c) 1.3333333333333333) t))))) (/ x (+ x (* y (exp (* -2.0 (* b (+ a 0.8333333333333334)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.8e-46) {
tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * exp((-2.0 * (b * (a + 0.8333333333333334))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (t <= 1.8d-46) then
tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333d0) / t))))
else
tmp = x / (x + (y * exp(((-2.0d0) * (b * (a + 0.8333333333333334d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (t <= 1.8e-46) {
tmp = x / (x + (y * Math.exp((((b - c) * 1.3333333333333333) / t))));
} else {
tmp = x / (x + (y * Math.exp((-2.0 * (b * (a + 0.8333333333333334))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if t <= 1.8e-46: tmp = x / (x + (y * math.exp((((b - c) * 1.3333333333333333) / t)))) else: tmp = x / (x + (y * math.exp((-2.0 * (b * (a + 0.8333333333333334)))))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (t <= 1.8e-46) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(Float64(Float64(b - c) * 1.3333333333333333) / t))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (t <= 1.8e-46) tmp = x / (x + (y * exp((((b - c) * 1.3333333333333333) / t)))); else tmp = x / (x + (y * exp((-2.0 * (b * (a + 0.8333333333333334)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[t, 1.8e-46], N[(x / N[(x + N[(y * N[Exp[N[(N[(N[(b - c), $MachinePrecision] * 1.3333333333333333), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.8 \cdot 10^{-46}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{\frac{\left(b - c\right) \cdot 1.3333333333333333}{t}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)}}\\
\end{array}
\end{array}
if t < 1.8e-46Initial program 94.0%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified91.0%
Taylor expanded in z around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6484.8%
Simplified84.8%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6479.1%
Simplified79.1%
if 1.8e-46 < t Initial program 97.6%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified99.2%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6473.2%
Simplified73.2%
Taylor expanded in t around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6471.6%
Simplified71.6%
Final simplification75.5%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t)))
(t_2
(/ x (+ x (* y (+ (* c (* 2.0 (+ t_1 (* c (* t_1 t_1))))) 1.0))))))
(if (<= c 8e-188)
1.0
(if (<= c 2.6e-69) t_2 (if (<= c 2.3e+238) 1.0 t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (a + 0.8333333333333334) - (0.6666666666666666 / t);
double t_2 = x / (x + (y * ((c * (2.0 * (t_1 + (c * (t_1 * t_1))))) + 1.0)));
double tmp;
if (c <= 8e-188) {
tmp = 1.0;
} else if (c <= 2.6e-69) {
tmp = t_2;
} else if (c <= 2.3e+238) {
tmp = 1.0;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)
t_2 = x / (x + (y * ((c * (2.0d0 * (t_1 + (c * (t_1 * t_1))))) + 1.0d0)))
if (c <= 8d-188) then
tmp = 1.0d0
else if (c <= 2.6d-69) then
tmp = t_2
else if (c <= 2.3d+238) then
tmp = 1.0d0
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (a + 0.8333333333333334) - (0.6666666666666666 / t);
double t_2 = x / (x + (y * ((c * (2.0 * (t_1 + (c * (t_1 * t_1))))) + 1.0)));
double tmp;
if (c <= 8e-188) {
tmp = 1.0;
} else if (c <= 2.6e-69) {
tmp = t_2;
} else if (c <= 2.3e+238) {
tmp = 1.0;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (a + 0.8333333333333334) - (0.6666666666666666 / t) t_2 = x / (x + (y * ((c * (2.0 * (t_1 + (c * (t_1 * t_1))))) + 1.0))) tmp = 0 if c <= 8e-188: tmp = 1.0 elif c <= 2.6e-69: tmp = t_2 elif c <= 2.3e+238: tmp = 1.0 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)) t_2 = Float64(x / Float64(x + Float64(y * Float64(Float64(c * Float64(2.0 * Float64(t_1 + Float64(c * Float64(t_1 * t_1))))) + 1.0)))) tmp = 0.0 if (c <= 8e-188) tmp = 1.0; elseif (c <= 2.6e-69) tmp = t_2; elseif (c <= 2.3e+238) tmp = 1.0; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (a + 0.8333333333333334) - (0.6666666666666666 / t); t_2 = x / (x + (y * ((c * (2.0 * (t_1 + (c * (t_1 * t_1))))) + 1.0))); tmp = 0.0; if (c <= 8e-188) tmp = 1.0; elseif (c <= 2.6e-69) tmp = t_2; elseif (c <= 2.3e+238) tmp = 1.0; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(x + N[(y * N[(N[(c * N[(2.0 * N[(t$95$1 + N[(c * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, 8e-188], 1.0, If[LessEqual[c, 2.6e-69], t$95$2, If[LessEqual[c, 2.3e+238], 1.0, t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\\
t_2 := \frac{x}{x + y \cdot \left(c \cdot \left(2 \cdot \left(t\_1 + c \cdot \left(t\_1 \cdot t\_1\right)\right)\right) + 1\right)}\\
\mathbf{if}\;c \leq 8 \cdot 10^{-188}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 2.6 \cdot 10^{-69}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 2.3 \cdot 10^{+238}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < 7.9999999999999996e-188 or 2.6000000000000002e-69 < c < 2.30000000000000003e238Initial program 96.7%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified96.2%
Taylor expanded in x around inf
Simplified65.2%
if 7.9999999999999996e-188 < c < 2.6000000000000002e-69 or 2.30000000000000003e238 < c Initial program 91.3%
Taylor expanded in c around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6479.0%
Simplified79.0%
Taylor expanded in c around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
Simplified76.9%
Final simplification67.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t))))
(if (<= c 1.1e-192)
1.0
(if (<= c 2.7e-59)
(/
x
(+
x
(*
y
(+
(*
b
(*
2.0
(+
(- (/ 0.6666666666666666 t) (+ a 0.8333333333333334))
(* b (* t_1 t_1)))))
1.0))))
(if (<= c 2e+213)
1.0
(/
x
(+
x
(*
y
(+
(*
c
(+
(* 2.0 t_1)
(* c (/ (* c -0.3950617283950617) (* t (* t t))))))
1.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (a + 0.8333333333333334) - (0.6666666666666666 / t);
double tmp;
if (c <= 1.1e-192) {
tmp = 1.0;
} else if (c <= 2.7e-59) {
tmp = x / (x + (y * ((b * (2.0 * (((0.6666666666666666 / t) - (a + 0.8333333333333334)) + (b * (t_1 * t_1))))) + 1.0)));
} else if (c <= 2e+213) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((c * ((2.0 * t_1) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: t_1
real(8) :: tmp
t_1 = (a + 0.8333333333333334d0) - (0.6666666666666666d0 / t)
if (c <= 1.1d-192) then
tmp = 1.0d0
else if (c <= 2.7d-59) then
tmp = x / (x + (y * ((b * (2.0d0 * (((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)) + (b * (t_1 * t_1))))) + 1.0d0)))
else if (c <= 2d+213) then
tmp = 1.0d0
else
tmp = x / (x + (y * ((c * ((2.0d0 * t_1) + (c * ((c * (-0.3950617283950617d0)) / (t * (t * t)))))) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (a + 0.8333333333333334) - (0.6666666666666666 / t);
double tmp;
if (c <= 1.1e-192) {
tmp = 1.0;
} else if (c <= 2.7e-59) {
tmp = x / (x + (y * ((b * (2.0 * (((0.6666666666666666 / t) - (a + 0.8333333333333334)) + (b * (t_1 * t_1))))) + 1.0)));
} else if (c <= 2e+213) {
tmp = 1.0;
} else {
tmp = x / (x + (y * ((c * ((2.0 * t_1) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (a + 0.8333333333333334) - (0.6666666666666666 / t) tmp = 0 if c <= 1.1e-192: tmp = 1.0 elif c <= 2.7e-59: tmp = x / (x + (y * ((b * (2.0 * (((0.6666666666666666 / t) - (a + 0.8333333333333334)) + (b * (t_1 * t_1))))) + 1.0))) elif c <= 2e+213: tmp = 1.0 else: tmp = x / (x + (y * ((c * ((2.0 * t_1) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t)) tmp = 0.0 if (c <= 1.1e-192) tmp = 1.0; elseif (c <= 2.7e-59) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(b * Float64(2.0 * Float64(Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)) + Float64(b * Float64(t_1 * t_1))))) + 1.0)))); elseif (c <= 2e+213) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(c * Float64(Float64(2.0 * t_1) + Float64(c * Float64(Float64(c * -0.3950617283950617) / Float64(t * Float64(t * t)))))) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (a + 0.8333333333333334) - (0.6666666666666666 / t); tmp = 0.0; if (c <= 1.1e-192) tmp = 1.0; elseif (c <= 2.7e-59) tmp = x / (x + (y * ((b * (2.0 * (((0.6666666666666666 / t) - (a + 0.8333333333333334)) + (b * (t_1 * t_1))))) + 1.0))); elseif (c <= 2e+213) tmp = 1.0; else tmp = x / (x + (y * ((c * ((2.0 * t_1) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, 1.1e-192], 1.0, If[LessEqual[c, 2.7e-59], N[(x / N[(x + N[(y * N[(N[(b * N[(2.0 * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2e+213], 1.0, N[(x / N[(x + N[(y * N[(N[(c * N[(N[(2.0 * t$95$1), $MachinePrecision] + N[(c * N[(N[(c * -0.3950617283950617), $MachinePrecision] / N[(t * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\\
\mathbf{if}\;c \leq 1.1 \cdot 10^{-192}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 2.7 \cdot 10^{-59}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(b \cdot \left(2 \cdot \left(\left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right) + b \cdot \left(t\_1 \cdot t\_1\right)\right)\right) + 1\right)}\\
\mathbf{elif}\;c \leq 2 \cdot 10^{+213}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(c \cdot \left(2 \cdot t\_1 + c \cdot \frac{c \cdot -0.3950617283950617}{t \cdot \left(t \cdot t\right)}\right) + 1\right)}\\
\end{array}
\end{array}
if c < 1.10000000000000003e-192 or 2.6999999999999999e-59 < c < 1.99999999999999997e213Initial program 96.6%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified96.1%
Taylor expanded in x around inf
Simplified65.5%
if 1.10000000000000003e-192 < c < 2.6999999999999999e-59Initial program 90.6%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified87.5%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6472.9%
Simplified72.9%
Taylor expanded in b around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
Simplified75.8%
if 1.99999999999999997e213 < c Initial program 94.4%
Taylor expanded in c around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64100.0%
Simplified100.0%
Taylor expanded in c around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
Simplified72.6%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6473.1%
Simplified73.1%
Final simplification67.3%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(+
x
(*
y
(+
(*
c
(+
(* 2.0 (- (+ a 0.8333333333333334) (/ 0.6666666666666666 t)))
(* c (/ (* c -0.3950617283950617) (* t (* t t))))))
1.0))))))
(if (<= c 2.8e-259)
1.0
(if (<= c 4.1e-69) t_1 (if (<= c 1.2e+215) 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 * ((c * ((2.0 * ((a + 0.8333333333333334) - (0.6666666666666666 / t))) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0)));
double tmp;
if (c <= 2.8e-259) {
tmp = 1.0;
} else if (c <= 4.1e-69) {
tmp = t_1;
} else if (c <= 1.2e+215) {
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 * ((c * ((2.0d0 * ((a + 0.8333333333333334d0) - (0.6666666666666666d0 / t))) + (c * ((c * (-0.3950617283950617d0)) / (t * (t * t)))))) + 1.0d0)))
if (c <= 2.8d-259) then
tmp = 1.0d0
else if (c <= 4.1d-69) then
tmp = t_1
else if (c <= 1.2d+215) 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 * ((c * ((2.0 * ((a + 0.8333333333333334) - (0.6666666666666666 / t))) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0)));
double tmp;
if (c <= 2.8e-259) {
tmp = 1.0;
} else if (c <= 4.1e-69) {
tmp = t_1;
} else if (c <= 1.2e+215) {
tmp = 1.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = x / (x + (y * ((c * ((2.0 * ((a + 0.8333333333333334) - (0.6666666666666666 / t))) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0))) tmp = 0 if c <= 2.8e-259: tmp = 1.0 elif c <= 4.1e-69: tmp = t_1 elif c <= 1.2e+215: 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 * Float64(Float64(c * Float64(Float64(2.0 * Float64(Float64(a + 0.8333333333333334) - Float64(0.6666666666666666 / t))) + Float64(c * Float64(Float64(c * -0.3950617283950617) / Float64(t * Float64(t * t)))))) + 1.0)))) tmp = 0.0 if (c <= 2.8e-259) tmp = 1.0; elseif (c <= 4.1e-69) tmp = t_1; elseif (c <= 1.2e+215) 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 * ((c * ((2.0 * ((a + 0.8333333333333334) - (0.6666666666666666 / t))) + (c * ((c * -0.3950617283950617) / (t * (t * t)))))) + 1.0))); tmp = 0.0; if (c <= 2.8e-259) tmp = 1.0; elseif (c <= 4.1e-69) tmp = t_1; elseif (c <= 1.2e+215) 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[(N[(c * N[(N[(2.0 * N[(N[(a + 0.8333333333333334), $MachinePrecision] - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(c * -0.3950617283950617), $MachinePrecision] / N[(t * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, 2.8e-259], 1.0, If[LessEqual[c, 4.1e-69], t$95$1, If[LessEqual[c, 1.2e+215], 1.0, t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{x + y \cdot \left(c \cdot \left(2 \cdot \left(\left(a + 0.8333333333333334\right) - \frac{0.6666666666666666}{t}\right) + c \cdot \frac{c \cdot -0.3950617283950617}{t \cdot \left(t \cdot t\right)}\right) + 1\right)}\\
\mathbf{if}\;c \leq 2.8 \cdot 10^{-259}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 4.1 \cdot 10^{-69}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.2 \cdot 10^{+215}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < 2.8e-259 or 4.0999999999999999e-69 < c < 1.2e215Initial program 96.4%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified95.8%
Taylor expanded in x around inf
Simplified64.9%
if 2.8e-259 < c < 4.0999999999999999e-69 or 1.2e215 < c Initial program 93.6%
Taylor expanded in c around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6473.8%
Simplified73.8%
Taylor expanded in c around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
Simplified70.5%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6473.9%
Simplified73.9%
Final simplification67.1%
(FPCore (x y z t a b c)
:precision binary64
(if (<= c 1.3e-189)
1.0
(if (<= c 2.45e+20)
(/
x
(+
x
(*
y
(+
(* (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)) (* b 2.0))
1.0))))
(/ x (* y (/ x y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.3e-189) {
tmp = 1.0;
} else if (c <= 2.45e+20) {
tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0)));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 1.3d-189) then
tmp = 1.0d0
else if (c <= 2.45d+20) then
tmp = x / (x + (y * ((((0.6666666666666666d0 / t) - (a + 0.8333333333333334d0)) * (b * 2.0d0)) + 1.0d0)))
else
tmp = x / (y * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.3e-189) {
tmp = 1.0;
} else if (c <= 2.45e+20) {
tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0)));
} else {
tmp = x / (y * (x / y));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.3e-189: tmp = 1.0 elif c <= 2.45e+20: tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0))) else: tmp = x / (y * (x / y)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.3e-189) tmp = 1.0; elseif (c <= 2.45e+20) tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334)) * Float64(b * 2.0)) + 1.0)))); else tmp = Float64(x / Float64(y * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.3e-189) tmp = 1.0; elseif (c <= 2.45e+20) tmp = x / (x + (y * ((((0.6666666666666666 / t) - (a + 0.8333333333333334)) * (b * 2.0)) + 1.0))); else tmp = x / (y * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.3e-189], 1.0, If[LessEqual[c, 2.45e+20], N[(x / N[(x + N[(y * N[(N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] * N[(b * 2.0), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.3 \cdot 10^{-189}:\\
\;\;\;\;1\\
\mathbf{elif}\;c \leq 2.45 \cdot 10^{+20}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right) \cdot \left(b \cdot 2\right) + 1\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \frac{x}{y}}\\
\end{array}
\end{array}
if c < 1.2999999999999999e-189Initial program 98.0%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified97.3%
Taylor expanded in x around inf
Simplified65.1%
if 1.2999999999999999e-189 < c < 2.45e20Initial program 93.5%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified91.3%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6470.7%
Simplified70.7%
Taylor expanded in b around 0
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6462.2%
Simplified62.2%
if 2.45e20 < c Initial program 92.0%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified91.9%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6467.9%
Simplified67.9%
Taylor expanded in b around 0
/-lowering-/.f64N/A
+-lowering-+.f6429.6%
Simplified29.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f6437.4%
Simplified37.4%
Taylor expanded in x around inf
/-lowering-/.f6463.9%
Simplified63.9%
Final simplification64.3%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 1.8e+238) 1.0 (/ x (+ x (* y (+ (* (+ a 0.8333333333333334) (* c 2.0)) 1.0))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.8e+238) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (((a + 0.8333333333333334) * (c * 2.0)) + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 1.8d+238) then
tmp = 1.0d0
else
tmp = x / (x + (y * (((a + 0.8333333333333334d0) * (c * 2.0d0)) + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 1.8e+238) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (((a + 0.8333333333333334) * (c * 2.0)) + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 1.8e+238: tmp = 1.0 else: tmp = x / (x + (y * (((a + 0.8333333333333334) * (c * 2.0)) + 1.0))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 1.8e+238) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(Float64(Float64(a + 0.8333333333333334) * Float64(c * 2.0)) + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 1.8e+238) tmp = 1.0; else tmp = x / (x + (y * (((a + 0.8333333333333334) * (c * 2.0)) + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 1.8e+238], 1.0, N[(x / N[(x + N[(y * N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c * 2.0), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 1.8 \cdot 10^{+238}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(\left(a + 0.8333333333333334\right) \cdot \left(c \cdot 2\right) + 1\right)}\\
\end{array}
\end{array}
if c < 1.79999999999999986e238Initial program 95.8%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified95.0%
Taylor expanded in x around inf
Simplified61.9%
if 1.79999999999999986e238 < c Initial program 93.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64100.0%
Simplified100.0%
Taylor expanded in c around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
Simplified75.4%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6475.8%
Simplified75.8%
Taylor expanded in t around inf
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f6457.7%
Simplified57.7%
Final simplification61.6%
(FPCore (x y z t a b c) :precision binary64 (if (<= c 3.1e+217) 1.0 (/ x (+ x (* y (* 2.0 (* a c)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.1e+217) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (2.0 * (a * c))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8) :: tmp
if (c <= 3.1d+217) then
tmp = 1.0d0
else
tmp = x / (x + (y * (2.0d0 * (a * c))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (c <= 3.1e+217) {
tmp = 1.0;
} else {
tmp = x / (x + (y * (2.0 * (a * c))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if c <= 3.1e+217: tmp = 1.0 else: tmp = x / (x + (y * (2.0 * (a * c)))) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (c <= 3.1e+217) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * Float64(2.0 * Float64(a * c))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (c <= 3.1e+217) tmp = 1.0; else tmp = x / (x + (y * (2.0 * (a * c)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[c, 3.1e+217], 1.0, N[(x / N[(x + N[(y * N[(2.0 * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq 3.1 \cdot 10^{+217}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \left(2 \cdot \left(a \cdot c\right)\right)}\\
\end{array}
\end{array}
if c < 3.1000000000000002e217Initial program 95.8%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified94.9%
Taylor expanded in x around inf
Simplified62.0%
if 3.1000000000000002e217 < c Initial program 94.4%
Taylor expanded in c around inf
*-lowering-*.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64100.0%
Simplified100.0%
Taylor expanded in c around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
Simplified72.6%
Taylor expanded in t around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6473.1%
Simplified73.1%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f6456.9%
Simplified56.9%
(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%
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
count-2N/A
exp-lowering-exp.f64N/A
Simplified94.9%
Taylor expanded in x around inf
Simplified59.7%
(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 2024191
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(! :herbie-platform default (if (< t -2118326644891581/100000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (- (+ (* a c) (* 4166666666666667/5000000000000000 c)) (* a b))))))) (if (< t 5196588770651547/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (/ (- (* (* z (sqrt (+ t a))) (* (* 3 t) (- a (/ 5 6)))) (* (- (* (+ (/ 5 6) a) (* 3 t)) 2) (* (- a (/ 5 6)) (* (- b c) t)))) (* (* (* t t) 3) (- a (/ 5 6))))))))) (/ x (+ x (* y (exp (* 2 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5 6)) (/ 2 (* t 3)))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))