
(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 16 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 (/ 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}
Initial program 99.5%
Final simplification99.5%
(FPCore (x y)
:precision binary64
(if (<= y -3.25e+43)
(* 3.0 (/ y (pow x -0.5)))
(if (<= y -4e-305)
(/ (sqrt x) (* 3.0 x))
(if (<= y 3.7e-65)
(* (sqrt x) -3.0)
(if (<= y 1200000.0)
(/ (/ 0.3333333333333333 x) (pow x -0.5))
(* y (/ 3.0 (pow x -0.5))))))))
double code(double x, double y) {
double tmp;
if (y <= -3.25e+43) {
tmp = 3.0 * (y / pow(x, -0.5));
} else if (y <= -4e-305) {
tmp = sqrt(x) / (3.0 * x);
} else if (y <= 3.7e-65) {
tmp = sqrt(x) * -3.0;
} else if (y <= 1200000.0) {
tmp = (0.3333333333333333 / x) / pow(x, -0.5);
} else {
tmp = y * (3.0 / pow(x, -0.5));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-3.25d+43)) then
tmp = 3.0d0 * (y / (x ** (-0.5d0)))
else if (y <= (-4d-305)) then
tmp = sqrt(x) / (3.0d0 * x)
else if (y <= 3.7d-65) then
tmp = sqrt(x) * (-3.0d0)
else if (y <= 1200000.0d0) then
tmp = (0.3333333333333333d0 / x) / (x ** (-0.5d0))
else
tmp = y * (3.0d0 / (x ** (-0.5d0)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -3.25e+43) {
tmp = 3.0 * (y / Math.pow(x, -0.5));
} else if (y <= -4e-305) {
tmp = Math.sqrt(x) / (3.0 * x);
} else if (y <= 3.7e-65) {
tmp = Math.sqrt(x) * -3.0;
} else if (y <= 1200000.0) {
tmp = (0.3333333333333333 / x) / Math.pow(x, -0.5);
} else {
tmp = y * (3.0 / Math.pow(x, -0.5));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -3.25e+43: tmp = 3.0 * (y / math.pow(x, -0.5)) elif y <= -4e-305: tmp = math.sqrt(x) / (3.0 * x) elif y <= 3.7e-65: tmp = math.sqrt(x) * -3.0 elif y <= 1200000.0: tmp = (0.3333333333333333 / x) / math.pow(x, -0.5) else: tmp = y * (3.0 / math.pow(x, -0.5)) return tmp
function code(x, y) tmp = 0.0 if (y <= -3.25e+43) tmp = Float64(3.0 * Float64(y / (x ^ -0.5))); elseif (y <= -4e-305) tmp = Float64(sqrt(x) / Float64(3.0 * x)); elseif (y <= 3.7e-65) tmp = Float64(sqrt(x) * -3.0); elseif (y <= 1200000.0) tmp = Float64(Float64(0.3333333333333333 / x) / (x ^ -0.5)); else tmp = Float64(y * Float64(3.0 / (x ^ -0.5))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -3.25e+43) tmp = 3.0 * (y / (x ^ -0.5)); elseif (y <= -4e-305) tmp = sqrt(x) / (3.0 * x); elseif (y <= 3.7e-65) tmp = sqrt(x) * -3.0; elseif (y <= 1200000.0) tmp = (0.3333333333333333 / x) / (x ^ -0.5); else tmp = y * (3.0 / (x ^ -0.5)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -3.25e+43], N[(3.0 * N[(y / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -4e-305], N[(N[Sqrt[x], $MachinePrecision] / N[(3.0 * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e-65], N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision], If[LessEqual[y, 1200000.0], N[(N[(0.3333333333333333 / x), $MachinePrecision] / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision], N[(y * N[(3.0 / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.25 \cdot 10^{+43}:\\
\;\;\;\;3 \cdot \frac{y}{{x}^{-0.5}}\\
\mathbf{elif}\;y \leq -4 \cdot 10^{-305}:\\
\;\;\;\;\frac{\sqrt{x}}{3 \cdot x}\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{-65}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\mathbf{elif}\;y \leq 1200000:\\
\;\;\;\;\frac{\frac{0.3333333333333333}{x}}{{x}^{-0.5}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{3}{{x}^{-0.5}}\\
\end{array}
\end{array}
if y < -3.2499999999999999e43Initial program 99.6%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6485.9%
Simplified85.9%
*-commutativeN/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
pow1/2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
metadata-eval86.1%
Applied egg-rr86.1%
if -3.2499999999999999e43 < y < -3.99999999999999999e-305Initial program 99.4%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.4%
flip3-+N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
clear-numN/A
flip3-+N/A
/-lowering-/.f64N/A
Applied egg-rr99.3%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6455.8%
Simplified55.8%
if -3.99999999999999999e-305 < y < 3.7e-65Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.4%
Applied egg-rr99.4%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6499.4%
Simplified99.4%
Taylor expanded in y around 0
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
distribute-lft-neg-inN/A
neg-sub0N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
Simplified99.4%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6461.5%
Simplified61.5%
if 3.7e-65 < y < 1.2e6Initial program 99.3%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f6499.4%
Applied egg-rr99.4%
*-commutativeN/A
associate-*r*N/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-commutativeN/A
metadata-evalN/A
associate-+l+N/A
+-lowering-+.f64N/A
associate-/l/N/A
associate-/r*N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
pow1/2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
metadata-eval99.3%
Applied egg-rr99.3%
Taylor expanded in x around 0
/-lowering-/.f6464.1%
Simplified64.1%
if 1.2e6 < y Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6485.9%
Simplified85.9%
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
div-invN/A
*-lowering-*.f64N/A
div-invN/A
metadata-evalN/A
*-commutativeN/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
pow1/2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
metadata-eval86.1%
Applied egg-rr86.1%
Final simplification71.1%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (sqrt x) (* 3.0 x))))
(if (<= y -5.5e+43)
(* 3.0 (/ y (pow x -0.5)))
(if (<= y -1.05e-302)
t_0
(if (<= y 3.8e-65)
(* (sqrt x) -3.0)
(if (<= y 4200000000.0) t_0 (* y (/ 3.0 (pow x -0.5)))))))))
double code(double x, double y) {
double t_0 = sqrt(x) / (3.0 * x);
double tmp;
if (y <= -5.5e+43) {
tmp = 3.0 * (y / pow(x, -0.5));
} else if (y <= -1.05e-302) {
tmp = t_0;
} else if (y <= 3.8e-65) {
tmp = sqrt(x) * -3.0;
} else if (y <= 4200000000.0) {
tmp = t_0;
} else {
tmp = y * (3.0 / pow(x, -0.5));
}
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 * x)
if (y <= (-5.5d+43)) then
tmp = 3.0d0 * (y / (x ** (-0.5d0)))
else if (y <= (-1.05d-302)) then
tmp = t_0
else if (y <= 3.8d-65) then
tmp = sqrt(x) * (-3.0d0)
else if (y <= 4200000000.0d0) then
tmp = t_0
else
tmp = y * (3.0d0 / (x ** (-0.5d0)))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = Math.sqrt(x) / (3.0 * x);
double tmp;
if (y <= -5.5e+43) {
tmp = 3.0 * (y / Math.pow(x, -0.5));
} else if (y <= -1.05e-302) {
tmp = t_0;
} else if (y <= 3.8e-65) {
tmp = Math.sqrt(x) * -3.0;
} else if (y <= 4200000000.0) {
tmp = t_0;
} else {
tmp = y * (3.0 / Math.pow(x, -0.5));
}
return tmp;
}
def code(x, y): t_0 = math.sqrt(x) / (3.0 * x) tmp = 0 if y <= -5.5e+43: tmp = 3.0 * (y / math.pow(x, -0.5)) elif y <= -1.05e-302: tmp = t_0 elif y <= 3.8e-65: tmp = math.sqrt(x) * -3.0 elif y <= 4200000000.0: tmp = t_0 else: tmp = y * (3.0 / math.pow(x, -0.5)) return tmp
function code(x, y) t_0 = Float64(sqrt(x) / Float64(3.0 * x)) tmp = 0.0 if (y <= -5.5e+43) tmp = Float64(3.0 * Float64(y / (x ^ -0.5))); elseif (y <= -1.05e-302) tmp = t_0; elseif (y <= 3.8e-65) tmp = Float64(sqrt(x) * -3.0); elseif (y <= 4200000000.0) tmp = t_0; else tmp = Float64(y * Float64(3.0 / (x ^ -0.5))); end return tmp end
function tmp_2 = code(x, y) t_0 = sqrt(x) / (3.0 * x); tmp = 0.0; if (y <= -5.5e+43) tmp = 3.0 * (y / (x ^ -0.5)); elseif (y <= -1.05e-302) tmp = t_0; elseif (y <= 3.8e-65) tmp = sqrt(x) * -3.0; elseif (y <= 4200000000.0) tmp = t_0; else tmp = y * (3.0 / (x ^ -0.5)); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[Sqrt[x], $MachinePrecision] / N[(3.0 * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+43], N[(3.0 * N[(y / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.05e-302], t$95$0, If[LessEqual[y, 3.8e-65], N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision], If[LessEqual[y, 4200000000.0], t$95$0, N[(y * N[(3.0 / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sqrt{x}}{3 \cdot x}\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+43}:\\
\;\;\;\;3 \cdot \frac{y}{{x}^{-0.5}}\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{-302}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-65}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\mathbf{elif}\;y \leq 4200000000:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{3}{{x}^{-0.5}}\\
\end{array}
\end{array}
if y < -5.49999999999999989e43Initial program 99.6%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6485.9%
Simplified85.9%
*-commutativeN/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
pow1/2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
metadata-eval86.1%
Applied egg-rr86.1%
if -5.49999999999999989e43 < y < -1.05000000000000006e-302 or 3.8000000000000002e-65 < y < 4.2e9Initial program 99.4%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.4%
flip3-+N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
clear-numN/A
flip3-+N/A
/-lowering-/.f64N/A
Applied egg-rr99.2%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6456.8%
Simplified56.8%
if -1.05000000000000006e-302 < y < 3.8000000000000002e-65Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.4%
Applied egg-rr99.4%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6499.4%
Simplified99.4%
Taylor expanded in y around 0
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
distribute-lft-neg-inN/A
neg-sub0N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
Simplified99.4%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6461.5%
Simplified61.5%
if 4.2e9 < y Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6485.9%
Simplified85.9%
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
div-invN/A
*-lowering-*.f64N/A
div-invN/A
metadata-evalN/A
*-commutativeN/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
pow1/2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
metadata-eval86.1%
Applied egg-rr86.1%
Final simplification71.1%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* y (/ 3.0 (pow x -0.5)))) (t_1 (/ (sqrt x) (* 3.0 x))))
(if (<= y -3.25e+43)
t_0
(if (<= y -3.5e-304)
t_1
(if (<= y 3.8e-65)
(* (sqrt x) -3.0)
(if (<= y 840000000000.0) t_1 t_0))))))
double code(double x, double y) {
double t_0 = y * (3.0 / pow(x, -0.5));
double t_1 = sqrt(x) / (3.0 * x);
double tmp;
if (y <= -3.25e+43) {
tmp = t_0;
} else if (y <= -3.5e-304) {
tmp = t_1;
} else if (y <= 3.8e-65) {
tmp = sqrt(x) * -3.0;
} else if (y <= 840000000000.0) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = y * (3.0d0 / (x ** (-0.5d0)))
t_1 = sqrt(x) / (3.0d0 * x)
if (y <= (-3.25d+43)) then
tmp = t_0
else if (y <= (-3.5d-304)) then
tmp = t_1
else if (y <= 3.8d-65) then
tmp = sqrt(x) * (-3.0d0)
else if (y <= 840000000000.0d0) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (3.0 / Math.pow(x, -0.5));
double t_1 = Math.sqrt(x) / (3.0 * x);
double tmp;
if (y <= -3.25e+43) {
tmp = t_0;
} else if (y <= -3.5e-304) {
tmp = t_1;
} else if (y <= 3.8e-65) {
tmp = Math.sqrt(x) * -3.0;
} else if (y <= 840000000000.0) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = y * (3.0 / math.pow(x, -0.5)) t_1 = math.sqrt(x) / (3.0 * x) tmp = 0 if y <= -3.25e+43: tmp = t_0 elif y <= -3.5e-304: tmp = t_1 elif y <= 3.8e-65: tmp = math.sqrt(x) * -3.0 elif y <= 840000000000.0: tmp = t_1 else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(y * Float64(3.0 / (x ^ -0.5))) t_1 = Float64(sqrt(x) / Float64(3.0 * x)) tmp = 0.0 if (y <= -3.25e+43) tmp = t_0; elseif (y <= -3.5e-304) tmp = t_1; elseif (y <= 3.8e-65) tmp = Float64(sqrt(x) * -3.0); elseif (y <= 840000000000.0) tmp = t_1; else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = y * (3.0 / (x ^ -0.5)); t_1 = sqrt(x) / (3.0 * x); tmp = 0.0; if (y <= -3.25e+43) tmp = t_0; elseif (y <= -3.5e-304) tmp = t_1; elseif (y <= 3.8e-65) tmp = sqrt(x) * -3.0; elseif (y <= 840000000000.0) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(3.0 / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[Sqrt[x], $MachinePrecision] / N[(3.0 * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.25e+43], t$95$0, If[LessEqual[y, -3.5e-304], t$95$1, If[LessEqual[y, 3.8e-65], N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision], If[LessEqual[y, 840000000000.0], t$95$1, t$95$0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \frac{3}{{x}^{-0.5}}\\
t_1 := \frac{\sqrt{x}}{3 \cdot x}\\
\mathbf{if}\;y \leq -3.25 \cdot 10^{+43}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{-304}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-65}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\mathbf{elif}\;y \leq 840000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < -3.2499999999999999e43 or 8.4e11 < y Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6485.9%
Simplified85.9%
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
div-invN/A
*-lowering-*.f64N/A
div-invN/A
metadata-evalN/A
*-commutativeN/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
pow1/2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
metadata-eval86.1%
Applied egg-rr86.1%
if -3.2499999999999999e43 < y < -3.5e-304 or 3.8000000000000002e-65 < y < 8.4e11Initial program 99.4%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.4%
flip3-+N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
clear-numN/A
flip3-+N/A
/-lowering-/.f64N/A
Applied egg-rr99.2%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6456.8%
Simplified56.8%
if -3.5e-304 < y < 3.8000000000000002e-65Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.4%
Applied egg-rr99.4%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6499.4%
Simplified99.4%
Taylor expanded in y around 0
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
distribute-lft-neg-inN/A
neg-sub0N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
Simplified99.4%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6461.5%
Simplified61.5%
Final simplification71.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (/ (sqrt x) (* 3.0 x))))
(if (<= y -3.25e+43)
(* (sqrt x) (* 3.0 y))
(if (<= y -1.6e-305)
t_0
(if (<= y 3.65e-65)
(* (sqrt x) -3.0)
(if (<= y 1200000000000.0)
t_0
(* (sqrt x) (/ y 0.3333333333333333))))))))
double code(double x, double y) {
double t_0 = sqrt(x) / (3.0 * x);
double tmp;
if (y <= -3.25e+43) {
tmp = sqrt(x) * (3.0 * y);
} else if (y <= -1.6e-305) {
tmp = t_0;
} else if (y <= 3.65e-65) {
tmp = sqrt(x) * -3.0;
} else if (y <= 1200000000000.0) {
tmp = t_0;
} else {
tmp = sqrt(x) * (y / 0.3333333333333333);
}
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 * x)
if (y <= (-3.25d+43)) then
tmp = sqrt(x) * (3.0d0 * y)
else if (y <= (-1.6d-305)) then
tmp = t_0
else if (y <= 3.65d-65) then
tmp = sqrt(x) * (-3.0d0)
else if (y <= 1200000000000.0d0) then
tmp = t_0
else
tmp = sqrt(x) * (y / 0.3333333333333333d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = Math.sqrt(x) / (3.0 * x);
double tmp;
if (y <= -3.25e+43) {
tmp = Math.sqrt(x) * (3.0 * y);
} else if (y <= -1.6e-305) {
tmp = t_0;
} else if (y <= 3.65e-65) {
tmp = Math.sqrt(x) * -3.0;
} else if (y <= 1200000000000.0) {
tmp = t_0;
} else {
tmp = Math.sqrt(x) * (y / 0.3333333333333333);
}
return tmp;
}
def code(x, y): t_0 = math.sqrt(x) / (3.0 * x) tmp = 0 if y <= -3.25e+43: tmp = math.sqrt(x) * (3.0 * y) elif y <= -1.6e-305: tmp = t_0 elif y <= 3.65e-65: tmp = math.sqrt(x) * -3.0 elif y <= 1200000000000.0: tmp = t_0 else: tmp = math.sqrt(x) * (y / 0.3333333333333333) return tmp
function code(x, y) t_0 = Float64(sqrt(x) / Float64(3.0 * x)) tmp = 0.0 if (y <= -3.25e+43) tmp = Float64(sqrt(x) * Float64(3.0 * y)); elseif (y <= -1.6e-305) tmp = t_0; elseif (y <= 3.65e-65) tmp = Float64(sqrt(x) * -3.0); elseif (y <= 1200000000000.0) tmp = t_0; else tmp = Float64(sqrt(x) * Float64(y / 0.3333333333333333)); end return tmp end
function tmp_2 = code(x, y) t_0 = sqrt(x) / (3.0 * x); tmp = 0.0; if (y <= -3.25e+43) tmp = sqrt(x) * (3.0 * y); elseif (y <= -1.6e-305) tmp = t_0; elseif (y <= 3.65e-65) tmp = sqrt(x) * -3.0; elseif (y <= 1200000000000.0) tmp = t_0; else tmp = sqrt(x) * (y / 0.3333333333333333); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[Sqrt[x], $MachinePrecision] / N[(3.0 * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.25e+43], N[(N[Sqrt[x], $MachinePrecision] * N[(3.0 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.6e-305], t$95$0, If[LessEqual[y, 3.65e-65], N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision], If[LessEqual[y, 1200000000000.0], t$95$0, N[(N[Sqrt[x], $MachinePrecision] * N[(y / 0.3333333333333333), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\sqrt{x}}{3 \cdot x}\\
\mathbf{if}\;y \leq -3.25 \cdot 10^{+43}:\\
\;\;\;\;\sqrt{x} \cdot \left(3 \cdot y\right)\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{-305}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 3.65 \cdot 10^{-65}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\mathbf{elif}\;y \leq 1200000000000:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot \frac{y}{0.3333333333333333}\\
\end{array}
\end{array}
if y < -3.2499999999999999e43Initial program 99.6%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in y around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f6486.0%
Simplified86.0%
if -3.2499999999999999e43 < y < -1.60000000000000004e-305 or 3.6499999999999999e-65 < y < 1.2e12Initial program 99.4%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.4%
flip3-+N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
clear-numN/A
flip3-+N/A
/-lowering-/.f64N/A
Applied egg-rr99.2%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6456.8%
Simplified56.8%
if -1.60000000000000004e-305 < y < 3.6499999999999999e-65Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.4%
Applied egg-rr99.4%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6499.4%
Simplified99.4%
Taylor expanded in y around 0
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
distribute-lft-neg-inN/A
neg-sub0N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
Simplified99.4%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6461.5%
Simplified61.5%
if 1.2e12 < y Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6485.9%
Simplified85.9%
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
metadata-evalN/A
div-invN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f6486.0%
Applied egg-rr86.0%
Final simplification71.0%
(FPCore (x y)
:precision binary64
(if (<= y -4.5e+38)
(* (sqrt x) (* 3.0 y))
(if (<= y -1.1e-302)
(/ 0.3333333333333333 (sqrt x))
(if (<= y 3.65e-65)
(* (sqrt x) -3.0)
(if (<= y 1920000000000.0)
(* 0.3333333333333333 (pow x -0.5))
(* (sqrt x) (/ y 0.3333333333333333)))))))
double code(double x, double y) {
double tmp;
if (y <= -4.5e+38) {
tmp = sqrt(x) * (3.0 * y);
} else if (y <= -1.1e-302) {
tmp = 0.3333333333333333 / sqrt(x);
} else if (y <= 3.65e-65) {
tmp = sqrt(x) * -3.0;
} else if (y <= 1920000000000.0) {
tmp = 0.3333333333333333 * pow(x, -0.5);
} else {
tmp = sqrt(x) * (y / 0.3333333333333333);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-4.5d+38)) then
tmp = sqrt(x) * (3.0d0 * y)
else if (y <= (-1.1d-302)) then
tmp = 0.3333333333333333d0 / sqrt(x)
else if (y <= 3.65d-65) then
tmp = sqrt(x) * (-3.0d0)
else if (y <= 1920000000000.0d0) then
tmp = 0.3333333333333333d0 * (x ** (-0.5d0))
else
tmp = sqrt(x) * (y / 0.3333333333333333d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -4.5e+38) {
tmp = Math.sqrt(x) * (3.0 * y);
} else if (y <= -1.1e-302) {
tmp = 0.3333333333333333 / Math.sqrt(x);
} else if (y <= 3.65e-65) {
tmp = Math.sqrt(x) * -3.0;
} else if (y <= 1920000000000.0) {
tmp = 0.3333333333333333 * Math.pow(x, -0.5);
} else {
tmp = Math.sqrt(x) * (y / 0.3333333333333333);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -4.5e+38: tmp = math.sqrt(x) * (3.0 * y) elif y <= -1.1e-302: tmp = 0.3333333333333333 / math.sqrt(x) elif y <= 3.65e-65: tmp = math.sqrt(x) * -3.0 elif y <= 1920000000000.0: tmp = 0.3333333333333333 * math.pow(x, -0.5) else: tmp = math.sqrt(x) * (y / 0.3333333333333333) return tmp
function code(x, y) tmp = 0.0 if (y <= -4.5e+38) tmp = Float64(sqrt(x) * Float64(3.0 * y)); elseif (y <= -1.1e-302) tmp = Float64(0.3333333333333333 / sqrt(x)); elseif (y <= 3.65e-65) tmp = Float64(sqrt(x) * -3.0); elseif (y <= 1920000000000.0) tmp = Float64(0.3333333333333333 * (x ^ -0.5)); else tmp = Float64(sqrt(x) * Float64(y / 0.3333333333333333)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -4.5e+38) tmp = sqrt(x) * (3.0 * y); elseif (y <= -1.1e-302) tmp = 0.3333333333333333 / sqrt(x); elseif (y <= 3.65e-65) tmp = sqrt(x) * -3.0; elseif (y <= 1920000000000.0) tmp = 0.3333333333333333 * (x ^ -0.5); else tmp = sqrt(x) * (y / 0.3333333333333333); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -4.5e+38], N[(N[Sqrt[x], $MachinePrecision] * N[(3.0 * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.1e-302], N[(0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.65e-65], N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision], If[LessEqual[y, 1920000000000.0], N[(0.3333333333333333 * N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[x], $MachinePrecision] * N[(y / 0.3333333333333333), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{+38}:\\
\;\;\;\;\sqrt{x} \cdot \left(3 \cdot y\right)\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{-302}:\\
\;\;\;\;\frac{0.3333333333333333}{\sqrt{x}}\\
\mathbf{elif}\;y \leq 3.65 \cdot 10^{-65}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\mathbf{elif}\;y \leq 1920000000000:\\
\;\;\;\;0.3333333333333333 \cdot {x}^{-0.5}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot \frac{y}{0.3333333333333333}\\
\end{array}
\end{array}
if y < -4.4999999999999998e38Initial program 99.5%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in y around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f6484.7%
Simplified84.7%
if -4.4999999999999998e38 < y < -1.10000000000000004e-302Initial program 99.4%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.4%
Taylor expanded in x around 0
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f6455.8%
Simplified55.8%
sqrt-divN/A
metadata-evalN/A
un-div-invN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f6455.9%
Applied egg-rr55.9%
if -1.10000000000000004e-302 < y < 3.6499999999999999e-65Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.4%
Applied egg-rr99.4%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6499.4%
Simplified99.4%
Taylor expanded in y around 0
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
distribute-lft-neg-inN/A
neg-sub0N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
Simplified99.4%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6461.5%
Simplified61.5%
if 3.6499999999999999e-65 < y < 1.92e12Initial program 99.3%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f6463.6%
Simplified63.6%
*-commutativeN/A
*-lowering-*.f64N/A
pow1/2N/A
inv-powN/A
pow-powN/A
pow-lowering-pow.f64N/A
metadata-eval63.6%
Applied egg-rr63.6%
if 1.92e12 < y Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6485.9%
Simplified85.9%
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
metadata-evalN/A
div-invN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f6486.0%
Applied egg-rr86.0%
Final simplification71.0%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* (sqrt x) (* 3.0 y))))
(if (<= y -3.1e+35)
t_0
(if (<= y -5.5e-304)
(/ 0.3333333333333333 (sqrt x))
(if (<= y 4.8e-65)
(* (sqrt x) -3.0)
(if (<= y 1700000.0) (* 0.3333333333333333 (pow x -0.5)) t_0))))))
double code(double x, double y) {
double t_0 = sqrt(x) * (3.0 * y);
double tmp;
if (y <= -3.1e+35) {
tmp = t_0;
} else if (y <= -5.5e-304) {
tmp = 0.3333333333333333 / sqrt(x);
} else if (y <= 4.8e-65) {
tmp = sqrt(x) * -3.0;
} else if (y <= 1700000.0) {
tmp = 0.3333333333333333 * pow(x, -0.5);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = sqrt(x) * (3.0d0 * y)
if (y <= (-3.1d+35)) then
tmp = t_0
else if (y <= (-5.5d-304)) then
tmp = 0.3333333333333333d0 / sqrt(x)
else if (y <= 4.8d-65) then
tmp = sqrt(x) * (-3.0d0)
else if (y <= 1700000.0d0) then
tmp = 0.3333333333333333d0 * (x ** (-0.5d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = Math.sqrt(x) * (3.0 * y);
double tmp;
if (y <= -3.1e+35) {
tmp = t_0;
} else if (y <= -5.5e-304) {
tmp = 0.3333333333333333 / Math.sqrt(x);
} else if (y <= 4.8e-65) {
tmp = Math.sqrt(x) * -3.0;
} else if (y <= 1700000.0) {
tmp = 0.3333333333333333 * Math.pow(x, -0.5);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = math.sqrt(x) * (3.0 * y) tmp = 0 if y <= -3.1e+35: tmp = t_0 elif y <= -5.5e-304: tmp = 0.3333333333333333 / math.sqrt(x) elif y <= 4.8e-65: tmp = math.sqrt(x) * -3.0 elif y <= 1700000.0: tmp = 0.3333333333333333 * math.pow(x, -0.5) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(sqrt(x) * Float64(3.0 * y)) tmp = 0.0 if (y <= -3.1e+35) tmp = t_0; elseif (y <= -5.5e-304) tmp = Float64(0.3333333333333333 / sqrt(x)); elseif (y <= 4.8e-65) tmp = Float64(sqrt(x) * -3.0); elseif (y <= 1700000.0) tmp = Float64(0.3333333333333333 * (x ^ -0.5)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = sqrt(x) * (3.0 * y); tmp = 0.0; if (y <= -3.1e+35) tmp = t_0; elseif (y <= -5.5e-304) tmp = 0.3333333333333333 / sqrt(x); elseif (y <= 4.8e-65) tmp = sqrt(x) * -3.0; elseif (y <= 1700000.0) tmp = 0.3333333333333333 * (x ^ -0.5); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[Sqrt[x], $MachinePrecision] * N[(3.0 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.1e+35], t$95$0, If[LessEqual[y, -5.5e-304], N[(0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e-65], N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision], If[LessEqual[y, 1700000.0], N[(0.3333333333333333 * N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \sqrt{x} \cdot \left(3 \cdot y\right)\\
\mathbf{if}\;y \leq -3.1 \cdot 10^{+35}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-304}:\\
\;\;\;\;\frac{0.3333333333333333}{\sqrt{x}}\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-65}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\mathbf{elif}\;y \leq 1700000:\\
\;\;\;\;0.3333333333333333 \cdot {x}^{-0.5}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < -3.09999999999999987e35 or 1.7e6 < y Initial program 99.5%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.5%
Taylor expanded in y around inf
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
*-lowering-*.f6485.4%
Simplified85.4%
if -3.09999999999999987e35 < y < -5.50000000000000035e-304Initial program 99.4%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.4%
Taylor expanded in x around 0
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f6455.8%
Simplified55.8%
sqrt-divN/A
metadata-evalN/A
un-div-invN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f6455.9%
Applied egg-rr55.9%
if -5.50000000000000035e-304 < y < 4.8000000000000003e-65Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.4%
Applied egg-rr99.4%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6499.4%
Simplified99.4%
Taylor expanded in y around 0
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
distribute-lft-neg-inN/A
neg-sub0N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
Simplified99.4%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6461.5%
Simplified61.5%
if 4.8000000000000003e-65 < y < 1.7e6Initial program 99.3%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f6463.6%
Simplified63.6%
*-commutativeN/A
*-lowering-*.f64N/A
pow1/2N/A
inv-powN/A
pow-powN/A
pow-lowering-pow.f64N/A
metadata-eval63.6%
Applied egg-rr63.6%
Final simplification71.0%
(FPCore (x y)
:precision binary64
(if (<= y -7e+43)
(* 3.0 (/ y (pow x -0.5)))
(if (<= y 3.25e-9)
(* 3.0 (/ (- 0.1111111111111111 x) (sqrt x)))
(* (* 3.0 (sqrt x)) (+ y -1.0)))))
double code(double x, double y) {
double tmp;
if (y <= -7e+43) {
tmp = 3.0 * (y / pow(x, -0.5));
} else if (y <= 3.25e-9) {
tmp = 3.0 * ((0.1111111111111111 - x) / sqrt(x));
} 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 (y <= (-7d+43)) then
tmp = 3.0d0 * (y / (x ** (-0.5d0)))
else if (y <= 3.25d-9) then
tmp = 3.0d0 * ((0.1111111111111111d0 - x) / sqrt(x))
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 (y <= -7e+43) {
tmp = 3.0 * (y / Math.pow(x, -0.5));
} else if (y <= 3.25e-9) {
tmp = 3.0 * ((0.1111111111111111 - x) / Math.sqrt(x));
} else {
tmp = (3.0 * Math.sqrt(x)) * (y + -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -7e+43: tmp = 3.0 * (y / math.pow(x, -0.5)) elif y <= 3.25e-9: tmp = 3.0 * ((0.1111111111111111 - x) / math.sqrt(x)) else: tmp = (3.0 * math.sqrt(x)) * (y + -1.0) return tmp
function code(x, y) tmp = 0.0 if (y <= -7e+43) tmp = Float64(3.0 * Float64(y / (x ^ -0.5))); elseif (y <= 3.25e-9) tmp = Float64(3.0 * Float64(Float64(0.1111111111111111 - x) / sqrt(x))); else tmp = Float64(Float64(3.0 * sqrt(x)) * Float64(y + -1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -7e+43) tmp = 3.0 * (y / (x ^ -0.5)); elseif (y <= 3.25e-9) tmp = 3.0 * ((0.1111111111111111 - x) / sqrt(x)); else tmp = (3.0 * sqrt(x)) * (y + -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -7e+43], N[(3.0 * N[(y / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.25e-9], N[(3.0 * N[(N[(0.1111111111111111 - x), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+43}:\\
\;\;\;\;3 \cdot \frac{y}{{x}^{-0.5}}\\
\mathbf{elif}\;y \leq 3.25 \cdot 10^{-9}:\\
\;\;\;\;3 \cdot \frac{0.1111111111111111 - x}{\sqrt{x}}\\
\mathbf{else}:\\
\;\;\;\;\left(3 \cdot \sqrt{x}\right) \cdot \left(y + -1\right)\\
\end{array}
\end{array}
if y < -7.0000000000000002e43Initial program 99.6%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6485.9%
Simplified85.9%
*-commutativeN/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
pow1/2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
metadata-eval86.1%
Applied egg-rr86.1%
if -7.0000000000000002e43 < y < 3.2500000000000002e-9Initial program 99.4%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6499.5%
Simplified99.5%
Taylor expanded in y around 0
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
distribute-lft-neg-inN/A
neg-sub0N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
Simplified96.4%
associate-*l*N/A
inv-powN/A
sqrt-pow1N/A
metadata-evalN/A
associate-*r*N/A
metadata-evalN/A
pow-flipN/A
pow1/2N/A
flip3--N/A
*-lowering-*.f64N/A
Applied egg-rr96.5%
if 3.2500000000000002e-9 < y Initial program 99.5%
Taylor expanded in y around inf
Simplified86.5%
Final simplification91.8%
(FPCore (x y)
:precision binary64
(if (<= y -2.9e+44)
(* 3.0 (/ y (pow x -0.5)))
(if (<= y 3.25e-9)
(* (sqrt x) (+ -3.0 (/ 0.3333333333333333 x)))
(* (* 3.0 (sqrt x)) (+ y -1.0)))))
double code(double x, double y) {
double tmp;
if (y <= -2.9e+44) {
tmp = 3.0 * (y / pow(x, -0.5));
} else if (y <= 3.25e-9) {
tmp = sqrt(x) * (-3.0 + (0.3333333333333333 / x));
} 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 (y <= (-2.9d+44)) then
tmp = 3.0d0 * (y / (x ** (-0.5d0)))
else if (y <= 3.25d-9) then
tmp = sqrt(x) * ((-3.0d0) + (0.3333333333333333d0 / x))
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 (y <= -2.9e+44) {
tmp = 3.0 * (y / Math.pow(x, -0.5));
} else if (y <= 3.25e-9) {
tmp = Math.sqrt(x) * (-3.0 + (0.3333333333333333 / x));
} else {
tmp = (3.0 * Math.sqrt(x)) * (y + -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -2.9e+44: tmp = 3.0 * (y / math.pow(x, -0.5)) elif y <= 3.25e-9: tmp = math.sqrt(x) * (-3.0 + (0.3333333333333333 / x)) else: tmp = (3.0 * math.sqrt(x)) * (y + -1.0) return tmp
function code(x, y) tmp = 0.0 if (y <= -2.9e+44) tmp = Float64(3.0 * Float64(y / (x ^ -0.5))); elseif (y <= 3.25e-9) tmp = Float64(sqrt(x) * Float64(-3.0 + Float64(0.3333333333333333 / x))); else tmp = Float64(Float64(3.0 * sqrt(x)) * Float64(y + -1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -2.9e+44) tmp = 3.0 * (y / (x ^ -0.5)); elseif (y <= 3.25e-9) tmp = sqrt(x) * (-3.0 + (0.3333333333333333 / x)); else tmp = (3.0 * sqrt(x)) * (y + -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -2.9e+44], N[(3.0 * N[(y / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.25e-9], N[(N[Sqrt[x], $MachinePrecision] * N[(-3.0 + N[(0.3333333333333333 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{+44}:\\
\;\;\;\;3 \cdot \frac{y}{{x}^{-0.5}}\\
\mathbf{elif}\;y \leq 3.25 \cdot 10^{-9}:\\
\;\;\;\;\sqrt{x} \cdot \left(-3 + \frac{0.3333333333333333}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(3 \cdot \sqrt{x}\right) \cdot \left(y + -1\right)\\
\end{array}
\end{array}
if y < -2.9000000000000002e44Initial program 99.6%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6485.9%
Simplified85.9%
*-commutativeN/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
pow1/2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
metadata-eval86.1%
Applied egg-rr86.1%
if -2.9000000000000002e44 < y < 3.2500000000000002e-9Initial program 99.4%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.4%
Taylor expanded in y around 0
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6496.4%
Simplified96.4%
if 3.2500000000000002e-9 < y Initial program 99.5%
Taylor expanded in y around inf
Simplified86.5%
Final simplification91.8%
(FPCore (x y)
:precision binary64
(if (<= y -2e+44)
(* 3.0 (/ y (pow x -0.5)))
(if (<= y 7500000000000.0)
(* (sqrt x) (+ -3.0 (/ 0.3333333333333333 x)))
(* y (/ 3.0 (pow x -0.5))))))
double code(double x, double y) {
double tmp;
if (y <= -2e+44) {
tmp = 3.0 * (y / pow(x, -0.5));
} else if (y <= 7500000000000.0) {
tmp = sqrt(x) * (-3.0 + (0.3333333333333333 / x));
} else {
tmp = y * (3.0 / pow(x, -0.5));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-2d+44)) then
tmp = 3.0d0 * (y / (x ** (-0.5d0)))
else if (y <= 7500000000000.0d0) then
tmp = sqrt(x) * ((-3.0d0) + (0.3333333333333333d0 / x))
else
tmp = y * (3.0d0 / (x ** (-0.5d0)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -2e+44) {
tmp = 3.0 * (y / Math.pow(x, -0.5));
} else if (y <= 7500000000000.0) {
tmp = Math.sqrt(x) * (-3.0 + (0.3333333333333333 / x));
} else {
tmp = y * (3.0 / Math.pow(x, -0.5));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -2e+44: tmp = 3.0 * (y / math.pow(x, -0.5)) elif y <= 7500000000000.0: tmp = math.sqrt(x) * (-3.0 + (0.3333333333333333 / x)) else: tmp = y * (3.0 / math.pow(x, -0.5)) return tmp
function code(x, y) tmp = 0.0 if (y <= -2e+44) tmp = Float64(3.0 * Float64(y / (x ^ -0.5))); elseif (y <= 7500000000000.0) tmp = Float64(sqrt(x) * Float64(-3.0 + Float64(0.3333333333333333 / x))); else tmp = Float64(y * Float64(3.0 / (x ^ -0.5))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -2e+44) tmp = 3.0 * (y / (x ^ -0.5)); elseif (y <= 7500000000000.0) tmp = sqrt(x) * (-3.0 + (0.3333333333333333 / x)); else tmp = y * (3.0 / (x ^ -0.5)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -2e+44], N[(3.0 * N[(y / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7500000000000.0], N[(N[Sqrt[x], $MachinePrecision] * N[(-3.0 + N[(0.3333333333333333 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(3.0 / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+44}:\\
\;\;\;\;3 \cdot \frac{y}{{x}^{-0.5}}\\
\mathbf{elif}\;y \leq 7500000000000:\\
\;\;\;\;\sqrt{x} \cdot \left(-3 + \frac{0.3333333333333333}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{3}{{x}^{-0.5}}\\
\end{array}
\end{array}
if y < -2.0000000000000002e44Initial program 99.6%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6485.9%
Simplified85.9%
*-commutativeN/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
pow1/2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
metadata-eval86.1%
Applied egg-rr86.1%
if -2.0000000000000002e44 < y < 7.5e12Initial program 99.4%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.4%
Taylor expanded in y around 0
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6495.5%
Simplified95.5%
if 7.5e12 < y Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in y around inf
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6485.9%
Simplified85.9%
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
metadata-evalN/A
div-invN/A
*-lowering-*.f64N/A
div-invN/A
metadata-evalN/A
*-commutativeN/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
pow1/2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
metadata-eval86.1%
Applied egg-rr86.1%
Final simplification91.2%
(FPCore (x y) :precision binary64 (if (<= x 8000000.0) (/ (* 3.0 (+ y (/ 0.1111111111111111 x))) (pow x -0.5)) (* (* 3.0 (sqrt x)) (+ y -1.0))))
double code(double x, double y) {
double tmp;
if (x <= 8000000.0) {
tmp = (3.0 * (y + (0.1111111111111111 / x))) / pow(x, -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 <= 8000000.0d0) then
tmp = (3.0d0 * (y + (0.1111111111111111d0 / x))) / (x ** (-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 <= 8000000.0) {
tmp = (3.0 * (y + (0.1111111111111111 / x))) / Math.pow(x, -0.5);
} else {
tmp = (3.0 * Math.sqrt(x)) * (y + -1.0);
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 8000000.0: tmp = (3.0 * (y + (0.1111111111111111 / x))) / math.pow(x, -0.5) else: tmp = (3.0 * math.sqrt(x)) * (y + -1.0) return tmp
function code(x, y) tmp = 0.0 if (x <= 8000000.0) tmp = Float64(Float64(3.0 * Float64(y + Float64(0.1111111111111111 / x))) / (x ^ -0.5)); else tmp = Float64(Float64(3.0 * sqrt(x)) * Float64(y + -1.0)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 8000000.0) tmp = (3.0 * (y + (0.1111111111111111 / x))) / (x ^ -0.5); else tmp = (3.0 * sqrt(x)) * (y + -1.0); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 8000000.0], N[(N[(3.0 * N[(y + N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision], N[(N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * N[(y + -1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 8000000:\\
\;\;\;\;\frac{3 \cdot \left(y + \frac{0.1111111111111111}{x}\right)}{{x}^{-0.5}}\\
\mathbf{else}:\\
\;\;\;\;\left(3 \cdot \sqrt{x}\right) \cdot \left(y + -1\right)\\
\end{array}
\end{array}
if x < 8e6Initial program 99.3%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f6499.3%
Applied egg-rr99.3%
*-commutativeN/A
associate-*r*N/A
remove-double-divN/A
un-div-invN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-commutativeN/A
metadata-evalN/A
associate-+l+N/A
+-lowering-+.f64N/A
associate-/l/N/A
associate-/r*N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
pow1/2N/A
pow-flipN/A
pow-lowering-pow.f64N/A
metadata-eval99.3%
Applied egg-rr99.3%
Taylor expanded in y around inf
Simplified98.0%
if 8e6 < x Initial program 99.6%
Taylor expanded in y around inf
Simplified99.5%
Final simplification98.8%
(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*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Final simplification99.5%
(FPCore (x y) :precision binary64 (* (sqrt x) (+ (* 3.0 y) (+ -3.0 (/ 0.3333333333333333 x)))))
double code(double x, double y) {
return sqrt(x) * ((3.0 * y) + (-3.0 + (0.3333333333333333 / x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sqrt(x) * ((3.0d0 * y) + ((-3.0d0) + (0.3333333333333333d0 / x)))
end function
public static double code(double x, double y) {
return Math.sqrt(x) * ((3.0 * y) + (-3.0 + (0.3333333333333333 / x)));
}
def code(x, y): return math.sqrt(x) * ((3.0 * y) + (-3.0 + (0.3333333333333333 / x)))
function code(x, y) return Float64(sqrt(x) * Float64(Float64(3.0 * y) + Float64(-3.0 + Float64(0.3333333333333333 / x)))) end
function tmp = code(x, y) tmp = sqrt(x) * ((3.0 * y) + (-3.0 + (0.3333333333333333 / x))); end
code[x_, y_] := N[(N[Sqrt[x], $MachinePrecision] * N[(N[(3.0 * y), $MachinePrecision] + N[(-3.0 + N[(0.3333333333333333 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\sqrt{x} \cdot \left(3 \cdot y + \left(-3 + \frac{0.3333333333333333}{x}\right)\right)
\end{array}
Initial program 99.5%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.5%
(FPCore (x y) :precision binary64 (if (<= x 0.00185) (/ (pow x -0.5) 3.0) (* (sqrt x) -3.0)))
double code(double x, double y) {
double tmp;
if (x <= 0.00185) {
tmp = pow(x, -0.5) / 3.0;
} 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.00185d0) then
tmp = (x ** (-0.5d0)) / 3.0d0
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.00185) {
tmp = Math.pow(x, -0.5) / 3.0;
} else {
tmp = Math.sqrt(x) * -3.0;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.00185: tmp = math.pow(x, -0.5) / 3.0 else: tmp = math.sqrt(x) * -3.0 return tmp
function code(x, y) tmp = 0.0 if (x <= 0.00185) tmp = Float64((x ^ -0.5) / 3.0); else tmp = Float64(sqrt(x) * -3.0); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.00185) tmp = (x ^ -0.5) / 3.0; else tmp = sqrt(x) * -3.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.00185], N[(N[Power[x, -0.5], $MachinePrecision] / 3.0), $MachinePrecision], N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.00185:\\
\;\;\;\;\frac{{x}^{-0.5}}{3}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\end{array}
\end{array}
if x < 0.0018500000000000001Initial program 99.3%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.3%
Taylor expanded in x around 0
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f6469.1%
Simplified69.1%
*-commutativeN/A
*-lowering-*.f64N/A
pow1/2N/A
inv-powN/A
pow-powN/A
pow-lowering-pow.f64N/A
metadata-eval69.1%
Applied egg-rr69.1%
metadata-evalN/A
div-invN/A
/-lowering-/.f64N/A
pow-lowering-pow.f6469.1%
Applied egg-rr69.1%
if 0.0018500000000000001 < x Initial program 99.6%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.6%
Applied egg-rr99.6%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6492.7%
Simplified92.7%
Taylor expanded in y around 0
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
distribute-lft-neg-inN/A
neg-sub0N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
Simplified49.2%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6449.2%
Simplified49.2%
(FPCore (x y) :precision binary64 (if (<= x 0.00185) (/ 0.3333333333333333 (sqrt x)) (* (sqrt x) -3.0)))
double code(double x, double y) {
double tmp;
if (x <= 0.00185) {
tmp = 0.3333333333333333 / sqrt(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.00185d0) then
tmp = 0.3333333333333333d0 / sqrt(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.00185) {
tmp = 0.3333333333333333 / Math.sqrt(x);
} else {
tmp = Math.sqrt(x) * -3.0;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.00185: tmp = 0.3333333333333333 / math.sqrt(x) else: tmp = math.sqrt(x) * -3.0 return tmp
function code(x, y) tmp = 0.0 if (x <= 0.00185) tmp = Float64(0.3333333333333333 / sqrt(x)); else tmp = Float64(sqrt(x) * -3.0); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.00185) tmp = 0.3333333333333333 / sqrt(x); else tmp = sqrt(x) * -3.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.00185], N[(0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.00185:\\
\;\;\;\;\frac{0.3333333333333333}{\sqrt{x}}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{x} \cdot -3\\
\end{array}
\end{array}
if x < 0.0018500000000000001Initial program 99.3%
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
sub-negN/A
+-commutativeN/A
distribute-lft-inN/A
*-commutativeN/A
+-lowering-+.f64N/A
metadata-evalN/A
metadata-evalN/A
*-commutativeN/A
*-commutativeN/A
associate-/r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
Simplified99.3%
Taylor expanded in x around 0
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f6469.1%
Simplified69.1%
sqrt-divN/A
metadata-evalN/A
un-div-invN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f6469.1%
Applied egg-rr69.1%
if 0.0018500000000000001 < x Initial program 99.6%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.6%
Applied egg-rr99.6%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6492.7%
Simplified92.7%
Taylor expanded in y around 0
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
distribute-lft-neg-inN/A
neg-sub0N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
Simplified49.2%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6449.2%
Simplified49.2%
(FPCore (x y) :precision binary64 (* (sqrt x) -3.0))
double code(double x, double y) {
return sqrt(x) * -3.0;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = sqrt(x) * (-3.0d0)
end function
public static double code(double x, double y) {
return Math.sqrt(x) * -3.0;
}
def code(x, y): return math.sqrt(x) * -3.0
function code(x, y) return Float64(sqrt(x) * -3.0) end
function tmp = code(x, y) tmp = sqrt(x) * -3.0; end
code[x_, y_] := N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]
\begin{array}{l}
\\
\sqrt{x} \cdot -3
\end{array}
Initial program 99.5%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6495.8%
Simplified95.8%
Taylor expanded in y around 0
*-rgt-identityN/A
*-inversesN/A
associate-/l*N/A
associate-*l/N/A
associate-*r/N/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
remove-double-negN/A
mul-1-negN/A
distribute-lft-neg-inN/A
neg-sub0N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
*-inversesN/A
*-rgt-identityN/A
mul-1-negN/A
+-commutativeN/A
distribute-neg-inN/A
Simplified59.3%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6426.6%
Simplified26.6%
(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 2024152
(FPCore (x y)
:name "Numeric.SpecFunctions:incompleteGamma from math-functions-0.1.5.2, B"
:precision binary64
:alt
(! :herbie-platform default (* 3 (+ (* y (sqrt x)) (* (- (/ 1 (* x 9)) 1) (sqrt x)))))
(* (* 3.0 (sqrt x)) (- (+ y (/ 1.0 (* x 9.0))) 1.0)))