
(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 19 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 (sqrt (* x 9.0)))))
double code(double x, double y) {
return (1.0 + (-1.0 / (x * 9.0))) - (y / sqrt((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))) - (y / sqrt((x * 9.0d0)))
end function
public static double code(double x, double y) {
return (1.0 + (-1.0 / (x * 9.0))) - (y / Math.sqrt((x * 9.0)));
}
def code(x, y): return (1.0 + (-1.0 / (x * 9.0))) - (y / math.sqrt((x * 9.0)))
function code(x, y) return Float64(Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))) - Float64(y / sqrt(Float64(x * 9.0)))) end
function tmp = code(x, y) tmp = (1.0 + (-1.0 / (x * 9.0))) - (y / sqrt((x * 9.0))); end
code[x_, y_] := N[(N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[Sqrt[N[(x * 9.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 + \frac{-1}{x \cdot 9}\right) - \frac{y}{\sqrt{x \cdot 9}}
\end{array}
Initial program 99.7%
*-commutative99.7%
metadata-eval99.7%
sqrt-prod99.8%
pow1/299.8%
Applied egg-rr99.8%
unpow1/299.8%
Simplified99.8%
Final simplification99.8%
(FPCore (x y)
:precision binary64
(if (<= y -1.22e+64)
(- 1.0 (* y (/ (pow x -0.5) 3.0)))
(if (<= y 3.4e+85)
(- 1.0 (pow (* x 9.0) -1.0))
(+ 1.0 (/ -1.0 (* 3.0 (/ (sqrt x) y)))))))
double code(double x, double y) {
double tmp;
if (y <= -1.22e+64) {
tmp = 1.0 - (y * (pow(x, -0.5) / 3.0));
} else if (y <= 3.4e+85) {
tmp = 1.0 - pow((x * 9.0), -1.0);
} else {
tmp = 1.0 + (-1.0 / (3.0 * (sqrt(x) / y)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-1.22d+64)) then
tmp = 1.0d0 - (y * ((x ** (-0.5d0)) / 3.0d0))
else if (y <= 3.4d+85) then
tmp = 1.0d0 - ((x * 9.0d0) ** (-1.0d0))
else
tmp = 1.0d0 + ((-1.0d0) / (3.0d0 * (sqrt(x) / y)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.22e+64) {
tmp = 1.0 - (y * (Math.pow(x, -0.5) / 3.0));
} else if (y <= 3.4e+85) {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
} else {
tmp = 1.0 + (-1.0 / (3.0 * (Math.sqrt(x) / y)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.22e+64: tmp = 1.0 - (y * (math.pow(x, -0.5) / 3.0)) elif y <= 3.4e+85: tmp = 1.0 - math.pow((x * 9.0), -1.0) else: tmp = 1.0 + (-1.0 / (3.0 * (math.sqrt(x) / y))) return tmp
function code(x, y) tmp = 0.0 if (y <= -1.22e+64) tmp = Float64(1.0 - Float64(y * Float64((x ^ -0.5) / 3.0))); elseif (y <= 3.4e+85) tmp = Float64(1.0 - (Float64(x * 9.0) ^ -1.0)); else tmp = Float64(1.0 + Float64(-1.0 / Float64(3.0 * Float64(sqrt(x) / y)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.22e+64) tmp = 1.0 - (y * ((x ^ -0.5) / 3.0)); elseif (y <= 3.4e+85) tmp = 1.0 - ((x * 9.0) ^ -1.0); else tmp = 1.0 + (-1.0 / (3.0 * (sqrt(x) / y))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.22e+64], N[(1.0 - N[(y * N[(N[Power[x, -0.5], $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+85], N[(1.0 - N[Power[N[(x * 9.0), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-1.0 / N[(3.0 * N[(N[Sqrt[x], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.22 \cdot 10^{+64}:\\
\;\;\;\;1 - y \cdot \frac{{x}^{-0.5}}{3}\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+85}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{3 \cdot \frac{\sqrt{x}}{y}}\\
\end{array}
\end{array}
if y < -1.21999999999999994e64Initial program 99.6%
Taylor expanded in x around inf 95.6%
metadata-eval95.6%
*-commutative95.6%
sqrt-div95.6%
metadata-eval95.6%
un-div-inv95.6%
times-frac95.9%
*-un-lft-identity95.9%
clear-num95.7%
*-un-lft-identity95.7%
times-frac95.5%
metadata-eval95.5%
Applied egg-rr95.5%
Taylor expanded in x around 0 95.4%
associate-*r*95.6%
*-commutative95.6%
associate-*r/95.7%
*-rgt-identity95.7%
associate-/l*95.6%
Simplified95.6%
associate-/r*95.7%
associate-/r/95.7%
pow1/295.7%
pow-flip95.9%
metadata-eval95.9%
Applied egg-rr95.9%
if -1.21999999999999994e64 < y < 3.4000000000000003e85Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.5%
add-sqr-sqrt0.0%
sqrt-unprod49.7%
frac-times49.7%
metadata-eval49.7%
metadata-eval49.7%
frac-times49.7%
sqrt-unprod49.8%
add-sqr-sqrt49.8%
frac-2neg49.8%
metadata-eval49.8%
distribute-frac-neg249.8%
Applied egg-rr49.8%
add-sqr-sqrt0.0%
sqrt-unprod74.5%
frac-times74.5%
metadata-eval74.5%
metadata-eval74.5%
frac-times74.5%
sqrt-unprod96.4%
add-sqr-sqrt96.5%
clear-num96.5%
div-inv96.6%
metadata-eval96.6%
inv-pow96.6%
Applied egg-rr96.6%
if 3.4000000000000003e85 < y Initial program 99.5%
Taylor expanded in x around inf 95.8%
metadata-eval95.8%
*-commutative95.8%
sqrt-div95.7%
metadata-eval95.7%
un-div-inv95.8%
times-frac95.7%
*-un-lft-identity95.7%
clear-num95.6%
*-un-lft-identity95.6%
times-frac95.9%
metadata-eval95.9%
Applied egg-rr95.9%
Final simplification96.4%
(FPCore (x y) :precision binary64 (if (or (<= y -2.3e+64) (not (<= y 3.4e+85))) (- 1.0 (* y (/ (pow x -0.5) 3.0))) (- 1.0 (pow (* x 9.0) -1.0))))
double code(double x, double y) {
double tmp;
if ((y <= -2.3e+64) || !(y <= 3.4e+85)) {
tmp = 1.0 - (y * (pow(x, -0.5) / 3.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 <= (-2.3d+64)) .or. (.not. (y <= 3.4d+85))) then
tmp = 1.0d0 - (y * ((x ** (-0.5d0)) / 3.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 <= -2.3e+64) || !(y <= 3.4e+85)) {
tmp = 1.0 - (y * (Math.pow(x, -0.5) / 3.0));
} else {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -2.3e+64) or not (y <= 3.4e+85): tmp = 1.0 - (y * (math.pow(x, -0.5) / 3.0)) else: tmp = 1.0 - math.pow((x * 9.0), -1.0) return tmp
function code(x, y) tmp = 0.0 if ((y <= -2.3e+64) || !(y <= 3.4e+85)) tmp = Float64(1.0 - Float64(y * Float64((x ^ -0.5) / 3.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 <= -2.3e+64) || ~((y <= 3.4e+85))) tmp = 1.0 - (y * ((x ^ -0.5) / 3.0)); else tmp = 1.0 - ((x * 9.0) ^ -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -2.3e+64], N[Not[LessEqual[y, 3.4e+85]], $MachinePrecision]], N[(1.0 - N[(y * N[(N[Power[x, -0.5], $MachinePrecision] / 3.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 -2.3 \cdot 10^{+64} \lor \neg \left(y \leq 3.4 \cdot 10^{+85}\right):\\
\;\;\;\;1 - y \cdot \frac{{x}^{-0.5}}{3}\\
\mathbf{else}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\end{array}
\end{array}
if y < -2.3e64 or 3.4000000000000003e85 < y Initial program 99.5%
Taylor expanded in x around inf 95.7%
metadata-eval95.7%
*-commutative95.7%
sqrt-div95.6%
metadata-eval95.6%
un-div-inv95.7%
times-frac95.8%
*-un-lft-identity95.8%
clear-num95.7%
*-un-lft-identity95.7%
times-frac95.7%
metadata-eval95.7%
Applied egg-rr95.7%
Taylor expanded in x around 0 95.5%
associate-*r*95.6%
*-commutative95.6%
associate-*r/95.7%
*-rgt-identity95.7%
associate-/l*95.7%
Simplified95.7%
associate-/r*95.7%
associate-/r/95.7%
pow1/295.7%
pow-flip95.9%
metadata-eval95.9%
Applied egg-rr95.9%
if -2.3e64 < y < 3.4000000000000003e85Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.5%
add-sqr-sqrt0.0%
sqrt-unprod49.7%
frac-times49.7%
metadata-eval49.7%
metadata-eval49.7%
frac-times49.7%
sqrt-unprod49.8%
add-sqr-sqrt49.8%
frac-2neg49.8%
metadata-eval49.8%
distribute-frac-neg249.8%
Applied egg-rr49.8%
add-sqr-sqrt0.0%
sqrt-unprod74.5%
frac-times74.5%
metadata-eval74.5%
metadata-eval74.5%
frac-times74.5%
sqrt-unprod96.4%
add-sqr-sqrt96.5%
clear-num96.5%
div-inv96.6%
metadata-eval96.6%
inv-pow96.6%
Applied egg-rr96.6%
Final simplification96.4%
(FPCore (x y) :precision binary64 (if (or (<= y -7.2e+63) (not (<= y 3.4e+85))) (- 1.0 (* (/ y (sqrt x)) 0.3333333333333333)) (- 1.0 (pow (* x 9.0) -1.0))))
double code(double x, double y) {
double tmp;
if ((y <= -7.2e+63) || !(y <= 3.4e+85)) {
tmp = 1.0 - ((y / sqrt(x)) * 0.3333333333333333);
} 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.2d+63)) .or. (.not. (y <= 3.4d+85))) then
tmp = 1.0d0 - ((y / sqrt(x)) * 0.3333333333333333d0)
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.2e+63) || !(y <= 3.4e+85)) {
tmp = 1.0 - ((y / Math.sqrt(x)) * 0.3333333333333333);
} else {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -7.2e+63) or not (y <= 3.4e+85): tmp = 1.0 - ((y / math.sqrt(x)) * 0.3333333333333333) else: tmp = 1.0 - math.pow((x * 9.0), -1.0) return tmp
function code(x, y) tmp = 0.0 if ((y <= -7.2e+63) || !(y <= 3.4e+85)) tmp = Float64(1.0 - Float64(Float64(y / sqrt(x)) * 0.3333333333333333)); 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.2e+63) || ~((y <= 3.4e+85))) tmp = 1.0 - ((y / sqrt(x)) * 0.3333333333333333); else tmp = 1.0 - ((x * 9.0) ^ -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -7.2e+63], N[Not[LessEqual[y, 3.4e+85]], $MachinePrecision]], N[(1.0 - N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * 0.3333333333333333), $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.2 \cdot 10^{+63} \lor \neg \left(y \leq 3.4 \cdot 10^{+85}\right):\\
\;\;\;\;1 - \frac{y}{\sqrt{x}} \cdot 0.3333333333333333\\
\mathbf{else}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\end{array}
\end{array}
if y < -7.19999999999999998e63 or 3.4000000000000003e85 < y Initial program 99.5%
Taylor expanded in x around inf 95.7%
*-commutative95.7%
sqrt-div95.6%
metadata-eval95.6%
un-div-inv95.7%
Applied egg-rr95.7%
if -7.19999999999999998e63 < y < 3.4000000000000003e85Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.5%
add-sqr-sqrt0.0%
sqrt-unprod49.7%
frac-times49.7%
metadata-eval49.7%
metadata-eval49.7%
frac-times49.7%
sqrt-unprod49.8%
add-sqr-sqrt49.8%
frac-2neg49.8%
metadata-eval49.8%
distribute-frac-neg249.8%
Applied egg-rr49.8%
add-sqr-sqrt0.0%
sqrt-unprod74.5%
frac-times74.5%
metadata-eval74.5%
metadata-eval74.5%
frac-times74.5%
sqrt-unprod96.4%
add-sqr-sqrt96.5%
clear-num96.5%
div-inv96.6%
metadata-eval96.6%
inv-pow96.6%
Applied egg-rr96.6%
Final simplification96.3%
(FPCore (x y) :precision binary64 (if (or (<= y -1.32e+64) (not (<= y 6e+85))) (- 1.0 (/ 0.3333333333333333 (/ (sqrt x) y))) (- 1.0 (pow (* x 9.0) -1.0))))
double code(double x, double y) {
double tmp;
if ((y <= -1.32e+64) || !(y <= 6e+85)) {
tmp = 1.0 - (0.3333333333333333 / (sqrt(x) / y));
} 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.32d+64)) .or. (.not. (y <= 6d+85))) then
tmp = 1.0d0 - (0.3333333333333333d0 / (sqrt(x) / y))
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.32e+64) || !(y <= 6e+85)) {
tmp = 1.0 - (0.3333333333333333 / (Math.sqrt(x) / y));
} else {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -1.32e+64) or not (y <= 6e+85): tmp = 1.0 - (0.3333333333333333 / (math.sqrt(x) / y)) else: tmp = 1.0 - math.pow((x * 9.0), -1.0) return tmp
function code(x, y) tmp = 0.0 if ((y <= -1.32e+64) || !(y <= 6e+85)) tmp = Float64(1.0 - Float64(0.3333333333333333 / Float64(sqrt(x) / y))); 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.32e+64) || ~((y <= 6e+85))) tmp = 1.0 - (0.3333333333333333 / (sqrt(x) / y)); else tmp = 1.0 - ((x * 9.0) ^ -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -1.32e+64], N[Not[LessEqual[y, 6e+85]], $MachinePrecision]], N[(1.0 - N[(0.3333333333333333 / N[(N[Sqrt[x], $MachinePrecision] / y), $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.32 \cdot 10^{+64} \lor \neg \left(y \leq 6 \cdot 10^{+85}\right):\\
\;\;\;\;1 - \frac{0.3333333333333333}{\frac{\sqrt{x}}{y}}\\
\mathbf{else}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\end{array}
\end{array}
if y < -1.3200000000000001e64 or 6.0000000000000001e85 < y Initial program 99.5%
Taylor expanded in x around inf 95.7%
*-commutative95.7%
sqrt-div95.6%
metadata-eval95.6%
un-div-inv95.7%
Applied egg-rr95.7%
clear-num95.6%
div-inv95.7%
Applied egg-rr95.7%
if -1.3200000000000001e64 < y < 6.0000000000000001e85Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.5%
add-sqr-sqrt0.0%
sqrt-unprod49.7%
frac-times49.7%
metadata-eval49.7%
metadata-eval49.7%
frac-times49.7%
sqrt-unprod49.8%
add-sqr-sqrt49.8%
frac-2neg49.8%
metadata-eval49.8%
distribute-frac-neg249.8%
Applied egg-rr49.8%
add-sqr-sqrt0.0%
sqrt-unprod74.5%
frac-times74.5%
metadata-eval74.5%
metadata-eval74.5%
frac-times74.5%
sqrt-unprod96.4%
add-sqr-sqrt96.5%
clear-num96.5%
div-inv96.6%
metadata-eval96.6%
inv-pow96.6%
Applied egg-rr96.6%
Final simplification96.3%
(FPCore (x y)
:precision binary64
(if (<= y -8.8e+69)
(/ (/ y (sqrt x)) -3.0)
(if (<= y 5.2e+91)
(+ 1.0 (/ -0.1111111111111111 x))
(* (* y -0.3333333333333333) (sqrt (/ 1.0 x))))))
double code(double x, double y) {
double tmp;
if (y <= -8.8e+69) {
tmp = (y / sqrt(x)) / -3.0;
} else if (y <= 5.2e+91) {
tmp = 1.0 + (-0.1111111111111111 / x);
} else {
tmp = (y * -0.3333333333333333) * sqrt((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 <= (-8.8d+69)) then
tmp = (y / sqrt(x)) / (-3.0d0)
else if (y <= 5.2d+91) then
tmp = 1.0d0 + ((-0.1111111111111111d0) / x)
else
tmp = (y * (-0.3333333333333333d0)) * sqrt((1.0d0 / x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -8.8e+69) {
tmp = (y / Math.sqrt(x)) / -3.0;
} else if (y <= 5.2e+91) {
tmp = 1.0 + (-0.1111111111111111 / x);
} else {
tmp = (y * -0.3333333333333333) * Math.sqrt((1.0 / x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -8.8e+69: tmp = (y / math.sqrt(x)) / -3.0 elif y <= 5.2e+91: tmp = 1.0 + (-0.1111111111111111 / x) else: tmp = (y * -0.3333333333333333) * math.sqrt((1.0 / x)) return tmp
function code(x, y) tmp = 0.0 if (y <= -8.8e+69) tmp = Float64(Float64(y / sqrt(x)) / -3.0); elseif (y <= 5.2e+91) tmp = Float64(1.0 + Float64(-0.1111111111111111 / x)); else tmp = Float64(Float64(y * -0.3333333333333333) * sqrt(Float64(1.0 / x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -8.8e+69) tmp = (y / sqrt(x)) / -3.0; elseif (y <= 5.2e+91) tmp = 1.0 + (-0.1111111111111111 / x); else tmp = (y * -0.3333333333333333) * sqrt((1.0 / x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -8.8e+69], N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / -3.0), $MachinePrecision], If[LessEqual[y, 5.2e+91], N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision], N[(N[(y * -0.3333333333333333), $MachinePrecision] * N[Sqrt[N[(1.0 / x), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.8 \cdot 10^{+69}:\\
\;\;\;\;\frac{\frac{y}{\sqrt{x}}}{-3}\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+91}:\\
\;\;\;\;1 + \frac{-0.1111111111111111}{x}\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot -0.3333333333333333\right) \cdot \sqrt{\frac{1}{x}}\\
\end{array}
\end{array}
if y < -8.8000000000000006e69Initial program 99.6%
*-commutative99.6%
metadata-eval99.6%
sqrt-prod99.7%
pow1/299.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
Taylor expanded in y around inf 91.9%
metadata-eval91.9%
distribute-lft-neg-in91.9%
*-commutative91.9%
distribute-lft-neg-in91.9%
unpow1/291.9%
rem-exp-log87.6%
exp-neg87.6%
exp-prod87.6%
distribute-lft-neg-out87.6%
exp-neg87.6%
exp-to-pow91.9%
unpow1/291.9%
unpow-191.9%
distribute-lft-neg-in91.9%
associate-*r*91.9%
unpow-191.9%
associate-*l/92.1%
associate-*r/92.1%
associate-*r/92.0%
Simplified92.1%
div-inv91.9%
pow1/291.9%
pow-flip92.1%
metadata-eval92.1%
associate-*l*92.1%
*-commutative92.1%
*-commutative92.1%
*-commutative92.1%
metadata-eval92.1%
pow-flip92.0%
pow1/292.0%
div-inv92.0%
Applied egg-rr92.0%
*-commutative92.0%
clear-num91.9%
un-div-inv91.9%
div-inv92.1%
metadata-eval92.1%
Applied egg-rr92.1%
associate-/r*92.2%
Simplified92.2%
if -8.8000000000000006e69 < y < 5.2000000000000001e91Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.0%
if 5.2000000000000001e91 < y Initial program 99.5%
*-commutative99.5%
metadata-eval99.5%
sqrt-prod99.6%
pow1/299.6%
Applied egg-rr99.6%
unpow1/299.6%
Simplified99.6%
Taylor expanded in y around inf 92.4%
*-commutative92.4%
associate-*l*92.5%
Simplified92.5%
Final simplification94.6%
(FPCore (x y)
:precision binary64
(if (<= y -1.45e+77)
(/ (/ y (sqrt x)) -3.0)
(if (<= y 6e+86)
(- 1.0 (pow (* x 9.0) -1.0))
(* (* y -0.3333333333333333) (sqrt (/ 1.0 x))))))
double code(double x, double y) {
double tmp;
if (y <= -1.45e+77) {
tmp = (y / sqrt(x)) / -3.0;
} else if (y <= 6e+86) {
tmp = 1.0 - pow((x * 9.0), -1.0);
} else {
tmp = (y * -0.3333333333333333) * sqrt((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 <= (-1.45d+77)) then
tmp = (y / sqrt(x)) / (-3.0d0)
else if (y <= 6d+86) then
tmp = 1.0d0 - ((x * 9.0d0) ** (-1.0d0))
else
tmp = (y * (-0.3333333333333333d0)) * sqrt((1.0d0 / x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.45e+77) {
tmp = (y / Math.sqrt(x)) / -3.0;
} else if (y <= 6e+86) {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
} else {
tmp = (y * -0.3333333333333333) * Math.sqrt((1.0 / x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.45e+77: tmp = (y / math.sqrt(x)) / -3.0 elif y <= 6e+86: tmp = 1.0 - math.pow((x * 9.0), -1.0) else: tmp = (y * -0.3333333333333333) * math.sqrt((1.0 / x)) return tmp
function code(x, y) tmp = 0.0 if (y <= -1.45e+77) tmp = Float64(Float64(y / sqrt(x)) / -3.0); elseif (y <= 6e+86) tmp = Float64(1.0 - (Float64(x * 9.0) ^ -1.0)); else tmp = Float64(Float64(y * -0.3333333333333333) * sqrt(Float64(1.0 / x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.45e+77) tmp = (y / sqrt(x)) / -3.0; elseif (y <= 6e+86) tmp = 1.0 - ((x * 9.0) ^ -1.0); else tmp = (y * -0.3333333333333333) * sqrt((1.0 / x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.45e+77], N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / -3.0), $MachinePrecision], If[LessEqual[y, 6e+86], N[(1.0 - N[Power[N[(x * 9.0), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision], N[(N[(y * -0.3333333333333333), $MachinePrecision] * N[Sqrt[N[(1.0 / x), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{+77}:\\
\;\;\;\;\frac{\frac{y}{\sqrt{x}}}{-3}\\
\mathbf{elif}\;y \leq 6 \cdot 10^{+86}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot -0.3333333333333333\right) \cdot \sqrt{\frac{1}{x}}\\
\end{array}
\end{array}
if y < -1.4500000000000001e77Initial program 99.6%
*-commutative99.6%
metadata-eval99.6%
sqrt-prod99.7%
pow1/299.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
Taylor expanded in y around inf 91.9%
metadata-eval91.9%
distribute-lft-neg-in91.9%
*-commutative91.9%
distribute-lft-neg-in91.9%
unpow1/291.9%
rem-exp-log87.6%
exp-neg87.6%
exp-prod87.6%
distribute-lft-neg-out87.6%
exp-neg87.6%
exp-to-pow91.9%
unpow1/291.9%
unpow-191.9%
distribute-lft-neg-in91.9%
associate-*r*91.9%
unpow-191.9%
associate-*l/92.1%
associate-*r/92.1%
associate-*r/92.0%
Simplified92.1%
div-inv91.9%
pow1/291.9%
pow-flip92.1%
metadata-eval92.1%
associate-*l*92.1%
*-commutative92.1%
*-commutative92.1%
*-commutative92.1%
metadata-eval92.1%
pow-flip92.0%
pow1/292.0%
div-inv92.0%
Applied egg-rr92.0%
*-commutative92.0%
clear-num91.9%
un-div-inv91.9%
div-inv92.1%
metadata-eval92.1%
Applied egg-rr92.1%
associate-/r*92.2%
Simplified92.2%
if -1.4500000000000001e77 < y < 5.99999999999999954e86Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.0%
add-sqr-sqrt0.0%
sqrt-unprod49.8%
frac-times49.8%
metadata-eval49.8%
metadata-eval49.8%
frac-times49.8%
sqrt-unprod49.8%
add-sqr-sqrt49.8%
frac-2neg49.8%
metadata-eval49.8%
distribute-frac-neg249.8%
Applied egg-rr49.8%
add-sqr-sqrt0.0%
sqrt-unprod74.2%
frac-times74.3%
metadata-eval74.3%
metadata-eval74.3%
frac-times74.2%
sqrt-unprod95.9%
add-sqr-sqrt96.0%
clear-num96.0%
div-inv96.1%
metadata-eval96.1%
inv-pow96.1%
Applied egg-rr96.1%
if 5.99999999999999954e86 < y Initial program 99.5%
*-commutative99.5%
metadata-eval99.5%
sqrt-prod99.6%
pow1/299.6%
Applied egg-rr99.6%
unpow1/299.6%
Simplified99.6%
Taylor expanded in y around inf 92.4%
*-commutative92.4%
associate-*l*92.5%
Simplified92.5%
Final simplification94.7%
(FPCore (x y)
:precision binary64
(if (<= y -7.2e+63)
(- 1.0 (/ (* y 0.3333333333333333) (sqrt x)))
(if (<= y 1.1e+86)
(- 1.0 (pow (* x 9.0) -1.0))
(- 1.0 (/ 0.3333333333333333 (/ (sqrt x) y))))))
double code(double x, double y) {
double tmp;
if (y <= -7.2e+63) {
tmp = 1.0 - ((y * 0.3333333333333333) / sqrt(x));
} else if (y <= 1.1e+86) {
tmp = 1.0 - pow((x * 9.0), -1.0);
} else {
tmp = 1.0 - (0.3333333333333333 / (sqrt(x) / y));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-7.2d+63)) then
tmp = 1.0d0 - ((y * 0.3333333333333333d0) / sqrt(x))
else if (y <= 1.1d+86) then
tmp = 1.0d0 - ((x * 9.0d0) ** (-1.0d0))
else
tmp = 1.0d0 - (0.3333333333333333d0 / (sqrt(x) / y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -7.2e+63) {
tmp = 1.0 - ((y * 0.3333333333333333) / Math.sqrt(x));
} else if (y <= 1.1e+86) {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
} else {
tmp = 1.0 - (0.3333333333333333 / (Math.sqrt(x) / y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -7.2e+63: tmp = 1.0 - ((y * 0.3333333333333333) / math.sqrt(x)) elif y <= 1.1e+86: tmp = 1.0 - math.pow((x * 9.0), -1.0) else: tmp = 1.0 - (0.3333333333333333 / (math.sqrt(x) / y)) return tmp
function code(x, y) tmp = 0.0 if (y <= -7.2e+63) tmp = Float64(1.0 - Float64(Float64(y * 0.3333333333333333) / sqrt(x))); elseif (y <= 1.1e+86) tmp = Float64(1.0 - (Float64(x * 9.0) ^ -1.0)); else tmp = Float64(1.0 - Float64(0.3333333333333333 / Float64(sqrt(x) / y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -7.2e+63) tmp = 1.0 - ((y * 0.3333333333333333) / sqrt(x)); elseif (y <= 1.1e+86) tmp = 1.0 - ((x * 9.0) ^ -1.0); else tmp = 1.0 - (0.3333333333333333 / (sqrt(x) / y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -7.2e+63], N[(1.0 - N[(N[(y * 0.3333333333333333), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e+86], N[(1.0 - N[Power[N[(x * 9.0), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision], N[(1.0 - N[(0.3333333333333333 / N[(N[Sqrt[x], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.2 \cdot 10^{+63}:\\
\;\;\;\;1 - \frac{y \cdot 0.3333333333333333}{\sqrt{x}}\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+86}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{0.3333333333333333}{\frac{\sqrt{x}}{y}}\\
\end{array}
\end{array}
if y < -7.19999999999999998e63Initial program 99.6%
Taylor expanded in x around inf 95.6%
metadata-eval95.6%
*-commutative95.6%
sqrt-div95.6%
metadata-eval95.6%
un-div-inv95.6%
times-frac95.9%
*-un-lft-identity95.9%
associate-/r*95.8%
div-inv95.8%
metadata-eval95.8%
Applied egg-rr95.8%
if -7.19999999999999998e63 < y < 1.10000000000000002e86Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.5%
add-sqr-sqrt0.0%
sqrt-unprod49.7%
frac-times49.7%
metadata-eval49.7%
metadata-eval49.7%
frac-times49.7%
sqrt-unprod49.8%
add-sqr-sqrt49.8%
frac-2neg49.8%
metadata-eval49.8%
distribute-frac-neg249.8%
Applied egg-rr49.8%
add-sqr-sqrt0.0%
sqrt-unprod74.5%
frac-times74.5%
metadata-eval74.5%
metadata-eval74.5%
frac-times74.5%
sqrt-unprod96.4%
add-sqr-sqrt96.5%
clear-num96.5%
div-inv96.6%
metadata-eval96.6%
inv-pow96.6%
Applied egg-rr96.6%
if 1.10000000000000002e86 < y Initial program 99.5%
Taylor expanded in x around inf 95.8%
*-commutative95.8%
sqrt-div95.7%
metadata-eval95.7%
un-div-inv95.8%
Applied egg-rr95.8%
clear-num95.9%
div-inv95.9%
Applied egg-rr95.9%
Final simplification96.3%
(FPCore (x y)
:precision binary64
(if (<= y -7.2e+63)
(- 1.0 (/ (/ y (sqrt x)) 3.0))
(if (<= y 3.4e+85)
(- 1.0 (pow (* x 9.0) -1.0))
(- 1.0 (/ 0.3333333333333333 (/ (sqrt x) y))))))
double code(double x, double y) {
double tmp;
if (y <= -7.2e+63) {
tmp = 1.0 - ((y / sqrt(x)) / 3.0);
} else if (y <= 3.4e+85) {
tmp = 1.0 - pow((x * 9.0), -1.0);
} else {
tmp = 1.0 - (0.3333333333333333 / (sqrt(x) / y));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-7.2d+63)) then
tmp = 1.0d0 - ((y / sqrt(x)) / 3.0d0)
else if (y <= 3.4d+85) then
tmp = 1.0d0 - ((x * 9.0d0) ** (-1.0d0))
else
tmp = 1.0d0 - (0.3333333333333333d0 / (sqrt(x) / y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -7.2e+63) {
tmp = 1.0 - ((y / Math.sqrt(x)) / 3.0);
} else if (y <= 3.4e+85) {
tmp = 1.0 - Math.pow((x * 9.0), -1.0);
} else {
tmp = 1.0 - (0.3333333333333333 / (Math.sqrt(x) / y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -7.2e+63: tmp = 1.0 - ((y / math.sqrt(x)) / 3.0) elif y <= 3.4e+85: tmp = 1.0 - math.pow((x * 9.0), -1.0) else: tmp = 1.0 - (0.3333333333333333 / (math.sqrt(x) / y)) return tmp
function code(x, y) tmp = 0.0 if (y <= -7.2e+63) tmp = Float64(1.0 - Float64(Float64(y / sqrt(x)) / 3.0)); elseif (y <= 3.4e+85) tmp = Float64(1.0 - (Float64(x * 9.0) ^ -1.0)); else tmp = Float64(1.0 - Float64(0.3333333333333333 / Float64(sqrt(x) / y))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -7.2e+63) tmp = 1.0 - ((y / sqrt(x)) / 3.0); elseif (y <= 3.4e+85) tmp = 1.0 - ((x * 9.0) ^ -1.0); else tmp = 1.0 - (0.3333333333333333 / (sqrt(x) / y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -7.2e+63], N[(1.0 - N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+85], N[(1.0 - N[Power[N[(x * 9.0), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision], N[(1.0 - N[(0.3333333333333333 / N[(N[Sqrt[x], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.2 \cdot 10^{+63}:\\
\;\;\;\;1 - \frac{\frac{y}{\sqrt{x}}}{3}\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+85}:\\
\;\;\;\;1 - {\left(x \cdot 9\right)}^{-1}\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{0.3333333333333333}{\frac{\sqrt{x}}{y}}\\
\end{array}
\end{array}
if y < -7.19999999999999998e63Initial program 99.6%
Taylor expanded in x around inf 95.6%
*-commutative95.6%
sqrt-div95.6%
metadata-eval95.6%
un-div-inv95.6%
Applied egg-rr95.6%
clear-num95.4%
div-inv95.6%
metadata-eval95.6%
associate-/r*95.5%
*-commutative95.5%
associate-/r*95.7%
clear-num95.9%
Applied egg-rr95.9%
if -7.19999999999999998e63 < y < 3.4000000000000003e85Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.5%
add-sqr-sqrt0.0%
sqrt-unprod49.7%
frac-times49.7%
metadata-eval49.7%
metadata-eval49.7%
frac-times49.7%
sqrt-unprod49.8%
add-sqr-sqrt49.8%
frac-2neg49.8%
metadata-eval49.8%
distribute-frac-neg249.8%
Applied egg-rr49.8%
add-sqr-sqrt0.0%
sqrt-unprod74.5%
frac-times74.5%
metadata-eval74.5%
metadata-eval74.5%
frac-times74.5%
sqrt-unprod96.4%
add-sqr-sqrt96.5%
clear-num96.5%
div-inv96.6%
metadata-eval96.6%
inv-pow96.6%
Applied egg-rr96.6%
if 3.4000000000000003e85 < y Initial program 99.5%
Taylor expanded in x around inf 95.8%
*-commutative95.8%
sqrt-div95.7%
metadata-eval95.7%
un-div-inv95.8%
Applied egg-rr95.8%
clear-num95.9%
div-inv95.9%
Applied egg-rr95.9%
Final simplification96.3%
(FPCore (x y) :precision binary64 (if (or (<= y -8.8e+80) (not (<= y 8.6e+85))) (* -0.3333333333333333 (/ y (sqrt x))) (+ 1.0 (/ -0.1111111111111111 x))))
double code(double x, double y) {
double tmp;
if ((y <= -8.8e+80) || !(y <= 8.6e+85)) {
tmp = -0.3333333333333333 * (y / sqrt(x));
} else {
tmp = 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 <= (-8.8d+80)) .or. (.not. (y <= 8.6d+85))) then
tmp = (-0.3333333333333333d0) * (y / sqrt(x))
else
tmp = 1.0d0 + ((-0.1111111111111111d0) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -8.8e+80) || !(y <= 8.6e+85)) {
tmp = -0.3333333333333333 * (y / Math.sqrt(x));
} else {
tmp = 1.0 + (-0.1111111111111111 / x);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -8.8e+80) or not (y <= 8.6e+85): tmp = -0.3333333333333333 * (y / math.sqrt(x)) else: tmp = 1.0 + (-0.1111111111111111 / x) return tmp
function code(x, y) tmp = 0.0 if ((y <= -8.8e+80) || !(y <= 8.6e+85)) tmp = Float64(-0.3333333333333333 * Float64(y / sqrt(x))); else tmp = Float64(1.0 + Float64(-0.1111111111111111 / x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -8.8e+80) || ~((y <= 8.6e+85))) tmp = -0.3333333333333333 * (y / sqrt(x)); else tmp = 1.0 + (-0.1111111111111111 / x); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -8.8e+80], N[Not[LessEqual[y, 8.6e+85]], $MachinePrecision]], N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.8 \cdot 10^{+80} \lor \neg \left(y \leq 8.6 \cdot 10^{+85}\right):\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{-0.1111111111111111}{x}\\
\end{array}
\end{array}
if y < -8.80000000000000011e80 or 8.5999999999999998e85 < y Initial program 99.5%
*-commutative99.5%
metadata-eval99.5%
sqrt-prod99.7%
pow1/299.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
Taylor expanded in y around inf 92.1%
metadata-eval92.1%
distribute-lft-neg-in92.1%
*-commutative92.1%
distribute-lft-neg-in92.1%
unpow1/292.1%
rem-exp-log87.9%
exp-neg87.9%
exp-prod87.9%
distribute-lft-neg-out87.9%
exp-neg87.9%
exp-to-pow92.1%
unpow1/292.1%
unpow-192.1%
distribute-lft-neg-in92.1%
associate-*r*92.1%
unpow-192.1%
associate-*l/92.1%
associate-*r/92.1%
associate-*r/92.1%
Simplified92.1%
*-commutative92.1%
associate-/l*92.1%
Applied egg-rr92.1%
if -8.80000000000000011e80 < y < 8.5999999999999998e85Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.0%
Final simplification94.6%
(FPCore (x y) :precision binary64 (if (or (<= y -9.5e+79) (not (<= y 5.4e+85))) (/ (/ y (sqrt x)) -3.0) (+ 1.0 (/ -0.1111111111111111 x))))
double code(double x, double y) {
double tmp;
if ((y <= -9.5e+79) || !(y <= 5.4e+85)) {
tmp = (y / sqrt(x)) / -3.0;
} else {
tmp = 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 <= (-9.5d+79)) .or. (.not. (y <= 5.4d+85))) then
tmp = (y / sqrt(x)) / (-3.0d0)
else
tmp = 1.0d0 + ((-0.1111111111111111d0) / x)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((y <= -9.5e+79) || !(y <= 5.4e+85)) {
tmp = (y / Math.sqrt(x)) / -3.0;
} else {
tmp = 1.0 + (-0.1111111111111111 / x);
}
return tmp;
}
def code(x, y): tmp = 0 if (y <= -9.5e+79) or not (y <= 5.4e+85): tmp = (y / math.sqrt(x)) / -3.0 else: tmp = 1.0 + (-0.1111111111111111 / x) return tmp
function code(x, y) tmp = 0.0 if ((y <= -9.5e+79) || !(y <= 5.4e+85)) tmp = Float64(Float64(y / sqrt(x)) / -3.0); else tmp = Float64(1.0 + Float64(-0.1111111111111111 / x)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if ((y <= -9.5e+79) || ~((y <= 5.4e+85))) tmp = (y / sqrt(x)) / -3.0; else tmp = 1.0 + (-0.1111111111111111 / x); end tmp_2 = tmp; end
code[x_, y_] := If[Or[LessEqual[y, -9.5e+79], N[Not[LessEqual[y, 5.4e+85]], $MachinePrecision]], N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / -3.0), $MachinePrecision], N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.5 \cdot 10^{+79} \lor \neg \left(y \leq 5.4 \cdot 10^{+85}\right):\\
\;\;\;\;\frac{\frac{y}{\sqrt{x}}}{-3}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{-0.1111111111111111}{x}\\
\end{array}
\end{array}
if y < -9.49999999999999994e79 or 5.39999999999999966e85 < y Initial program 99.5%
*-commutative99.5%
metadata-eval99.5%
sqrt-prod99.7%
pow1/299.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
Taylor expanded in y around inf 92.1%
metadata-eval92.1%
distribute-lft-neg-in92.1%
*-commutative92.1%
distribute-lft-neg-in92.1%
unpow1/292.1%
rem-exp-log87.9%
exp-neg87.9%
exp-prod87.9%
distribute-lft-neg-out87.9%
exp-neg87.9%
exp-to-pow92.1%
unpow1/292.1%
unpow-192.1%
distribute-lft-neg-in92.1%
associate-*r*92.1%
unpow-192.1%
associate-*l/92.1%
associate-*r/92.1%
associate-*r/92.1%
Simplified92.1%
div-inv92.1%
pow1/292.1%
pow-flip92.2%
metadata-eval92.2%
associate-*l*92.2%
*-commutative92.2%
*-commutative92.2%
*-commutative92.2%
metadata-eval92.2%
pow-flip92.1%
pow1/292.1%
div-inv92.1%
Applied egg-rr92.1%
*-commutative92.1%
clear-num92.0%
un-div-inv92.1%
div-inv92.2%
metadata-eval92.2%
Applied egg-rr92.2%
associate-/r*92.3%
Simplified92.3%
if -9.49999999999999994e79 < y < 5.39999999999999966e85Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.0%
Final simplification94.6%
(FPCore (x y)
:precision binary64
(if (<= y -6.6e+79)
(* y (/ -0.3333333333333333 (sqrt x)))
(if (<= y 1.9e+91)
(+ 1.0 (/ -0.1111111111111111 x))
(* -0.3333333333333333 (/ y (sqrt x))))))
double code(double x, double y) {
double tmp;
if (y <= -6.6e+79) {
tmp = y * (-0.3333333333333333 / sqrt(x));
} else if (y <= 1.9e+91) {
tmp = 1.0 + (-0.1111111111111111 / 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 <= (-6.6d+79)) then
tmp = y * ((-0.3333333333333333d0) / sqrt(x))
else if (y <= 1.9d+91) then
tmp = 1.0d0 + ((-0.1111111111111111d0) / 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 <= -6.6e+79) {
tmp = y * (-0.3333333333333333 / Math.sqrt(x));
} else if (y <= 1.9e+91) {
tmp = 1.0 + (-0.1111111111111111 / x);
} else {
tmp = -0.3333333333333333 * (y / Math.sqrt(x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -6.6e+79: tmp = y * (-0.3333333333333333 / math.sqrt(x)) elif y <= 1.9e+91: tmp = 1.0 + (-0.1111111111111111 / x) else: tmp = -0.3333333333333333 * (y / math.sqrt(x)) return tmp
function code(x, y) tmp = 0.0 if (y <= -6.6e+79) tmp = Float64(y * Float64(-0.3333333333333333 / sqrt(x))); elseif (y <= 1.9e+91) tmp = Float64(1.0 + Float64(-0.1111111111111111 / 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 <= -6.6e+79) tmp = y * (-0.3333333333333333 / sqrt(x)); elseif (y <= 1.9e+91) tmp = 1.0 + (-0.1111111111111111 / x); else tmp = -0.3333333333333333 * (y / sqrt(x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -6.6e+79], N[(y * N[(-0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e+91], N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision], N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.6 \cdot 10^{+79}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+91}:\\
\;\;\;\;1 + \frac{-0.1111111111111111}{x}\\
\mathbf{else}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -6.6000000000000003e79Initial program 99.6%
*-commutative99.6%
metadata-eval99.6%
sqrt-prod99.7%
pow1/299.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
Taylor expanded in y around inf 91.9%
metadata-eval91.9%
distribute-lft-neg-in91.9%
*-commutative91.9%
distribute-lft-neg-in91.9%
unpow1/291.9%
rem-exp-log87.6%
exp-neg87.6%
exp-prod87.6%
distribute-lft-neg-out87.6%
exp-neg87.6%
exp-to-pow91.9%
unpow1/291.9%
unpow-191.9%
distribute-lft-neg-in91.9%
associate-*r*91.9%
unpow-191.9%
associate-*l/92.1%
associate-*r/92.1%
associate-*r/92.0%
Simplified92.1%
div-inv91.9%
pow1/291.9%
pow-flip92.1%
metadata-eval92.1%
associate-*l*92.1%
*-commutative92.1%
*-commutative92.1%
*-commutative92.1%
metadata-eval92.1%
pow-flip92.0%
pow1/292.0%
div-inv92.0%
Applied egg-rr92.0%
if -6.6000000000000003e79 < y < 1.8999999999999999e91Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.0%
if 1.8999999999999999e91 < y Initial program 99.5%
*-commutative99.5%
metadata-eval99.5%
sqrt-prod99.6%
pow1/299.6%
Applied egg-rr99.6%
unpow1/299.6%
Simplified99.6%
Taylor expanded in y around inf 92.4%
metadata-eval92.4%
distribute-lft-neg-in92.4%
*-commutative92.4%
distribute-lft-neg-in92.4%
unpow1/292.4%
rem-exp-log88.3%
exp-neg88.3%
exp-prod88.3%
distribute-lft-neg-out88.3%
exp-neg88.3%
exp-to-pow92.3%
unpow1/292.3%
unpow-192.3%
distribute-lft-neg-in92.3%
associate-*r*92.3%
unpow-192.3%
associate-*l/92.2%
associate-*r/92.2%
associate-*r/92.2%
Simplified92.2%
*-commutative92.2%
associate-/l*92.4%
Applied egg-rr92.4%
Final simplification94.6%
(FPCore (x y)
:precision binary64
(if (<= y -7.5e+75)
(/ y (* (sqrt x) -3.0))
(if (<= y 1e+89)
(+ 1.0 (/ -0.1111111111111111 x))
(* -0.3333333333333333 (/ y (sqrt x))))))
double code(double x, double y) {
double tmp;
if (y <= -7.5e+75) {
tmp = y / (sqrt(x) * -3.0);
} else if (y <= 1e+89) {
tmp = 1.0 + (-0.1111111111111111 / 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 <= (-7.5d+75)) then
tmp = y / (sqrt(x) * (-3.0d0))
else if (y <= 1d+89) then
tmp = 1.0d0 + ((-0.1111111111111111d0) / 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 <= -7.5e+75) {
tmp = y / (Math.sqrt(x) * -3.0);
} else if (y <= 1e+89) {
tmp = 1.0 + (-0.1111111111111111 / x);
} else {
tmp = -0.3333333333333333 * (y / Math.sqrt(x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -7.5e+75: tmp = y / (math.sqrt(x) * -3.0) elif y <= 1e+89: tmp = 1.0 + (-0.1111111111111111 / x) else: tmp = -0.3333333333333333 * (y / math.sqrt(x)) return tmp
function code(x, y) tmp = 0.0 if (y <= -7.5e+75) tmp = Float64(y / Float64(sqrt(x) * -3.0)); elseif (y <= 1e+89) tmp = Float64(1.0 + Float64(-0.1111111111111111 / 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 <= -7.5e+75) tmp = y / (sqrt(x) * -3.0); elseif (y <= 1e+89) tmp = 1.0 + (-0.1111111111111111 / x); else tmp = -0.3333333333333333 * (y / sqrt(x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -7.5e+75], N[(y / N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e+89], N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision], N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{+75}:\\
\;\;\;\;\frac{y}{\sqrt{x} \cdot -3}\\
\mathbf{elif}\;y \leq 10^{+89}:\\
\;\;\;\;1 + \frac{-0.1111111111111111}{x}\\
\mathbf{else}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -7.4999999999999995e75Initial program 99.6%
*-commutative99.6%
metadata-eval99.6%
sqrt-prod99.7%
pow1/299.7%
Applied egg-rr99.7%
unpow1/299.7%
Simplified99.7%
Taylor expanded in y around inf 91.9%
metadata-eval91.9%
distribute-lft-neg-in91.9%
*-commutative91.9%
distribute-lft-neg-in91.9%
unpow1/291.9%
rem-exp-log87.6%
exp-neg87.6%
exp-prod87.6%
distribute-lft-neg-out87.6%
exp-neg87.6%
exp-to-pow91.9%
unpow1/291.9%
unpow-191.9%
distribute-lft-neg-in91.9%
associate-*r*91.9%
unpow-191.9%
associate-*l/92.1%
associate-*r/92.1%
associate-*r/92.0%
Simplified92.1%
div-inv91.9%
pow1/291.9%
pow-flip92.1%
metadata-eval92.1%
associate-*l*92.1%
*-commutative92.1%
*-commutative92.1%
*-commutative92.1%
metadata-eval92.1%
pow-flip92.0%
pow1/292.0%
div-inv92.0%
Applied egg-rr92.0%
*-commutative92.0%
clear-num91.9%
un-div-inv91.9%
div-inv92.1%
metadata-eval92.1%
Applied egg-rr92.1%
if -7.4999999999999995e75 < y < 9.99999999999999995e88Initial 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.8%
fma-neg99.8%
associate-/r*99.8%
metadata-eval99.8%
*-commutative99.8%
associate-/r*99.7%
distribute-neg-frac99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 96.0%
if 9.99999999999999995e88 < y Initial program 99.5%
*-commutative99.5%
metadata-eval99.5%
sqrt-prod99.6%
pow1/299.6%
Applied egg-rr99.6%
unpow1/299.6%
Simplified99.6%
Taylor expanded in y around inf 92.4%
metadata-eval92.4%
distribute-lft-neg-in92.4%
*-commutative92.4%
distribute-lft-neg-in92.4%
unpow1/292.4%
rem-exp-log88.3%
exp-neg88.3%
exp-prod88.3%
distribute-lft-neg-out88.3%
exp-neg88.3%
exp-to-pow92.3%
unpow1/292.3%
unpow-192.3%
distribute-lft-neg-in92.3%
associate-*r*92.3%
unpow-192.3%
associate-*l/92.2%
associate-*r/92.2%
associate-*r/92.2%
Simplified92.2%
*-commutative92.2%
associate-/l*92.4%
Applied egg-rr92.4%
Final simplification94.6%
(FPCore (x y) :precision binary64 (if (<= x 25000.0) (/ (- (* 0.3333333333333333 (* y (- (sqrt x)))) 0.1111111111111111) x) (- 1.0 (* y (/ (pow x -0.5) 3.0)))))
double code(double x, double y) {
double tmp;
if (x <= 25000.0) {
tmp = ((0.3333333333333333 * (y * -sqrt(x))) - 0.1111111111111111) / x;
} else {
tmp = 1.0 - (y * (pow(x, -0.5) / 3.0));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 25000.0d0) then
tmp = ((0.3333333333333333d0 * (y * -sqrt(x))) - 0.1111111111111111d0) / x
else
tmp = 1.0d0 - (y * ((x ** (-0.5d0)) / 3.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 25000.0) {
tmp = ((0.3333333333333333 * (y * -Math.sqrt(x))) - 0.1111111111111111) / x;
} else {
tmp = 1.0 - (y * (Math.pow(x, -0.5) / 3.0));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 25000.0: tmp = ((0.3333333333333333 * (y * -math.sqrt(x))) - 0.1111111111111111) / x else: tmp = 1.0 - (y * (math.pow(x, -0.5) / 3.0)) return tmp
function code(x, y) tmp = 0.0 if (x <= 25000.0) tmp = Float64(Float64(Float64(0.3333333333333333 * Float64(y * Float64(-sqrt(x)))) - 0.1111111111111111) / x); else tmp = Float64(1.0 - Float64(y * Float64((x ^ -0.5) / 3.0))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 25000.0) tmp = ((0.3333333333333333 * (y * -sqrt(x))) - 0.1111111111111111) / x; else tmp = 1.0 - (y * ((x ^ -0.5) / 3.0)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 25000.0], N[(N[(N[(0.3333333333333333 * N[(y * (-N[Sqrt[x], $MachinePrecision])), $MachinePrecision]), $MachinePrecision] - 0.1111111111111111), $MachinePrecision] / x), $MachinePrecision], N[(1.0 - N[(y * N[(N[Power[x, -0.5], $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 25000:\\
\;\;\;\;\frac{0.3333333333333333 \cdot \left(y \cdot \left(-\sqrt{x}\right)\right) - 0.1111111111111111}{x}\\
\mathbf{else}:\\
\;\;\;\;1 - y \cdot \frac{{x}^{-0.5}}{3}\\
\end{array}
\end{array}
if x < 25000Initial program 99.6%
Taylor expanded in x around 0 99.0%
mul-1-neg99.0%
*-commutative99.0%
Simplified99.0%
if 25000 < x Initial program 99.8%
Taylor expanded in x around inf 98.3%
metadata-eval98.3%
*-commutative98.3%
sqrt-div98.3%
metadata-eval98.3%
un-div-inv98.3%
times-frac98.4%
*-un-lft-identity98.4%
clear-num98.4%
*-un-lft-identity98.4%
times-frac98.3%
metadata-eval98.3%
Applied egg-rr98.3%
Taylor expanded in x around 0 98.2%
associate-*r*98.3%
*-commutative98.3%
associate-*r/98.4%
*-rgt-identity98.4%
associate-/l*98.3%
Simplified98.3%
associate-/r*98.3%
associate-/r/98.4%
pow1/298.4%
pow-flip98.4%
metadata-eval98.4%
Applied egg-rr98.4%
Final simplification98.7%
(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.7%
sub-neg99.7%
*-commutative99.7%
associate-/r*99.6%
metadata-eval99.6%
distribute-frac-neg99.6%
neg-mul-199.6%
times-frac99.6%
metadata-eval99.6%
Simplified99.6%
Final simplification99.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.7%
sub-neg99.7%
*-commutative99.7%
associate-/r*99.6%
metadata-eval99.6%
distribute-frac-neg99.6%
neg-mul-199.6%
times-frac99.6%
metadata-eval99.6%
Simplified99.6%
clear-num99.6%
un-div-inv99.6%
Applied egg-rr99.6%
associate-/r/99.6%
associate-*l/99.6%
Simplified99.6%
Final simplification99.6%
(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.7%
Taylor expanded in x around 0 99.6%
Final simplification99.6%
(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.7%
sub-neg99.7%
*-commutative99.7%
associate-/r*99.6%
metadata-eval99.6%
distribute-frac-neg99.6%
neg-mul-199.6%
times-frac99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 63.2%
Final simplification63.2%
(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.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.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 63.2%
Final simplification63.2%
(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 2024067
(FPCore (x y)
:name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, D"
:precision binary64
:alt
(- (- 1.0 (/ (/ 1.0 x) 9.0)) (/ y (* 3.0 (sqrt x))))
(- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))