
(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 18 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 (/ 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(Float64(y / -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[(N[(y / -3.0), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{0.1111111111111111}{x}\right) + \frac{\frac{y}{-3}}{\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.3%
metadata-eval99.3%
Simplified99.3%
clear-num99.2%
un-div-inv99.6%
Applied egg-rr99.6%
add-sqr-sqrt99.5%
pow299.5%
pow1/299.5%
sqrt-pow199.5%
metadata-eval99.5%
Applied egg-rr99.5%
pow-pow99.6%
metadata-eval99.6%
pow1/299.6%
div-inv99.2%
metadata-eval99.2%
clear-num99.3%
times-frac99.6%
*-un-lft-identity99.6%
*-commutative99.6%
add-cube-cbrt99.2%
*-un-lft-identity99.2%
times-frac99.2%
pow299.2%
Applied egg-rr99.2%
/-rgt-identity99.2%
associate-*r/99.2%
unpow299.2%
rem-3cbrt-lft99.6%
*-commutative99.6%
associate-/r*99.7%
Simplified99.7%
(FPCore (x y) :precision binary64 (if (or (<= y -9.2e+54) (not (<= y 1.45e+46))) (+ 1.0 (* y (/ -0.3333333333333333 (sqrt x)))) (+ 1.0 (/ -1.0 (* x 9.0)))))
double code(double x, double y) {
double tmp;
if ((y <= -9.2e+54) || !(y <= 1.45e+46)) {
tmp = 1.0 + (y * (-0.3333333333333333 / sqrt(x)));
} else {
tmp = 1.0 + (-1.0 / (x * 9.0));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-9.2d+54)) .or. (.not. (y <= 1.45d+46))) then
tmp = 1.0d0 + (y * ((-0.3333333333333333d0) / sqrt(x)))
else
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -9.2e+54) || !(y <= 1.45e+46)) {
tmp = 1.0 + (y * (-0.3333333333333333 / Math.sqrt(x)));
} else {
tmp = 1.0 + (-1.0 / (x * 9.0));
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -9.2e+54) or not (y <= 1.45e+46): tmp = 1.0 + (y * (-0.3333333333333333 / math.sqrt(x))) else: tmp = 1.0 + (-1.0 / (x * 9.0)) return tmp
function code(x, y) tmp = 0.0 if ((y <= -9.2e+54) || !(y <= 1.45e+46)) tmp = Float64(1.0 + Float64(y * Float64(-0.3333333333333333 / sqrt(x)))); else tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -9.2e+54) || ~((y <= 1.45e+46))) tmp = 1.0 + (y * (-0.3333333333333333 / sqrt(x))); else tmp = 1.0 + (-1.0 / (x * 9.0)); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -9.2e+54], N[Not[LessEqual[y, 1.45e+46]], $MachinePrecision]], N[(1.0 + N[(y * N[(-0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.2 \cdot 10^{+54} \lor \neg \left(y \leq 1.45 \cdot 10^{+46}\right):\\
\;\;\;\;1 + y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\end{array}
\end{array}
if y < -9.19999999999999977e54 or 1.4500000000000001e46 < y Initial program 99.4%
sub-neg99.4%
*-commutative99.4%
associate-/r*99.5%
metadata-eval99.5%
distribute-frac-neg99.5%
neg-mul-199.5%
times-frac98.6%
metadata-eval98.6%
Simplified98.6%
Taylor expanded in x around inf 96.5%
*-commutative96.5%
associate-*l/97.3%
associate-*r/97.4%
add-sqr-sqrt0.0%
sqrt-unprod6.5%
frac-times6.5%
metadata-eval6.5%
add-sqr-sqrt6.5%
clear-num6.5%
sqrt-div6.5%
div-inv6.5%
metadata-eval6.5%
sqrt-div6.5%
sqrt-div6.5%
metadata-eval6.5%
sqrt-prod6.5%
metadata-eval6.5%
*-commutative6.5%
div-inv6.5%
clear-num6.5%
*-commutative6.5%
associate-/l*6.5%
Applied egg-rr6.5%
associate-*r/6.5%
associate-/r/6.5%
*-commutative6.5%
associate-/r*6.5%
metadata-eval6.5%
unpow1/26.5%
metadata-eval6.5%
pow-sqr6.5%
metadata-eval6.5%
fabs-sqr6.5%
pow-sqr6.5%
metadata-eval6.5%
unpow1/26.5%
fabs-div6.5%
rem-square-sqrt0.0%
fabs-sqr0.0%
rem-square-sqrt97.4%
*-commutative97.4%
Simplified97.4%
if -9.19999999999999977e54 < y < 1.4500000000000001e46Initial 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%
fmm-def99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 99.1%
associate-*r/99.0%
metadata-eval99.0%
Simplified99.0%
clear-num99.0%
div-inv99.1%
metadata-eval99.1%
inv-pow99.1%
Applied egg-rr99.1%
unpow-199.1%
Applied egg-rr99.1%
Final simplification98.4%
(FPCore (x y) :precision binary64 (if (or (<= y -3.8e+51) (not (<= y 3.6e+46))) (+ 1.0 (* -0.3333333333333333 (/ y (sqrt x)))) (+ 1.0 (/ -1.0 (* x 9.0)))))
double code(double x, double y) {
double tmp;
if ((y <= -3.8e+51) || !(y <= 3.6e+46)) {
tmp = 1.0 + (-0.3333333333333333 * (y / sqrt(x)));
} else {
tmp = 1.0 + (-1.0 / (x * 9.0));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-3.8d+51)) .or. (.not. (y <= 3.6d+46))) then
tmp = 1.0d0 + ((-0.3333333333333333d0) * (y / sqrt(x)))
else
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -3.8e+51) || !(y <= 3.6e+46)) {
tmp = 1.0 + (-0.3333333333333333 * (y / Math.sqrt(x)));
} else {
tmp = 1.0 + (-1.0 / (x * 9.0));
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -3.8e+51) or not (y <= 3.6e+46): tmp = 1.0 + (-0.3333333333333333 * (y / math.sqrt(x))) else: tmp = 1.0 + (-1.0 / (x * 9.0)) return tmp
function code(x, y) tmp = 0.0 if ((y <= -3.8e+51) || !(y <= 3.6e+46)) tmp = Float64(1.0 + Float64(-0.3333333333333333 * Float64(y / sqrt(x)))); else tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -3.8e+51) || ~((y <= 3.6e+46))) tmp = 1.0 + (-0.3333333333333333 * (y / sqrt(x))); else tmp = 1.0 + (-1.0 / (x * 9.0)); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -3.8e+51], N[Not[LessEqual[y, 3.6e+46]], $MachinePrecision]], N[(1.0 + N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{+51} \lor \neg \left(y \leq 3.6 \cdot 10^{+46}\right):\\
\;\;\;\;1 + -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\end{array}
\end{array}
if y < -3.7999999999999997e51 or 3.5999999999999999e46 < y Initial program 99.4%
sub-neg99.4%
*-commutative99.4%
associate-/r*99.5%
metadata-eval99.5%
distribute-frac-neg99.5%
neg-mul-199.5%
times-frac98.6%
metadata-eval98.6%
Simplified98.6%
Taylor expanded in x around inf 96.5%
if -3.7999999999999997e51 < y < 3.5999999999999999e46Initial 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%
fmm-def99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 99.1%
associate-*r/99.0%
metadata-eval99.0%
Simplified99.0%
clear-num99.0%
div-inv99.1%
metadata-eval99.1%
inv-pow99.1%
Applied egg-rr99.1%
unpow-199.1%
Applied egg-rr99.1%
Final simplification98.1%
(FPCore (x y)
:precision binary64
(if (<= y -7.6e+54)
(+ 1.0 (/ y (* -3.0 (sqrt x))))
(if (<= y 1.65e+44)
(+ 1.0 (/ -1.0 (* x 9.0)))
(+ 1.0 (* y (/ -0.3333333333333333 (sqrt x)))))))
double code(double x, double y) {
double tmp;
if (y <= -7.6e+54) {
tmp = 1.0 + (y / (-3.0 * sqrt(x)));
} else if (y <= 1.65e+44) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = 1.0 + (y * (-0.3333333333333333 / 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 <= (-7.6d+54)) then
tmp = 1.0d0 + (y / ((-3.0d0) * sqrt(x)))
else if (y <= 1.65d+44) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = 1.0d0 + (y * ((-0.3333333333333333d0) / sqrt(x)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -7.6e+54) {
tmp = 1.0 + (y / (-3.0 * Math.sqrt(x)));
} else if (y <= 1.65e+44) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = 1.0 + (y * (-0.3333333333333333 / Math.sqrt(x)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -7.6e+54: tmp = 1.0 + (y / (-3.0 * math.sqrt(x))) elif y <= 1.65e+44: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = 1.0 + (y * (-0.3333333333333333 / math.sqrt(x))) return tmp
function code(x, y) tmp = 0.0 if (y <= -7.6e+54) tmp = Float64(1.0 + Float64(y / Float64(-3.0 * sqrt(x)))); elseif (y <= 1.65e+44) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(1.0 + Float64(y * Float64(-0.3333333333333333 / sqrt(x)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -7.6e+54) tmp = 1.0 + (y / (-3.0 * sqrt(x))); elseif (y <= 1.65e+44) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = 1.0 + (y * (-0.3333333333333333 / sqrt(x))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -7.6e+54], N[(1.0 + N[(y / N[(-3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.65e+44], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(y * N[(-0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.6 \cdot 10^{+54}:\\
\;\;\;\;1 + \frac{y}{-3 \cdot \sqrt{x}}\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{+44}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;1 + y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -7.6000000000000005e54Initial program 99.5%
sub-neg99.5%
*-commutative99.5%
associate-/r*99.5%
metadata-eval99.5%
distribute-frac-neg99.5%
neg-mul-199.5%
times-frac97.7%
metadata-eval97.7%
Simplified97.7%
Taylor expanded in x around inf 97.1%
*-commutative97.1%
associate-*l/98.6%
associate-*r/98.8%
clear-num98.8%
un-div-inv98.9%
div-inv98.9%
metadata-eval98.9%
Applied egg-rr98.9%
if -7.6000000000000005e54 < y < 1.65000000000000007e44Initial 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%
fmm-def99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 99.1%
associate-*r/99.0%
metadata-eval99.0%
Simplified99.0%
clear-num99.0%
div-inv99.1%
metadata-eval99.1%
inv-pow99.1%
Applied egg-rr99.1%
unpow-199.1%
Applied egg-rr99.1%
if 1.65000000000000007e44 < y Initial program 99.4%
sub-neg99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
distribute-frac-neg99.4%
neg-mul-199.4%
times-frac99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in x around inf 95.9%
*-commutative95.9%
associate-*l/96.1%
associate-*r/96.0%
add-sqr-sqrt0.0%
sqrt-unprod5.4%
frac-times5.4%
metadata-eval5.4%
add-sqr-sqrt5.4%
clear-num5.4%
sqrt-div5.4%
div-inv5.4%
metadata-eval5.4%
sqrt-div5.4%
sqrt-div5.4%
metadata-eval5.4%
sqrt-prod5.4%
metadata-eval5.4%
*-commutative5.4%
div-inv5.4%
clear-num5.4%
*-commutative5.4%
associate-/l*5.4%
Applied egg-rr5.4%
associate-*r/5.4%
associate-/r/5.4%
*-commutative5.4%
associate-/r*5.4%
metadata-eval5.4%
unpow1/25.4%
metadata-eval5.4%
pow-sqr5.4%
metadata-eval5.4%
fabs-sqr5.4%
pow-sqr5.4%
metadata-eval5.4%
unpow1/25.4%
fabs-div5.4%
rem-square-sqrt0.0%
fabs-sqr0.0%
rem-square-sqrt96.0%
*-commutative96.0%
Simplified96.0%
Final simplification98.4%
(FPCore (x y) :precision binary64 (if (or (<= y -6.6e+54) (not (<= y 8.6e+46))) (/ y (* -3.0 (sqrt x))) (+ 1.0 (/ -1.0 (* x 9.0)))))
double code(double x, double y) {
double tmp;
if ((y <= -6.6e+54) || !(y <= 8.6e+46)) {
tmp = y / (-3.0 * sqrt(x));
} else {
tmp = 1.0 + (-1.0 / (x * 9.0));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if ((y <= (-6.6d+54)) .or. (.not. (y <= 8.6d+46))) then
tmp = y / ((-3.0d0) * sqrt(x))
else
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -6.6e+54) || !(y <= 8.6e+46)) {
tmp = y / (-3.0 * Math.sqrt(x));
} else {
tmp = 1.0 + (-1.0 / (x * 9.0));
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -6.6e+54) or not (y <= 8.6e+46): tmp = y / (-3.0 * math.sqrt(x)) else: tmp = 1.0 + (-1.0 / (x * 9.0)) return tmp
function code(x, y) tmp = 0.0 if ((y <= -6.6e+54) || !(y <= 8.6e+46)) tmp = Float64(y / Float64(-3.0 * sqrt(x))); else tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -6.6e+54) || ~((y <= 8.6e+46))) tmp = y / (-3.0 * sqrt(x)); else tmp = 1.0 + (-1.0 / (x * 9.0)); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -6.6e+54], N[Not[LessEqual[y, 8.6e+46]], $MachinePrecision]], N[(y / N[(-3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.6 \cdot 10^{+54} \lor \neg \left(y \leq 8.6 \cdot 10^{+46}\right):\\
\;\;\;\;\frac{y}{-3 \cdot \sqrt{x}}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\end{array}
\end{array}
if y < -6.6e54 or 8.60000000000000009e46 < 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.5%
fmm-def99.5%
associate-/r*99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around inf 89.3%
associate-*r*90.3%
Simplified90.3%
*-commutative90.3%
associate-*r*90.2%
metadata-eval90.2%
div-inv90.3%
sqrt-div90.3%
metadata-eval90.3%
frac-times90.3%
*-commutative90.3%
*-un-lft-identity90.3%
Applied egg-rr90.3%
if -6.6e54 < y < 8.60000000000000009e46Initial 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%
fmm-def99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 99.1%
associate-*r/99.0%
metadata-eval99.0%
Simplified99.0%
clear-num99.0%
div-inv99.1%
metadata-eval99.1%
inv-pow99.1%
Applied egg-rr99.1%
unpow-199.1%
Applied egg-rr99.1%
Final simplification95.8%
(FPCore (x y)
:precision binary64
(if (<= y -1e+55)
(/ (pow x -0.5) (/ -3.0 y))
(if (<= y 1.1e+47)
(+ 1.0 (/ -1.0 (* x 9.0)))
(/ (* y -0.3333333333333333) (sqrt x)))))
double code(double x, double y) {
double tmp;
if (y <= -1e+55) {
tmp = pow(x, -0.5) / (-3.0 / y);
} else if (y <= 1.1e+47) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = (y * -0.3333333333333333) / 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 <= (-1d+55)) then
tmp = (x ** (-0.5d0)) / ((-3.0d0) / y)
else if (y <= 1.1d+47) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = (y * (-0.3333333333333333d0)) / sqrt(x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1e+55) {
tmp = Math.pow(x, -0.5) / (-3.0 / y);
} else if (y <= 1.1e+47) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = (y * -0.3333333333333333) / Math.sqrt(x);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1e+55: tmp = math.pow(x, -0.5) / (-3.0 / y) elif y <= 1.1e+47: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = (y * -0.3333333333333333) / math.sqrt(x) return tmp
function code(x, y) tmp = 0.0 if (y <= -1e+55) tmp = Float64((x ^ -0.5) / Float64(-3.0 / y)); elseif (y <= 1.1e+47) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(Float64(y * -0.3333333333333333) / sqrt(x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1e+55) tmp = (x ^ -0.5) / (-3.0 / y); elseif (y <= 1.1e+47) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = (y * -0.3333333333333333) / sqrt(x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1e+55], N[(N[Power[x, -0.5], $MachinePrecision] / N[(-3.0 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e+47], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * -0.3333333333333333), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{+55}:\\
\;\;\;\;\frac{{x}^{-0.5}}{\frac{-3}{y}}\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+47}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -1.00000000000000001e55Initial 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%
fmm-def99.5%
associate-/r*99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around inf 87.9%
associate-*r*89.8%
Simplified89.8%
*-commutative89.8%
associate-*r*89.7%
metadata-eval89.7%
div-inv89.8%
clear-num89.7%
associate-*l/89.9%
*-un-lft-identity89.9%
inv-pow89.9%
sqrt-pow190.0%
metadata-eval90.0%
Applied egg-rr90.0%
if -1.00000000000000001e55 < y < 1.1e47Initial 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%
fmm-def99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 99.1%
associate-*r/99.0%
metadata-eval99.0%
Simplified99.0%
clear-num99.0%
div-inv99.1%
metadata-eval99.1%
inv-pow99.1%
Applied egg-rr99.1%
unpow-199.1%
Applied egg-rr99.1%
if 1.1e47 < y Initial program 99.3%
associate--l-99.3%
sub-neg99.3%
+-commutative99.3%
distribute-neg-in99.3%
distribute-frac-neg99.3%
sub-neg99.3%
neg-mul-199.3%
*-commutative99.3%
associate-/l*99.5%
fmm-def99.5%
associate-/r*99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around inf 90.6%
associate-*r*90.8%
Simplified90.8%
*-commutative90.8%
sqrt-div90.8%
metadata-eval90.8%
un-div-inv90.9%
associate-/l*91.0%
Applied egg-rr91.0%
Final simplification95.8%
(FPCore (x y)
:precision binary64
(if (<= y -1.05e+55)
(* y (* -0.3333333333333333 (pow x -0.5)))
(if (<= y 1.1e+47)
(+ 1.0 (/ -1.0 (* x 9.0)))
(/ (* y -0.3333333333333333) (sqrt x)))))
double code(double x, double y) {
double tmp;
if (y <= -1.05e+55) {
tmp = y * (-0.3333333333333333 * pow(x, -0.5));
} else if (y <= 1.1e+47) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = (y * -0.3333333333333333) / 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.05d+55)) then
tmp = y * ((-0.3333333333333333d0) * (x ** (-0.5d0)))
else if (y <= 1.1d+47) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = (y * (-0.3333333333333333d0)) / sqrt(x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.05e+55) {
tmp = y * (-0.3333333333333333 * Math.pow(x, -0.5));
} else if (y <= 1.1e+47) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = (y * -0.3333333333333333) / Math.sqrt(x);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.05e+55: tmp = y * (-0.3333333333333333 * math.pow(x, -0.5)) elif y <= 1.1e+47: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = (y * -0.3333333333333333) / math.sqrt(x) return tmp
function code(x, y) tmp = 0.0 if (y <= -1.05e+55) tmp = Float64(y * Float64(-0.3333333333333333 * (x ^ -0.5))); elseif (y <= 1.1e+47) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(Float64(y * -0.3333333333333333) / sqrt(x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.05e+55) tmp = y * (-0.3333333333333333 * (x ^ -0.5)); elseif (y <= 1.1e+47) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = (y * -0.3333333333333333) / sqrt(x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.05e+55], N[(y * N[(-0.3333333333333333 * N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e+47], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * -0.3333333333333333), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{+55}:\\
\;\;\;\;y \cdot \left(-0.3333333333333333 \cdot {x}^{-0.5}\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+47}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -1.05e55Initial 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%
fmm-def99.5%
associate-/r*99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around inf 87.9%
associate-*r*89.8%
Simplified89.8%
*-un-lft-identity89.8%
inv-pow89.8%
sqrt-pow189.8%
metadata-eval89.8%
Applied egg-rr89.8%
*-lft-identity89.8%
Simplified89.8%
if -1.05e55 < y < 1.1e47Initial 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%
fmm-def99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 99.1%
associate-*r/99.0%
metadata-eval99.0%
Simplified99.0%
clear-num99.0%
div-inv99.1%
metadata-eval99.1%
inv-pow99.1%
Applied egg-rr99.1%
unpow-199.1%
Applied egg-rr99.1%
if 1.1e47 < y Initial program 99.3%
associate--l-99.3%
sub-neg99.3%
+-commutative99.3%
distribute-neg-in99.3%
distribute-frac-neg99.3%
sub-neg99.3%
neg-mul-199.3%
*-commutative99.3%
associate-/l*99.5%
fmm-def99.5%
associate-/r*99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around inf 90.6%
associate-*r*90.8%
Simplified90.8%
*-commutative90.8%
sqrt-div90.8%
metadata-eval90.8%
un-div-inv90.9%
associate-/l*91.0%
Applied egg-rr91.0%
Final simplification95.8%
(FPCore (x y)
:precision binary64
(if (<= y -3.5e+53)
(/ y (* -3.0 (sqrt x)))
(if (<= y 1.1e+47)
(+ 1.0 (/ -1.0 (* x 9.0)))
(/ (* y -0.3333333333333333) (sqrt x)))))
double code(double x, double y) {
double tmp;
if (y <= -3.5e+53) {
tmp = y / (-3.0 * sqrt(x));
} else if (y <= 1.1e+47) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = (y * -0.3333333333333333) / 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 <= (-3.5d+53)) then
tmp = y / ((-3.0d0) * sqrt(x))
else if (y <= 1.1d+47) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = (y * (-0.3333333333333333d0)) / sqrt(x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -3.5e+53) {
tmp = y / (-3.0 * Math.sqrt(x));
} else if (y <= 1.1e+47) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = (y * -0.3333333333333333) / Math.sqrt(x);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -3.5e+53: tmp = y / (-3.0 * math.sqrt(x)) elif y <= 1.1e+47: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = (y * -0.3333333333333333) / math.sqrt(x) return tmp
function code(x, y) tmp = 0.0 if (y <= -3.5e+53) tmp = Float64(y / Float64(-3.0 * sqrt(x))); elseif (y <= 1.1e+47) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(Float64(y * -0.3333333333333333) / sqrt(x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -3.5e+53) tmp = y / (-3.0 * sqrt(x)); elseif (y <= 1.1e+47) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = (y * -0.3333333333333333) / sqrt(x); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -3.5e+53], N[(y / N[(-3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e+47], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * -0.3333333333333333), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+53}:\\
\;\;\;\;\frac{y}{-3 \cdot \sqrt{x}}\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+47}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -3.50000000000000019e53Initial 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%
fmm-def99.5%
associate-/r*99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around inf 87.9%
associate-*r*89.8%
Simplified89.8%
*-commutative89.8%
associate-*r*89.7%
metadata-eval89.7%
div-inv89.8%
sqrt-div89.7%
metadata-eval89.7%
frac-times89.8%
*-commutative89.8%
*-un-lft-identity89.8%
Applied egg-rr89.8%
if -3.50000000000000019e53 < y < 1.1e47Initial 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%
fmm-def99.7%
associate-/r*99.7%
metadata-eval99.7%
*-commutative99.7%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 99.1%
associate-*r/99.0%
metadata-eval99.0%
Simplified99.0%
clear-num99.0%
div-inv99.1%
metadata-eval99.1%
inv-pow99.1%
Applied egg-rr99.1%
unpow-199.1%
Applied egg-rr99.1%
if 1.1e47 < y Initial program 99.3%
associate--l-99.3%
sub-neg99.3%
+-commutative99.3%
distribute-neg-in99.3%
distribute-frac-neg99.3%
sub-neg99.3%
neg-mul-199.3%
*-commutative99.3%
associate-/l*99.5%
fmm-def99.5%
associate-/r*99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.5%
distribute-neg-frac99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around inf 90.6%
associate-*r*90.8%
Simplified90.8%
*-commutative90.8%
sqrt-div90.8%
metadata-eval90.8%
un-div-inv90.9%
associate-/l*91.0%
Applied egg-rr91.0%
Final simplification95.8%
(FPCore (x y) :precision binary64 (if (<= x 0.112) (/ (- (* -0.3333333333333333 (* y (sqrt x))) 0.1111111111111111) x) (+ 1.0 (* y (/ -0.3333333333333333 (sqrt x))))))
double code(double x, double y) {
double tmp;
if (x <= 0.112) {
tmp = ((-0.3333333333333333 * (y * sqrt(x))) - 0.1111111111111111) / x;
} else {
tmp = 1.0 + (y * (-0.3333333333333333 / sqrt(x)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 0.112d0) then
tmp = (((-0.3333333333333333d0) * (y * sqrt(x))) - 0.1111111111111111d0) / x
else
tmp = 1.0d0 + (y * ((-0.3333333333333333d0) / sqrt(x)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 0.112) {
tmp = ((-0.3333333333333333 * (y * Math.sqrt(x))) - 0.1111111111111111) / x;
} else {
tmp = 1.0 + (y * (-0.3333333333333333 / Math.sqrt(x)));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.112: tmp = ((-0.3333333333333333 * (y * math.sqrt(x))) - 0.1111111111111111) / x else: tmp = 1.0 + (y * (-0.3333333333333333 / math.sqrt(x))) return tmp
function code(x, y) tmp = 0.0 if (x <= 0.112) tmp = Float64(Float64(Float64(-0.3333333333333333 * Float64(y * sqrt(x))) - 0.1111111111111111) / x); else tmp = Float64(1.0 + Float64(y * Float64(-0.3333333333333333 / sqrt(x)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.112) tmp = ((-0.3333333333333333 * (y * sqrt(x))) - 0.1111111111111111) / x; else tmp = 1.0 + (y * (-0.3333333333333333 / sqrt(x))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.112], N[(N[(N[(-0.3333333333333333 * N[(y * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 0.1111111111111111), $MachinePrecision] / x), $MachinePrecision], N[(1.0 + N[(y * N[(-0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.112:\\
\;\;\;\;\frac{-0.3333333333333333 \cdot \left(y \cdot \sqrt{x}\right) - 0.1111111111111111}{x}\\
\mathbf{else}:\\
\;\;\;\;1 + y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\
\end{array}
\end{array}
if x < 0.112000000000000002Initial 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%
fmm-def99.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%
Taylor expanded in x around 0 99.4%
if 0.112000000000000002 < x Initial program 99.8%
sub-neg99.8%
*-commutative99.8%
associate-/r*99.8%
metadata-eval99.8%
distribute-frac-neg99.8%
neg-mul-199.8%
times-frac99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around inf 97.6%
*-commutative97.6%
associate-*l/97.7%
associate-*r/97.7%
add-sqr-sqrt0.0%
sqrt-unprod57.1%
frac-times57.1%
metadata-eval57.1%
add-sqr-sqrt57.1%
clear-num57.1%
sqrt-div57.1%
div-inv57.1%
metadata-eval57.1%
sqrt-div57.1%
sqrt-div57.1%
metadata-eval57.1%
sqrt-prod57.1%
metadata-eval57.1%
*-commutative57.1%
div-inv57.1%
clear-num57.1%
*-commutative57.1%
associate-/l*57.1%
Applied egg-rr57.1%
associate-*r/57.1%
associate-/r/57.1%
*-commutative57.1%
associate-/r*57.1%
metadata-eval57.1%
unpow1/257.1%
metadata-eval57.1%
pow-sqr57.1%
metadata-eval57.1%
fabs-sqr57.1%
pow-sqr57.1%
metadata-eval57.1%
unpow1/257.1%
fabs-div57.1%
rem-square-sqrt0.0%
fabs-sqr0.0%
rem-square-sqrt97.7%
*-commutative97.7%
Simplified97.7%
Final simplification98.6%
(FPCore (x y) :precision binary64 (+ (- 1.0 (/ 0.1111111111111111 x)) (/ -0.3333333333333333 (/ (sqrt x) y))))
double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 / (sqrt(x) / y));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (0.1111111111111111d0 / x)) + ((-0.3333333333333333d0) / (sqrt(x) / y))
end function
public static double code(double x, double y) {
return (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 / (Math.sqrt(x) / y));
}
def code(x, y): return (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 / (math.sqrt(x) / y))
function code(x, y) return Float64(Float64(1.0 - Float64(0.1111111111111111 / x)) + Float64(-0.3333333333333333 / Float64(sqrt(x) / y))) end
function tmp = code(x, y) tmp = (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 / (sqrt(x) / y)); end
code[x_, y_] := N[(N[(1.0 - N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision] + N[(-0.3333333333333333 / N[(N[Sqrt[x], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{0.1111111111111111}{x}\right) + \frac{-0.3333333333333333}{\frac{\sqrt{x}}{y}}
\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.3%
metadata-eval99.3%
Simplified99.3%
clear-num99.2%
un-div-inv99.6%
Applied egg-rr99.6%
(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.3%
metadata-eval99.3%
Simplified99.3%
(FPCore (x y)
:precision binary64
(if (<= y 7e+152)
(+ 1.0 (/ -1.0 (* x 9.0)))
(/
(- 1.0 (/ (/ 0.012345679012345678 x) x))
(+ 1.0 (/ 0.1111111111111111 x)))))
double code(double x, double y) {
double tmp;
if (y <= 7e+152) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} 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 <= 7d+152) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
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 <= 7e+152) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = (1.0 - ((0.012345679012345678 / x) / x)) / (1.0 + (0.1111111111111111 / x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 7e+152: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = (1.0 - ((0.012345679012345678 / x) / x)) / (1.0 + (0.1111111111111111 / x)) return tmp
function code(x, y) tmp = 0.0 if (y <= 7e+152) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(Float64(1.0 - Float64(Float64(0.012345679012345678 / x) / x)) / Float64(1.0 + Float64(0.1111111111111111 / x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 7e+152) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = (1.0 - ((0.012345679012345678 / x) / x)) / (1.0 + (0.1111111111111111 / x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 7e+152], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 - N[(N[(0.012345679012345678 / x), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 7 \cdot 10^{+152}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - \frac{\frac{0.012345679012345678}{x}}{x}}{1 + \frac{0.1111111111111111}{x}}\\
\end{array}
\end{array}
if y < 6.99999999999999963e152Initial 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%
fmm-def99.6%
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 74.0%
associate-*r/74.0%
metadata-eval74.0%
Simplified74.0%
clear-num74.0%
div-inv74.0%
metadata-eval74.0%
inv-pow74.0%
Applied egg-rr74.0%
unpow-174.0%
Applied egg-rr74.0%
if 6.99999999999999963e152 < 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.7%
fmm-def99.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 2.8%
associate-*r/2.8%
metadata-eval2.8%
Simplified2.8%
clear-num2.8%
div-inv2.8%
metadata-eval2.8%
inv-pow2.8%
Applied egg-rr2.8%
sub-neg2.8%
flip-+17.4%
metadata-eval17.4%
unpow-117.4%
metadata-eval17.4%
div-inv17.4%
clear-num17.4%
distribute-neg-frac17.4%
metadata-eval17.4%
unpow-117.4%
metadata-eval17.4%
div-inv17.4%
clear-num17.4%
distribute-neg-frac17.4%
metadata-eval17.4%
unpow-117.4%
metadata-eval17.4%
div-inv17.4%
clear-num17.4%
Applied egg-rr17.4%
associate-*r/17.4%
associate-*l/17.4%
metadata-eval17.4%
sub-neg17.4%
distribute-neg-frac17.4%
metadata-eval17.4%
Simplified17.4%
Final simplification66.9%
(FPCore (x y) :precision binary64 (if (<= x 4.3e-6) (* (/ 1.0 x) -0.1111111111111111) 1.0))
double code(double x, double y) {
double tmp;
if (x <= 4.3e-6) {
tmp = (1.0 / x) * -0.1111111111111111;
} 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 <= 4.3d-6) then
tmp = (1.0d0 / x) * (-0.1111111111111111d0)
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 4.3e-6) {
tmp = (1.0 / x) * -0.1111111111111111;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 4.3e-6: tmp = (1.0 / x) * -0.1111111111111111 else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (x <= 4.3e-6) tmp = Float64(Float64(1.0 / x) * -0.1111111111111111); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 4.3e-6) tmp = (1.0 / x) * -0.1111111111111111; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 4.3e-6], N[(N[(1.0 / x), $MachinePrecision] * -0.1111111111111111), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4.3 \cdot 10^{-6}:\\
\;\;\;\;\frac{1}{x} \cdot -0.1111111111111111\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 4.30000000000000033e-6Initial 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%
fmm-def99.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%
Taylor expanded in y around 0 70.0%
associate-*r/70.0%
metadata-eval70.0%
Simplified70.0%
clear-num70.0%
div-inv70.1%
metadata-eval70.1%
inv-pow70.1%
Applied egg-rr70.1%
Taylor expanded in x around 0 70.0%
clear-num70.0%
associate-/r/70.0%
Applied egg-rr70.0%
if 4.30000000000000033e-6 < x Initial program 99.8%
sub-neg99.8%
*-commutative99.8%
associate-/r*99.8%
metadata-eval99.8%
distribute-frac-neg99.8%
neg-mul-199.8%
times-frac99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around inf 97.5%
Taylor expanded in y around 0 57.7%
(FPCore (x y) :precision binary64 (if (<= x 4.3e-6) (/ -0.1111111111111111 x) 1.0))
double code(double x, double y) {
double tmp;
if (x <= 4.3e-6) {
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 <= 4.3d-6) 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 <= 4.3e-6) {
tmp = -0.1111111111111111 / x;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 4.3e-6: tmp = -0.1111111111111111 / x else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (x <= 4.3e-6) tmp = Float64(-0.1111111111111111 / x); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 4.3e-6) tmp = -0.1111111111111111 / x; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 4.3e-6], N[(-0.1111111111111111 / x), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4.3 \cdot 10^{-6}:\\
\;\;\;\;\frac{-0.1111111111111111}{x}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 4.30000000000000033e-6Initial 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%
fmm-def99.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%
Taylor expanded in y around 0 70.0%
associate-*r/70.0%
metadata-eval70.0%
Simplified70.0%
clear-num70.0%
div-inv70.1%
metadata-eval70.1%
inv-pow70.1%
Applied egg-rr70.1%
Taylor expanded in x around 0 70.0%
if 4.30000000000000033e-6 < x Initial program 99.8%
sub-neg99.8%
*-commutative99.8%
associate-/r*99.8%
metadata-eval99.8%
distribute-frac-neg99.8%
neg-mul-199.8%
times-frac99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around inf 97.5%
Taylor expanded in y around 0 57.7%
(FPCore (x y) :precision binary64 (+ 1.0 (/ -1.0 (* x 9.0))))
double code(double x, double y) {
return 1.0 + (-1.0 / (x * 9.0));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
end function
public static double code(double x, double y) {
return 1.0 + (-1.0 / (x * 9.0));
}
def code(x, y): return 1.0 + (-1.0 / (x * 9.0))
function code(x, y) return Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))) end
function tmp = code(x, y) tmp = 1.0 + (-1.0 / (x * 9.0)); end
code[x_, y_] := N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + \frac{-1}{x \cdot 9}
\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%
fmm-def99.6%
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 65.1%
associate-*r/65.1%
metadata-eval65.1%
Simplified65.1%
clear-num65.1%
div-inv65.1%
metadata-eval65.1%
inv-pow65.1%
Applied egg-rr65.1%
unpow-165.1%
Applied egg-rr65.1%
Final simplification65.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%
fmm-def99.6%
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 65.1%
Final simplification65.1%
(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%
fmm-def99.6%
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 65.1%
associate-*r/65.1%
metadata-eval65.1%
Simplified65.1%
(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%
sub-neg99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
distribute-frac-neg99.6%
neg-mul-199.6%
times-frac99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in x around inf 62.6%
Taylor expanded in y around 0 28.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 2024170
(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)))))