
(FPCore (x y) :precision binary64 (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (1.0d0 / (x * 9.0d0))) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 - Float64(1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 - N[(1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - (1.0d0 / (x * 9.0d0))) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 - Float64(1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 - N[(1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
(FPCore (x y) :precision binary64 (- (+ 1.0 (/ -1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 + (-1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 + ((-1.0d0) / (x * 9.0d0))) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 + (-1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 + (-1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 + (-1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 + \frac{-1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
Initial program 99.7%
Final simplification99.7%
(FPCore (x y)
:precision binary64
(if (<= y -6.5e+72)
(- 1.0 (/ y (* 3.0 (sqrt x))))
(if (<= y 1.75e+71)
(+ 1.0 (/ -1.0 (* x 9.0)))
(- 1.0 (/ (/ y 3.0) (sqrt x))))))
double code(double x, double y) {
double tmp;
if (y <= -6.5e+72) {
tmp = 1.0 - (y / (3.0 * sqrt(x)));
} else if (y <= 1.75e+71) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = 1.0 - ((y / 3.0) / sqrt(x));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-6.5d+72)) then
tmp = 1.0d0 - (y / (3.0d0 * sqrt(x)))
else if (y <= 1.75d+71) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = 1.0d0 - ((y / 3.0d0) / sqrt(x))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -6.5e+72) {
tmp = 1.0 - (y / (3.0 * Math.sqrt(x)));
} else if (y <= 1.75e+71) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = 1.0 - ((y / 3.0) / Math.sqrt(x));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -6.5e+72: tmp = 1.0 - (y / (3.0 * math.sqrt(x))) elif y <= 1.75e+71: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = 1.0 - ((y / 3.0) / math.sqrt(x)) return tmp
function code(x, y) tmp = 0.0 if (y <= -6.5e+72) tmp = Float64(1.0 - Float64(y / Float64(3.0 * sqrt(x)))); elseif (y <= 1.75e+71) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(1.0 - Float64(Float64(y / 3.0) / sqrt(x))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -6.5e+72) tmp = 1.0 - (y / (3.0 * sqrt(x))); elseif (y <= 1.75e+71) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = 1.0 - ((y / 3.0) / sqrt(x)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -6.5e+72], N[(1.0 - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.75e+71], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 - N[(N[(y / 3.0), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.5 \cdot 10^{+72}:\\
\;\;\;\;1 - \frac{y}{3 \cdot \sqrt{x}}\\
\mathbf{elif}\;y \leq 1.75 \cdot 10^{+71}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{\frac{y}{3}}{\sqrt{x}}\\
\end{array}
\end{array}
if y < -6.5000000000000001e72Initial program 99.7%
Taylor expanded in x around inf
Simplified97.4%
if -6.5000000000000001e72 < y < 1.75e71Initial program 99.8%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6494.8%
Simplified94.8%
clear-numN/A
associate-/r/N/A
metadata-evalN/A
metadata-evalN/A
div-invN/A
distribute-neg-frac2N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r/N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6494.8%
Applied egg-rr94.8%
if 1.75e71 < y Initial program 99.4%
Taylor expanded in x around inf
Simplified98.4%
associate-/r*N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f6498.5%
Applied egg-rr98.5%
(FPCore (x y)
:precision binary64
(let* ((t_0 (- 1.0 (/ y (* 3.0 (sqrt x))))))
(if (<= y -2.3e+74)
t_0
(if (<= y 4.8e+70) (+ 1.0 (/ -1.0 (* x 9.0))) t_0))))
double code(double x, double y) {
double t_0 = 1.0 - (y / (3.0 * sqrt(x)));
double tmp;
if (y <= -2.3e+74) {
tmp = t_0;
} else if (y <= 4.8e+70) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} 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 = 1.0d0 - (y / (3.0d0 * sqrt(x)))
if (y <= (-2.3d+74)) then
tmp = t_0
else if (y <= 4.8d+70) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = 1.0 - (y / (3.0 * Math.sqrt(x)));
double tmp;
if (y <= -2.3e+74) {
tmp = t_0;
} else if (y <= 4.8e+70) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = 1.0 - (y / (3.0 * math.sqrt(x))) tmp = 0 if y <= -2.3e+74: tmp = t_0 elif y <= 4.8e+70: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(1.0 - Float64(y / Float64(3.0 * sqrt(x)))) tmp = 0.0 if (y <= -2.3e+74) tmp = t_0; elseif (y <= 4.8e+70) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = 1.0 - (y / (3.0 * sqrt(x))); tmp = 0.0; if (y <= -2.3e+74) tmp = t_0; elseif (y <= 4.8e+70) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(1.0 - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.3e+74], t$95$0, If[LessEqual[y, 4.8e+70], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 1 - \frac{y}{3 \cdot \sqrt{x}}\\
\mathbf{if}\;y \leq -2.3 \cdot 10^{+74}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{+70}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < -2.2999999999999999e74 or 4.79999999999999974e70 < y Initial program 99.6%
Taylor expanded in x around inf
Simplified97.9%
if -2.2999999999999999e74 < y < 4.79999999999999974e70Initial program 99.8%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6494.8%
Simplified94.8%
clear-numN/A
associate-/r/N/A
metadata-evalN/A
metadata-evalN/A
div-invN/A
distribute-neg-frac2N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r/N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6494.8%
Applied egg-rr94.8%
(FPCore (x y)
:precision binary64
(if (<= y -1.2e+73)
(/ y (* (sqrt x) -3.0))
(if (<= y 5.3e+93)
(+ 1.0 (/ -1.0 (* x 9.0)))
(* -0.3333333333333333 (* y (pow x -0.5))))))
double code(double x, double y) {
double tmp;
if (y <= -1.2e+73) {
tmp = y / (sqrt(x) * -3.0);
} else if (y <= 5.3e+93) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = -0.3333333333333333 * (y * 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 <= (-1.2d+73)) then
tmp = y / (sqrt(x) * (-3.0d0))
else if (y <= 5.3d+93) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = (-0.3333333333333333d0) * (y * (x ** (-0.5d0)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -1.2e+73) {
tmp = y / (Math.sqrt(x) * -3.0);
} else if (y <= 5.3e+93) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = -0.3333333333333333 * (y * Math.pow(x, -0.5));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -1.2e+73: tmp = y / (math.sqrt(x) * -3.0) elif y <= 5.3e+93: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = -0.3333333333333333 * (y * math.pow(x, -0.5)) return tmp
function code(x, y) tmp = 0.0 if (y <= -1.2e+73) tmp = Float64(y / Float64(sqrt(x) * -3.0)); elseif (y <= 5.3e+93) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(-0.3333333333333333 * Float64(y * (x ^ -0.5))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -1.2e+73) tmp = y / (sqrt(x) * -3.0); elseif (y <= 5.3e+93) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = -0.3333333333333333 * (y * (x ^ -0.5)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -1.2e+73], N[(y / N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.3e+93], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-0.3333333333333333 * N[(y * N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{+73}:\\
\;\;\;\;\frac{y}{\sqrt{x} \cdot -3}\\
\mathbf{elif}\;y \leq 5.3 \cdot 10^{+93}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;-0.3333333333333333 \cdot \left(y \cdot {x}^{-0.5}\right)\\
\end{array}
\end{array}
if y < -1.20000000000000001e73Initial program 99.7%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6495.5%
Simplified95.5%
*-commutativeN/A
associate-*l*N/A
metadata-evalN/A
sqrt-divN/A
metadata-evalN/A
div-invN/A
times-fracN/A
neg-mul-1N/A
distribute-neg-fracN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval95.8%
Applied egg-rr95.8%
if -1.20000000000000001e73 < y < 5.3000000000000004e93Initial program 99.8%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6494.4%
Simplified94.4%
clear-numN/A
associate-/r/N/A
metadata-evalN/A
metadata-evalN/A
div-invN/A
distribute-neg-frac2N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r/N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6494.4%
Applied egg-rr94.4%
if 5.3000000000000004e93 < y Initial program 99.4%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.2%
Simplified98.2%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
pow1/2N/A
inv-powN/A
pow-powN/A
pow-lowering-pow.f64N/A
metadata-eval98.3%
Applied egg-rr98.3%
Final simplification95.2%
(FPCore (x y)
:precision binary64
(if (<= y -2.4e+84)
(/ y (* (sqrt x) -3.0))
(if (<= y 1.25e+92)
(+ 1.0 (/ -1.0 (* x 9.0)))
(* y (* -0.3333333333333333 (pow x -0.5))))))
double code(double x, double y) {
double tmp;
if (y <= -2.4e+84) {
tmp = y / (sqrt(x) * -3.0);
} else if (y <= 1.25e+92) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = y * (-0.3333333333333333 * 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 <= (-2.4d+84)) then
tmp = y / (sqrt(x) * (-3.0d0))
else if (y <= 1.25d+92) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = y * ((-0.3333333333333333d0) * (x ** (-0.5d0)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -2.4e+84) {
tmp = y / (Math.sqrt(x) * -3.0);
} else if (y <= 1.25e+92) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = y * (-0.3333333333333333 * Math.pow(x, -0.5));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -2.4e+84: tmp = y / (math.sqrt(x) * -3.0) elif y <= 1.25e+92: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = y * (-0.3333333333333333 * math.pow(x, -0.5)) return tmp
function code(x, y) tmp = 0.0 if (y <= -2.4e+84) tmp = Float64(y / Float64(sqrt(x) * -3.0)); elseif (y <= 1.25e+92) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(y * Float64(-0.3333333333333333 * (x ^ -0.5))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -2.4e+84) tmp = y / (sqrt(x) * -3.0); elseif (y <= 1.25e+92) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = y * (-0.3333333333333333 * (x ^ -0.5)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -2.4e+84], N[(y / N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.25e+92], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(-0.3333333333333333 * N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{+84}:\\
\;\;\;\;\frac{y}{\sqrt{x} \cdot -3}\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{+92}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(-0.3333333333333333 \cdot {x}^{-0.5}\right)\\
\end{array}
\end{array}
if y < -2.4e84Initial program 99.7%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6495.5%
Simplified95.5%
*-commutativeN/A
associate-*l*N/A
metadata-evalN/A
sqrt-divN/A
metadata-evalN/A
div-invN/A
times-fracN/A
neg-mul-1N/A
distribute-neg-fracN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval95.8%
Applied egg-rr95.8%
if -2.4e84 < y < 1.25000000000000005e92Initial program 99.8%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6494.4%
Simplified94.4%
clear-numN/A
associate-/r/N/A
metadata-evalN/A
metadata-evalN/A
div-invN/A
distribute-neg-frac2N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r/N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6494.4%
Applied egg-rr94.4%
if 1.25000000000000005e92 < y Initial program 99.4%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.2%
Simplified98.2%
*-lowering-*.f64N/A
pow1/2N/A
inv-powN/A
pow-powN/A
pow-lowering-pow.f64N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6498.2%
Applied egg-rr98.2%
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
pow-lowering-pow.f6498.2%
Applied egg-rr98.2%
Final simplification95.2%
(FPCore (x y)
:precision binary64
(if (<= y -2.8e+72)
(/ y (* (sqrt x) -3.0))
(if (<= y 1.4e+92)
(+ 1.0 (/ -1.0 (* x 9.0)))
(* (/ y (sqrt x)) -0.3333333333333333))))
double code(double x, double y) {
double tmp;
if (y <= -2.8e+72) {
tmp = y / (sqrt(x) * -3.0);
} else if (y <= 1.4e+92) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = (y / sqrt(x)) * -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 <= (-2.8d+72)) then
tmp = y / (sqrt(x) * (-3.0d0))
else if (y <= 1.4d+92) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = (y / sqrt(x)) * (-0.3333333333333333d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -2.8e+72) {
tmp = y / (Math.sqrt(x) * -3.0);
} else if (y <= 1.4e+92) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = (y / Math.sqrt(x)) * -0.3333333333333333;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -2.8e+72: tmp = y / (math.sqrt(x) * -3.0) elif y <= 1.4e+92: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = (y / math.sqrt(x)) * -0.3333333333333333 return tmp
function code(x, y) tmp = 0.0 if (y <= -2.8e+72) tmp = Float64(y / Float64(sqrt(x) * -3.0)); elseif (y <= 1.4e+92) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(Float64(y / sqrt(x)) * -0.3333333333333333); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -2.8e+72) tmp = y / (sqrt(x) * -3.0); elseif (y <= 1.4e+92) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = (y / sqrt(x)) * -0.3333333333333333; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -2.8e+72], N[(y / N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e+92], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.8 \cdot 10^{+72}:\\
\;\;\;\;\frac{y}{\sqrt{x} \cdot -3}\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+92}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\sqrt{x}} \cdot -0.3333333333333333\\
\end{array}
\end{array}
if y < -2.7999999999999999e72Initial program 99.7%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6495.5%
Simplified95.5%
*-commutativeN/A
associate-*l*N/A
metadata-evalN/A
sqrt-divN/A
metadata-evalN/A
div-invN/A
times-fracN/A
neg-mul-1N/A
distribute-neg-fracN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval95.8%
Applied egg-rr95.8%
if -2.7999999999999999e72 < y < 1.4e92Initial program 99.8%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6494.4%
Simplified94.4%
clear-numN/A
associate-/r/N/A
metadata-evalN/A
metadata-evalN/A
div-invN/A
distribute-neg-frac2N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r/N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6494.4%
Applied egg-rr94.4%
if 1.4e92 < y Initial program 99.4%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.2%
Simplified98.2%
*-commutativeN/A
associate-*l*N/A
sqrt-divN/A
metadata-evalN/A
div-invN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f6498.2%
Applied egg-rr98.2%
Final simplification95.2%
(FPCore (x y)
:precision binary64
(if (<= y -2.9e+76)
(* y (/ -0.3333333333333333 (sqrt x)))
(if (<= y 1.25e+92)
(+ 1.0 (/ -1.0 (* x 9.0)))
(* (/ y (sqrt x)) -0.3333333333333333))))
double code(double x, double y) {
double tmp;
if (y <= -2.9e+76) {
tmp = y * (-0.3333333333333333 / sqrt(x));
} else if (y <= 1.25e+92) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = (y / sqrt(x)) * -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 <= (-2.9d+76)) then
tmp = y * ((-0.3333333333333333d0) / sqrt(x))
else if (y <= 1.25d+92) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = (y / sqrt(x)) * (-0.3333333333333333d0)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -2.9e+76) {
tmp = y * (-0.3333333333333333 / Math.sqrt(x));
} else if (y <= 1.25e+92) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = (y / Math.sqrt(x)) * -0.3333333333333333;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -2.9e+76: tmp = y * (-0.3333333333333333 / math.sqrt(x)) elif y <= 1.25e+92: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = (y / math.sqrt(x)) * -0.3333333333333333 return tmp
function code(x, y) tmp = 0.0 if (y <= -2.9e+76) tmp = Float64(y * Float64(-0.3333333333333333 / sqrt(x))); elseif (y <= 1.25e+92) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(Float64(y / sqrt(x)) * -0.3333333333333333); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -2.9e+76) tmp = y * (-0.3333333333333333 / sqrt(x)); elseif (y <= 1.25e+92) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = (y / sqrt(x)) * -0.3333333333333333; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -2.9e+76], N[(y * N[(-0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.25e+92], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{+76}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{+92}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{\sqrt{x}} \cdot -0.3333333333333333\\
\end{array}
\end{array}
if y < -2.9000000000000002e76Initial program 99.7%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6495.5%
Simplified95.5%
associate-*r*N/A
*-lowering-*.f64N/A
sqrt-divN/A
metadata-evalN/A
associate-*l/N/A
metadata-evalN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f6495.8%
Applied egg-rr95.8%
if -2.9000000000000002e76 < y < 1.25000000000000005e92Initial program 99.8%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6494.4%
Simplified94.4%
clear-numN/A
associate-/r/N/A
metadata-evalN/A
metadata-evalN/A
div-invN/A
distribute-neg-frac2N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r/N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6494.4%
Applied egg-rr94.4%
if 1.25000000000000005e92 < y Initial program 99.4%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6498.2%
Simplified98.2%
*-commutativeN/A
associate-*l*N/A
sqrt-divN/A
metadata-evalN/A
div-invN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f6498.2%
Applied egg-rr98.2%
Final simplification95.2%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* (/ y (sqrt x)) -0.3333333333333333)))
(if (<= y -1.7e+77)
t_0
(if (<= y 1.6e+92) (+ 1.0 (/ -1.0 (* x 9.0))) t_0))))
double code(double x, double y) {
double t_0 = (y / sqrt(x)) * -0.3333333333333333;
double tmp;
if (y <= -1.7e+77) {
tmp = t_0;
} else if (y <= 1.6e+92) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} 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 = (y / sqrt(x)) * (-0.3333333333333333d0)
if (y <= (-1.7d+77)) then
tmp = t_0
else if (y <= 1.6d+92) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = (y / Math.sqrt(x)) * -0.3333333333333333;
double tmp;
if (y <= -1.7e+77) {
tmp = t_0;
} else if (y <= 1.6e+92) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = (y / math.sqrt(x)) * -0.3333333333333333 tmp = 0 if y <= -1.7e+77: tmp = t_0 elif y <= 1.6e+92: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(Float64(y / sqrt(x)) * -0.3333333333333333) tmp = 0.0 if (y <= -1.7e+77) tmp = t_0; elseif (y <= 1.6e+92) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = (y / sqrt(x)) * -0.3333333333333333; tmp = 0.0; if (y <= -1.7e+77) tmp = t_0; elseif (y <= 1.6e+92) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]}, If[LessEqual[y, -1.7e+77], t$95$0, If[LessEqual[y, 1.6e+92], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{\sqrt{x}} \cdot -0.3333333333333333\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{+77}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+92}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if y < -1.69999999999999998e77 or 1.60000000000000013e92 < y Initial program 99.6%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around inf
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6496.8%
Simplified96.8%
*-commutativeN/A
associate-*l*N/A
sqrt-divN/A
metadata-evalN/A
div-invN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f6496.9%
Applied egg-rr96.9%
if -1.69999999999999998e77 < y < 1.60000000000000013e92Initial program 99.8%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6494.4%
Simplified94.4%
clear-numN/A
associate-/r/N/A
metadata-evalN/A
metadata-evalN/A
div-invN/A
distribute-neg-frac2N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r/N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6494.4%
Applied egg-rr94.4%
Final simplification95.2%
(FPCore (x y) :precision binary64 (if (<= x 0.11) (/ (- -0.1111111111111111 (* y (* (sqrt x) 0.3333333333333333))) x) (- 1.0 (/ y (* 3.0 (sqrt x))))))
double code(double x, double y) {
double tmp;
if (x <= 0.11) {
tmp = (-0.1111111111111111 - (y * (sqrt(x) * 0.3333333333333333))) / x;
} else {
tmp = 1.0 - (y / (3.0 * sqrt(x)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 0.11d0) then
tmp = ((-0.1111111111111111d0) - (y * (sqrt(x) * 0.3333333333333333d0))) / x
else
tmp = 1.0d0 - (y / (3.0d0 * sqrt(x)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 0.11) {
tmp = (-0.1111111111111111 - (y * (Math.sqrt(x) * 0.3333333333333333))) / x;
} else {
tmp = 1.0 - (y / (3.0 * Math.sqrt(x)));
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.11: tmp = (-0.1111111111111111 - (y * (math.sqrt(x) * 0.3333333333333333))) / x else: tmp = 1.0 - (y / (3.0 * math.sqrt(x))) return tmp
function code(x, y) tmp = 0.0 if (x <= 0.11) tmp = Float64(Float64(-0.1111111111111111 - Float64(y * Float64(sqrt(x) * 0.3333333333333333))) / x); else tmp = Float64(1.0 - Float64(y / Float64(3.0 * sqrt(x)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.11) tmp = (-0.1111111111111111 - (y * (sqrt(x) * 0.3333333333333333))) / x; else tmp = 1.0 - (y / (3.0 * sqrt(x))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.11], N[(N[(-0.1111111111111111 - N[(y * N[(N[Sqrt[x], $MachinePrecision] * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(1.0 - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.11:\\
\;\;\;\;\frac{-0.1111111111111111 - y \cdot \left(\sqrt{x} \cdot 0.3333333333333333\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{y}{3 \cdot \sqrt{x}}\\
\end{array}
\end{array}
if x < 0.110000000000000001Initial program 99.6%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0
sub-negN/A
metadata-evalN/A
distribute-lft-neg-inN/A
distribute-neg-inN/A
+-commutativeN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6498.4%
Simplified98.4%
if 0.110000000000000001 < x Initial program 99.8%
Taylor expanded in x around inf
Simplified97.9%
(FPCore (x y) :precision binary64 (+ (+ 1.0 (/ -0.1111111111111111 x)) (/ y (* (sqrt x) -3.0))))
double code(double x, double y) {
return (1.0 + (-0.1111111111111111 / x)) + (y / (sqrt(x) * -3.0));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 + ((-0.1111111111111111d0) / x)) + (y / (sqrt(x) * (-3.0d0)))
end function
public static double code(double x, double y) {
return (1.0 + (-0.1111111111111111 / x)) + (y / (Math.sqrt(x) * -3.0));
}
def code(x, y): return (1.0 + (-0.1111111111111111 / x)) + (y / (math.sqrt(x) * -3.0))
function code(x, y) return Float64(Float64(1.0 + Float64(-0.1111111111111111 / x)) + Float64(y / Float64(sqrt(x) * -3.0))) end
function tmp = code(x, y) tmp = (1.0 + (-0.1111111111111111 / x)) + (y / (sqrt(x) * -3.0)); end
code[x_, y_] := N[(N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision] + N[(y / N[(N[Sqrt[x], $MachinePrecision] * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 + \frac{-0.1111111111111111}{x}\right) + \frac{y}{\sqrt{x} \cdot -3}
\end{array}
Initial program 99.7%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
(FPCore (x y) :precision binary64 (+ (+ 1.0 (/ -0.1111111111111111 x)) (* (/ y (sqrt x)) -0.3333333333333333)))
double code(double x, double y) {
return (1.0 + (-0.1111111111111111 / x)) + ((y / sqrt(x)) * -0.3333333333333333);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 + ((-0.1111111111111111d0) / x)) + ((y / sqrt(x)) * (-0.3333333333333333d0))
end function
public static double code(double x, double y) {
return (1.0 + (-0.1111111111111111 / x)) + ((y / Math.sqrt(x)) * -0.3333333333333333);
}
def code(x, y): return (1.0 + (-0.1111111111111111 / x)) + ((y / math.sqrt(x)) * -0.3333333333333333)
function code(x, y) return Float64(Float64(1.0 + Float64(-0.1111111111111111 / x)) + Float64(Float64(y / sqrt(x)) * -0.3333333333333333)) end
function tmp = code(x, y) tmp = (1.0 + (-0.1111111111111111 / x)) + ((y / sqrt(x)) * -0.3333333333333333); end
code[x_, y_] := N[(N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 + \frac{-0.1111111111111111}{x}\right) + \frac{y}{\sqrt{x}} \cdot -0.3333333333333333
\end{array}
Initial program 99.7%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
associate-/r*N/A
div-invN/A
metadata-evalN/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-evalN/A
metadata-eval99.7%
Applied egg-rr99.7%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* x (* x x))))
(if (<= y -3.7e+129)
(-
(/ 1.0 (/ (+ 0.012345679012345678 (* x 0.1111111111111111)) (* x x)))
(/ -0.0013717421124828531 t_0))
(if (<= y 2.2e+98)
(+ 1.0 (/ -1.0 (* x 9.0)))
(/ -0.00030483158055174517 (* x t_0))))))
double code(double x, double y) {
double t_0 = x * (x * x);
double tmp;
if (y <= -3.7e+129) {
tmp = (1.0 / ((0.012345679012345678 + (x * 0.1111111111111111)) / (x * x))) - (-0.0013717421124828531 / t_0);
} else if (y <= 2.2e+98) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = -0.00030483158055174517 / (x * t_0);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = x * (x * x)
if (y <= (-3.7d+129)) then
tmp = (1.0d0 / ((0.012345679012345678d0 + (x * 0.1111111111111111d0)) / (x * x))) - ((-0.0013717421124828531d0) / t_0)
else if (y <= 2.2d+98) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = (-0.00030483158055174517d0) / (x * t_0)
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = x * (x * x);
double tmp;
if (y <= -3.7e+129) {
tmp = (1.0 / ((0.012345679012345678 + (x * 0.1111111111111111)) / (x * x))) - (-0.0013717421124828531 / t_0);
} else if (y <= 2.2e+98) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = -0.00030483158055174517 / (x * t_0);
}
return tmp;
}
def code(x, y): t_0 = x * (x * x) tmp = 0 if y <= -3.7e+129: tmp = (1.0 / ((0.012345679012345678 + (x * 0.1111111111111111)) / (x * x))) - (-0.0013717421124828531 / t_0) elif y <= 2.2e+98: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = -0.00030483158055174517 / (x * t_0) return tmp
function code(x, y) t_0 = Float64(x * Float64(x * x)) tmp = 0.0 if (y <= -3.7e+129) tmp = Float64(Float64(1.0 / Float64(Float64(0.012345679012345678 + Float64(x * 0.1111111111111111)) / Float64(x * x))) - Float64(-0.0013717421124828531 / t_0)); elseif (y <= 2.2e+98) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(-0.00030483158055174517 / Float64(x * t_0)); end return tmp end
function tmp_2 = code(x, y) t_0 = x * (x * x); tmp = 0.0; if (y <= -3.7e+129) tmp = (1.0 / ((0.012345679012345678 + (x * 0.1111111111111111)) / (x * x))) - (-0.0013717421124828531 / t_0); elseif (y <= 2.2e+98) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = -0.00030483158055174517 / (x * t_0); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.7e+129], N[(N[(1.0 / N[(N[(0.012345679012345678 + N[(x * 0.1111111111111111), $MachinePrecision]), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-0.0013717421124828531 / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e+98], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-0.00030483158055174517 / N[(x * t$95$0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot x\right)\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{+129}:\\
\;\;\;\;\frac{1}{\frac{0.012345679012345678 + x \cdot 0.1111111111111111}{x \cdot x}} - \frac{-0.0013717421124828531}{t\_0}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+98}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;\frac{-0.00030483158055174517}{x \cdot t\_0}\\
\end{array}
\end{array}
if y < -3.69999999999999978e129Initial program 99.7%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f642.4%
Simplified2.4%
Applied egg-rr11.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6412.2%
Simplified12.2%
Taylor expanded in x around inf
/-lowering-/.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6432.9%
Simplified32.9%
if -3.69999999999999978e129 < y < 2.20000000000000009e98Initial program 99.8%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6491.1%
Simplified91.1%
clear-numN/A
associate-/r/N/A
metadata-evalN/A
metadata-evalN/A
div-invN/A
distribute-neg-frac2N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r/N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6491.2%
Applied egg-rr91.2%
if 2.20000000000000009e98 < y Initial program 99.4%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f643.0%
Simplified3.0%
Applied egg-rr0.8%
Taylor expanded in x around -inf
+-lowering-+.f64N/A
associate-*r/N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
remove-double-negN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified6.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
metadata-evalN/A
pow-plusN/A
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6416.4%
Simplified16.4%
(FPCore (x y)
:precision binary64
(if (<= y -3.6e+133)
(+ 1.0 (/ (+ -0.1111111111111111 (/ 0.0027434842249657062 (* x x))) x))
(if (<= y 2.2e+98)
(+ 1.0 (/ -1.0 (* x 9.0)))
(/ -0.00030483158055174517 (* x (* x (* x x)))))))
double code(double x, double y) {
double tmp;
if (y <= -3.6e+133) {
tmp = 1.0 + ((-0.1111111111111111 + (0.0027434842249657062 / (x * x))) / x);
} else if (y <= 2.2e+98) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = -0.00030483158055174517 / (x * (x * (x * x)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= (-3.6d+133)) then
tmp = 1.0d0 + (((-0.1111111111111111d0) + (0.0027434842249657062d0 / (x * x))) / x)
else if (y <= 2.2d+98) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = (-0.00030483158055174517d0) / (x * (x * (x * x)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= -3.6e+133) {
tmp = 1.0 + ((-0.1111111111111111 + (0.0027434842249657062 / (x * x))) / x);
} else if (y <= 2.2e+98) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = -0.00030483158055174517 / (x * (x * (x * x)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= -3.6e+133: tmp = 1.0 + ((-0.1111111111111111 + (0.0027434842249657062 / (x * x))) / x) elif y <= 2.2e+98: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = -0.00030483158055174517 / (x * (x * (x * x))) return tmp
function code(x, y) tmp = 0.0 if (y <= -3.6e+133) tmp = Float64(1.0 + Float64(Float64(-0.1111111111111111 + Float64(0.0027434842249657062 / Float64(x * x))) / x)); elseif (y <= 2.2e+98) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(-0.00030483158055174517 / Float64(x * Float64(x * Float64(x * x)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= -3.6e+133) tmp = 1.0 + ((-0.1111111111111111 + (0.0027434842249657062 / (x * x))) / x); elseif (y <= 2.2e+98) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = -0.00030483158055174517 / (x * (x * (x * x))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, -3.6e+133], N[(1.0 + N[(N[(-0.1111111111111111 + N[(0.0027434842249657062 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e+98], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-0.00030483158055174517 / N[(x * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.6 \cdot 10^{+133}:\\
\;\;\;\;1 + \frac{-0.1111111111111111 + \frac{0.0027434842249657062}{x \cdot x}}{x}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+98}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;\frac{-0.00030483158055174517}{x \cdot \left(x \cdot \left(x \cdot x\right)\right)}\\
\end{array}
\end{array}
if y < -3.59999999999999978e133Initial program 99.7%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f642.2%
Simplified2.2%
Applied egg-rr12.2%
Taylor expanded in x around inf
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
unpow3N/A
unpow2N/A
associate-/r*N/A
metadata-evalN/A
associate-*r/N/A
distribute-neg-inN/A
sub-negN/A
associate-*r/N/A
metadata-evalN/A
div-subN/A
distribute-neg-fracN/A
Simplified34.1%
if -3.59999999999999978e133 < y < 2.20000000000000009e98Initial program 99.8%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6490.2%
Simplified90.2%
clear-numN/A
associate-/r/N/A
metadata-evalN/A
metadata-evalN/A
div-invN/A
distribute-neg-frac2N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r/N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6490.2%
Applied egg-rr90.2%
if 2.20000000000000009e98 < y Initial program 99.4%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f643.0%
Simplified3.0%
Applied egg-rr0.8%
Taylor expanded in x around -inf
+-lowering-+.f64N/A
associate-*r/N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
remove-double-negN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified6.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
metadata-evalN/A
pow-plusN/A
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6416.4%
Simplified16.4%
(FPCore (x y) :precision binary64 (if (<= y 2.2e+98) (+ 1.0 (/ -1.0 (* x 9.0))) (/ -0.00030483158055174517 (* x (* x (* x x))))))
double code(double x, double y) {
double tmp;
if (y <= 2.2e+98) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = -0.00030483158055174517 / (x * (x * (x * x)));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 2.2d+98) then
tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
else
tmp = (-0.00030483158055174517d0) / (x * (x * (x * x)))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 2.2e+98) {
tmp = 1.0 + (-1.0 / (x * 9.0));
} else {
tmp = -0.00030483158055174517 / (x * (x * (x * x)));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 2.2e+98: tmp = 1.0 + (-1.0 / (x * 9.0)) else: tmp = -0.00030483158055174517 / (x * (x * (x * x))) return tmp
function code(x, y) tmp = 0.0 if (y <= 2.2e+98) tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))); else tmp = Float64(-0.00030483158055174517 / Float64(x * Float64(x * Float64(x * x)))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 2.2e+98) tmp = 1.0 + (-1.0 / (x * 9.0)); else tmp = -0.00030483158055174517 / (x * (x * (x * x))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 2.2e+98], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-0.00030483158055174517 / N[(x * N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 2.2 \cdot 10^{+98}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\
\mathbf{else}:\\
\;\;\;\;\frac{-0.00030483158055174517}{x \cdot \left(x \cdot \left(x \cdot x\right)\right)}\\
\end{array}
\end{array}
if y < 2.20000000000000009e98Initial program 99.8%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6476.9%
Simplified76.9%
clear-numN/A
associate-/r/N/A
metadata-evalN/A
metadata-evalN/A
div-invN/A
distribute-neg-frac2N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r/N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6476.9%
Applied egg-rr76.9%
if 2.20000000000000009e98 < y Initial program 99.4%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.4%
Simplified99.4%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f643.0%
Simplified3.0%
Applied egg-rr0.8%
Taylor expanded in x around -inf
+-lowering-+.f64N/A
associate-*r/N/A
mul-1-negN/A
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
remove-double-negN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified6.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
metadata-evalN/A
pow-plusN/A
*-commutativeN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6416.4%
Simplified16.4%
(FPCore (x y) :precision binary64 (if (<= x 0.155) (/ -0.1111111111111111 x) 1.0))
double code(double x, double y) {
double tmp;
if (x <= 0.155) {
tmp = -0.1111111111111111 / x;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (x <= 0.155d0) then
tmp = (-0.1111111111111111d0) / x
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (x <= 0.155) {
tmp = -0.1111111111111111 / x;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y): tmp = 0 if x <= 0.155: tmp = -0.1111111111111111 / x else: tmp = 1.0 return tmp
function code(x, y) tmp = 0.0 if (x <= 0.155) tmp = Float64(-0.1111111111111111 / x); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (x <= 0.155) tmp = -0.1111111111111111 / x; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[x, 0.155], N[(-0.1111111111111111 / x), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.155:\\
\;\;\;\;\frac{-0.1111111111111111}{x}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 0.154999999999999999Initial program 99.6%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6468.6%
Simplified68.6%
Taylor expanded in x around 0
/-lowering-/.f6467.5%
Simplified67.5%
if 0.154999999999999999 < x Initial program 99.8%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6463.1%
Simplified63.1%
Taylor expanded in x around inf
Simplified61.2%
(FPCore (x y) :precision binary64 (+ 1.0 (/ -1.0 (* x 9.0))))
double code(double x, double y) {
return 1.0 + (-1.0 / (x * 9.0));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
end function
public static double code(double x, double y) {
return 1.0 + (-1.0 / (x * 9.0));
}
def code(x, y): return 1.0 + (-1.0 / (x * 9.0))
function code(x, y) return Float64(1.0 + Float64(-1.0 / Float64(x * 9.0))) end
function tmp = code(x, y) tmp = 1.0 + (-1.0 / (x * 9.0)); end
code[x_, y_] := N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + \frac{-1}{x \cdot 9}
\end{array}
Initial program 99.7%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6465.9%
Simplified65.9%
clear-numN/A
associate-/r/N/A
metadata-evalN/A
metadata-evalN/A
div-invN/A
distribute-neg-frac2N/A
clear-numN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-/r/N/A
metadata-evalN/A
*-commutativeN/A
*-lowering-*.f6466.0%
Applied egg-rr66.0%
(FPCore (x y) :precision binary64 (+ 1.0 (/ -0.1111111111111111 x)))
double code(double x, double y) {
return 1.0 + (-0.1111111111111111 / x);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 + ((-0.1111111111111111d0) / x)
end function
public static double code(double x, double y) {
return 1.0 + (-0.1111111111111111 / x);
}
def code(x, y): return 1.0 + (-0.1111111111111111 / x)
function code(x, y) return Float64(1.0 + Float64(-0.1111111111111111 / x)) end
function tmp = code(x, y) tmp = 1.0 + (-0.1111111111111111 / x); end
code[x_, y_] := N[(1.0 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + \frac{-0.1111111111111111}{x}
\end{array}
Initial program 99.7%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6465.9%
Simplified65.9%
(FPCore (x y) :precision binary64 1.0)
double code(double x, double y) {
return 1.0;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0
end function
public static double code(double x, double y) {
return 1.0;
}
def code(x, y): return 1.0
function code(x, y) return 1.0 end
function tmp = code(x, y) tmp = 1.0; end
code[x_, y_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 99.7%
sub-negN/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
associate-/r*N/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
metadata-evalN/A
distribute-neg-frac2N/A
/-lowering-/.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6465.9%
Simplified65.9%
Taylor expanded in x around inf
Simplified30.4%
(FPCore (x y) :precision binary64 (- (- 1.0 (/ (/ 1.0 x) 9.0)) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
return (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (1.0d0 - ((1.0d0 / x) / 9.0d0)) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
return (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y): return (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * math.sqrt(x)))
function code(x, y) return Float64(Float64(1.0 - Float64(Float64(1.0 / x) / 9.0)) - Float64(y / Float64(3.0 * sqrt(x)))) end
function tmp = code(x, y) tmp = (1.0 - ((1.0 / x) / 9.0)) - (y / (3.0 * sqrt(x))); end
code[x_, y_] := N[(N[(1.0 - N[(N[(1.0 / x), $MachinePrecision] / 9.0), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(1 - \frac{\frac{1}{x}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
herbie shell --seed 2024160
(FPCore (x y)
:name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, D"
:precision binary64
:alt
(! :herbie-platform default (- (- 1 (/ (/ 1 x) 9)) (/ y (* 3 (sqrt x)))))
(- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))