
(FPCore (x y) :precision binary64 (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (1.0d0 / (x * 9.0d0))) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 - Float64(1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 - N[(1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (1.0d0 / (x * 9.0d0))) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 - Float64(1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 - N[(1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
(FPCore (x y) :precision binary64 (- (+ 1.0 (/ -1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 + (-1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 + ((-1.0d0) / (x * 9.0d0))) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 + (-1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 + (-1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 + (-1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 + \frac{-1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
Initial program 99.6%
Final simplification99.6%
(FPCore (x y) :precision binary64 (if (or (<= y -7.5e+31) (not (<= y 2.15e+70))) (- 1.0 (/ y (* 3.0 (sqrt x)))) (- 1.0 (pow (* x 9.0) -1.0))))
double code(double x, double y) {
double tmp;
if ((y <= -7.5e+31) || !(y <= 2.15e+70)) {
tmp = 1.0 - (y / (3.0 * sqrt(x)));
} else {
tmp = 1.0 - pow((x * 9.0), -1.0);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-7.5d+31)) .or. (.not. (y <= 2.15d+70))) then
tmp = 1.0d0 - (y / (3.0d0 * sqrt(x)))
else
tmp = 1.0d0 - ((x * 9.0d0) ** (-1.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -7.5e+31) || !(y <= 2.15e+70)) {
tmp = 1.0 - (y / (3.0 * Math.sqrt(x)));
} else {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -7.5e+31) or not (y <= 2.15e+70): tmp = 1.0 - (y / (3.0 * math.sqrt(x))) else: tmp = 1.0 - math.pow((x * 9.0), -1.0) return tmp
function code(x, y) tmp = 0.0 if ((y <= -7.5e+31) || !(y <= 2.15e+70)) tmp = Float64(1.0 - Float64(y / Float64(3.0 * sqrt(x)))); else tmp = Float64(1.0 - (Float64(x * 9.0) ^ -1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -7.5e+31) || ~((y <= 2.15e+70))) tmp = 1.0 - (y / (3.0 * sqrt(x))); else tmp = 1.0 - ((x * 9.0) ^ -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -7.5e+31], N[Not[LessEqual[y, 2.15e+70]], $MachinePrecision]], N[(1.0 - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 - N[Power[N[(x * 9.0), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{+31} \lor \neg \left(y \leq 2.15 \cdot 10^{+70}\right):\\
\;\;\;\;1 - \frac{y}{3 \cdot \sqrt{x}}\\
\mathbf{else}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\end{array}
\end{array}
if y < -7.5e31 or 2.15e70 < y Initial program 99.5%
Taylor expanded in x around 0 99.5%
Taylor expanded in x around inf 89.3%
if -7.5e31 < y < 2.15e70Initial program 99.7%
associate--l-99.7%
sub-neg99.7%
+-commutative99.7%
distribute-neg-in99.7%
distribute-frac-neg99.7%
sub-neg99.7%
neg-mul-199.7%
*-commutative99.7%
associate-/l*99.7%
fma-neg99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.6%
distribute-neg-frac99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 97.9%
associate-*r/97.9%
metadata-eval97.9%
Simplified97.9%
metadata-eval97.9%
associate-/r*98.0%
*-commutative98.0%
inv-pow98.0%
Applied egg-rr98.0%
Final simplification94.6%
(FPCore (x y) :precision binary64 (if (or (<= y -5.9e+26) (not (<= y 1.7e+69))) (+ 1.0 (* -0.3333333333333333 (/ y (sqrt x)))) (- 1.0 (pow (* x 9.0) -1.0))))
double code(double x, double y) {
double tmp;
if ((y <= -5.9e+26) || !(y <= 1.7e+69)) {
tmp = 1.0 + (-0.3333333333333333 * (y / sqrt(x)));
} else {
tmp = 1.0 - pow((x * 9.0), -1.0);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-5.9d+26)) .or. (.not. (y <= 1.7d+69))) then
tmp = 1.0d0 + ((-0.3333333333333333d0) * (y / sqrt(x)))
else
tmp = 1.0d0 - ((x * 9.0d0) ** (-1.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -5.9e+26) || !(y <= 1.7e+69)) {
tmp = 1.0 + (-0.3333333333333333 * (y / Math.sqrt(x)));
} else {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -5.9e+26) or not (y <= 1.7e+69): tmp = 1.0 + (-0.3333333333333333 * (y / math.sqrt(x))) else: tmp = 1.0 - math.pow((x * 9.0), -1.0) return tmp
function code(x, y) tmp = 0.0 if ((y <= -5.9e+26) || !(y <= 1.7e+69)) tmp = Float64(1.0 + Float64(-0.3333333333333333 * Float64(y / sqrt(x)))); else tmp = Float64(1.0 - (Float64(x * 9.0) ^ -1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -5.9e+26) || ~((y <= 1.7e+69))) tmp = 1.0 + (-0.3333333333333333 * (y / sqrt(x))); else tmp = 1.0 - ((x * 9.0) ^ -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -5.9e+26], N[Not[LessEqual[y, 1.7e+69]], $MachinePrecision]], N[(1.0 + N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 - N[Power[N[(x * 9.0), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.9 \cdot 10^{+26} \lor \neg \left(y \leq 1.7 \cdot 10^{+69}\right):\\
\;\;\;\;1 + -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\
\mathbf{else}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\end{array}
\end{array}
if y < -5.9000000000000003e26 or 1.69999999999999993e69 < y Initial program 99.5%
sub-neg99.5%
*-commutative99.5%
associate-/r*99.5%
metadata-eval99.5%
distribute-frac-neg99.5%
neg-mul-199.5%
times-frac99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in x around inf 89.2%
if -5.9000000000000003e26 < y < 1.69999999999999993e69Initial program 99.7%
associate--l-99.7%
sub-neg99.7%
+-commutative99.7%
distribute-neg-in99.7%
distribute-frac-neg99.7%
sub-neg99.7%
neg-mul-199.7%
*-commutative99.7%
associate-/l*99.7%
fma-neg99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.6%
distribute-neg-frac99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 97.9%
associate-*r/97.9%
metadata-eval97.9%
Simplified97.9%
metadata-eval97.9%
associate-/r*98.0%
*-commutative98.0%
inv-pow98.0%
Applied egg-rr98.0%
Final simplification94.6%
(FPCore (x y) :precision binary64 (if (or (<= y -1.16e+67) (not (<= y 2.4e+81))) (/ (- y) (sqrt (* x 9.0))) (- 1.0 (pow (* x 9.0) -1.0))))
double code(double x, double y) {
double tmp;
if ((y <= -1.16e+67) || !(y <= 2.4e+81)) {
tmp = -y / sqrt((x * 9.0));
} else {
tmp = 1.0 - pow((x * 9.0), -1.0);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-1.16d+67)) .or. (.not. (y <= 2.4d+81))) then
tmp = -y / sqrt((x * 9.0d0))
else
tmp = 1.0d0 - ((x * 9.0d0) ** (-1.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -1.16e+67) || !(y <= 2.4e+81)) {
tmp = -y / Math.sqrt((x * 9.0));
} else {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -1.16e+67) or not (y <= 2.4e+81): tmp = -y / math.sqrt((x * 9.0)) else: tmp = 1.0 - math.pow((x * 9.0), -1.0) return tmp
function code(x, y) tmp = 0.0 if ((y <= -1.16e+67) || !(y <= 2.4e+81)) tmp = Float64(Float64(-y) / sqrt(Float64(x * 9.0))); else tmp = Float64(1.0 - (Float64(x * 9.0) ^ -1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -1.16e+67) || ~((y <= 2.4e+81))) tmp = -y / sqrt((x * 9.0)); else tmp = 1.0 - ((x * 9.0) ^ -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -1.16e+67], N[Not[LessEqual[y, 2.4e+81]], $MachinePrecision]], N[((-y) / N[Sqrt[N[(x * 9.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(1.0 - N[Power[N[(x * 9.0), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.16 \cdot 10^{+67} \lor \neg \left(y \leq 2.4 \cdot 10^{+81}\right):\\
\;\;\;\;\frac{-y}{\sqrt{x \cdot 9}}\\
\mathbf{else}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\end{array}
\end{array}
if y < -1.15999999999999994e67 or 2.3999999999999999e81 < y Initial program 99.5%
associate--l-99.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-in99.5%
distribute-frac-neg99.5%
sub-neg99.5%
neg-mul-199.5%
*-commutative99.5%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around inf 84.3%
associate-*r*84.3%
Simplified84.3%
*-commutative84.3%
associate-*r*84.3%
sqrt-div84.2%
metadata-eval84.2%
div-inv84.4%
frac-2neg84.4%
distribute-frac-neg284.4%
distribute-rgt-neg-in84.4%
metadata-eval84.4%
metadata-eval84.4%
div-inv84.4%
associate-/r*84.4%
distribute-neg-frac84.4%
add-sqr-sqrt84.1%
sqrt-unprod84.4%
*-commutative84.4%
*-commutative84.4%
swap-sqr84.4%
add-sqr-sqrt84.5%
metadata-eval84.5%
Applied egg-rr84.5%
if -1.15999999999999994e67 < y < 2.3999999999999999e81Initial program 99.7%
associate--l-99.7%
sub-neg99.7%
+-commutative99.7%
distribute-neg-in99.7%
distribute-frac-neg99.7%
sub-neg99.7%
neg-mul-199.7%
*-commutative99.7%
associate-/l*99.7%
fma-neg99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.6%
distribute-neg-frac99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 95.1%
associate-*r/95.1%
metadata-eval95.1%
Simplified95.1%
metadata-eval95.1%
associate-/r*95.2%
*-commutative95.2%
inv-pow95.2%
Applied egg-rr95.2%
Final simplification91.5%
(FPCore (x y)
:precision binary64
(if (<= y -1.15e+67)
(/ y (* (sqrt x) -3.0))
(if (<= y 1.9e+81)
(- 1.0 (pow (* x 9.0) -1.0))
(* -0.3333333333333333 (/ y (sqrt x))))))
double code(double x, double y) {
double tmp;
if (y <= -1.15e+67) {
tmp = y / (sqrt(x) * -3.0);
} else if (y <= 1.9e+81) {
tmp = 1.0 - pow((x * 9.0), -1.0);
} else {
tmp = -0.3333333333333333 * (y / sqrt(x));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.15d+67)) then
tmp = y / (sqrt(x) * (-3.0d0))
else if (y <= 1.9d+81) then
tmp = 1.0d0 - ((x * 9.0d0) ** (-1.0d0))
else
tmp = (-0.3333333333333333d0) * (y / sqrt(x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.15e+67) {
tmp = y / (Math.sqrt(x) * -3.0);
} else if (y <= 1.9e+81) {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
} else {
tmp = -0.3333333333333333 * (y / Math.sqrt(x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.15e+67: tmp = y / (math.sqrt(x) * -3.0) elif y <= 1.9e+81: tmp = 1.0 - math.pow((x * 9.0), -1.0) else: tmp = -0.3333333333333333 * (y / math.sqrt(x)) return tmp
function code(x, y) tmp = 0.0 if (y <= -1.15e+67) tmp = Float64(y / Float64(sqrt(x) * -3.0)); elseif (y <= 1.9e+81) tmp = Float64(1.0 - (Float64(x * 9.0) ^ -1.0)); else tmp = Float64(-0.3333333333333333 * Float64(y / sqrt(x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.15e+67) tmp = y / (sqrt(x) * -3.0); elseif (y <= 1.9e+81) tmp = 1.0 - ((x * 9.0) ^ -1.0); else tmp = -0.3333333333333333 * (y / sqrt(x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.15e+67], N[(y / N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e+81], N[(1.0 - N[Power[N[(x * 9.0), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision], N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+67}:\\
\;\;\;\;\frac{y}{\sqrt{x} \cdot -3}\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+81}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\mathbf{else}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -1.1499999999999999e67Initial program 99.6%
associate--l-99.6%
sub-neg99.6%
+-commutative99.6%
distribute-neg-in99.6%
distribute-frac-neg99.6%
sub-neg99.6%
neg-mul-199.6%
*-commutative99.6%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around inf 84.5%
associate-*r*84.5%
Simplified84.5%
*-commutative84.5%
associate-*r*84.5%
sqrt-div84.4%
metadata-eval84.4%
div-inv84.5%
frac-2neg84.5%
distribute-frac-neg284.5%
distribute-rgt-neg-in84.5%
metadata-eval84.5%
metadata-eval84.5%
div-inv84.6%
associate-/r*84.6%
distribute-neg-frac284.6%
*-commutative84.6%
distribute-rgt-neg-in84.6%
metadata-eval84.6%
Applied egg-rr84.6%
if -1.1499999999999999e67 < y < 1.9e81Initial program 99.7%
associate--l-99.7%
sub-neg99.7%
+-commutative99.7%
distribute-neg-in99.7%
distribute-frac-neg99.7%
sub-neg99.7%
neg-mul-199.7%
*-commutative99.7%
associate-/l*99.7%
fma-neg99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.6%
distribute-neg-frac99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 95.1%
associate-*r/95.1%
metadata-eval95.1%
Simplified95.1%
metadata-eval95.1%
associate-/r*95.2%
*-commutative95.2%
inv-pow95.2%
Applied egg-rr95.2%
if 1.9e81 < y Initial program 99.4%
associate--l-99.4%
sub-neg99.4%
+-commutative99.4%
distribute-neg-in99.4%
distribute-frac-neg99.4%
sub-neg99.4%
neg-mul-199.4%
*-commutative99.4%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around inf 84.2%
associate-*r*84.1%
Simplified84.1%
*-commutative84.1%
associate-*r*84.2%
sqrt-div84.1%
metadata-eval84.1%
div-inv84.2%
frac-2neg84.2%
distribute-frac-neg284.2%
distribute-rgt-neg-in84.2%
metadata-eval84.2%
metadata-eval84.2%
div-inv84.3%
associate-/r*84.2%
distribute-neg-frac284.2%
*-commutative84.2%
distribute-rgt-neg-in84.2%
metadata-eval84.2%
Applied egg-rr84.2%
*-rgt-identity84.2%
times-frac84.2%
metadata-eval84.2%
*-commutative84.2%
Simplified84.2%
(FPCore (x y) :precision binary64 (if (or (<= y -2.7e+67) (not (<= y 7.4e+82))) (* -0.3333333333333333 (/ y (sqrt x))) (+ 1.0 (* 0.1111111111111111 (/ -1.0 x)))))
double code(double x, double y) {
double tmp;
if ((y <= -2.7e+67) || !(y <= 7.4e+82)) {
tmp = -0.3333333333333333 * (y / sqrt(x));
} else {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-2.7d+67)) .or. (.not. (y <= 7.4d+82))) then
tmp = (-0.3333333333333333d0) * (y / sqrt(x))
else
tmp = 1.0d0 + (0.1111111111111111d0 * ((-1.0d0) / x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -2.7e+67) || !(y <= 7.4e+82)) {
tmp = -0.3333333333333333 * (y / Math.sqrt(x));
} else {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -2.7e+67) or not (y <= 7.4e+82): tmp = -0.3333333333333333 * (y / math.sqrt(x)) else: tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)) return tmp
function code(x, y) tmp = 0.0 if ((y <= -2.7e+67) || !(y <= 7.4e+82)) tmp = Float64(-0.3333333333333333 * Float64(y / sqrt(x))); else tmp = Float64(1.0 + Float64(0.1111111111111111 * Float64(-1.0 / x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -2.7e+67) || ~((y <= 7.4e+82))) tmp = -0.3333333333333333 * (y / sqrt(x)); else tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -2.7e+67], N[Not[LessEqual[y, 7.4e+82]], $MachinePrecision]], N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(0.1111111111111111 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+67} \lor \neg \left(y \leq 7.4 \cdot 10^{+82}\right):\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\
\mathbf{else}:\\
\;\;\;\;1 + 0.1111111111111111 \cdot \frac{-1}{x}\\
\end{array}
\end{array}
if y < -2.6999999999999999e67 or 7.4000000000000005e82 < y Initial program 99.5%
associate--l-99.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-in99.5%
distribute-frac-neg99.5%
sub-neg99.5%
neg-mul-199.5%
*-commutative99.5%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around inf 84.3%
associate-*r*84.3%
Simplified84.3%
*-commutative84.3%
associate-*r*84.3%
sqrt-div84.2%
metadata-eval84.2%
div-inv84.4%
frac-2neg84.4%
distribute-frac-neg284.4%
distribute-rgt-neg-in84.4%
metadata-eval84.4%
metadata-eval84.4%
div-inv84.4%
associate-/r*84.4%
distribute-neg-frac284.4%
*-commutative84.4%
distribute-rgt-neg-in84.4%
metadata-eval84.4%
Applied egg-rr84.4%
*-rgt-identity84.4%
times-frac84.3%
metadata-eval84.3%
*-commutative84.3%
Simplified84.3%
if -2.6999999999999999e67 < y < 7.4000000000000005e82Initial program 99.7%
associate--l-99.7%
sub-neg99.7%
+-commutative99.7%
distribute-neg-in99.7%
distribute-frac-neg99.7%
sub-neg99.7%
neg-mul-199.7%
*-commutative99.7%
associate-/l*99.7%
fma-neg99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.6%
distribute-neg-frac99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 95.1%
Final simplification91.4%
(FPCore (x y)
:precision binary64
(if (<= y -8e+66)
(/ y (* (sqrt x) -3.0))
(if (<= y 3.1e+82)
(+ 1.0 (* 0.1111111111111111 (/ -1.0 x)))
(* -0.3333333333333333 (/ y (sqrt x))))))
double code(double x, double y) {
double tmp;
if (y <= -8e+66) {
tmp = y / (sqrt(x) * -3.0);
} else if (y <= 3.1e+82) {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
} else {
tmp = -0.3333333333333333 * (y / sqrt(x));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-8d+66)) then
tmp = y / (sqrt(x) * (-3.0d0))
else if (y <= 3.1d+82) then
tmp = 1.0d0 + (0.1111111111111111d0 * ((-1.0d0) / x))
else
tmp = (-0.3333333333333333d0) * (y / sqrt(x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -8e+66) {
tmp = y / (Math.sqrt(x) * -3.0);
} else if (y <= 3.1e+82) {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
} else {
tmp = -0.3333333333333333 * (y / Math.sqrt(x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -8e+66: tmp = y / (math.sqrt(x) * -3.0) elif y <= 3.1e+82: tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)) else: tmp = -0.3333333333333333 * (y / math.sqrt(x)) return tmp
function code(x, y) tmp = 0.0 if (y <= -8e+66) tmp = Float64(y / Float64(sqrt(x) * -3.0)); elseif (y <= 3.1e+82) tmp = Float64(1.0 + Float64(0.1111111111111111 * Float64(-1.0 / x))); else tmp = Float64(-0.3333333333333333 * Float64(y / sqrt(x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -8e+66) tmp = y / (sqrt(x) * -3.0); elseif (y <= 3.1e+82) tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)); else tmp = -0.3333333333333333 * (y / sqrt(x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -8e+66], N[(y / N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.1e+82], N[(1.0 + N[(0.1111111111111111 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{+66}:\\
\;\;\;\;\frac{y}{\sqrt{x} \cdot -3}\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{+82}:\\
\;\;\;\;1 + 0.1111111111111111 \cdot \frac{-1}{x}\\
\mathbf{else}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -7.99999999999999956e66Initial program 99.6%
associate--l-99.6%
sub-neg99.6%
+-commutative99.6%
distribute-neg-in99.6%
distribute-frac-neg99.6%
sub-neg99.6%
neg-mul-199.6%
*-commutative99.6%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around inf 84.5%
associate-*r*84.5%
Simplified84.5%
*-commutative84.5%
associate-*r*84.5%
sqrt-div84.4%
metadata-eval84.4%
div-inv84.5%
frac-2neg84.5%
distribute-frac-neg284.5%
distribute-rgt-neg-in84.5%
metadata-eval84.5%
metadata-eval84.5%
div-inv84.6%
associate-/r*84.6%
distribute-neg-frac284.6%
*-commutative84.6%
distribute-rgt-neg-in84.6%
metadata-eval84.6%
Applied egg-rr84.6%
if -7.99999999999999956e66 < y < 3.10000000000000032e82Initial program 99.7%
associate--l-99.7%
sub-neg99.7%
+-commutative99.7%
distribute-neg-in99.7%
distribute-frac-neg99.7%
sub-neg99.7%
neg-mul-199.7%
*-commutative99.7%
associate-/l*99.7%
fma-neg99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.6%
distribute-neg-frac99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 95.1%
if 3.10000000000000032e82 < y Initial program 99.4%
associate--l-99.4%
sub-neg99.4%
+-commutative99.4%
distribute-neg-in99.4%
distribute-frac-neg99.4%
sub-neg99.4%
neg-mul-199.4%
*-commutative99.4%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around inf 84.2%
associate-*r*84.1%
Simplified84.1%
*-commutative84.1%
associate-*r*84.2%
sqrt-div84.1%
metadata-eval84.1%
div-inv84.2%
frac-2neg84.2%
distribute-frac-neg284.2%
distribute-rgt-neg-in84.2%
metadata-eval84.2%
metadata-eval84.2%
div-inv84.3%
associate-/r*84.2%
distribute-neg-frac284.2%
*-commutative84.2%
distribute-rgt-neg-in84.2%
metadata-eval84.2%
Applied egg-rr84.2%
*-rgt-identity84.2%
times-frac84.2%
metadata-eval84.2%
*-commutative84.2%
Simplified84.2%
Final simplification91.4%
(FPCore (x y) :precision binary64 (let* ((t_0 (/ y (* 3.0 (sqrt x))))) (if (<= x 0.076) (- (/ -0.1111111111111111 x) t_0) (- 1.0 t_0))))
double code(double x, double y) {
double t_0 = y / (3.0 * sqrt(x));
double tmp;
if (x <= 0.076) {
tmp = (-0.1111111111111111 / x) - t_0;
} else {
tmp = 1.0 - t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y / (3.0d0 * sqrt(x))
if (x <= 0.076d0) then
tmp = ((-0.1111111111111111d0) / x) - t_0
else
tmp = 1.0d0 - t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y / (3.0 * Math.sqrt(x));
double tmp;
if (x <= 0.076) {
tmp = (-0.1111111111111111 / x) - t_0;
} else {
tmp = 1.0 - t_0;
}
return tmp;
}
def code(x, y): t_0 = y / (3.0 * math.sqrt(x)) tmp = 0 if x <= 0.076: tmp = (-0.1111111111111111 / x) - t_0 else: tmp = 1.0 - t_0 return tmp
function code(x, y) t_0 = Float64(y / Float64(3.0 * sqrt(x))) tmp = 0.0 if (x <= 0.076) tmp = Float64(Float64(-0.1111111111111111 / x) - t_0); else tmp = Float64(1.0 - t_0); end return tmp end
function tmp_2 = code(x, y) t_0 = y / (3.0 * sqrt(x)); tmp = 0.0; if (x <= 0.076) tmp = (-0.1111111111111111 / x) - t_0; else tmp = 1.0 - t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 0.076], N[(N[(-0.1111111111111111 / x), $MachinePrecision] - t$95$0), $MachinePrecision], N[(1.0 - t$95$0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{3 \cdot \sqrt{x}}\\
\mathbf{if}\;x \leq 0.076:\\
\;\;\;\;\frac{-0.1111111111111111}{x} - t\_0\\
\mathbf{else}:\\
\;\;\;\;1 - t\_0\\
\end{array}
\end{array}
if x < 0.0759999999999999981Initial program 99.5%
Taylor expanded in x around 0 99.4%
div-inv99.4%
*-commutative99.4%
metadata-eval99.4%
div-inv99.4%
associate-/r*99.5%
add-cube-cbrt98.5%
pow398.5%
sub-neg98.5%
sub-neg98.5%
*-commutative98.5%
associate-/r*98.6%
metadata-eval98.6%
div-inv98.5%
cancel-sign-sub-inv98.5%
metadata-eval98.5%
div-inv98.6%
Applied egg-rr98.6%
Taylor expanded in x around 0 97.3%
if 0.0759999999999999981 < x Initial program 99.8%
Taylor expanded in x around 0 99.8%
Taylor expanded in x around inf 97.8%
(FPCore (x y) :precision binary64 (- (- 1.0 (/ 0.1111111111111111 x)) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (0.1111111111111111d0 / x)) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 - (0.1111111111111111 / x)) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 - Float64(0.1111111111111111 / x)) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 - (0.1111111111111111 / x)) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 - N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{0.1111111111111111}{x}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
Initial program 99.6%
Taylor expanded in x around 0 99.6%
(FPCore (x y) :precision binary64 (+ (- 1.0 (/ 0.1111111111111111 x)) (/ (* y -0.3333333333333333) (sqrt x))))
double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) + ((y * -0.3333333333333333) / sqrt(x));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (0.1111111111111111d0 / x)) + ((y * (-0.3333333333333333d0)) / sqrt(x))
end function
public static double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) + ((y * -0.3333333333333333) / Math.sqrt(x));
}
def code(x, y): return (1.0 - (0.1111111111111111 / x)) + ((y * -0.3333333333333333) / math.sqrt(x))
function code(x, y) return Float64(Float64(1.0 - Float64(0.1111111111111111 / x)) + Float64(Float64(y * -0.3333333333333333) / sqrt(x))) end
function tmp = code(x, y) tmp = (1.0 - (0.1111111111111111 / x)) + ((y * -0.3333333333333333) / sqrt(x)); end
code[x_, y_] := N[(N[(1.0 - N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y * -0.3333333333333333), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{0.1111111111111111}{x}\right) + \frac{y \cdot -0.3333333333333333}{\sqrt{x}}
\end{array}
Initial program 99.6%
sub-neg99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
distribute-frac-neg99.6%
neg-mul-199.6%
times-frac99.5%
metadata-eval99.5%
Simplified99.5%
*-commutative99.5%
associate-*l/99.5%
Applied egg-rr99.5%
(FPCore (x y) :precision binary64 (+ (- 1.0 (/ 0.1111111111111111 x)) (* -0.3333333333333333 (/ y (sqrt x)))))
double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 * (y / sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (0.1111111111111111d0 / x)) + ((-0.3333333333333333d0) * (y / sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 * (y / Math.sqrt(x)));
}
def code(x, y): return (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 * (y / math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 - Float64(0.1111111111111111 / x)) + Float64(-0.3333333333333333 * Float64(y / sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 * (y / sqrt(x))); end
code[x_, y_] := N[(N[(1.0 - N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision] + N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}
\end{array}
Initial program 99.6%
sub-neg99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
distribute-frac-neg99.6%
neg-mul-199.6%
times-frac99.5%
metadata-eval99.5%
Simplified99.5%
(FPCore (x y)
:precision binary64
(if (<= y -2.15e+114)
(+
1.0
(/
(-
0.1111111111111111
(/ (- (* 0.0027434842249657062 (/ -1.0 x)) 0.024691358024691357) x))
x))
(if (<= y 1.4e+154)
(+ 1.0 (* 0.1111111111111111 (/ -1.0 x)))
(/
(+ 1.0 (* (/ -0.1111111111111111 x) (/ -0.1111111111111111 x)))
(+ 1.0 (/ -0.1111111111111111 x))))))
double code(double x, double y) {
double tmp;
if (y <= -2.15e+114) {
tmp = 1.0 + ((0.1111111111111111 - (((0.0027434842249657062 * (-1.0 / x)) - 0.024691358024691357) / x)) / x);
} else if (y <= 1.4e+154) {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
} else {
tmp = (1.0 + ((-0.1111111111111111 / x) * (-0.1111111111111111 / x))) / (1.0 + (-0.1111111111111111 / x));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-2.15d+114)) then
tmp = 1.0d0 + ((0.1111111111111111d0 - (((0.0027434842249657062d0 * ((-1.0d0) / x)) - 0.024691358024691357d0) / x)) / x)
else if (y <= 1.4d+154) then
tmp = 1.0d0 + (0.1111111111111111d0 * ((-1.0d0) / x))
else
tmp = (1.0d0 + (((-0.1111111111111111d0) / x) * ((-0.1111111111111111d0) / x))) / (1.0d0 + ((-0.1111111111111111d0) / x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -2.15e+114) {
tmp = 1.0 + ((0.1111111111111111 - (((0.0027434842249657062 * (-1.0 / x)) - 0.024691358024691357) / x)) / x);
} else if (y <= 1.4e+154) {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
} else {
tmp = (1.0 + ((-0.1111111111111111 / x) * (-0.1111111111111111 / x))) / (1.0 + (-0.1111111111111111 / x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -2.15e+114: tmp = 1.0 + ((0.1111111111111111 - (((0.0027434842249657062 * (-1.0 / x)) - 0.024691358024691357) / x)) / x) elif y <= 1.4e+154: tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)) else: tmp = (1.0 + ((-0.1111111111111111 / x) * (-0.1111111111111111 / x))) / (1.0 + (-0.1111111111111111 / x)) return tmp
function code(x, y) tmp = 0.0 if (y <= -2.15e+114) tmp = Float64(1.0 + Float64(Float64(0.1111111111111111 - Float64(Float64(Float64(0.0027434842249657062 * Float64(-1.0 / x)) - 0.024691358024691357) / x)) / x)); elseif (y <= 1.4e+154) tmp = Float64(1.0 + Float64(0.1111111111111111 * Float64(-1.0 / x))); else tmp = Float64(Float64(1.0 + Float64(Float64(-0.1111111111111111 / x) * Float64(-0.1111111111111111 / x))) / Float64(1.0 + Float64(-0.1111111111111111 / x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -2.15e+114) tmp = 1.0 + ((0.1111111111111111 - (((0.0027434842249657062 * (-1.0 / x)) - 0.024691358024691357) / x)) / x); elseif (y <= 1.4e+154) tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)); else tmp = (1.0 + ((-0.1111111111111111 / x) * (-0.1111111111111111 / x))) / (1.0 + (-0.1111111111111111 / x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -2.15e+114], N[(1.0 + N[(N[(0.1111111111111111 - N[(N[(N[(0.0027434842249657062 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision] - 0.024691358024691357), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e+154], N[(1.0 + N[(0.1111111111111111 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(N[(-0.1111111111111111 / x), $MachinePrecision] * N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.15 \cdot 10^{+114}:\\
\;\;\;\;1 + \frac{0.1111111111111111 - \frac{0.0027434842249657062 \cdot \frac{-1}{x} - 0.024691358024691357}{x}}{x}\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+154}:\\
\;\;\;\;1 + 0.1111111111111111 \cdot \frac{-1}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 + \frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}{1 + \frac{-0.1111111111111111}{x}}\\
\end{array}
\end{array}
if y < -2.15e114Initial program 99.6%
associate--l-99.6%
sub-neg99.6%
+-commutative99.6%
distribute-neg-in99.6%
distribute-frac-neg99.6%
sub-neg99.6%
neg-mul-199.6%
*-commutative99.6%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around 0 2.8%
associate-*r/2.8%
metadata-eval2.8%
Simplified2.8%
Applied egg-rr2.8%
associate-*r/2.8%
*-rgt-identity2.8%
Simplified2.8%
Taylor expanded in x around -inf 33.0%
if -2.15e114 < y < 1.4e154Initial program 99.7%
associate--l-99.7%
sub-neg99.7%
+-commutative99.7%
distribute-neg-in99.7%
distribute-frac-neg99.7%
sub-neg99.7%
neg-mul-199.7%
*-commutative99.7%
associate-/l*99.7%
fma-neg99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around 0 86.2%
if 1.4e154 < y Initial program 99.5%
associate--l-99.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-in99.5%
distribute-frac-neg99.5%
sub-neg99.5%
neg-mul-199.5%
*-commutative99.5%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around 0 3.3%
associate-*r/3.3%
metadata-eval3.3%
Simplified3.3%
Applied egg-rr19.0%
associate-*r/19.0%
*-rgt-identity19.0%
Simplified19.0%
metadata-eval19.0%
unpow219.0%
frac-times19.0%
Applied egg-rr19.0%
Final simplification72.5%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 1.0 (/ -0.1111111111111111 x))))
(if (<= y -1.76e+114)
(/ (+ 1.0 (/ (/ -0.012345679012345678 x) x)) t_0)
(if (<= y 1.28e+154)
(+ 1.0 (* 0.1111111111111111 (/ -1.0 x)))
(/
(+ 1.0 (* (/ -0.1111111111111111 x) (/ -0.1111111111111111 x)))
t_0)))))
double code(double x, double y) {
double t_0 = 1.0 + (-0.1111111111111111 / x);
double tmp;
if (y <= -1.76e+114) {
tmp = (1.0 + ((-0.012345679012345678 / x) / x)) / t_0;
} else if (y <= 1.28e+154) {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
} else {
tmp = (1.0 + ((-0.1111111111111111 / x) * (-0.1111111111111111 / x))) / t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = 1.0d0 + ((-0.1111111111111111d0) / x)
if (y <= (-1.76d+114)) then
tmp = (1.0d0 + (((-0.012345679012345678d0) / x) / x)) / t_0
else if (y <= 1.28d+154) then
tmp = 1.0d0 + (0.1111111111111111d0 * ((-1.0d0) / x))
else
tmp = (1.0d0 + (((-0.1111111111111111d0) / x) * ((-0.1111111111111111d0) / x))) / t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 + (-0.1111111111111111 / x);
double tmp;
if (y <= -1.76e+114) {
tmp = (1.0 + ((-0.012345679012345678 / x) / x)) / t_0;
} else if (y <= 1.28e+154) {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
} else {
tmp = (1.0 + ((-0.1111111111111111 / x) * (-0.1111111111111111 / x))) / t_0;
}
return tmp;
}
def code(x, y): t_0 = 1.0 + (-0.1111111111111111 / x) tmp = 0 if y <= -1.76e+114: tmp = (1.0 + ((-0.012345679012345678 / x) / x)) / t_0 elif y <= 1.28e+154: tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)) else: tmp = (1.0 + ((-0.1111111111111111 / x) * (-0.1111111111111111 / x))) / t_0 return tmp
function code(x, y) t_0 = Float64(1.0 + Float64(-0.1111111111111111 / x)) tmp = 0.0 if (y <= -1.76e+114) tmp = Float64(Float64(1.0 + Float64(Float64(-0.012345679012345678 / x) / x)) / t_0); elseif (y <= 1.28e+154) tmp = Float64(1.0 + Float64(0.1111111111111111 * Float64(-1.0 / x))); else tmp = Float64(Float64(1.0 + Float64(Float64(-0.1111111111111111 / x) * Float64(-0.1111111111111111 / x))) / t_0); end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 + (-0.1111111111111111 / x); tmp = 0.0; if (y <= -1.76e+114) tmp = (1.0 + ((-0.012345679012345678 / x) / x)) / t_0; elseif (y <= 1.28e+154) tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)); else tmp = (1.0 + ((-0.1111111111111111 / x) * (-0.1111111111111111 / x))) / t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.76e+114], N[(N[(1.0 + N[(N[(-0.012345679012345678 / x), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[y, 1.28e+154], N[(1.0 + N[(0.1111111111111111 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(N[(-0.1111111111111111 / x), $MachinePrecision] * N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + \frac{-0.1111111111111111}{x}\\
\mathbf{if}\;y \leq -1.76 \cdot 10^{+114}:\\
\;\;\;\;\frac{1 + \frac{\frac{-0.012345679012345678}{x}}{x}}{t\_0}\\
\mathbf{elif}\;y \leq 1.28 \cdot 10^{+154}:\\
\;\;\;\;1 + 0.1111111111111111 \cdot \frac{-1}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 + \frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}{t\_0}\\
\end{array}
\end{array}
if y < -1.76000000000000008e114Initial program 99.6%
associate--l-99.6%
sub-neg99.6%
+-commutative99.6%
distribute-neg-in99.6%
distribute-frac-neg99.6%
sub-neg99.6%
neg-mul-199.6%
*-commutative99.6%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around 0 2.8%
associate-*r/2.8%
metadata-eval2.8%
Simplified2.8%
Applied egg-rr2.8%
associate-*r/2.8%
*-rgt-identity2.8%
Simplified2.8%
metadata-eval2.8%
unpow22.8%
frac-times2.8%
div-inv2.8%
associate-*l*2.8%
metadata-eval2.8%
add-sqr-sqrt2.8%
sqrt-prod2.8%
unpow22.8%
sqrt-div2.8%
metadata-eval2.8%
unpow22.8%
frac-times2.8%
sqrt-unprod0.0%
add-sqr-sqrt32.8%
Applied egg-rr32.8%
associate-*r*32.8%
associate-*r/32.8%
metadata-eval32.8%
Simplified32.8%
associate-*l/32.8%
associate-*r/32.8%
metadata-eval32.8%
Applied egg-rr32.8%
if -1.76000000000000008e114 < y < 1.2800000000000001e154Initial program 99.7%
associate--l-99.7%
sub-neg99.7%
+-commutative99.7%
distribute-neg-in99.7%
distribute-frac-neg99.7%
sub-neg99.7%
neg-mul-199.7%
*-commutative99.7%
associate-/l*99.7%
fma-neg99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around 0 86.2%
if 1.2800000000000001e154 < y Initial program 99.5%
associate--l-99.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-in99.5%
distribute-frac-neg99.5%
sub-neg99.5%
neg-mul-199.5%
*-commutative99.5%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around 0 3.3%
associate-*r/3.3%
metadata-eval3.3%
Simplified3.3%
Applied egg-rr19.0%
associate-*r/19.0%
*-rgt-identity19.0%
Simplified19.0%
metadata-eval19.0%
unpow219.0%
frac-times19.0%
Applied egg-rr19.0%
Final simplification72.5%
(FPCore (x y)
:precision binary64
(let* ((t_0 (+ 1.0 (/ -0.1111111111111111 x))))
(if (<= y -2.15e+114)
(/ (+ 1.0 (/ (/ -0.012345679012345678 x) x)) t_0)
(if (<= y 1.4e+154)
(+ 1.0 (* 0.1111111111111111 (/ -1.0 x)))
(/ (+ 1.0 (/ 0.012345679012345678 (* x x))) t_0)))))
double code(double x, double y) {
double t_0 = 1.0 + (-0.1111111111111111 / x);
double tmp;
if (y <= -2.15e+114) {
tmp = (1.0 + ((-0.012345679012345678 / x) / x)) / t_0;
} else if (y <= 1.4e+154) {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
} else {
tmp = (1.0 + (0.012345679012345678 / (x * x))) / t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = 1.0d0 + ((-0.1111111111111111d0) / x)
if (y <= (-2.15d+114)) then
tmp = (1.0d0 + (((-0.012345679012345678d0) / x) / x)) / t_0
else if (y <= 1.4d+154) then
tmp = 1.0d0 + (0.1111111111111111d0 * ((-1.0d0) / x))
else
tmp = (1.0d0 + (0.012345679012345678d0 / (x * x))) / t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 + (-0.1111111111111111 / x);
double tmp;
if (y <= -2.15e+114) {
tmp = (1.0 + ((-0.012345679012345678 / x) / x)) / t_0;
} else if (y <= 1.4e+154) {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
} else {
tmp = (1.0 + (0.012345679012345678 / (x * x))) / t_0;
}
return tmp;
}
def code(x, y): t_0 = 1.0 + (-0.1111111111111111 / x) tmp = 0 if y <= -2.15e+114: tmp = (1.0 + ((-0.012345679012345678 / x) / x)) / t_0 elif y <= 1.4e+154: tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)) else: tmp = (1.0 + (0.012345679012345678 / (x * x))) / t_0 return tmp
function code(x, y) t_0 = Float64(1.0 + Float64(-0.1111111111111111 / x)) tmp = 0.0 if (y <= -2.15e+114) tmp = Float64(Float64(1.0 + Float64(Float64(-0.012345679012345678 / x) / x)) / t_0); elseif (y <= 1.4e+154) tmp = Float64(1.0 + Float64(0.1111111111111111 * Float64(-1.0 / x))); else tmp = Float64(Float64(1.0 + Float64(0.012345679012345678 / Float64(x * x))) / t_0); end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 + (-0.1111111111111111 / x); tmp = 0.0; if (y <= -2.15e+114) tmp = (1.0 + ((-0.012345679012345678 / x) / x)) / t_0; elseif (y <= 1.4e+154) tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)); else tmp = (1.0 + (0.012345679012345678 / (x * x))) / t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.15e+114], N[(N[(1.0 + N[(N[(-0.012345679012345678 / x), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[y, 1.4e+154], N[(1.0 + N[(0.1111111111111111 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(0.012345679012345678 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 + \frac{-0.1111111111111111}{x}\\
\mathbf{if}\;y \leq -2.15 \cdot 10^{+114}:\\
\;\;\;\;\frac{1 + \frac{\frac{-0.012345679012345678}{x}}{x}}{t\_0}\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+154}:\\
\;\;\;\;1 + 0.1111111111111111 \cdot \frac{-1}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 + \frac{0.012345679012345678}{x \cdot x}}{t\_0}\\
\end{array}
\end{array}
if y < -2.15e114Initial program 99.6%
associate--l-99.6%
sub-neg99.6%
+-commutative99.6%
distribute-neg-in99.6%
distribute-frac-neg99.6%
sub-neg99.6%
neg-mul-199.6%
*-commutative99.6%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around 0 2.8%
associate-*r/2.8%
metadata-eval2.8%
Simplified2.8%
Applied egg-rr2.8%
associate-*r/2.8%
*-rgt-identity2.8%
Simplified2.8%
metadata-eval2.8%
unpow22.8%
frac-times2.8%
div-inv2.8%
associate-*l*2.8%
metadata-eval2.8%
add-sqr-sqrt2.8%
sqrt-prod2.8%
unpow22.8%
sqrt-div2.8%
metadata-eval2.8%
unpow22.8%
frac-times2.8%
sqrt-unprod0.0%
add-sqr-sqrt32.8%
Applied egg-rr32.8%
associate-*r*32.8%
associate-*r/32.8%
metadata-eval32.8%
Simplified32.8%
associate-*l/32.8%
associate-*r/32.8%
metadata-eval32.8%
Applied egg-rr32.8%
if -2.15e114 < y < 1.4e154Initial program 99.7%
associate--l-99.7%
sub-neg99.7%
+-commutative99.7%
distribute-neg-in99.7%
distribute-frac-neg99.7%
sub-neg99.7%
neg-mul-199.7%
*-commutative99.7%
associate-/l*99.7%
fma-neg99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around 0 86.2%
if 1.4e154 < y Initial program 99.5%
associate--l-99.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-in99.5%
distribute-frac-neg99.5%
sub-neg99.5%
neg-mul-199.5%
*-commutative99.5%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around 0 3.3%
associate-*r/3.3%
metadata-eval3.3%
Simplified3.3%
Applied egg-rr19.0%
associate-*r/19.0%
*-rgt-identity19.0%
Simplified19.0%
unpow219.0%
Applied egg-rr19.0%
Final simplification72.5%
(FPCore (x y)
:precision binary64
(if (<= y 1.4e+154)
(+ 1.0 (* 0.1111111111111111 (/ -1.0 x)))
(/
(+ 1.0 (/ 0.012345679012345678 (* x x)))
(+ 1.0 (/ -0.1111111111111111 x)))))
double code(double x, double y) {
double tmp;
if (y <= 1.4e+154) {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
} else {
tmp = (1.0 + (0.012345679012345678 / (x * x))) / (1.0 + (-0.1111111111111111 / x));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 1.4d+154) then
tmp = 1.0d0 + (0.1111111111111111d0 * ((-1.0d0) / x))
else
tmp = (1.0d0 + (0.012345679012345678d0 / (x * x))) / (1.0d0 + ((-0.1111111111111111d0) / x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 1.4e+154) {
tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
} else {
tmp = (1.0 + (0.012345679012345678 / (x * x))) / (1.0 + (-0.1111111111111111 / x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 1.4e+154: tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)) else: tmp = (1.0 + (0.012345679012345678 / (x * x))) / (1.0 + (-0.1111111111111111 / x)) return tmp
function code(x, y) tmp = 0.0 if (y <= 1.4e+154) tmp = Float64(1.0 + Float64(0.1111111111111111 * Float64(-1.0 / x))); else tmp = Float64(Float64(1.0 + Float64(0.012345679012345678 / Float64(x * x))) / Float64(1.0 + Float64(-0.1111111111111111 / x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 1.4e+154) tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)); else tmp = (1.0 + (0.012345679012345678 / (x * x))) / (1.0 + (-0.1111111111111111 / x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 1.4e+154], N[(1.0 + N[(0.1111111111111111 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(0.012345679012345678 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.4 \cdot 10^{+154}:\\
\;\;\;\;1 + 0.1111111111111111 \cdot \frac{-1}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 + \frac{0.012345679012345678}{x \cdot x}}{1 + \frac{-0.1111111111111111}{x}}\\
\end{array}
\end{array}
if y < 1.4e154Initial program 99.7%
associate--l-99.7%
sub-neg99.7%
+-commutative99.7%
distribute-neg-in99.7%
distribute-frac-neg99.7%
sub-neg99.7%
neg-mul-199.7%
*-commutative99.7%
associate-/l*99.6%
fma-neg99.6%
associate-/r*99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around 0 75.9%
if 1.4e154 < y Initial program 99.5%
associate--l-99.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-in99.5%
distribute-frac-neg99.5%
sub-neg99.5%
neg-mul-199.5%
*-commutative99.5%
associate-/l*99.4%
fma-neg99.4%
associate-/r*99.3%
metadata-eval99.3%
*-commutative99.3%
associate-/r*99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around 0 3.3%
associate-*r/3.3%
metadata-eval3.3%
Simplified3.3%
Applied egg-rr19.0%
associate-*r/19.0%
*-rgt-identity19.0%
Simplified19.0%
unpow219.0%
Applied egg-rr19.0%
Final simplification69.2%
(FPCore (x y) :precision binary64 (if (<= x 0.076) (* -0.1111111111111111 (/ 1.0 x)) 1.0))
double code(double x, double y) {
double tmp;
if (x <= 0.076) {
tmp = -0.1111111111111111 * (1.0 / x);
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 0.076d0) then
tmp = (-0.1111111111111111d0) * (1.0d0 / x)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 0.076) {
tmp = -0.1111111111111111 * (1.0 / x);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.076: tmp = -0.1111111111111111 * (1.0 / x) else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (x <= 0.076) tmp = Float64(-0.1111111111111111 * Float64(1.0 / x)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.076) tmp = -0.1111111111111111 * (1.0 / x); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.076], N[(-0.1111111111111111 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.076:\\
\;\;\;\;-0.1111111111111111 \cdot \frac{1}{x}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 0.0759999999999999981Initial program 99.5%
associate--l-99.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-in99.5%
distribute-frac-neg99.5%
sub-neg99.5%
neg-mul-199.5%
*-commutative99.5%
associate-/l*99.5%
fma-neg99.5%
associate-/r*99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.4%
distribute-neg-frac99.4%
metadata-eval99.4%
metadata-eval99.4%
Simplified99.4%
Applied egg-rr45.3%
+-commutative45.3%
unsub-neg45.3%
associate-*l*45.3%
*-commutative45.3%
associate-*l*45.3%
metadata-eval45.3%
associate-*l*45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in x around 0 68.1%
clear-num68.1%
associate-/r/68.1%
Applied egg-rr68.1%
if 0.0759999999999999981 < x Initial program 99.8%
associate--l-99.8%
sub-neg99.8%
+-commutative99.8%
distribute-neg-in99.8%
distribute-frac-neg99.8%
sub-neg99.8%
neg-mul-199.8%
*-commutative99.8%
associate-/l*99.7%
fma-neg99.7%
associate-/r*99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.6%
distribute-neg-frac99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 64.1%
associate-*r/64.1%
metadata-eval64.1%
Simplified64.1%
Taylor expanded in x around inf 62.1%
Final simplification65.3%
(FPCore (x y) :precision binary64 (if (<= x 0.076) (/ -0.1111111111111111 x) 1.0))
double code(double x, double y) {
double tmp;
if (x <= 0.076) {
tmp = -0.1111111111111111 / x;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 0.076d0) then
tmp = (-0.1111111111111111d0) / x
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 0.076) {
tmp = -0.1111111111111111 / x;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.076: tmp = -0.1111111111111111 / x else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (x <= 0.076) tmp = Float64(-0.1111111111111111 / x); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.076) tmp = -0.1111111111111111 / x; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.076], N[(-0.1111111111111111 / x), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.076:\\
\;\;\;\;\frac{-0.1111111111111111}{x}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 0.0759999999999999981Initial program 99.5%
associate--l-99.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-in99.5%
distribute-frac-neg99.5%
sub-neg99.5%
neg-mul-199.5%
*-commutative99.5%
associate-/l*99.5%
fma-neg99.5%
associate-/r*99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.4%
distribute-neg-frac99.4%
metadata-eval99.4%
metadata-eval99.4%
Simplified99.4%
Applied egg-rr45.3%
+-commutative45.3%
unsub-neg45.3%
associate-*l*45.3%
*-commutative45.3%
associate-*l*45.3%
metadata-eval45.3%
associate-*l*45.2%
*-commutative45.2%
Simplified45.2%
Taylor expanded in x around 0 68.1%
if 0.0759999999999999981 < x Initial program 99.8%
associate--l-99.8%
sub-neg99.8%
+-commutative99.8%
distribute-neg-in99.8%
distribute-frac-neg99.8%
sub-neg99.8%
neg-mul-199.8%
*-commutative99.8%
associate-/l*99.7%
fma-neg99.7%
associate-/r*99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.6%
distribute-neg-frac99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 64.1%
associate-*r/64.1%
metadata-eval64.1%
Simplified64.1%
Taylor expanded in x around inf 62.1%
(FPCore (x y) :precision binary64 (+ 1.0 (* 0.1111111111111111 (/ -1.0 x))))
double code(double x, double y) {
return 1.0 + (0.1111111111111111 * (-1.0 / x));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 + (0.1111111111111111d0 * ((-1.0d0) / x))
end function
public static double code(double x, double y) {
return 1.0 + (0.1111111111111111 * (-1.0 / x));
}
def code(x, y): return 1.0 + (0.1111111111111111 * (-1.0 / x))
function code(x, y) return Float64(1.0 + Float64(0.1111111111111111 * Float64(-1.0 / x))) end
function tmp = code(x, y) tmp = 1.0 + (0.1111111111111111 * (-1.0 / x)); end
code[x_, y_] := N[(1.0 + N[(0.1111111111111111 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + 0.1111111111111111 \cdot \frac{-1}{x}
\end{array}
Initial program 99.6%
associate--l-99.6%
sub-neg99.6%
+-commutative99.6%
distribute-neg-in99.6%
distribute-frac-neg99.6%
sub-neg99.6%
neg-mul-199.6%
*-commutative99.6%
associate-/l*99.6%
fma-neg99.6%
associate-/r*99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around 0 67.3%
Final simplification67.3%
(FPCore (x y) :precision binary64 (- 1.0 (/ 0.1111111111111111 x)))
double code(double x, double y) {
return 1.0 - (0.1111111111111111 / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 - (0.1111111111111111d0 / x)
end function
public static double code(double x, double y) {
return 1.0 - (0.1111111111111111 / x);
}
def code(x, y): return 1.0 - (0.1111111111111111 / x)
function code(x, y) return Float64(1.0 - Float64(0.1111111111111111 / x)) end
function tmp = code(x, y) tmp = 1.0 - (0.1111111111111111 / x); end
code[x_, y_] := N[(1.0 - N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 - \frac{0.1111111111111111}{x}
\end{array}
Initial program 99.6%
associate--l-99.6%
sub-neg99.6%
+-commutative99.6%
distribute-neg-in99.6%
distribute-frac-neg99.6%
sub-neg99.6%
neg-mul-199.6%
*-commutative99.6%
associate-/l*99.6%
fma-neg99.6%
associate-/r*99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around 0 67.3%
associate-*r/67.3%
metadata-eval67.3%
Simplified67.3%
(FPCore (x y) :precision binary64 1.0)
double code(double x, double y) {
return 1.0;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0
end function
public static double code(double x, double y) {
return 1.0;
}
def code(x, y): return 1.0
function code(x, y) return 1.0 end
function tmp = code(x, y) tmp = 1.0; end
code[x_, y_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 99.6%
associate--l-99.6%
sub-neg99.6%
+-commutative99.6%
distribute-neg-in99.6%
distribute-frac-neg99.6%
sub-neg99.6%
neg-mul-199.6%
*-commutative99.6%
associate-/l*99.6%
fma-neg99.6%
associate-/r*99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around 0 67.3%
associate-*r/67.3%
metadata-eval67.3%
Simplified67.3%
Taylor expanded in x around inf 29.5%
(FPCore (x y) :precision binary64 (- (- 1.0 (/ (/ 1.0 x) 9.0)) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - ((1.0d0 / x) / 9.0d0)) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 - Float64(Float64(1.0 / x) / 9.0)) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 - N[(N[(1.0 / x), $MachinePrecision] / 9.0), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{\frac{1}{x}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
herbie shell --seed 2024141
(FPCore (x y)
:name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, D"
:precision binary64
:alt
(! :herbie-platform default (- (- 1 (/ (/ 1 x) 9)) (/ y (* 3 (sqrt x)))))
(- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))