
(FPCore (x y) :precision binary64 (* (* 3.0 (sqrt x)) (- (+ y (/ 1.0 (* x 9.0))) 1.0)))
double code(double x, double y) {
return (3.0 * sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (3.0d0 * sqrt(x)) * ((y + (1.0d0 / (x * 9.0d0))) - 1.0d0)
end function
public static double code(double x, double y) {
return (3.0 * Math.sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0);
}
def code(x, y): return (3.0 * math.sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0)
function code(x, y) return Float64(Float64(3.0 * sqrt(x)) * Float64(Float64(y + Float64(1.0 / Float64(x * 9.0))) - 1.0)) end
function tmp = code(x, y) tmp = (3.0 * sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0); end
code[x_, y_] := N[(N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * N[(N[(y + N[(1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(3 \cdot \sqrt{x}\right) \cdot \left(\left(y + \frac{1}{x \cdot 9}\right) - 1\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (* (* 3.0 (sqrt x)) (- (+ y (/ 1.0 (* x 9.0))) 1.0)))
double code(double x, double y) {
return (3.0 * sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (3.0d0 * sqrt(x)) * ((y + (1.0d0 / (x * 9.0d0))) - 1.0d0)
end function
public static double code(double x, double y) {
return (3.0 * Math.sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0);
}
def code(x, y): return (3.0 * math.sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0)
function code(x, y) return Float64(Float64(3.0 * sqrt(x)) * Float64(Float64(y + Float64(1.0 / Float64(x * 9.0))) - 1.0)) end
function tmp = code(x, y) tmp = (3.0 * sqrt(x)) * ((y + (1.0 / (x * 9.0))) - 1.0); end
code[x_, y_] := N[(N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * N[(N[(y + N[(1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(3 \cdot \sqrt{x}\right) \cdot \left(\left(y + \frac{1}{x \cdot 9}\right) - 1\right)
\end{array}
(FPCore (x y) :precision binary64 (* 3.0 (* (sqrt x) (+ y (+ (/ 0.1111111111111111 x) -1.0)))))
double code(double x, double y) {
return 3.0 * (sqrt(x) * (y + ((0.1111111111111111 / x) + -1.0)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 3.0d0 * (sqrt(x) * (y + ((0.1111111111111111d0 / x) + (-1.0d0))))
end function
public static double code(double x, double y) {
return 3.0 * (Math.sqrt(x) * (y + ((0.1111111111111111 / x) + -1.0)));
}
def code(x, y): return 3.0 * (math.sqrt(x) * (y + ((0.1111111111111111 / x) + -1.0)))
function code(x, y) return Float64(3.0 * Float64(sqrt(x) * Float64(y + Float64(Float64(0.1111111111111111 / x) + -1.0)))) end
function tmp = code(x, y) tmp = 3.0 * (sqrt(x) * (y + ((0.1111111111111111 / x) + -1.0))); end
code[x_, y_] := N[(3.0 * N[(N[Sqrt[x], $MachinePrecision] * N[(y + N[(N[(0.1111111111111111 / x), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
3 \cdot \left(\sqrt{x} \cdot \left(y + \left(\frac{0.1111111111111111}{x} + -1\right)\right)\right)
\end{array}
Initial program 99.5%
associate-*l*99.6%
associate--l+99.6%
sub-neg99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Final simplification99.6%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* (sqrt x) -3.0)) (t_1 (* 3.0 (* (sqrt x) y))))
(if (<= y -270000000000.0)
t_1
(if (<= y -2.65e-76)
(pow (* x 9.0) -0.5)
(if (<= y 3.2e-278)
t_0
(if (<= y 3.2e-197)
(sqrt (/ 0.1111111111111111 x))
(if (<= y 1.0) t_0 t_1)))))))
double code(double x, double y) {
double t_0 = sqrt(x) * -3.0;
double t_1 = 3.0 * (sqrt(x) * y);
double tmp;
if (y <= -270000000000.0) {
tmp = t_1;
} else if (y <= -2.65e-76) {
tmp = pow((x * 9.0), -0.5);
} else if (y <= 3.2e-278) {
tmp = t_0;
} else if (y <= 3.2e-197) {
tmp = sqrt((0.1111111111111111 / x));
} else if (y <= 1.0) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = sqrt(x) * (-3.0d0)
t_1 = 3.0d0 * (sqrt(x) * y)
if (y <= (-270000000000.0d0)) then
tmp = t_1
else if (y <= (-2.65d-76)) then
tmp = (x * 9.0d0) ** (-0.5d0)
else if (y <= 3.2d-278) then
tmp = t_0
else if (y <= 3.2d-197) then
tmp = sqrt((0.1111111111111111d0 / x))
else if (y <= 1.0d0) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = Math.sqrt(x) * -3.0;
double t_1 = 3.0 * (Math.sqrt(x) * y);
double tmp;
if (y <= -270000000000.0) {
tmp = t_1;
} else if (y <= -2.65e-76) {
tmp = Math.pow((x * 9.0), -0.5);
} else if (y <= 3.2e-278) {
tmp = t_0;
} else if (y <= 3.2e-197) {
tmp = Math.sqrt((0.1111111111111111 / x));
} else if (y <= 1.0) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y): t_0 = math.sqrt(x) * -3.0 t_1 = 3.0 * (math.sqrt(x) * y) tmp = 0 if y <= -270000000000.0: tmp = t_1 elif y <= -2.65e-76: tmp = math.pow((x * 9.0), -0.5) elif y <= 3.2e-278: tmp = t_0 elif y <= 3.2e-197: tmp = math.sqrt((0.1111111111111111 / x)) elif y <= 1.0: tmp = t_0 else: tmp = t_1 return tmp
function code(x, y) t_0 = Float64(sqrt(x) * -3.0) t_1 = Float64(3.0 * Float64(sqrt(x) * y)) tmp = 0.0 if (y <= -270000000000.0) tmp = t_1; elseif (y <= -2.65e-76) tmp = Float64(x * 9.0) ^ -0.5; elseif (y <= 3.2e-278) tmp = t_0; elseif (y <= 3.2e-197) tmp = sqrt(Float64(0.1111111111111111 / x)); elseif (y <= 1.0) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y) t_0 = sqrt(x) * -3.0; t_1 = 3.0 * (sqrt(x) * y); tmp = 0.0; if (y <= -270000000000.0) tmp = t_1; elseif (y <= -2.65e-76) tmp = (x * 9.0) ^ -0.5; elseif (y <= 3.2e-278) tmp = t_0; elseif (y <= 3.2e-197) tmp = sqrt((0.1111111111111111 / x)); elseif (y <= 1.0) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]}, Block[{t$95$1 = N[(3.0 * N[(N[Sqrt[x], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -270000000000.0], t$95$1, If[LessEqual[y, -2.65e-76], N[Power[N[(x * 9.0), $MachinePrecision], -0.5], $MachinePrecision], If[LessEqual[y, 3.2e-278], t$95$0, If[LessEqual[y, 3.2e-197], N[Sqrt[N[(0.1111111111111111 / x), $MachinePrecision]], $MachinePrecision], If[LessEqual[y, 1.0], t$95$0, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sqrt{x} \cdot -3\\
t_1 := 3 \cdot \left(\sqrt{x} \cdot y\right)\\
\mathbf{if}\;y \leq -270000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -2.65 \cdot 10^{-76}:\\
\;\;\;\;{\left(x \cdot 9\right)}^{-0.5}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-278}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-197}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -2.7e11 or 1 < y Initial program 99.6%
associate-*l*99.6%
associate--l+99.6%
sub-neg99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around inf 80.9%
if -2.7e11 < y < -2.65e-76Initial program 99.4%
associate-*l*99.8%
associate--l+99.8%
sub-neg99.8%
*-commutative99.8%
associate-/r*99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Applied egg-rr33.4%
Simplified33.3%
Taylor expanded in x around 0 72.1%
clear-num72.1%
inv-pow72.1%
div-inv72.4%
metadata-eval72.4%
sqrt-pow172.3%
metadata-eval72.3%
Applied egg-rr72.3%
if -2.65e-76 < y < 3.20000000000000018e-278 or 3.1999999999999997e-197 < y < 1Initial program 99.5%
*-commutative99.5%
associate-*l*99.5%
sub-neg99.5%
+-commutative99.5%
distribute-lft-in99.5%
metadata-eval99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in x around inf 71.8%
Taylor expanded in y around 0 71.4%
*-commutative71.4%
Simplified71.4%
if 3.20000000000000018e-278 < y < 3.1999999999999997e-197Initial program 99.2%
associate-*l*99.4%
associate--l+99.4%
sub-neg99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
metadata-eval99.4%
Simplified99.4%
Applied egg-rr53.7%
Simplified54.0%
Taylor expanded in x around 0 76.4%
Final simplification76.4%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* (sqrt x) -3.0)))
(if (<= y -470000000.0)
(* (sqrt x) (* 3.0 y))
(if (<= y -2.8e-76)
(pow (* x 9.0) -0.5)
(if (<= y 2e-282)
t_0
(if (<= y 5.3e-196)
(sqrt (/ 0.1111111111111111 x))
(if (<= y 1.0) t_0 (* 3.0 (* (sqrt x) y)))))))))
double code(double x, double y) {
double t_0 = sqrt(x) * -3.0;
double tmp;
if (y <= -470000000.0) {
tmp = sqrt(x) * (3.0 * y);
} else if (y <= -2.8e-76) {
tmp = pow((x * 9.0), -0.5);
} else if (y <= 2e-282) {
tmp = t_0;
} else if (y <= 5.3e-196) {
tmp = sqrt((0.1111111111111111 / x));
} else if (y <= 1.0) {
tmp = t_0;
} else {
tmp = 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) :: t_0
real(8) :: tmp
t_0 = sqrt(x) * (-3.0d0)
if (y <= (-470000000.0d0)) then
tmp = sqrt(x) * (3.0d0 * y)
else if (y <= (-2.8d-76)) then
tmp = (x * 9.0d0) ** (-0.5d0)
else if (y <= 2d-282) then
tmp = t_0
else if (y <= 5.3d-196) then
tmp = sqrt((0.1111111111111111d0 / x))
else if (y <= 1.0d0) then
tmp = t_0
else
tmp = 3.0d0 * (sqrt(x) * y)
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = Math.sqrt(x) * -3.0;
double tmp;
if (y <= -470000000.0) {
tmp = Math.sqrt(x) * (3.0 * y);
} else if (y <= -2.8e-76) {
tmp = Math.pow((x * 9.0), -0.5);
} else if (y <= 2e-282) {
tmp = t_0;
} else if (y <= 5.3e-196) {
tmp = Math.sqrt((0.1111111111111111 / x));
} else if (y <= 1.0) {
tmp = t_0;
} else {
tmp = 3.0 * (Math.sqrt(x) * y);
}
return tmp;
}
def code(x, y): t_0 = math.sqrt(x) * -3.0 tmp = 0 if y <= -470000000.0: tmp = math.sqrt(x) * (3.0 * y) elif y <= -2.8e-76: tmp = math.pow((x * 9.0), -0.5) elif y <= 2e-282: tmp = t_0 elif y <= 5.3e-196: tmp = math.sqrt((0.1111111111111111 / x)) elif y <= 1.0: tmp = t_0 else: tmp = 3.0 * (math.sqrt(x) * y) return tmp
function code(x, y) t_0 = Float64(sqrt(x) * -3.0) tmp = 0.0 if (y <= -470000000.0) tmp = Float64(sqrt(x) * Float64(3.0 * y)); elseif (y <= -2.8e-76) tmp = Float64(x * 9.0) ^ -0.5; elseif (y <= 2e-282) tmp = t_0; elseif (y <= 5.3e-196) tmp = sqrt(Float64(0.1111111111111111 / x)); elseif (y <= 1.0) tmp = t_0; else tmp = Float64(3.0 * Float64(sqrt(x) * y)); end return tmp end
function tmp_2 = code(x, y) t_0 = sqrt(x) * -3.0; tmp = 0.0; if (y <= -470000000.0) tmp = sqrt(x) * (3.0 * y); elseif (y <= -2.8e-76) tmp = (x * 9.0) ^ -0.5; elseif (y <= 2e-282) tmp = t_0; elseif (y <= 5.3e-196) tmp = sqrt((0.1111111111111111 / x)); elseif (y <= 1.0) tmp = t_0; else tmp = 3.0 * (sqrt(x) * y); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]}, If[LessEqual[y, -470000000.0], N[(N[Sqrt[x], $MachinePrecision] * N[(3.0 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.8e-76], N[Power[N[(x * 9.0), $MachinePrecision], -0.5], $MachinePrecision], If[LessEqual[y, 2e-282], t$95$0, If[LessEqual[y, 5.3e-196], N[Sqrt[N[(0.1111111111111111 / x), $MachinePrecision]], $MachinePrecision], If[LessEqual[y, 1.0], t$95$0, N[(3.0 * N[(N[Sqrt[x], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sqrt{x} \cdot -3\\
\mathbf{if}\;y \leq -470000000:\\
\;\;\;\;\sqrt{x} \cdot \left(3 \cdot y\right)\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{-76}:\\
\;\;\;\;{\left(x \cdot 9\right)}^{-0.5}\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-282}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y \leq 5.3 \cdot 10^{-196}:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{elif}\;y \leq 1:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(\sqrt{x} \cdot y\right)\\
\end{array}
\end{array}
if y < -4.7e8Initial program 99.5%
*-commutative99.5%
associate-*l*99.6%
sub-neg99.6%
+-commutative99.6%
distribute-lft-in99.6%
metadata-eval99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around inf 84.7%
Taylor expanded in y around inf 84.7%
if -4.7e8 < y < -2.8000000000000001e-76Initial program 99.4%
associate-*l*99.8%
associate--l+99.8%
sub-neg99.8%
*-commutative99.8%
associate-/r*99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Applied egg-rr33.4%
Simplified33.3%
Taylor expanded in x around 0 72.1%
clear-num72.1%
inv-pow72.1%
div-inv72.4%
metadata-eval72.4%
sqrt-pow172.3%
metadata-eval72.3%
Applied egg-rr72.3%
if -2.8000000000000001e-76 < y < 2e-282 or 5.3000000000000001e-196 < y < 1Initial program 99.5%
*-commutative99.5%
associate-*l*99.5%
sub-neg99.5%
+-commutative99.5%
distribute-lft-in99.5%
metadata-eval99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in x around inf 71.8%
Taylor expanded in y around 0 71.4%
*-commutative71.4%
Simplified71.4%
if 2e-282 < y < 5.3000000000000001e-196Initial program 99.2%
associate-*l*99.4%
associate--l+99.4%
sub-neg99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
metadata-eval99.4%
Simplified99.4%
Applied egg-rr53.7%
Simplified54.0%
Taylor expanded in x around 0 76.4%
if 1 < y Initial program 99.6%
associate-*l*99.5%
associate--l+99.5%
sub-neg99.5%
*-commutative99.5%
associate-/r*99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around inf 76.8%
Final simplification76.5%
(FPCore (x y)
:precision binary64
(if (<= y -850000000000.0)
(* (sqrt x) (* 3.0 y))
(if (<= y 4.4e+39)
(* (sqrt x) (- (* 0.3333333333333333 (/ 1.0 x)) 3.0))
(* (sqrt (* x 9.0)) (+ y -1.0)))))
double code(double x, double y) {
double tmp;
if (y <= -850000000000.0) {
tmp = sqrt(x) * (3.0 * y);
} else if (y <= 4.4e+39) {
tmp = sqrt(x) * ((0.3333333333333333 * (1.0 / x)) - 3.0);
} else {
tmp = sqrt((x * 9.0)) * (y + -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 <= (-850000000000.0d0)) then
tmp = sqrt(x) * (3.0d0 * y)
else if (y <= 4.4d+39) then
tmp = sqrt(x) * ((0.3333333333333333d0 * (1.0d0 / x)) - 3.0d0)
else
tmp = sqrt((x * 9.0d0)) * (y + (-1.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -850000000000.0) {
tmp = Math.sqrt(x) * (3.0 * y);
} else if (y <= 4.4e+39) {
tmp = Math.sqrt(x) * ((0.3333333333333333 * (1.0 / x)) - 3.0);
} else {
tmp = Math.sqrt((x * 9.0)) * (y + -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -850000000000.0: tmp = math.sqrt(x) * (3.0 * y) elif y <= 4.4e+39: tmp = math.sqrt(x) * ((0.3333333333333333 * (1.0 / x)) - 3.0) else: tmp = math.sqrt((x * 9.0)) * (y + -1.0) return tmp
function code(x, y) tmp = 0.0 if (y <= -850000000000.0) tmp = Float64(sqrt(x) * Float64(3.0 * y)); elseif (y <= 4.4e+39) tmp = Float64(sqrt(x) * Float64(Float64(0.3333333333333333 * Float64(1.0 / x)) - 3.0)); else tmp = Float64(sqrt(Float64(x * 9.0)) * Float64(y + -1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -850000000000.0) tmp = sqrt(x) * (3.0 * y); elseif (y <= 4.4e+39) tmp = sqrt(x) * ((0.3333333333333333 * (1.0 / x)) - 3.0); else tmp = sqrt((x * 9.0)) * (y + -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -850000000000.0], N[(N[Sqrt[x], $MachinePrecision] * N[(3.0 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+39], N[(N[Sqrt[x], $MachinePrecision] * N[(N[(0.3333333333333333 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 3.0), $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[N[(x * 9.0), $MachinePrecision]], $MachinePrecision] * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -850000000000:\\
\;\;\;\;\sqrt{x} \cdot \left(3 \cdot y\right)\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+39}:\\
\;\;\;\;\sqrt{x} \cdot \left(0.3333333333333333 \cdot \frac{1}{x} - 3\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x \cdot 9} \cdot \left(y + -1\right)\\
\end{array}
\end{array}
if y < -8.5e11Initial program 99.5%
*-commutative99.5%
associate-*l*99.6%
sub-neg99.6%
+-commutative99.6%
distribute-lft-in99.6%
metadata-eval99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around inf 84.7%
Taylor expanded in y around inf 84.7%
if -8.5e11 < y < 4.4000000000000003e39Initial program 99.4%
*-commutative99.4%
associate-*l*99.5%
sub-neg99.5%
+-commutative99.5%
distribute-lft-in99.5%
metadata-eval99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around 0 98.3%
if 4.4000000000000003e39 < y Initial program 99.6%
metadata-eval99.6%
div-inv99.7%
clear-num99.6%
add-sqr-sqrt99.3%
pow299.3%
+-commutative99.3%
Applied egg-rr99.3%
Taylor expanded in x around inf 83.3%
*-commutative4.7%
metadata-eval4.7%
sqrt-prod6.5%
pow1/26.5%
Applied egg-rr83.3%
unpow1/26.5%
Simplified83.3%
Final simplification91.7%
(FPCore (x y)
:precision binary64
(if (<= y -150000000.0)
(* (sqrt x) (* 3.0 y))
(if (<= y 2.2e+41)
(* (sqrt x) (+ (/ 0.3333333333333333 x) -3.0))
(* 3.0 (* (sqrt x) y)))))
double code(double x, double y) {
double tmp;
if (y <= -150000000.0) {
tmp = sqrt(x) * (3.0 * y);
} else if (y <= 2.2e+41) {
tmp = sqrt(x) * ((0.3333333333333333 / x) + -3.0);
} else {
tmp = 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 <= (-150000000.0d0)) then
tmp = sqrt(x) * (3.0d0 * y)
else if (y <= 2.2d+41) then
tmp = sqrt(x) * ((0.3333333333333333d0 / x) + (-3.0d0))
else
tmp = 3.0d0 * (sqrt(x) * y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -150000000.0) {
tmp = Math.sqrt(x) * (3.0 * y);
} else if (y <= 2.2e+41) {
tmp = Math.sqrt(x) * ((0.3333333333333333 / x) + -3.0);
} else {
tmp = 3.0 * (Math.sqrt(x) * y);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -150000000.0: tmp = math.sqrt(x) * (3.0 * y) elif y <= 2.2e+41: tmp = math.sqrt(x) * ((0.3333333333333333 / x) + -3.0) else: tmp = 3.0 * (math.sqrt(x) * y) return tmp
function code(x, y) tmp = 0.0 if (y <= -150000000.0) tmp = Float64(sqrt(x) * Float64(3.0 * y)); elseif (y <= 2.2e+41) tmp = Float64(sqrt(x) * Float64(Float64(0.3333333333333333 / x) + -3.0)); else tmp = Float64(3.0 * Float64(sqrt(x) * y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -150000000.0) tmp = sqrt(x) * (3.0 * y); elseif (y <= 2.2e+41) tmp = sqrt(x) * ((0.3333333333333333 / x) + -3.0); else tmp = 3.0 * (sqrt(x) * y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -150000000.0], N[(N[Sqrt[x], $MachinePrecision] * N[(3.0 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e+41], N[(N[Sqrt[x], $MachinePrecision] * N[(N[(0.3333333333333333 / x), $MachinePrecision] + -3.0), $MachinePrecision]), $MachinePrecision], N[(3.0 * N[(N[Sqrt[x], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -150000000:\\
\;\;\;\;\sqrt{x} \cdot \left(3 \cdot y\right)\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+41}:\\
\;\;\;\;\sqrt{x} \cdot \left(\frac{0.3333333333333333}{x} + -3\right)\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(\sqrt{x} \cdot y\right)\\
\end{array}
\end{array}
if y < -1.5e8Initial program 99.5%
*-commutative99.5%
associate-*l*99.6%
sub-neg99.6%
+-commutative99.6%
distribute-lft-in99.6%
metadata-eval99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around inf 84.7%
Taylor expanded in y around inf 84.7%
if -1.5e8 < y < 2.1999999999999999e41Initial program 99.4%
associate-*l*99.6%
associate--l+99.6%
sub-neg99.6%
*-commutative99.6%
associate-/r*99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around 0 98.3%
associate-*r*98.2%
sub-neg98.2%
associate-*r/98.2%
metadata-eval98.2%
metadata-eval98.2%
distribute-rgt-in98.2%
associate-*r*98.3%
associate-*l/98.3%
metadata-eval98.3%
associate-*r*98.3%
metadata-eval98.3%
distribute-rgt-in98.3%
Simplified98.3%
if 2.1999999999999999e41 < y Initial program 99.6%
associate-*l*99.5%
associate--l+99.5%
sub-neg99.5%
*-commutative99.5%
associate-/r*99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around inf 83.2%
Final simplification91.7%
(FPCore (x y)
:precision binary64
(if (<= y -68000000000000.0)
(* (sqrt x) (* 3.0 y))
(if (<= y 4.4e+39)
(* (sqrt x) (+ (/ 0.3333333333333333 x) -3.0))
(* (sqrt (* x 9.0)) (+ y -1.0)))))
double code(double x, double y) {
double tmp;
if (y <= -68000000000000.0) {
tmp = sqrt(x) * (3.0 * y);
} else if (y <= 4.4e+39) {
tmp = sqrt(x) * ((0.3333333333333333 / x) + -3.0);
} else {
tmp = sqrt((x * 9.0)) * (y + -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 <= (-68000000000000.0d0)) then
tmp = sqrt(x) * (3.0d0 * y)
else if (y <= 4.4d+39) then
tmp = sqrt(x) * ((0.3333333333333333d0 / x) + (-3.0d0))
else
tmp = sqrt((x * 9.0d0)) * (y + (-1.0d0))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -68000000000000.0) {
tmp = Math.sqrt(x) * (3.0 * y);
} else if (y <= 4.4e+39) {
tmp = Math.sqrt(x) * ((0.3333333333333333 / x) + -3.0);
} else {
tmp = Math.sqrt((x * 9.0)) * (y + -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -68000000000000.0: tmp = math.sqrt(x) * (3.0 * y) elif y <= 4.4e+39: tmp = math.sqrt(x) * ((0.3333333333333333 / x) + -3.0) else: tmp = math.sqrt((x * 9.0)) * (y + -1.0) return tmp
function code(x, y) tmp = 0.0 if (y <= -68000000000000.0) tmp = Float64(sqrt(x) * Float64(3.0 * y)); elseif (y <= 4.4e+39) tmp = Float64(sqrt(x) * Float64(Float64(0.3333333333333333 / x) + -3.0)); else tmp = Float64(sqrt(Float64(x * 9.0)) * Float64(y + -1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -68000000000000.0) tmp = sqrt(x) * (3.0 * y); elseif (y <= 4.4e+39) tmp = sqrt(x) * ((0.3333333333333333 / x) + -3.0); else tmp = sqrt((x * 9.0)) * (y + -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -68000000000000.0], N[(N[Sqrt[x], $MachinePrecision] * N[(3.0 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+39], N[(N[Sqrt[x], $MachinePrecision] * N[(N[(0.3333333333333333 / x), $MachinePrecision] + -3.0), $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[N[(x * 9.0), $MachinePrecision]], $MachinePrecision] * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -68000000000000:\\
\;\;\;\;\sqrt{x} \cdot \left(3 \cdot y\right)\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+39}:\\
\;\;\;\;\sqrt{x} \cdot \left(\frac{0.3333333333333333}{x} + -3\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x \cdot 9} \cdot \left(y + -1\right)\\
\end{array}
\end{array}
if y < -6.8e13Initial program 99.5%
*-commutative99.5%
associate-*l*99.6%
sub-neg99.6%
+-commutative99.6%
distribute-lft-in99.6%
metadata-eval99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around inf 84.7%
Taylor expanded in y around inf 84.7%
if -6.8e13 < y < 4.4000000000000003e39Initial program 99.4%
associate-*l*99.6%
associate--l+99.6%
sub-neg99.6%
*-commutative99.6%
associate-/r*99.5%
metadata-eval99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around 0 98.3%
associate-*r*98.2%
sub-neg98.2%
associate-*r/98.2%
metadata-eval98.2%
metadata-eval98.2%
distribute-rgt-in98.2%
associate-*r*98.3%
associate-*l/98.3%
metadata-eval98.3%
associate-*r*98.3%
metadata-eval98.3%
distribute-rgt-in98.3%
Simplified98.3%
if 4.4000000000000003e39 < y Initial program 99.6%
metadata-eval99.6%
div-inv99.7%
clear-num99.6%
add-sqr-sqrt99.3%
pow299.3%
+-commutative99.3%
Applied egg-rr99.3%
Taylor expanded in x around inf 83.3%
*-commutative4.7%
metadata-eval4.7%
sqrt-prod6.5%
pow1/26.5%
Applied egg-rr83.3%
unpow1/26.5%
Simplified83.3%
Final simplification91.7%
(FPCore (x y) :precision binary64 (if (<= x 0.0003) (pow (* x 9.0) -0.5) (* 3.0 (* (sqrt x) (+ y -1.0)))))
double code(double x, double y) {
double tmp;
if (x <= 0.0003) {
tmp = pow((x * 9.0), -0.5);
} else {
tmp = 3.0 * (sqrt(x) * (y + -1.0));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 0.0003d0) then
tmp = (x * 9.0d0) ** (-0.5d0)
else
tmp = 3.0d0 * (sqrt(x) * (y + (-1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 0.0003) {
tmp = Math.pow((x * 9.0), -0.5);
} else {
tmp = 3.0 * (Math.sqrt(x) * (y + -1.0));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.0003: tmp = math.pow((x * 9.0), -0.5) else: tmp = 3.0 * (math.sqrt(x) * (y + -1.0)) return tmp
function code(x, y) tmp = 0.0 if (x <= 0.0003) tmp = Float64(x * 9.0) ^ -0.5; else tmp = Float64(3.0 * Float64(sqrt(x) * Float64(y + -1.0))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.0003) tmp = (x * 9.0) ^ -0.5; else tmp = 3.0 * (sqrt(x) * (y + -1.0)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.0003], N[Power[N[(x * 9.0), $MachinePrecision], -0.5], $MachinePrecision], N[(3.0 * N[(N[Sqrt[x], $MachinePrecision] * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.0003:\\
\;\;\;\;{\left(x \cdot 9\right)}^{-0.5}\\
\mathbf{else}:\\
\;\;\;\;3 \cdot \left(\sqrt{x} \cdot \left(y + -1\right)\right)\\
\end{array}
\end{array}
if x < 2.99999999999999974e-4Initial program 99.3%
associate-*l*99.4%
associate--l+99.4%
sub-neg99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
metadata-eval99.4%
Simplified99.4%
Applied egg-rr38.1%
Simplified38.1%
Taylor expanded in x around 0 72.6%
clear-num72.6%
inv-pow72.6%
div-inv72.6%
metadata-eval72.6%
sqrt-pow172.7%
metadata-eval72.7%
Applied egg-rr72.7%
if 2.99999999999999974e-4 < x Initial program 99.6%
associate-*l*99.7%
associate--l+99.7%
sub-neg99.7%
*-commutative99.7%
associate-/r*99.7%
metadata-eval99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around inf 97.8%
Final simplification88.1%
(FPCore (x y) :precision binary64 (if (<= x 0.045) (pow (* x 9.0) -0.5) (* (sqrt x) -3.0)))
double code(double x, double y) {
double tmp;
if (x <= 0.045) {
tmp = pow((x * 9.0), -0.5);
} else {
tmp = sqrt(x) * -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 <= 0.045d0) then
tmp = (x * 9.0d0) ** (-0.5d0)
else
tmp = sqrt(x) * (-3.0d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 0.045) {
tmp = Math.pow((x * 9.0), -0.5);
} else {
tmp = Math.sqrt(x) * -3.0;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.045: tmp = math.pow((x * 9.0), -0.5) else: tmp = math.sqrt(x) * -3.0 return tmp
function code(x, y) tmp = 0.0 if (x <= 0.045) tmp = Float64(x * 9.0) ^ -0.5; else tmp = Float64(sqrt(x) * -3.0); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.045) tmp = (x * 9.0) ^ -0.5; else tmp = sqrt(x) * -3.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.045], N[Power[N[(x * 9.0), $MachinePrecision], -0.5], $MachinePrecision], N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.045:\\
\;\;\;\;{\left(x \cdot 9\right)}^{-0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\end{array}
\end{array}
if x < 0.044999999999999998Initial program 99.3%
associate-*l*99.4%
associate--l+99.4%
sub-neg99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
metadata-eval99.4%
Simplified99.4%
Applied egg-rr38.1%
Simplified38.1%
Taylor expanded in x around 0 72.6%
clear-num72.6%
inv-pow72.6%
div-inv72.6%
metadata-eval72.6%
sqrt-pow172.7%
metadata-eval72.7%
Applied egg-rr72.7%
if 0.044999999999999998 < x Initial program 99.6%
*-commutative99.6%
associate-*l*99.6%
sub-neg99.6%
+-commutative99.6%
distribute-lft-in99.6%
metadata-eval99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around inf 97.8%
Taylor expanded in y around 0 49.6%
*-commutative49.6%
Simplified49.6%
Final simplification58.5%
(FPCore (x y) :precision binary64 (if (<= x 0.045) (sqrt (/ 0.1111111111111111 x)) (* (sqrt x) -3.0)))
double code(double x, double y) {
double tmp;
if (x <= 0.045) {
tmp = sqrt((0.1111111111111111 / x));
} else {
tmp = sqrt(x) * -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 <= 0.045d0) then
tmp = sqrt((0.1111111111111111d0 / x))
else
tmp = sqrt(x) * (-3.0d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 0.045) {
tmp = Math.sqrt((0.1111111111111111 / x));
} else {
tmp = Math.sqrt(x) * -3.0;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.045: tmp = math.sqrt((0.1111111111111111 / x)) else: tmp = math.sqrt(x) * -3.0 return tmp
function code(x, y) tmp = 0.0 if (x <= 0.045) tmp = sqrt(Float64(0.1111111111111111 / x)); else tmp = Float64(sqrt(x) * -3.0); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.045) tmp = sqrt((0.1111111111111111 / x)); else tmp = sqrt(x) * -3.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.045], N[Sqrt[N[(0.1111111111111111 / x), $MachinePrecision]], $MachinePrecision], N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.045:\\
\;\;\;\;\sqrt{\frac{0.1111111111111111}{x}}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\end{array}
\end{array}
if x < 0.044999999999999998Initial program 99.3%
associate-*l*99.4%
associate--l+99.4%
sub-neg99.4%
*-commutative99.4%
associate-/r*99.4%
metadata-eval99.4%
metadata-eval99.4%
Simplified99.4%
Applied egg-rr38.1%
Simplified38.1%
Taylor expanded in x around 0 72.6%
if 0.044999999999999998 < x Initial program 99.6%
*-commutative99.6%
associate-*l*99.6%
sub-neg99.6%
+-commutative99.6%
distribute-lft-in99.6%
metadata-eval99.6%
metadata-eval99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around inf 97.8%
Taylor expanded in y around 0 49.6%
*-commutative49.6%
Simplified49.6%
Final simplification58.5%
(FPCore (x y) :precision binary64 (sqrt (* x 9.0)))
double code(double x, double y) {
return sqrt((x * 9.0));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sqrt((x * 9.0d0))
end function
public static double code(double x, double y) {
return Math.sqrt((x * 9.0));
}
def code(x, y): return math.sqrt((x * 9.0))
function code(x, y) return sqrt(Float64(x * 9.0)) end
function tmp = code(x, y) tmp = sqrt((x * 9.0)); end
code[x_, y_] := N[Sqrt[N[(x * 9.0), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{x \cdot 9}
\end{array}
Initial program 99.5%
*-commutative99.5%
associate-*l*99.5%
sub-neg99.5%
+-commutative99.5%
distribute-lft-in99.5%
metadata-eval99.5%
metadata-eval99.5%
*-commutative99.5%
associate-/r*99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around 0 59.9%
add-cube-cbrt59.1%
pow359.1%
div-inv59.1%
sub-neg59.1%
metadata-eval59.1%
Applied egg-rr59.1%
Taylor expanded in x around -inf 0.0%
pow-base-10.0%
*-lft-identity0.0%
unpow20.0%
rem-square-sqrt2.9%
*-commutative2.9%
neg-mul-12.9%
distribute-rgt-neg-in2.9%
distribute-lft-neg-in2.9%
metadata-eval2.9%
Simplified2.9%
*-commutative2.9%
metadata-eval2.9%
sqrt-prod3.3%
pow1/23.3%
Applied egg-rr3.3%
unpow1/23.3%
Simplified3.3%
Final simplification3.3%
(FPCore (x y) :precision binary64 (sqrt (/ 0.1111111111111111 x)))
double code(double x, double y) {
return sqrt((0.1111111111111111 / x));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sqrt((0.1111111111111111d0 / x))
end function
public static double code(double x, double y) {
return Math.sqrt((0.1111111111111111 / x));
}
def code(x, y): return math.sqrt((0.1111111111111111 / x))
function code(x, y) return sqrt(Float64(0.1111111111111111 / x)) end
function tmp = code(x, y) tmp = sqrt((0.1111111111111111 / x)); end
code[x_, y_] := N[Sqrt[N[(0.1111111111111111 / x), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sqrt{\frac{0.1111111111111111}{x}}
\end{array}
Initial program 99.5%
associate-*l*99.6%
associate--l+99.6%
sub-neg99.6%
*-commutative99.6%
associate-/r*99.6%
metadata-eval99.6%
metadata-eval99.6%
Simplified99.6%
Applied egg-rr24.2%
Simplified24.2%
Taylor expanded in x around 0 29.2%
Final simplification29.2%
(FPCore (x y) :precision binary64 (* 3.0 (+ (* y (sqrt x)) (* (- (/ 1.0 (* x 9.0)) 1.0) (sqrt x)))))
double code(double x, double y) {
return 3.0 * ((y * sqrt(x)) + (((1.0 / (x * 9.0)) - 1.0) * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 3.0d0 * ((y * sqrt(x)) + (((1.0d0 / (x * 9.0d0)) - 1.0d0) * sqrt(x)))
end function
public static double code(double x, double y) {
return 3.0 * ((y * Math.sqrt(x)) + (((1.0 / (x * 9.0)) - 1.0) * Math.sqrt(x)));
}
def code(x, y): return 3.0 * ((y * math.sqrt(x)) + (((1.0 / (x * 9.0)) - 1.0) * math.sqrt(x)))
function code(x, y) return Float64(3.0 * Float64(Float64(y * sqrt(x)) + Float64(Float64(Float64(1.0 / Float64(x * 9.0)) - 1.0) * sqrt(x)))) end
function tmp = code(x, y) tmp = 3.0 * ((y * sqrt(x)) + (((1.0 / (x * 9.0)) - 1.0) * sqrt(x))); end
code[x_, y_] := N[(3.0 * N[(N[(y * N[Sqrt[x], $MachinePrecision]), $MachinePrecision] + N[(N[(N[(1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision] - 1.0), $MachinePrecision] * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
3 \cdot \left(y \cdot \sqrt{x} + \left(\frac{1}{x \cdot 9} - 1\right) \cdot \sqrt{x}\right)
\end{array}
herbie shell --seed 2024013
(FPCore (x y)
:name "Numeric.SpecFunctions:incompleteGamma from math-functions-0.1.5.2, B"
:precision binary64
:herbie-target
(* 3.0 (+ (* y (sqrt x)) (* (- (/ 1.0 (* x 9.0)) 1.0) (sqrt x))))
(* (* 3.0 (sqrt x)) (- (+ y (/ 1.0 (* x 9.0))) 1.0)))