Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, D

Percentage Accurate: 99.7% → 99.7%
Time: 9.6s
Alternatives: 14
Speedup: 1.0×

Specification

?
\[\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}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 14 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 99.7% accurate, 1.0× speedup?

\[\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}

Alternative 1: 99.7% accurate, 1.0× speedup?

\[\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}
Derivation
  1. Initial program 99.7%

    \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  2. Add Preprocessing
  3. Final simplification99.7%

    \[\leadsto \left(1 + \frac{-1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  4. Add Preprocessing

Alternative 2: 94.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -8.5 \cdot 10^{+56} \lor \neg \left(y \leq 2.4 \cdot 10^{+60}\right):\\ \;\;\;\;1 - y \cdot \frac{0.3333333333333333}{\sqrt{x}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x \cdot 9}\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (if (or (<= y -8.5e+56) (not (<= y 2.4e+60)))
   (- 1.0 (* y (/ 0.3333333333333333 (sqrt x))))
   (+ 1.0 (/ -1.0 (* x 9.0)))))
double code(double x, double y) {
	double tmp;
	if ((y <= -8.5e+56) || !(y <= 2.4e+60)) {
		tmp = 1.0 - (y * (0.3333333333333333 / sqrt(x)));
	} else {
		tmp = 1.0 + (-1.0 / (x * 9.0));
	}
	return tmp;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8) :: tmp
    if ((y <= (-8.5d+56)) .or. (.not. (y <= 2.4d+60))) then
        tmp = 1.0d0 - (y * (0.3333333333333333d0 / sqrt(x)))
    else
        tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double tmp;
	if ((y <= -8.5e+56) || !(y <= 2.4e+60)) {
		tmp = 1.0 - (y * (0.3333333333333333 / Math.sqrt(x)));
	} else {
		tmp = 1.0 + (-1.0 / (x * 9.0));
	}
	return tmp;
}
def code(x, y):
	tmp = 0
	if (y <= -8.5e+56) or not (y <= 2.4e+60):
		tmp = 1.0 - (y * (0.3333333333333333 / math.sqrt(x)))
	else:
		tmp = 1.0 + (-1.0 / (x * 9.0))
	return tmp
function code(x, y)
	tmp = 0.0
	if ((y <= -8.5e+56) || !(y <= 2.4e+60))
		tmp = Float64(1.0 - Float64(y * Float64(0.3333333333333333 / sqrt(x))));
	else
		tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0)));
	end
	return tmp
end
function tmp_2 = code(x, y)
	tmp = 0.0;
	if ((y <= -8.5e+56) || ~((y <= 2.4e+60)))
		tmp = 1.0 - (y * (0.3333333333333333 / sqrt(x)));
	else
		tmp = 1.0 + (-1.0 / (x * 9.0));
	end
	tmp_2 = tmp;
end
code[x_, y_] := If[Or[LessEqual[y, -8.5e+56], N[Not[LessEqual[y, 2.4e+60]], $MachinePrecision]], N[(1.0 - N[(y * N[(0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{+56} \lor \neg \left(y \leq 2.4 \cdot 10^{+60}\right):\\
\;\;\;\;1 - y \cdot \frac{0.3333333333333333}{\sqrt{x}}\\

\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -8.4999999999999998e56 or 2.4e60 < y

    1. Initial program 99.5%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf 94.4%

      \[\leadsto \color{blue}{1 - 0.3333333333333333 \cdot \left(\sqrt{\frac{1}{x}} \cdot y\right)} \]
    4. Step-by-step derivation
      1. metadata-eval94.4%

        \[\leadsto 1 - \color{blue}{\frac{1}{3}} \cdot \left(\sqrt{\frac{1}{x}} \cdot y\right) \]
      2. *-commutative94.4%

        \[\leadsto 1 - \frac{1}{3} \cdot \color{blue}{\left(y \cdot \sqrt{\frac{1}{x}}\right)} \]
      3. sqrt-div94.4%

        \[\leadsto 1 - \frac{1}{3} \cdot \left(y \cdot \color{blue}{\frac{\sqrt{1}}{\sqrt{x}}}\right) \]
      4. metadata-eval94.4%

        \[\leadsto 1 - \frac{1}{3} \cdot \left(y \cdot \frac{\color{blue}{1}}{\sqrt{x}}\right) \]
      5. div-inv94.6%

        \[\leadsto 1 - \frac{1}{3} \cdot \color{blue}{\frac{y}{\sqrt{x}}} \]
      6. times-frac94.6%

        \[\leadsto 1 - \color{blue}{\frac{1 \cdot y}{3 \cdot \sqrt{x}}} \]
      7. *-un-lft-identity94.6%

        \[\leadsto 1 - \frac{\color{blue}{y}}{3 \cdot \sqrt{x}} \]
      8. clear-num94.5%

        \[\leadsto 1 - \color{blue}{\frac{1}{\frac{3 \cdot \sqrt{x}}{y}}} \]
      9. *-un-lft-identity94.5%

        \[\leadsto 1 - \frac{1}{\frac{3 \cdot \sqrt{x}}{\color{blue}{1 \cdot y}}} \]
      10. times-frac94.6%

        \[\leadsto 1 - \frac{1}{\color{blue}{\frac{3}{1} \cdot \frac{\sqrt{x}}{y}}} \]
      11. metadata-eval94.6%

        \[\leadsto 1 - \frac{1}{\color{blue}{3} \cdot \frac{\sqrt{x}}{y}} \]
    5. Applied egg-rr94.6%

      \[\leadsto 1 - \color{blue}{\frac{1}{3 \cdot \frac{\sqrt{x}}{y}}} \]
    6. Step-by-step derivation
      1. associate-/r*94.5%

        \[\leadsto 1 - \color{blue}{\frac{\frac{1}{3}}{\frac{\sqrt{x}}{y}}} \]
      2. metadata-eval94.5%

        \[\leadsto 1 - \frac{\color{blue}{0.3333333333333333}}{\frac{\sqrt{x}}{y}} \]
      3. associate-/r/94.5%

        \[\leadsto 1 - \color{blue}{\frac{0.3333333333333333}{\sqrt{x}} \cdot y} \]
      4. *-commutative94.5%

        \[\leadsto 1 - \color{blue}{y \cdot \frac{0.3333333333333333}{\sqrt{x}}} \]
    7. Simplified94.5%

      \[\leadsto 1 - \color{blue}{y \cdot \frac{0.3333333333333333}{\sqrt{x}}} \]

    if -8.4999999999999998e56 < y < 2.4e60

    1. Initial program 99.8%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Step-by-step derivation
      1. associate--l-99.8%

        \[\leadsto \color{blue}{1 - \left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)} \]
      2. sub-neg99.8%

        \[\leadsto \color{blue}{1 + \left(-\left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)\right)} \]
      3. +-commutative99.8%

        \[\leadsto 1 + \left(-\color{blue}{\left(\frac{y}{3 \cdot \sqrt{x}} + \frac{1}{x \cdot 9}\right)}\right) \]
      4. distribute-neg-in99.8%

        \[\leadsto 1 + \color{blue}{\left(\left(-\frac{y}{3 \cdot \sqrt{x}}\right) + \left(-\frac{1}{x \cdot 9}\right)\right)} \]
      5. distribute-frac-neg99.8%

        \[\leadsto 1 + \left(\color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} + \left(-\frac{1}{x \cdot 9}\right)\right) \]
      6. sub-neg99.8%

        \[\leadsto 1 + \color{blue}{\left(\frac{-y}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right)} \]
      7. neg-mul-199.8%

        \[\leadsto 1 + \left(\frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
      8. *-commutative99.8%

        \[\leadsto 1 + \left(\frac{\color{blue}{y \cdot -1}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
      9. associate-/l*99.8%

        \[\leadsto 1 + \left(\color{blue}{y \cdot \frac{-1}{3 \cdot \sqrt{x}}} - \frac{1}{x \cdot 9}\right) \]
      10. fma-neg99.8%

        \[\leadsto 1 + \color{blue}{\mathsf{fma}\left(y, \frac{-1}{3 \cdot \sqrt{x}}, -\frac{1}{x \cdot 9}\right)} \]
      11. associate-/r*99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \color{blue}{\frac{\frac{-1}{3}}{\sqrt{x}}}, -\frac{1}{x \cdot 9}\right) \]
      12. metadata-eval99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{\color{blue}{-0.3333333333333333}}{\sqrt{x}}, -\frac{1}{x \cdot 9}\right) \]
      13. *-commutative99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\frac{1}{\color{blue}{9 \cdot x}}\right) \]
      14. associate-/r*99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\color{blue}{\frac{\frac{1}{9}}{x}}\right) \]
      15. distribute-neg-frac99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \color{blue}{\frac{-\frac{1}{9}}{x}}\right) \]
      16. metadata-eval99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-\color{blue}{0.1111111111111111}}{x}\right) \]
      17. metadata-eval99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{\color{blue}{-0.1111111111111111}}{x}\right) \]
    3. Simplified99.6%

      \[\leadsto \color{blue}{1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-0.1111111111111111}{x}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 97.8%

      \[\leadsto 1 + \color{blue}{\frac{-0.1111111111111111}{x}} \]
    6. Step-by-step derivation
      1. metadata-eval97.8%

        \[\leadsto 1 + \frac{\color{blue}{-0.1111111111111111}}{x} \]
      2. distribute-neg-frac97.8%

        \[\leadsto 1 + \color{blue}{\left(-\frac{0.1111111111111111}{x}\right)} \]
      3. add-sqr-sqrt97.7%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x}} \cdot \sqrt{\frac{0.1111111111111111}{x}}}\right) \]
      4. sqrt-unprod72.4%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x} \cdot \frac{0.1111111111111111}{x}}}\right) \]
      5. frac-times72.5%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{0.1111111111111111 \cdot 0.1111111111111111}{x \cdot x}}}\right) \]
      6. metadata-eval72.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
      7. metadata-eval72.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{-0.1111111111111111 \cdot -0.1111111111111111}}{x \cdot x}}\right) \]
      8. frac-times72.4%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
      9. sqrt-unprod0.0%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
      10. add-sqr-sqrt48.0%

        \[\leadsto 1 + \left(-\color{blue}{\frac{-0.1111111111111111}{x}}\right) \]
    7. Applied egg-rr48.0%

      \[\leadsto 1 + \color{blue}{\left(-\frac{-0.1111111111111111}{x}\right)} \]
    8. Step-by-step derivation
      1. add-sqr-sqrt0.0%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
      2. sqrt-unprod72.4%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
      3. frac-times72.5%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111 \cdot -0.1111111111111111}{x \cdot x}}}\right) \]
      4. metadata-eval72.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
      5. pow272.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{0.012345679012345678}{\color{blue}{{x}^{2}}}}\right) \]
    9. Applied egg-rr72.5%

      \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.012345679012345678}{{x}^{2}}}}\right) \]
    10. Step-by-step derivation
      1. clear-num72.5%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{1}{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
      2. sqrt-div73.0%

        \[\leadsto 1 + \left(-\color{blue}{\frac{\sqrt{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
      3. metadata-eval73.0%

        \[\leadsto 1 + \left(-\frac{\color{blue}{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}\right) \]
      4. div-inv73.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{{x}^{2} \cdot \frac{1}{0.012345679012345678}}}}\right) \]
      5. unpow273.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot x\right)} \cdot \frac{1}{0.012345679012345678}}}\right) \]
      6. metadata-eval73.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{81}}}\right) \]
      7. metadata-eval73.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{\left(9 \cdot 9\right)}}}\right) \]
      8. swap-sqr73.2%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot 9\right) \cdot \left(x \cdot 9\right)}}}\right) \]
      9. sqrt-unprod97.7%

        \[\leadsto 1 + \left(-\frac{1}{\color{blue}{\sqrt{x \cdot 9} \cdot \sqrt{x \cdot 9}}}\right) \]
      10. add-sqr-sqrt98.0%

        \[\leadsto 1 + \left(-\frac{1}{\color{blue}{x \cdot 9}}\right) \]
    11. Applied egg-rr98.0%

      \[\leadsto 1 + \left(-\color{blue}{\frac{1}{x \cdot 9}}\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification96.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8.5 \cdot 10^{+56} \lor \neg \left(y \leq 2.4 \cdot 10^{+60}\right):\\ \;\;\;\;1 - y \cdot \frac{0.3333333333333333}{\sqrt{x}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x \cdot 9}\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 94.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -4.9 \cdot 10^{+54} \lor \neg \left(y \leq 1.4 \cdot 10^{+60}\right):\\ \;\;\;\;1 - \frac{0.3333333333333333}{\frac{\sqrt{x}}{y}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x \cdot 9}\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (if (or (<= y -4.9e+54) (not (<= y 1.4e+60)))
   (- 1.0 (/ 0.3333333333333333 (/ (sqrt x) y)))
   (+ 1.0 (/ -1.0 (* x 9.0)))))
double code(double x, double y) {
	double tmp;
	if ((y <= -4.9e+54) || !(y <= 1.4e+60)) {
		tmp = 1.0 - (0.3333333333333333 / (sqrt(x) / y));
	} else {
		tmp = 1.0 + (-1.0 / (x * 9.0));
	}
	return tmp;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8) :: tmp
    if ((y <= (-4.9d+54)) .or. (.not. (y <= 1.4d+60))) then
        tmp = 1.0d0 - (0.3333333333333333d0 / (sqrt(x) / y))
    else
        tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double tmp;
	if ((y <= -4.9e+54) || !(y <= 1.4e+60)) {
		tmp = 1.0 - (0.3333333333333333 / (Math.sqrt(x) / y));
	} else {
		tmp = 1.0 + (-1.0 / (x * 9.0));
	}
	return tmp;
}
def code(x, y):
	tmp = 0
	if (y <= -4.9e+54) or not (y <= 1.4e+60):
		tmp = 1.0 - (0.3333333333333333 / (math.sqrt(x) / y))
	else:
		tmp = 1.0 + (-1.0 / (x * 9.0))
	return tmp
function code(x, y)
	tmp = 0.0
	if ((y <= -4.9e+54) || !(y <= 1.4e+60))
		tmp = Float64(1.0 - Float64(0.3333333333333333 / Float64(sqrt(x) / y)));
	else
		tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0)));
	end
	return tmp
end
function tmp_2 = code(x, y)
	tmp = 0.0;
	if ((y <= -4.9e+54) || ~((y <= 1.4e+60)))
		tmp = 1.0 - (0.3333333333333333 / (sqrt(x) / y));
	else
		tmp = 1.0 + (-1.0 / (x * 9.0));
	end
	tmp_2 = tmp;
end
code[x_, y_] := If[Or[LessEqual[y, -4.9e+54], N[Not[LessEqual[y, 1.4e+60]], $MachinePrecision]], N[(1.0 - N[(0.3333333333333333 / N[(N[Sqrt[x], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.9 \cdot 10^{+54} \lor \neg \left(y \leq 1.4 \cdot 10^{+60}\right):\\
\;\;\;\;1 - \frac{0.3333333333333333}{\frac{\sqrt{x}}{y}}\\

\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -4.90000000000000001e54 or 1.4e60 < y

    1. Initial program 99.5%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf 94.4%

      \[\leadsto \color{blue}{1 - 0.3333333333333333 \cdot \left(\sqrt{\frac{1}{x}} \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-commutative94.4%

        \[\leadsto 1 - 0.3333333333333333 \cdot \color{blue}{\left(y \cdot \sqrt{\frac{1}{x}}\right)} \]
      2. sqrt-div94.4%

        \[\leadsto 1 - 0.3333333333333333 \cdot \left(y \cdot \color{blue}{\frac{\sqrt{1}}{\sqrt{x}}}\right) \]
      3. metadata-eval94.4%

        \[\leadsto 1 - 0.3333333333333333 \cdot \left(y \cdot \frac{\color{blue}{1}}{\sqrt{x}}\right) \]
      4. div-inv94.6%

        \[\leadsto 1 - 0.3333333333333333 \cdot \color{blue}{\frac{y}{\sqrt{x}}} \]
      5. clear-num94.5%

        \[\leadsto 1 - 0.3333333333333333 \cdot \color{blue}{\frac{1}{\frac{\sqrt{x}}{y}}} \]
      6. add-sqr-sqrt48.1%

        \[\leadsto 1 - 0.3333333333333333 \cdot \frac{1}{\frac{\sqrt{x}}{\color{blue}{\sqrt{y} \cdot \sqrt{y}}}} \]
      7. sqrt-unprod29.1%

        \[\leadsto 1 - 0.3333333333333333 \cdot \frac{1}{\frac{\sqrt{x}}{\color{blue}{\sqrt{y \cdot y}}}} \]
      8. sqr-neg29.1%

        \[\leadsto 1 - 0.3333333333333333 \cdot \frac{1}{\frac{\sqrt{x}}{\sqrt{\color{blue}{\left(-y\right) \cdot \left(-y\right)}}}} \]
      9. sqrt-unprod3.0%

        \[\leadsto 1 - 0.3333333333333333 \cdot \frac{1}{\frac{\sqrt{x}}{\color{blue}{\sqrt{-y} \cdot \sqrt{-y}}}} \]
      10. add-sqr-sqrt6.5%

        \[\leadsto 1 - 0.3333333333333333 \cdot \frac{1}{\frac{\sqrt{x}}{\color{blue}{-y}}} \]
      11. distribute-neg-frac26.5%

        \[\leadsto 1 - 0.3333333333333333 \cdot \frac{1}{\color{blue}{-\frac{\sqrt{x}}{y}}} \]
      12. div-inv6.5%

        \[\leadsto 1 - \color{blue}{\frac{0.3333333333333333}{-\frac{\sqrt{x}}{y}}} \]
      13. distribute-neg-frac26.5%

        \[\leadsto 1 - \frac{0.3333333333333333}{\color{blue}{\frac{\sqrt{x}}{-y}}} \]
      14. add-sqr-sqrt3.0%

        \[\leadsto 1 - \frac{0.3333333333333333}{\frac{\sqrt{x}}{\color{blue}{\sqrt{-y} \cdot \sqrt{-y}}}} \]
      15. sqrt-unprod29.1%

        \[\leadsto 1 - \frac{0.3333333333333333}{\frac{\sqrt{x}}{\color{blue}{\sqrt{\left(-y\right) \cdot \left(-y\right)}}}} \]
      16. sqr-neg29.1%

        \[\leadsto 1 - \frac{0.3333333333333333}{\frac{\sqrt{x}}{\sqrt{\color{blue}{y \cdot y}}}} \]
      17. sqrt-unprod48.1%

        \[\leadsto 1 - \frac{0.3333333333333333}{\frac{\sqrt{x}}{\color{blue}{\sqrt{y} \cdot \sqrt{y}}}} \]
      18. add-sqr-sqrt94.5%

        \[\leadsto 1 - \frac{0.3333333333333333}{\frac{\sqrt{x}}{\color{blue}{y}}} \]
    5. Applied egg-rr94.5%

      \[\leadsto 1 - \color{blue}{\frac{0.3333333333333333}{\frac{\sqrt{x}}{y}}} \]

    if -4.90000000000000001e54 < y < 1.4e60

    1. Initial program 99.8%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Step-by-step derivation
      1. associate--l-99.8%

        \[\leadsto \color{blue}{1 - \left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)} \]
      2. sub-neg99.8%

        \[\leadsto \color{blue}{1 + \left(-\left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)\right)} \]
      3. +-commutative99.8%

        \[\leadsto 1 + \left(-\color{blue}{\left(\frac{y}{3 \cdot \sqrt{x}} + \frac{1}{x \cdot 9}\right)}\right) \]
      4. distribute-neg-in99.8%

        \[\leadsto 1 + \color{blue}{\left(\left(-\frac{y}{3 \cdot \sqrt{x}}\right) + \left(-\frac{1}{x \cdot 9}\right)\right)} \]
      5. distribute-frac-neg99.8%

        \[\leadsto 1 + \left(\color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} + \left(-\frac{1}{x \cdot 9}\right)\right) \]
      6. sub-neg99.8%

        \[\leadsto 1 + \color{blue}{\left(\frac{-y}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right)} \]
      7. neg-mul-199.8%

        \[\leadsto 1 + \left(\frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
      8. *-commutative99.8%

        \[\leadsto 1 + \left(\frac{\color{blue}{y \cdot -1}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
      9. associate-/l*99.8%

        \[\leadsto 1 + \left(\color{blue}{y \cdot \frac{-1}{3 \cdot \sqrt{x}}} - \frac{1}{x \cdot 9}\right) \]
      10. fma-neg99.8%

        \[\leadsto 1 + \color{blue}{\mathsf{fma}\left(y, \frac{-1}{3 \cdot \sqrt{x}}, -\frac{1}{x \cdot 9}\right)} \]
      11. associate-/r*99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \color{blue}{\frac{\frac{-1}{3}}{\sqrt{x}}}, -\frac{1}{x \cdot 9}\right) \]
      12. metadata-eval99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{\color{blue}{-0.3333333333333333}}{\sqrt{x}}, -\frac{1}{x \cdot 9}\right) \]
      13. *-commutative99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\frac{1}{\color{blue}{9 \cdot x}}\right) \]
      14. associate-/r*99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\color{blue}{\frac{\frac{1}{9}}{x}}\right) \]
      15. distribute-neg-frac99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \color{blue}{\frac{-\frac{1}{9}}{x}}\right) \]
      16. metadata-eval99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-\color{blue}{0.1111111111111111}}{x}\right) \]
      17. metadata-eval99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{\color{blue}{-0.1111111111111111}}{x}\right) \]
    3. Simplified99.6%

      \[\leadsto \color{blue}{1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-0.1111111111111111}{x}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 97.8%

      \[\leadsto 1 + \color{blue}{\frac{-0.1111111111111111}{x}} \]
    6. Step-by-step derivation
      1. metadata-eval97.8%

        \[\leadsto 1 + \frac{\color{blue}{-0.1111111111111111}}{x} \]
      2. distribute-neg-frac97.8%

        \[\leadsto 1 + \color{blue}{\left(-\frac{0.1111111111111111}{x}\right)} \]
      3. add-sqr-sqrt97.7%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x}} \cdot \sqrt{\frac{0.1111111111111111}{x}}}\right) \]
      4. sqrt-unprod72.4%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x} \cdot \frac{0.1111111111111111}{x}}}\right) \]
      5. frac-times72.5%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{0.1111111111111111 \cdot 0.1111111111111111}{x \cdot x}}}\right) \]
      6. metadata-eval72.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
      7. metadata-eval72.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{-0.1111111111111111 \cdot -0.1111111111111111}}{x \cdot x}}\right) \]
      8. frac-times72.4%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
      9. sqrt-unprod0.0%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
      10. add-sqr-sqrt48.0%

        \[\leadsto 1 + \left(-\color{blue}{\frac{-0.1111111111111111}{x}}\right) \]
    7. Applied egg-rr48.0%

      \[\leadsto 1 + \color{blue}{\left(-\frac{-0.1111111111111111}{x}\right)} \]
    8. Step-by-step derivation
      1. add-sqr-sqrt0.0%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
      2. sqrt-unprod72.4%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
      3. frac-times72.5%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111 \cdot -0.1111111111111111}{x \cdot x}}}\right) \]
      4. metadata-eval72.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
      5. pow272.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{0.012345679012345678}{\color{blue}{{x}^{2}}}}\right) \]
    9. Applied egg-rr72.5%

      \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.012345679012345678}{{x}^{2}}}}\right) \]
    10. Step-by-step derivation
      1. clear-num72.5%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{1}{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
      2. sqrt-div73.0%

        \[\leadsto 1 + \left(-\color{blue}{\frac{\sqrt{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
      3. metadata-eval73.0%

        \[\leadsto 1 + \left(-\frac{\color{blue}{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}\right) \]
      4. div-inv73.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{{x}^{2} \cdot \frac{1}{0.012345679012345678}}}}\right) \]
      5. unpow273.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot x\right)} \cdot \frac{1}{0.012345679012345678}}}\right) \]
      6. metadata-eval73.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{81}}}\right) \]
      7. metadata-eval73.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{\left(9 \cdot 9\right)}}}\right) \]
      8. swap-sqr73.2%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot 9\right) \cdot \left(x \cdot 9\right)}}}\right) \]
      9. sqrt-unprod97.7%

        \[\leadsto 1 + \left(-\frac{1}{\color{blue}{\sqrt{x \cdot 9} \cdot \sqrt{x \cdot 9}}}\right) \]
      10. add-sqr-sqrt98.0%

        \[\leadsto 1 + \left(-\frac{1}{\color{blue}{x \cdot 9}}\right) \]
    11. Applied egg-rr98.0%

      \[\leadsto 1 + \left(-\color{blue}{\frac{1}{x \cdot 9}}\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification96.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.9 \cdot 10^{+54} \lor \neg \left(y \leq 1.4 \cdot 10^{+60}\right):\\ \;\;\;\;1 - \frac{0.3333333333333333}{\frac{\sqrt{x}}{y}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x \cdot 9}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 94.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.08 \cdot 10^{+55} \lor \neg \left(y \leq 1.18 \cdot 10^{+60}\right):\\ \;\;\;\;1 - \frac{y}{\sqrt{x \cdot 9}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x \cdot 9}\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (if (or (<= y -1.08e+55) (not (<= y 1.18e+60)))
   (- 1.0 (/ y (sqrt (* x 9.0))))
   (+ 1.0 (/ -1.0 (* x 9.0)))))
double code(double x, double y) {
	double tmp;
	if ((y <= -1.08e+55) || !(y <= 1.18e+60)) {
		tmp = 1.0 - (y / sqrt((x * 9.0)));
	} else {
		tmp = 1.0 + (-1.0 / (x * 9.0));
	}
	return tmp;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8) :: tmp
    if ((y <= (-1.08d+55)) .or. (.not. (y <= 1.18d+60))) then
        tmp = 1.0d0 - (y / sqrt((x * 9.0d0)))
    else
        tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double tmp;
	if ((y <= -1.08e+55) || !(y <= 1.18e+60)) {
		tmp = 1.0 - (y / Math.sqrt((x * 9.0)));
	} else {
		tmp = 1.0 + (-1.0 / (x * 9.0));
	}
	return tmp;
}
def code(x, y):
	tmp = 0
	if (y <= -1.08e+55) or not (y <= 1.18e+60):
		tmp = 1.0 - (y / math.sqrt((x * 9.0)))
	else:
		tmp = 1.0 + (-1.0 / (x * 9.0))
	return tmp
function code(x, y)
	tmp = 0.0
	if ((y <= -1.08e+55) || !(y <= 1.18e+60))
		tmp = Float64(1.0 - Float64(y / sqrt(Float64(x * 9.0))));
	else
		tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0)));
	end
	return tmp
end
function tmp_2 = code(x, y)
	tmp = 0.0;
	if ((y <= -1.08e+55) || ~((y <= 1.18e+60)))
		tmp = 1.0 - (y / sqrt((x * 9.0)));
	else
		tmp = 1.0 + (-1.0 / (x * 9.0));
	end
	tmp_2 = tmp;
end
code[x_, y_] := If[Or[LessEqual[y, -1.08e+55], N[Not[LessEqual[y, 1.18e+60]], $MachinePrecision]], N[(1.0 - N[(y / N[Sqrt[N[(x * 9.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.08 \cdot 10^{+55} \lor \neg \left(y \leq 1.18 \cdot 10^{+60}\right):\\
\;\;\;\;1 - \frac{y}{\sqrt{x \cdot 9}}\\

\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.08000000000000004e55 or 1.18000000000000008e60 < y

    1. Initial program 99.5%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf 94.4%

      \[\leadsto \color{blue}{1 - 0.3333333333333333 \cdot \left(\sqrt{\frac{1}{x}} \cdot y\right)} \]
    4. Step-by-step derivation
      1. metadata-eval94.4%

        \[\leadsto 1 - \color{blue}{\frac{1}{3}} \cdot \left(\sqrt{\frac{1}{x}} \cdot y\right) \]
      2. *-commutative94.4%

        \[\leadsto 1 - \frac{1}{3} \cdot \color{blue}{\left(y \cdot \sqrt{\frac{1}{x}}\right)} \]
      3. sqrt-div94.4%

        \[\leadsto 1 - \frac{1}{3} \cdot \left(y \cdot \color{blue}{\frac{\sqrt{1}}{\sqrt{x}}}\right) \]
      4. metadata-eval94.4%

        \[\leadsto 1 - \frac{1}{3} \cdot \left(y \cdot \frac{\color{blue}{1}}{\sqrt{x}}\right) \]
      5. div-inv94.6%

        \[\leadsto 1 - \frac{1}{3} \cdot \color{blue}{\frac{y}{\sqrt{x}}} \]
      6. times-frac94.6%

        \[\leadsto 1 - \color{blue}{\frac{1 \cdot y}{3 \cdot \sqrt{x}}} \]
      7. *-un-lft-identity94.6%

        \[\leadsto 1 - \frac{\color{blue}{y}}{3 \cdot \sqrt{x}} \]
    5. Applied egg-rr94.6%

      \[\leadsto 1 - \color{blue}{\frac{y}{3 \cdot \sqrt{x}}} \]
    6. Step-by-step derivation
      1. *-commutative94.6%

        \[\leadsto 1 - \frac{y}{\color{blue}{\sqrt{x} \cdot 3}} \]
      2. metadata-eval94.6%

        \[\leadsto 1 - \frac{y}{\sqrt{x} \cdot \color{blue}{\sqrt{9}}} \]
      3. sqrt-prod94.7%

        \[\leadsto 1 - \frac{y}{\color{blue}{\sqrt{x \cdot 9}}} \]
      4. pow1/294.7%

        \[\leadsto 1 - \frac{y}{\color{blue}{{\left(x \cdot 9\right)}^{0.5}}} \]
    7. Applied egg-rr94.7%

      \[\leadsto 1 - \frac{y}{\color{blue}{{\left(x \cdot 9\right)}^{0.5}}} \]
    8. Step-by-step derivation
      1. unpow1/294.7%

        \[\leadsto 1 - \frac{y}{\color{blue}{\sqrt{x \cdot 9}}} \]
    9. Simplified94.7%

      \[\leadsto 1 - \frac{y}{\color{blue}{\sqrt{x \cdot 9}}} \]

    if -1.08000000000000004e55 < y < 1.18000000000000008e60

    1. Initial program 99.8%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Step-by-step derivation
      1. associate--l-99.8%

        \[\leadsto \color{blue}{1 - \left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)} \]
      2. sub-neg99.8%

        \[\leadsto \color{blue}{1 + \left(-\left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)\right)} \]
      3. +-commutative99.8%

        \[\leadsto 1 + \left(-\color{blue}{\left(\frac{y}{3 \cdot \sqrt{x}} + \frac{1}{x \cdot 9}\right)}\right) \]
      4. distribute-neg-in99.8%

        \[\leadsto 1 + \color{blue}{\left(\left(-\frac{y}{3 \cdot \sqrt{x}}\right) + \left(-\frac{1}{x \cdot 9}\right)\right)} \]
      5. distribute-frac-neg99.8%

        \[\leadsto 1 + \left(\color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} + \left(-\frac{1}{x \cdot 9}\right)\right) \]
      6. sub-neg99.8%

        \[\leadsto 1 + \color{blue}{\left(\frac{-y}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right)} \]
      7. neg-mul-199.8%

        \[\leadsto 1 + \left(\frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
      8. *-commutative99.8%

        \[\leadsto 1 + \left(\frac{\color{blue}{y \cdot -1}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
      9. associate-/l*99.8%

        \[\leadsto 1 + \left(\color{blue}{y \cdot \frac{-1}{3 \cdot \sqrt{x}}} - \frac{1}{x \cdot 9}\right) \]
      10. fma-neg99.8%

        \[\leadsto 1 + \color{blue}{\mathsf{fma}\left(y, \frac{-1}{3 \cdot \sqrt{x}}, -\frac{1}{x \cdot 9}\right)} \]
      11. associate-/r*99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \color{blue}{\frac{\frac{-1}{3}}{\sqrt{x}}}, -\frac{1}{x \cdot 9}\right) \]
      12. metadata-eval99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{\color{blue}{-0.3333333333333333}}{\sqrt{x}}, -\frac{1}{x \cdot 9}\right) \]
      13. *-commutative99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\frac{1}{\color{blue}{9 \cdot x}}\right) \]
      14. associate-/r*99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\color{blue}{\frac{\frac{1}{9}}{x}}\right) \]
      15. distribute-neg-frac99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \color{blue}{\frac{-\frac{1}{9}}{x}}\right) \]
      16. metadata-eval99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-\color{blue}{0.1111111111111111}}{x}\right) \]
      17. metadata-eval99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{\color{blue}{-0.1111111111111111}}{x}\right) \]
    3. Simplified99.6%

      \[\leadsto \color{blue}{1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-0.1111111111111111}{x}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 97.8%

      \[\leadsto 1 + \color{blue}{\frac{-0.1111111111111111}{x}} \]
    6. Step-by-step derivation
      1. metadata-eval97.8%

        \[\leadsto 1 + \frac{\color{blue}{-0.1111111111111111}}{x} \]
      2. distribute-neg-frac97.8%

        \[\leadsto 1 + \color{blue}{\left(-\frac{0.1111111111111111}{x}\right)} \]
      3. add-sqr-sqrt97.7%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x}} \cdot \sqrt{\frac{0.1111111111111111}{x}}}\right) \]
      4. sqrt-unprod72.4%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x} \cdot \frac{0.1111111111111111}{x}}}\right) \]
      5. frac-times72.5%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{0.1111111111111111 \cdot 0.1111111111111111}{x \cdot x}}}\right) \]
      6. metadata-eval72.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
      7. metadata-eval72.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{-0.1111111111111111 \cdot -0.1111111111111111}}{x \cdot x}}\right) \]
      8. frac-times72.4%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
      9. sqrt-unprod0.0%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
      10. add-sqr-sqrt48.0%

        \[\leadsto 1 + \left(-\color{blue}{\frac{-0.1111111111111111}{x}}\right) \]
    7. Applied egg-rr48.0%

      \[\leadsto 1 + \color{blue}{\left(-\frac{-0.1111111111111111}{x}\right)} \]
    8. Step-by-step derivation
      1. add-sqr-sqrt0.0%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
      2. sqrt-unprod72.4%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
      3. frac-times72.5%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111 \cdot -0.1111111111111111}{x \cdot x}}}\right) \]
      4. metadata-eval72.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
      5. pow272.5%

        \[\leadsto 1 + \left(-\sqrt{\frac{0.012345679012345678}{\color{blue}{{x}^{2}}}}\right) \]
    9. Applied egg-rr72.5%

      \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.012345679012345678}{{x}^{2}}}}\right) \]
    10. Step-by-step derivation
      1. clear-num72.5%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{1}{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
      2. sqrt-div73.0%

        \[\leadsto 1 + \left(-\color{blue}{\frac{\sqrt{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
      3. metadata-eval73.0%

        \[\leadsto 1 + \left(-\frac{\color{blue}{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}\right) \]
      4. div-inv73.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{{x}^{2} \cdot \frac{1}{0.012345679012345678}}}}\right) \]
      5. unpow273.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot x\right)} \cdot \frac{1}{0.012345679012345678}}}\right) \]
      6. metadata-eval73.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{81}}}\right) \]
      7. metadata-eval73.1%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{\left(9 \cdot 9\right)}}}\right) \]
      8. swap-sqr73.2%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot 9\right) \cdot \left(x \cdot 9\right)}}}\right) \]
      9. sqrt-unprod97.7%

        \[\leadsto 1 + \left(-\frac{1}{\color{blue}{\sqrt{x \cdot 9} \cdot \sqrt{x \cdot 9}}}\right) \]
      10. add-sqr-sqrt98.0%

        \[\leadsto 1 + \left(-\frac{1}{\color{blue}{x \cdot 9}}\right) \]
    11. Applied egg-rr98.0%

      \[\leadsto 1 + \left(-\color{blue}{\frac{1}{x \cdot 9}}\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification96.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.08 \cdot 10^{+55} \lor \neg \left(y \leq 1.18 \cdot 10^{+60}\right):\\ \;\;\;\;1 - \frac{y}{\sqrt{x \cdot 9}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x \cdot 9}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 92.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+67} \lor \neg \left(y \leq 9.2 \cdot 10^{+79}\right):\\ \;\;\;\;y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x \cdot 9}\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (if (or (<= y -1.15e+67) (not (<= y 9.2e+79)))
   (* y (/ -0.3333333333333333 (sqrt x)))
   (+ 1.0 (/ -1.0 (* x 9.0)))))
double code(double x, double y) {
	double tmp;
	if ((y <= -1.15e+67) || !(y <= 9.2e+79)) {
		tmp = y * (-0.3333333333333333 / sqrt(x));
	} else {
		tmp = 1.0 + (-1.0 / (x * 9.0));
	}
	return tmp;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8) :: tmp
    if ((y <= (-1.15d+67)) .or. (.not. (y <= 9.2d+79))) then
        tmp = y * ((-0.3333333333333333d0) / sqrt(x))
    else
        tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double tmp;
	if ((y <= -1.15e+67) || !(y <= 9.2e+79)) {
		tmp = y * (-0.3333333333333333 / Math.sqrt(x));
	} else {
		tmp = 1.0 + (-1.0 / (x * 9.0));
	}
	return tmp;
}
def code(x, y):
	tmp = 0
	if (y <= -1.15e+67) or not (y <= 9.2e+79):
		tmp = y * (-0.3333333333333333 / math.sqrt(x))
	else:
		tmp = 1.0 + (-1.0 / (x * 9.0))
	return tmp
function code(x, y)
	tmp = 0.0
	if ((y <= -1.15e+67) || !(y <= 9.2e+79))
		tmp = Float64(y * Float64(-0.3333333333333333 / sqrt(x)));
	else
		tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0)));
	end
	return tmp
end
function tmp_2 = code(x, y)
	tmp = 0.0;
	if ((y <= -1.15e+67) || ~((y <= 9.2e+79)))
		tmp = y * (-0.3333333333333333 / sqrt(x));
	else
		tmp = 1.0 + (-1.0 / (x * 9.0));
	end
	tmp_2 = tmp;
end
code[x_, y_] := If[Or[LessEqual[y, -1.15e+67], N[Not[LessEqual[y, 9.2e+79]], $MachinePrecision]], N[(y * N[(-0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+67} \lor \neg \left(y \leq 9.2 \cdot 10^{+79}\right):\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\

\mathbf{else}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.1499999999999999e67 or 9.2000000000000002e79 < y

    1. Initial program 99.5%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0 99.5%

      \[\leadsto \left(1 - \color{blue}{\frac{0.1111111111111111}{x}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    4. Taylor expanded in y around inf 93.0%

      \[\leadsto \color{blue}{-0.3333333333333333 \cdot \left(\sqrt{\frac{1}{x}} \cdot y\right)} \]
    5. Step-by-step derivation
      1. *-commutative93.0%

        \[\leadsto \color{blue}{\left(\sqrt{\frac{1}{x}} \cdot y\right) \cdot -0.3333333333333333} \]
      2. *-commutative93.0%

        \[\leadsto \color{blue}{\left(y \cdot \sqrt{\frac{1}{x}}\right)} \cdot -0.3333333333333333 \]
      3. associate-*r*93.1%

        \[\leadsto \color{blue}{y \cdot \left(\sqrt{\frac{1}{x}} \cdot -0.3333333333333333\right)} \]
    6. Simplified93.1%

      \[\leadsto \color{blue}{y \cdot \left(\sqrt{\frac{1}{x}} \cdot -0.3333333333333333\right)} \]
    7. Step-by-step derivation
      1. *-commutative93.1%

        \[\leadsto y \cdot \color{blue}{\left(-0.3333333333333333 \cdot \sqrt{\frac{1}{x}}\right)} \]
      2. sqrt-div93.0%

        \[\leadsto y \cdot \left(-0.3333333333333333 \cdot \color{blue}{\frac{\sqrt{1}}{\sqrt{x}}}\right) \]
      3. metadata-eval93.0%

        \[\leadsto y \cdot \left(-0.3333333333333333 \cdot \frac{\color{blue}{1}}{\sqrt{x}}\right) \]
      4. un-div-inv93.1%

        \[\leadsto y \cdot \color{blue}{\frac{-0.3333333333333333}{\sqrt{x}}} \]
    8. Applied egg-rr93.1%

      \[\leadsto y \cdot \color{blue}{\frac{-0.3333333333333333}{\sqrt{x}}} \]

    if -1.1499999999999999e67 < y < 9.2000000000000002e79

    1. Initial program 99.8%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Step-by-step derivation
      1. associate--l-99.8%

        \[\leadsto \color{blue}{1 - \left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)} \]
      2. sub-neg99.8%

        \[\leadsto \color{blue}{1 + \left(-\left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)\right)} \]
      3. +-commutative99.8%

        \[\leadsto 1 + \left(-\color{blue}{\left(\frac{y}{3 \cdot \sqrt{x}} + \frac{1}{x \cdot 9}\right)}\right) \]
      4. distribute-neg-in99.8%

        \[\leadsto 1 + \color{blue}{\left(\left(-\frac{y}{3 \cdot \sqrt{x}}\right) + \left(-\frac{1}{x \cdot 9}\right)\right)} \]
      5. distribute-frac-neg99.8%

        \[\leadsto 1 + \left(\color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} + \left(-\frac{1}{x \cdot 9}\right)\right) \]
      6. sub-neg99.8%

        \[\leadsto 1 + \color{blue}{\left(\frac{-y}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right)} \]
      7. neg-mul-199.8%

        \[\leadsto 1 + \left(\frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
      8. *-commutative99.8%

        \[\leadsto 1 + \left(\frac{\color{blue}{y \cdot -1}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
      9. associate-/l*99.8%

        \[\leadsto 1 + \left(\color{blue}{y \cdot \frac{-1}{3 \cdot \sqrt{x}}} - \frac{1}{x \cdot 9}\right) \]
      10. fma-neg99.8%

        \[\leadsto 1 + \color{blue}{\mathsf{fma}\left(y, \frac{-1}{3 \cdot \sqrt{x}}, -\frac{1}{x \cdot 9}\right)} \]
      11. associate-/r*99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \color{blue}{\frac{\frac{-1}{3}}{\sqrt{x}}}, -\frac{1}{x \cdot 9}\right) \]
      12. metadata-eval99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{\color{blue}{-0.3333333333333333}}{\sqrt{x}}, -\frac{1}{x \cdot 9}\right) \]
      13. *-commutative99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\frac{1}{\color{blue}{9 \cdot x}}\right) \]
      14. associate-/r*99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\color{blue}{\frac{\frac{1}{9}}{x}}\right) \]
      15. distribute-neg-frac99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \color{blue}{\frac{-\frac{1}{9}}{x}}\right) \]
      16. metadata-eval99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-\color{blue}{0.1111111111111111}}{x}\right) \]
      17. metadata-eval99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{\color{blue}{-0.1111111111111111}}{x}\right) \]
    3. Simplified99.6%

      \[\leadsto \color{blue}{1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-0.1111111111111111}{x}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 95.2%

      \[\leadsto 1 + \color{blue}{\frac{-0.1111111111111111}{x}} \]
    6. Step-by-step derivation
      1. metadata-eval95.2%

        \[\leadsto 1 + \frac{\color{blue}{-0.1111111111111111}}{x} \]
      2. distribute-neg-frac95.2%

        \[\leadsto 1 + \color{blue}{\left(-\frac{0.1111111111111111}{x}\right)} \]
      3. add-sqr-sqrt95.1%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x}} \cdot \sqrt{\frac{0.1111111111111111}{x}}}\right) \]
      4. sqrt-unprod70.1%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x} \cdot \frac{0.1111111111111111}{x}}}\right) \]
      5. frac-times70.1%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{0.1111111111111111 \cdot 0.1111111111111111}{x \cdot x}}}\right) \]
      6. metadata-eval70.1%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
      7. metadata-eval70.1%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{-0.1111111111111111 \cdot -0.1111111111111111}}{x \cdot x}}\right) \]
      8. frac-times70.1%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
      9. sqrt-unprod0.0%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
      10. add-sqr-sqrt47.4%

        \[\leadsto 1 + \left(-\color{blue}{\frac{-0.1111111111111111}{x}}\right) \]
    7. Applied egg-rr47.4%

      \[\leadsto 1 + \color{blue}{\left(-\frac{-0.1111111111111111}{x}\right)} \]
    8. Step-by-step derivation
      1. add-sqr-sqrt0.0%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
      2. sqrt-unprod70.1%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
      3. frac-times70.1%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111 \cdot -0.1111111111111111}{x \cdot x}}}\right) \]
      4. metadata-eval70.1%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
      5. pow270.1%

        \[\leadsto 1 + \left(-\sqrt{\frac{0.012345679012345678}{\color{blue}{{x}^{2}}}}\right) \]
    9. Applied egg-rr70.1%

      \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.012345679012345678}{{x}^{2}}}}\right) \]
    10. Step-by-step derivation
      1. clear-num70.1%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{1}{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
      2. sqrt-div70.6%

        \[\leadsto 1 + \left(-\color{blue}{\frac{\sqrt{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
      3. metadata-eval70.6%

        \[\leadsto 1 + \left(-\frac{\color{blue}{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}\right) \]
      4. div-inv70.7%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{{x}^{2} \cdot \frac{1}{0.012345679012345678}}}}\right) \]
      5. unpow270.7%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot x\right)} \cdot \frac{1}{0.012345679012345678}}}\right) \]
      6. metadata-eval70.7%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{81}}}\right) \]
      7. metadata-eval70.7%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{\left(9 \cdot 9\right)}}}\right) \]
      8. swap-sqr70.7%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot 9\right) \cdot \left(x \cdot 9\right)}}}\right) \]
      9. sqrt-unprod95.2%

        \[\leadsto 1 + \left(-\frac{1}{\color{blue}{\sqrt{x \cdot 9} \cdot \sqrt{x \cdot 9}}}\right) \]
      10. add-sqr-sqrt95.4%

        \[\leadsto 1 + \left(-\frac{1}{\color{blue}{x \cdot 9}}\right) \]
    11. Applied egg-rr95.4%

      \[\leadsto 1 + \left(-\color{blue}{\frac{1}{x \cdot 9}}\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification94.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+67} \lor \neg \left(y \leq 9.2 \cdot 10^{+79}\right):\\ \;\;\;\;y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{x \cdot 9}\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 92.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3 \cdot 10^{+68}:\\ \;\;\;\;-0.3333333333333333 \cdot \left(y \cdot {x}^{-0.5}\right)\\ \mathbf{elif}\;y \leq 2.6 \cdot 10^{+79}:\\ \;\;\;\;1 + \frac{-1}{x \cdot 9}\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (if (<= y -3e+68)
   (* -0.3333333333333333 (* y (pow x -0.5)))
   (if (<= y 2.6e+79)
     (+ 1.0 (/ -1.0 (* x 9.0)))
     (* y (/ -0.3333333333333333 (sqrt x))))))
double code(double x, double y) {
	double tmp;
	if (y <= -3e+68) {
		tmp = -0.3333333333333333 * (y * pow(x, -0.5));
	} else if (y <= 2.6e+79) {
		tmp = 1.0 + (-1.0 / (x * 9.0));
	} else {
		tmp = y * (-0.3333333333333333 / sqrt(x));
	}
	return tmp;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8) :: tmp
    if (y <= (-3d+68)) then
        tmp = (-0.3333333333333333d0) * (y * (x ** (-0.5d0)))
    else if (y <= 2.6d+79) then
        tmp = 1.0d0 + ((-1.0d0) / (x * 9.0d0))
    else
        tmp = y * ((-0.3333333333333333d0) / sqrt(x))
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double tmp;
	if (y <= -3e+68) {
		tmp = -0.3333333333333333 * (y * Math.pow(x, -0.5));
	} else if (y <= 2.6e+79) {
		tmp = 1.0 + (-1.0 / (x * 9.0));
	} else {
		tmp = y * (-0.3333333333333333 / Math.sqrt(x));
	}
	return tmp;
}
def code(x, y):
	tmp = 0
	if y <= -3e+68:
		tmp = -0.3333333333333333 * (y * math.pow(x, -0.5))
	elif y <= 2.6e+79:
		tmp = 1.0 + (-1.0 / (x * 9.0))
	else:
		tmp = y * (-0.3333333333333333 / math.sqrt(x))
	return tmp
function code(x, y)
	tmp = 0.0
	if (y <= -3e+68)
		tmp = Float64(-0.3333333333333333 * Float64(y * (x ^ -0.5)));
	elseif (y <= 2.6e+79)
		tmp = Float64(1.0 + Float64(-1.0 / Float64(x * 9.0)));
	else
		tmp = Float64(y * Float64(-0.3333333333333333 / sqrt(x)));
	end
	return tmp
end
function tmp_2 = code(x, y)
	tmp = 0.0;
	if (y <= -3e+68)
		tmp = -0.3333333333333333 * (y * (x ^ -0.5));
	elseif (y <= 2.6e+79)
		tmp = 1.0 + (-1.0 / (x * 9.0));
	else
		tmp = y * (-0.3333333333333333 / sqrt(x));
	end
	tmp_2 = tmp;
end
code[x_, y_] := If[LessEqual[y, -3e+68], N[(-0.3333333333333333 * N[(y * N[Power[x, -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e+79], N[(1.0 + N[(-1.0 / N[(x * 9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(-0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -3 \cdot 10^{+68}:\\
\;\;\;\;-0.3333333333333333 \cdot \left(y \cdot {x}^{-0.5}\right)\\

\mathbf{elif}\;y \leq 2.6 \cdot 10^{+79}:\\
\;\;\;\;1 + \frac{-1}{x \cdot 9}\\

\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -3.0000000000000002e68

    1. Initial program 99.4%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0 99.5%

      \[\leadsto \left(1 - \color{blue}{\frac{0.1111111111111111}{x}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    4. Taylor expanded in y around inf 91.9%

      \[\leadsto \color{blue}{-0.3333333333333333 \cdot \left(\sqrt{\frac{1}{x}} \cdot y\right)} \]
    5. Step-by-step derivation
      1. *-commutative91.9%

        \[\leadsto \color{blue}{\left(\sqrt{\frac{1}{x}} \cdot y\right) \cdot -0.3333333333333333} \]
      2. *-commutative91.9%

        \[\leadsto \color{blue}{\left(y \cdot \sqrt{\frac{1}{x}}\right)} \cdot -0.3333333333333333 \]
      3. associate-*r*91.9%

        \[\leadsto \color{blue}{y \cdot \left(\sqrt{\frac{1}{x}} \cdot -0.3333333333333333\right)} \]
    6. Simplified91.9%

      \[\leadsto \color{blue}{y \cdot \left(\sqrt{\frac{1}{x}} \cdot -0.3333333333333333\right)} \]
    7. Step-by-step derivation
      1. *-un-lft-identity91.9%

        \[\leadsto y \cdot \left(\color{blue}{\left(1 \cdot \sqrt{\frac{1}{x}}\right)} \cdot -0.3333333333333333\right) \]
      2. inv-pow91.9%

        \[\leadsto y \cdot \left(\left(1 \cdot \sqrt{\color{blue}{{x}^{-1}}}\right) \cdot -0.3333333333333333\right) \]
      3. sqrt-pow191.9%

        \[\leadsto y \cdot \left(\left(1 \cdot \color{blue}{{x}^{\left(\frac{-1}{2}\right)}}\right) \cdot -0.3333333333333333\right) \]
      4. metadata-eval91.9%

        \[\leadsto y \cdot \left(\left(1 \cdot {x}^{\color{blue}{-0.5}}\right) \cdot -0.3333333333333333\right) \]
    8. Applied egg-rr91.9%

      \[\leadsto y \cdot \left(\color{blue}{\left(1 \cdot {x}^{-0.5}\right)} \cdot -0.3333333333333333\right) \]
    9. Step-by-step derivation
      1. *-lft-identity91.9%

        \[\leadsto y \cdot \left(\color{blue}{{x}^{-0.5}} \cdot -0.3333333333333333\right) \]
    10. Simplified91.9%

      \[\leadsto y \cdot \left(\color{blue}{{x}^{-0.5}} \cdot -0.3333333333333333\right) \]
    11. Step-by-step derivation
      1. add-sqr-sqrt91.5%

        \[\leadsto \color{blue}{\sqrt{y \cdot \left({x}^{-0.5} \cdot -0.3333333333333333\right)} \cdot \sqrt{y \cdot \left({x}^{-0.5} \cdot -0.3333333333333333\right)}} \]
      2. sqrt-unprod59.3%

        \[\leadsto \color{blue}{\sqrt{\left(y \cdot \left({x}^{-0.5} \cdot -0.3333333333333333\right)\right) \cdot \left(y \cdot \left({x}^{-0.5} \cdot -0.3333333333333333\right)\right)}} \]
      3. associate-*r*59.2%

        \[\leadsto \sqrt{\color{blue}{\left(\left(y \cdot {x}^{-0.5}\right) \cdot -0.3333333333333333\right)} \cdot \left(y \cdot \left({x}^{-0.5} \cdot -0.3333333333333333\right)\right)} \]
      4. associate-*r*59.3%

        \[\leadsto \sqrt{\left(\left(y \cdot {x}^{-0.5}\right) \cdot -0.3333333333333333\right) \cdot \color{blue}{\left(\left(y \cdot {x}^{-0.5}\right) \cdot -0.3333333333333333\right)}} \]
      5. swap-sqr59.3%

        \[\leadsto \sqrt{\color{blue}{\left(\left(y \cdot {x}^{-0.5}\right) \cdot \left(y \cdot {x}^{-0.5}\right)\right) \cdot \left(-0.3333333333333333 \cdot -0.3333333333333333\right)}} \]
      6. *-commutative59.3%

        \[\leadsto \sqrt{\left(\color{blue}{\left({x}^{-0.5} \cdot y\right)} \cdot \left(y \cdot {x}^{-0.5}\right)\right) \cdot \left(-0.3333333333333333 \cdot -0.3333333333333333\right)} \]
      7. *-commutative59.3%

        \[\leadsto \sqrt{\left(\left({x}^{-0.5} \cdot y\right) \cdot \color{blue}{\left({x}^{-0.5} \cdot y\right)}\right) \cdot \left(-0.3333333333333333 \cdot -0.3333333333333333\right)} \]
      8. metadata-eval59.3%

        \[\leadsto \sqrt{\left(\left({x}^{-0.5} \cdot y\right) \cdot \left({x}^{-0.5} \cdot y\right)\right) \cdot \color{blue}{0.1111111111111111}} \]
      9. metadata-eval59.3%

        \[\leadsto \sqrt{\left(\left({x}^{-0.5} \cdot y\right) \cdot \left({x}^{-0.5} \cdot y\right)\right) \cdot \color{blue}{\left(0.3333333333333333 \cdot 0.3333333333333333\right)}} \]
      10. swap-sqr59.3%

        \[\leadsto \sqrt{\color{blue}{\left(\left({x}^{-0.5} \cdot y\right) \cdot 0.3333333333333333\right) \cdot \left(\left({x}^{-0.5} \cdot y\right) \cdot 0.3333333333333333\right)}} \]
      11. associate-*r*59.2%

        \[\leadsto \sqrt{\color{blue}{\left({x}^{-0.5} \cdot \left(y \cdot 0.3333333333333333\right)\right)} \cdot \left(\left({x}^{-0.5} \cdot y\right) \cdot 0.3333333333333333\right)} \]
      12. associate-*r*59.2%

        \[\leadsto \sqrt{\left({x}^{-0.5} \cdot \left(y \cdot 0.3333333333333333\right)\right) \cdot \color{blue}{\left({x}^{-0.5} \cdot \left(y \cdot 0.3333333333333333\right)\right)}} \]
      13. sqrt-unprod0.0%

        \[\leadsto \color{blue}{\sqrt{{x}^{-0.5} \cdot \left(y \cdot 0.3333333333333333\right)} \cdot \sqrt{{x}^{-0.5} \cdot \left(y \cdot 0.3333333333333333\right)}} \]
      14. add-log-exp0.0%

        \[\leadsto \color{blue}{\log \left(e^{\sqrt{{x}^{-0.5} \cdot \left(y \cdot 0.3333333333333333\right)} \cdot \sqrt{{x}^{-0.5} \cdot \left(y \cdot 0.3333333333333333\right)}}\right)} \]
      15. add-sqr-sqrt0.5%

        \[\leadsto \log \left(e^{\color{blue}{{x}^{-0.5} \cdot \left(y \cdot 0.3333333333333333\right)}}\right) \]
      16. *-un-lft-identity0.5%

        \[\leadsto \log \color{blue}{\left(1 \cdot e^{{x}^{-0.5} \cdot \left(y \cdot 0.3333333333333333\right)}\right)} \]
    12. Applied egg-rr91.9%

      \[\leadsto \color{blue}{0 + y \cdot \left({x}^{-0.5} \cdot -0.3333333333333333\right)} \]
    13. Step-by-step derivation
      1. +-lft-identity91.9%

        \[\leadsto \color{blue}{y \cdot \left({x}^{-0.5} \cdot -0.3333333333333333\right)} \]
      2. associate-*r*91.9%

        \[\leadsto \color{blue}{\left(y \cdot {x}^{-0.5}\right) \cdot -0.3333333333333333} \]
      3. *-commutative91.9%

        \[\leadsto \color{blue}{-0.3333333333333333 \cdot \left(y \cdot {x}^{-0.5}\right)} \]
    14. Simplified91.9%

      \[\leadsto \color{blue}{-0.3333333333333333 \cdot \left(y \cdot {x}^{-0.5}\right)} \]

    if -3.0000000000000002e68 < y < 2.60000000000000015e79

    1. Initial program 99.8%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Step-by-step derivation
      1. associate--l-99.8%

        \[\leadsto \color{blue}{1 - \left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)} \]
      2. sub-neg99.8%

        \[\leadsto \color{blue}{1 + \left(-\left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)\right)} \]
      3. +-commutative99.8%

        \[\leadsto 1 + \left(-\color{blue}{\left(\frac{y}{3 \cdot \sqrt{x}} + \frac{1}{x \cdot 9}\right)}\right) \]
      4. distribute-neg-in99.8%

        \[\leadsto 1 + \color{blue}{\left(\left(-\frac{y}{3 \cdot \sqrt{x}}\right) + \left(-\frac{1}{x \cdot 9}\right)\right)} \]
      5. distribute-frac-neg99.8%

        \[\leadsto 1 + \left(\color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} + \left(-\frac{1}{x \cdot 9}\right)\right) \]
      6. sub-neg99.8%

        \[\leadsto 1 + \color{blue}{\left(\frac{-y}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right)} \]
      7. neg-mul-199.8%

        \[\leadsto 1 + \left(\frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
      8. *-commutative99.8%

        \[\leadsto 1 + \left(\frac{\color{blue}{y \cdot -1}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
      9. associate-/l*99.8%

        \[\leadsto 1 + \left(\color{blue}{y \cdot \frac{-1}{3 \cdot \sqrt{x}}} - \frac{1}{x \cdot 9}\right) \]
      10. fma-neg99.8%

        \[\leadsto 1 + \color{blue}{\mathsf{fma}\left(y, \frac{-1}{3 \cdot \sqrt{x}}, -\frac{1}{x \cdot 9}\right)} \]
      11. associate-/r*99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \color{blue}{\frac{\frac{-1}{3}}{\sqrt{x}}}, -\frac{1}{x \cdot 9}\right) \]
      12. metadata-eval99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{\color{blue}{-0.3333333333333333}}{\sqrt{x}}, -\frac{1}{x \cdot 9}\right) \]
      13. *-commutative99.8%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\frac{1}{\color{blue}{9 \cdot x}}\right) \]
      14. associate-/r*99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\color{blue}{\frac{\frac{1}{9}}{x}}\right) \]
      15. distribute-neg-frac99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \color{blue}{\frac{-\frac{1}{9}}{x}}\right) \]
      16. metadata-eval99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-\color{blue}{0.1111111111111111}}{x}\right) \]
      17. metadata-eval99.6%

        \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{\color{blue}{-0.1111111111111111}}{x}\right) \]
    3. Simplified99.6%

      \[\leadsto \color{blue}{1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-0.1111111111111111}{x}\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 95.2%

      \[\leadsto 1 + \color{blue}{\frac{-0.1111111111111111}{x}} \]
    6. Step-by-step derivation
      1. metadata-eval95.2%

        \[\leadsto 1 + \frac{\color{blue}{-0.1111111111111111}}{x} \]
      2. distribute-neg-frac95.2%

        \[\leadsto 1 + \color{blue}{\left(-\frac{0.1111111111111111}{x}\right)} \]
      3. add-sqr-sqrt95.1%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x}} \cdot \sqrt{\frac{0.1111111111111111}{x}}}\right) \]
      4. sqrt-unprod70.1%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x} \cdot \frac{0.1111111111111111}{x}}}\right) \]
      5. frac-times70.1%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{0.1111111111111111 \cdot 0.1111111111111111}{x \cdot x}}}\right) \]
      6. metadata-eval70.1%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
      7. metadata-eval70.1%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{-0.1111111111111111 \cdot -0.1111111111111111}}{x \cdot x}}\right) \]
      8. frac-times70.1%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
      9. sqrt-unprod0.0%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
      10. add-sqr-sqrt47.4%

        \[\leadsto 1 + \left(-\color{blue}{\frac{-0.1111111111111111}{x}}\right) \]
    7. Applied egg-rr47.4%

      \[\leadsto 1 + \color{blue}{\left(-\frac{-0.1111111111111111}{x}\right)} \]
    8. Step-by-step derivation
      1. add-sqr-sqrt0.0%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
      2. sqrt-unprod70.1%

        \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
      3. frac-times70.1%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111 \cdot -0.1111111111111111}{x \cdot x}}}\right) \]
      4. metadata-eval70.1%

        \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
      5. pow270.1%

        \[\leadsto 1 + \left(-\sqrt{\frac{0.012345679012345678}{\color{blue}{{x}^{2}}}}\right) \]
    9. Applied egg-rr70.1%

      \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.012345679012345678}{{x}^{2}}}}\right) \]
    10. Step-by-step derivation
      1. clear-num70.1%

        \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{1}{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
      2. sqrt-div70.6%

        \[\leadsto 1 + \left(-\color{blue}{\frac{\sqrt{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
      3. metadata-eval70.6%

        \[\leadsto 1 + \left(-\frac{\color{blue}{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}\right) \]
      4. div-inv70.7%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{{x}^{2} \cdot \frac{1}{0.012345679012345678}}}}\right) \]
      5. unpow270.7%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot x\right)} \cdot \frac{1}{0.012345679012345678}}}\right) \]
      6. metadata-eval70.7%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{81}}}\right) \]
      7. metadata-eval70.7%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{\left(9 \cdot 9\right)}}}\right) \]
      8. swap-sqr70.7%

        \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot 9\right) \cdot \left(x \cdot 9\right)}}}\right) \]
      9. sqrt-unprod95.2%

        \[\leadsto 1 + \left(-\frac{1}{\color{blue}{\sqrt{x \cdot 9} \cdot \sqrt{x \cdot 9}}}\right) \]
      10. add-sqr-sqrt95.4%

        \[\leadsto 1 + \left(-\frac{1}{\color{blue}{x \cdot 9}}\right) \]
    11. Applied egg-rr95.4%

      \[\leadsto 1 + \left(-\color{blue}{\frac{1}{x \cdot 9}}\right) \]

    if 2.60000000000000015e79 < y

    1. Initial program 99.6%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Add Preprocessing
    3. Taylor expanded in x around 0 99.6%

      \[\leadsto \left(1 - \color{blue}{\frac{0.1111111111111111}{x}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    4. Taylor expanded in y around inf 94.2%

      \[\leadsto \color{blue}{-0.3333333333333333 \cdot \left(\sqrt{\frac{1}{x}} \cdot y\right)} \]
    5. Step-by-step derivation
      1. *-commutative94.2%

        \[\leadsto \color{blue}{\left(\sqrt{\frac{1}{x}} \cdot y\right) \cdot -0.3333333333333333} \]
      2. *-commutative94.2%

        \[\leadsto \color{blue}{\left(y \cdot \sqrt{\frac{1}{x}}\right)} \cdot -0.3333333333333333 \]
      3. associate-*r*94.3%

        \[\leadsto \color{blue}{y \cdot \left(\sqrt{\frac{1}{x}} \cdot -0.3333333333333333\right)} \]
    6. Simplified94.3%

      \[\leadsto \color{blue}{y \cdot \left(\sqrt{\frac{1}{x}} \cdot -0.3333333333333333\right)} \]
    7. Step-by-step derivation
      1. *-commutative94.3%

        \[\leadsto y \cdot \color{blue}{\left(-0.3333333333333333 \cdot \sqrt{\frac{1}{x}}\right)} \]
      2. sqrt-div94.2%

        \[\leadsto y \cdot \left(-0.3333333333333333 \cdot \color{blue}{\frac{\sqrt{1}}{\sqrt{x}}}\right) \]
      3. metadata-eval94.2%

        \[\leadsto y \cdot \left(-0.3333333333333333 \cdot \frac{\color{blue}{1}}{\sqrt{x}}\right) \]
      4. un-div-inv94.3%

        \[\leadsto y \cdot \color{blue}{\frac{-0.3333333333333333}{\sqrt{x}}} \]
    8. Applied egg-rr94.3%

      \[\leadsto y \cdot \color{blue}{\frac{-0.3333333333333333}{\sqrt{x}}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification94.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3 \cdot 10^{+68}:\\ \;\;\;\;-0.3333333333333333 \cdot \left(y \cdot {x}^{-0.5}\right)\\ \mathbf{elif}\;y \leq 2.6 \cdot 10^{+79}:\\ \;\;\;\;1 + \frac{-1}{x \cdot 9}\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{-0.3333333333333333}{\sqrt{x}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 98.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 0.11:\\ \;\;\;\;\frac{-0.3333333333333333 \cdot \left(y \cdot \sqrt{x}\right) - 0.1111111111111111}{x}\\ \mathbf{else}:\\ \;\;\;\;1 - \frac{y}{\sqrt{x \cdot 9}}\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (if (<= x 0.11)
   (/ (- (* -0.3333333333333333 (* y (sqrt x))) 0.1111111111111111) x)
   (- 1.0 (/ y (sqrt (* x 9.0))))))
double code(double x, double y) {
	double tmp;
	if (x <= 0.11) {
		tmp = ((-0.3333333333333333 * (y * sqrt(x))) - 0.1111111111111111) / x;
	} else {
		tmp = 1.0 - (y / sqrt((x * 9.0)));
	}
	return tmp;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8) :: tmp
    if (x <= 0.11d0) then
        tmp = (((-0.3333333333333333d0) * (y * sqrt(x))) - 0.1111111111111111d0) / x
    else
        tmp = 1.0d0 - (y / sqrt((x * 9.0d0)))
    end if
    code = tmp
end function
public static double code(double x, double y) {
	double tmp;
	if (x <= 0.11) {
		tmp = ((-0.3333333333333333 * (y * Math.sqrt(x))) - 0.1111111111111111) / x;
	} else {
		tmp = 1.0 - (y / Math.sqrt((x * 9.0)));
	}
	return tmp;
}
def code(x, y):
	tmp = 0
	if x <= 0.11:
		tmp = ((-0.3333333333333333 * (y * math.sqrt(x))) - 0.1111111111111111) / x
	else:
		tmp = 1.0 - (y / math.sqrt((x * 9.0)))
	return tmp
function code(x, y)
	tmp = 0.0
	if (x <= 0.11)
		tmp = Float64(Float64(Float64(-0.3333333333333333 * Float64(y * sqrt(x))) - 0.1111111111111111) / x);
	else
		tmp = Float64(1.0 - Float64(y / sqrt(Float64(x * 9.0))));
	end
	return tmp
end
function tmp_2 = code(x, y)
	tmp = 0.0;
	if (x <= 0.11)
		tmp = ((-0.3333333333333333 * (y * sqrt(x))) - 0.1111111111111111) / x;
	else
		tmp = 1.0 - (y / sqrt((x * 9.0)));
	end
	tmp_2 = tmp;
end
code[x_, y_] := If[LessEqual[x, 0.11], N[(N[(N[(-0.3333333333333333 * N[(y * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 0.1111111111111111), $MachinePrecision] / x), $MachinePrecision], N[(1.0 - N[(y / N[Sqrt[N[(x * 9.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.11:\\
\;\;\;\;\frac{-0.3333333333333333 \cdot \left(y \cdot \sqrt{x}\right) - 0.1111111111111111}{x}\\

\mathbf{else}:\\
\;\;\;\;1 - \frac{y}{\sqrt{x \cdot 9}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < 0.110000000000000001

    1. Initial program 99.6%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Step-by-step derivation
      1. sub-neg99.6%

        \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right)} \]
      2. *-commutative99.6%

        \[\leadsto \left(1 - \frac{1}{\color{blue}{9 \cdot x}}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
      3. associate-/r*99.4%

        \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{9}}{x}}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
      4. metadata-eval99.4%

        \[\leadsto \left(1 - \frac{\color{blue}{0.1111111111111111}}{x}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
      5. distribute-frac-neg99.4%

        \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} \]
      6. neg-mul-199.4%

        \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} \]
      7. times-frac99.4%

        \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-1}{3} \cdot \frac{y}{\sqrt{x}}} \]
      8. metadata-eval99.4%

        \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{-0.3333333333333333} \cdot \frac{y}{\sqrt{x}} \]
    3. Simplified99.4%

      \[\leadsto \color{blue}{\left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num99.3%

        \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \color{blue}{\frac{1}{\frac{\sqrt{x}}{y}}} \]
      2. un-div-inv99.4%

        \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-0.3333333333333333}{\frac{\sqrt{x}}{y}}} \]
    6. Applied egg-rr99.4%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-0.3333333333333333}{\frac{\sqrt{x}}{y}}} \]
    7. Taylor expanded in x around 0 98.3%

      \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot \left(\sqrt{x} \cdot y\right) - 0.1111111111111111}{x}} \]

    if 0.110000000000000001 < x

    1. Initial program 99.8%

      \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf 98.9%

      \[\leadsto \color{blue}{1 - 0.3333333333333333 \cdot \left(\sqrt{\frac{1}{x}} \cdot y\right)} \]
    4. Step-by-step derivation
      1. metadata-eval98.9%

        \[\leadsto 1 - \color{blue}{\frac{1}{3}} \cdot \left(\sqrt{\frac{1}{x}} \cdot y\right) \]
      2. *-commutative98.9%

        \[\leadsto 1 - \frac{1}{3} \cdot \color{blue}{\left(y \cdot \sqrt{\frac{1}{x}}\right)} \]
      3. sqrt-div98.9%

        \[\leadsto 1 - \frac{1}{3} \cdot \left(y \cdot \color{blue}{\frac{\sqrt{1}}{\sqrt{x}}}\right) \]
      4. metadata-eval98.9%

        \[\leadsto 1 - \frac{1}{3} \cdot \left(y \cdot \frac{\color{blue}{1}}{\sqrt{x}}\right) \]
      5. div-inv99.0%

        \[\leadsto 1 - \frac{1}{3} \cdot \color{blue}{\frac{y}{\sqrt{x}}} \]
      6. times-frac99.0%

        \[\leadsto 1 - \color{blue}{\frac{1 \cdot y}{3 \cdot \sqrt{x}}} \]
      7. *-un-lft-identity99.0%

        \[\leadsto 1 - \frac{\color{blue}{y}}{3 \cdot \sqrt{x}} \]
    5. Applied egg-rr99.0%

      \[\leadsto 1 - \color{blue}{\frac{y}{3 \cdot \sqrt{x}}} \]
    6. Step-by-step derivation
      1. *-commutative99.0%

        \[\leadsto 1 - \frac{y}{\color{blue}{\sqrt{x} \cdot 3}} \]
      2. metadata-eval99.0%

        \[\leadsto 1 - \frac{y}{\sqrt{x} \cdot \color{blue}{\sqrt{9}}} \]
      3. sqrt-prod99.1%

        \[\leadsto 1 - \frac{y}{\color{blue}{\sqrt{x \cdot 9}}} \]
      4. pow1/299.1%

        \[\leadsto 1 - \frac{y}{\color{blue}{{\left(x \cdot 9\right)}^{0.5}}} \]
    7. Applied egg-rr99.1%

      \[\leadsto 1 - \frac{y}{\color{blue}{{\left(x \cdot 9\right)}^{0.5}}} \]
    8. Step-by-step derivation
      1. unpow1/299.1%

        \[\leadsto 1 - \frac{y}{\color{blue}{\sqrt{x \cdot 9}}} \]
    9. Simplified99.1%

      \[\leadsto 1 - \frac{y}{\color{blue}{\sqrt{x \cdot 9}}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 0.11:\\ \;\;\;\;\frac{-0.3333333333333333 \cdot \left(y \cdot \sqrt{x}\right) - 0.1111111111111111}{x}\\ \mathbf{else}:\\ \;\;\;\;1 - \frac{y}{\sqrt{x \cdot 9}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 99.6% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(1 + 0.1111111111111111 \cdot \frac{-1}{x}\right) - \frac{y}{3 \cdot \sqrt{x}} \end{array} \]
(FPCore (x y)
 :precision binary64
 (- (+ 1.0 (* 0.1111111111111111 (/ -1.0 x))) (/ y (* 3.0 (sqrt x)))))
double code(double x, double y) {
	return (1.0 + (0.1111111111111111 * (-1.0 / x))) - (y / (3.0 * sqrt(x)));
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = (1.0d0 + (0.1111111111111111d0 * ((-1.0d0) / x))) - (y / (3.0d0 * sqrt(x)))
end function
public static double code(double x, double y) {
	return (1.0 + (0.1111111111111111 * (-1.0 / x))) - (y / (3.0 * Math.sqrt(x)));
}
def code(x, y):
	return (1.0 + (0.1111111111111111 * (-1.0 / x))) - (y / (3.0 * math.sqrt(x)))
function code(x, y)
	return Float64(Float64(1.0 + Float64(0.1111111111111111 * Float64(-1.0 / x))) - Float64(y / Float64(3.0 * sqrt(x))))
end
function tmp = code(x, y)
	tmp = (1.0 + (0.1111111111111111 * (-1.0 / x))) - (y / (3.0 * sqrt(x)));
end
code[x_, y_] := N[(N[(1.0 + N[(0.1111111111111111 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(1 + 0.1111111111111111 \cdot \frac{-1}{x}\right) - \frac{y}{3 \cdot \sqrt{x}}
\end{array}
Derivation
  1. Initial program 99.7%

    \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  2. Add Preprocessing
  3. Taylor expanded in x around 0 99.6%

    \[\leadsto \left(1 - \color{blue}{\frac{0.1111111111111111}{x}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  4. Step-by-step derivation
    1. div-inv99.6%

      \[\leadsto \left(1 - \color{blue}{0.1111111111111111 \cdot \frac{1}{x}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  5. Applied egg-rr99.6%

    \[\leadsto \left(1 - \color{blue}{0.1111111111111111 \cdot \frac{1}{x}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  6. Final simplification99.6%

    \[\leadsto \left(1 + 0.1111111111111111 \cdot \frac{-1}{x}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  7. Add Preprocessing

Alternative 9: 99.6% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \frac{y}{\sqrt{x}} \end{array} \]
(FPCore (x y)
 :precision binary64
 (+ (- 1.0 (/ 0.1111111111111111 x)) (* -0.3333333333333333 (/ y (sqrt x)))))
double code(double x, double y) {
	return (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 * (y / sqrt(x)));
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = (1.0d0 - (0.1111111111111111d0 / x)) + ((-0.3333333333333333d0) * (y / sqrt(x)))
end function
public static double code(double x, double y) {
	return (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 * (y / Math.sqrt(x)));
}
def code(x, y):
	return (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 * (y / math.sqrt(x)))
function code(x, y)
	return Float64(Float64(1.0 - Float64(0.1111111111111111 / x)) + Float64(-0.3333333333333333 * Float64(y / sqrt(x))))
end
function tmp = code(x, y)
	tmp = (1.0 - (0.1111111111111111 / x)) + (-0.3333333333333333 * (y / sqrt(x)));
end
code[x_, y_] := N[(N[(1.0 - N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision] + N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}
\end{array}
Derivation
  1. Initial program 99.7%

    \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  2. Step-by-step derivation
    1. sub-neg99.7%

      \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right)} \]
    2. *-commutative99.7%

      \[\leadsto \left(1 - \frac{1}{\color{blue}{9 \cdot x}}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    3. associate-/r*99.6%

      \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{9}}{x}}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    4. metadata-eval99.6%

      \[\leadsto \left(1 - \frac{\color{blue}{0.1111111111111111}}{x}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    5. distribute-frac-neg99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} \]
    6. neg-mul-199.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} \]
    7. times-frac99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-1}{3} \cdot \frac{y}{\sqrt{x}}} \]
    8. metadata-eval99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{-0.3333333333333333} \cdot \frac{y}{\sqrt{x}} \]
  3. Simplified99.6%

    \[\leadsto \color{blue}{\left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}} \]
  4. Add Preprocessing
  5. Final simplification99.6%

    \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \frac{y}{\sqrt{x}} \]
  6. Add Preprocessing

Alternative 10: 62.4% accurate, 16.1× speedup?

\[\begin{array}{l} \\ 1 + 0.1111111111111111 \cdot \frac{-1}{x} \end{array} \]
(FPCore (x y) :precision binary64 (+ 1.0 (* 0.1111111111111111 (/ -1.0 x))))
double code(double x, double y) {
	return 1.0 + (0.1111111111111111 * (-1.0 / x));
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = 1.0d0 + (0.1111111111111111d0 * ((-1.0d0) / x))
end function
public static double code(double x, double y) {
	return 1.0 + (0.1111111111111111 * (-1.0 / x));
}
def code(x, y):
	return 1.0 + (0.1111111111111111 * (-1.0 / x))
function code(x, y)
	return Float64(1.0 + Float64(0.1111111111111111 * Float64(-1.0 / x)))
end
function tmp = code(x, y)
	tmp = 1.0 + (0.1111111111111111 * (-1.0 / x));
end
code[x_, y_] := N[(1.0 + N[(0.1111111111111111 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
1 + 0.1111111111111111 \cdot \frac{-1}{x}
\end{array}
Derivation
  1. Initial program 99.7%

    \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  2. Step-by-step derivation
    1. sub-neg99.7%

      \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right)} \]
    2. *-commutative99.7%

      \[\leadsto \left(1 - \frac{1}{\color{blue}{9 \cdot x}}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    3. associate-/r*99.6%

      \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{9}}{x}}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    4. metadata-eval99.6%

      \[\leadsto \left(1 - \frac{\color{blue}{0.1111111111111111}}{x}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    5. distribute-frac-neg99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} \]
    6. neg-mul-199.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} \]
    7. times-frac99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-1}{3} \cdot \frac{y}{\sqrt{x}}} \]
    8. metadata-eval99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{-0.3333333333333333} \cdot \frac{y}{\sqrt{x}} \]
  3. Simplified99.6%

    \[\leadsto \color{blue}{\left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}} \]
  4. Add Preprocessing
  5. Taylor expanded in y around 0 60.4%

    \[\leadsto \color{blue}{1 - 0.1111111111111111 \cdot \frac{1}{x}} \]
  6. Final simplification60.4%

    \[\leadsto 1 + 0.1111111111111111 \cdot \frac{-1}{x} \]
  7. Add Preprocessing

Alternative 11: 62.4% accurate, 16.1× speedup?

\[\begin{array}{l} \\ 1 + \frac{-1}{x \cdot 9} \end{array} \]
(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}
Derivation
  1. Initial program 99.7%

    \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  2. Step-by-step derivation
    1. associate--l-99.7%

      \[\leadsto \color{blue}{1 - \left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)} \]
    2. sub-neg99.7%

      \[\leadsto \color{blue}{1 + \left(-\left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)\right)} \]
    3. +-commutative99.7%

      \[\leadsto 1 + \left(-\color{blue}{\left(\frac{y}{3 \cdot \sqrt{x}} + \frac{1}{x \cdot 9}\right)}\right) \]
    4. distribute-neg-in99.7%

      \[\leadsto 1 + \color{blue}{\left(\left(-\frac{y}{3 \cdot \sqrt{x}}\right) + \left(-\frac{1}{x \cdot 9}\right)\right)} \]
    5. distribute-frac-neg99.7%

      \[\leadsto 1 + \left(\color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} + \left(-\frac{1}{x \cdot 9}\right)\right) \]
    6. sub-neg99.7%

      \[\leadsto 1 + \color{blue}{\left(\frac{-y}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right)} \]
    7. neg-mul-199.7%

      \[\leadsto 1 + \left(\frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
    8. *-commutative99.7%

      \[\leadsto 1 + \left(\frac{\color{blue}{y \cdot -1}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
    9. associate-/l*99.6%

      \[\leadsto 1 + \left(\color{blue}{y \cdot \frac{-1}{3 \cdot \sqrt{x}}} - \frac{1}{x \cdot 9}\right) \]
    10. fma-neg99.6%

      \[\leadsto 1 + \color{blue}{\mathsf{fma}\left(y, \frac{-1}{3 \cdot \sqrt{x}}, -\frac{1}{x \cdot 9}\right)} \]
    11. associate-/r*99.6%

      \[\leadsto 1 + \mathsf{fma}\left(y, \color{blue}{\frac{\frac{-1}{3}}{\sqrt{x}}}, -\frac{1}{x \cdot 9}\right) \]
    12. metadata-eval99.6%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{\color{blue}{-0.3333333333333333}}{\sqrt{x}}, -\frac{1}{x \cdot 9}\right) \]
    13. *-commutative99.6%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\frac{1}{\color{blue}{9 \cdot x}}\right) \]
    14. associate-/r*99.5%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\color{blue}{\frac{\frac{1}{9}}{x}}\right) \]
    15. distribute-neg-frac99.5%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \color{blue}{\frac{-\frac{1}{9}}{x}}\right) \]
    16. metadata-eval99.5%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-\color{blue}{0.1111111111111111}}{x}\right) \]
    17. metadata-eval99.5%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{\color{blue}{-0.1111111111111111}}{x}\right) \]
  3. Simplified99.5%

    \[\leadsto \color{blue}{1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-0.1111111111111111}{x}\right)} \]
  4. Add Preprocessing
  5. Taylor expanded in y around 0 60.3%

    \[\leadsto 1 + \color{blue}{\frac{-0.1111111111111111}{x}} \]
  6. Step-by-step derivation
    1. metadata-eval60.3%

      \[\leadsto 1 + \frac{\color{blue}{-0.1111111111111111}}{x} \]
    2. distribute-neg-frac60.3%

      \[\leadsto 1 + \color{blue}{\left(-\frac{0.1111111111111111}{x}\right)} \]
    3. add-sqr-sqrt60.2%

      \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x}} \cdot \sqrt{\frac{0.1111111111111111}{x}}}\right) \]
    4. sqrt-unprod46.4%

      \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.1111111111111111}{x} \cdot \frac{0.1111111111111111}{x}}}\right) \]
    5. frac-times46.5%

      \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{0.1111111111111111 \cdot 0.1111111111111111}{x \cdot x}}}\right) \]
    6. metadata-eval46.5%

      \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
    7. metadata-eval46.5%

      \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{-0.1111111111111111 \cdot -0.1111111111111111}}{x \cdot x}}\right) \]
    8. frac-times46.4%

      \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
    9. sqrt-unprod0.0%

      \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
    10. add-sqr-sqrt30.6%

      \[\leadsto 1 + \left(-\color{blue}{\frac{-0.1111111111111111}{x}}\right) \]
  7. Applied egg-rr30.6%

    \[\leadsto 1 + \color{blue}{\left(-\frac{-0.1111111111111111}{x}\right)} \]
  8. Step-by-step derivation
    1. add-sqr-sqrt0.0%

      \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x}} \cdot \sqrt{\frac{-0.1111111111111111}{x}}}\right) \]
    2. sqrt-unprod46.4%

      \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{-0.1111111111111111}{x} \cdot \frac{-0.1111111111111111}{x}}}\right) \]
    3. frac-times46.5%

      \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{-0.1111111111111111 \cdot -0.1111111111111111}{x \cdot x}}}\right) \]
    4. metadata-eval46.5%

      \[\leadsto 1 + \left(-\sqrt{\frac{\color{blue}{0.012345679012345678}}{x \cdot x}}\right) \]
    5. pow246.5%

      \[\leadsto 1 + \left(-\sqrt{\frac{0.012345679012345678}{\color{blue}{{x}^{2}}}}\right) \]
  9. Applied egg-rr46.5%

    \[\leadsto 1 + \left(-\color{blue}{\sqrt{\frac{0.012345679012345678}{{x}^{2}}}}\right) \]
  10. Step-by-step derivation
    1. clear-num46.5%

      \[\leadsto 1 + \left(-\sqrt{\color{blue}{\frac{1}{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
    2. sqrt-div46.8%

      \[\leadsto 1 + \left(-\color{blue}{\frac{\sqrt{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}}\right) \]
    3. metadata-eval46.8%

      \[\leadsto 1 + \left(-\frac{\color{blue}{1}}{\sqrt{\frac{{x}^{2}}{0.012345679012345678}}}\right) \]
    4. div-inv46.8%

      \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{{x}^{2} \cdot \frac{1}{0.012345679012345678}}}}\right) \]
    5. unpow246.8%

      \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot x\right)} \cdot \frac{1}{0.012345679012345678}}}\right) \]
    6. metadata-eval46.8%

      \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{81}}}\right) \]
    7. metadata-eval46.8%

      \[\leadsto 1 + \left(-\frac{1}{\sqrt{\left(x \cdot x\right) \cdot \color{blue}{\left(9 \cdot 9\right)}}}\right) \]
    8. swap-sqr46.8%

      \[\leadsto 1 + \left(-\frac{1}{\sqrt{\color{blue}{\left(x \cdot 9\right) \cdot \left(x \cdot 9\right)}}}\right) \]
    9. sqrt-unprod60.3%

      \[\leadsto 1 + \left(-\frac{1}{\color{blue}{\sqrt{x \cdot 9} \cdot \sqrt{x \cdot 9}}}\right) \]
    10. add-sqr-sqrt60.4%

      \[\leadsto 1 + \left(-\frac{1}{\color{blue}{x \cdot 9}}\right) \]
  11. Applied egg-rr60.4%

    \[\leadsto 1 + \left(-\color{blue}{\frac{1}{x \cdot 9}}\right) \]
  12. Final simplification60.4%

    \[\leadsto 1 + \frac{-1}{x \cdot 9} \]
  13. Add Preprocessing

Alternative 12: 32.6% accurate, 22.6× speedup?

\[\begin{array}{l} \\ \frac{1}{x} \cdot -0.1111111111111111 \end{array} \]
(FPCore (x y) :precision binary64 (* (/ 1.0 x) -0.1111111111111111))
double code(double x, double y) {
	return (1.0 / x) * -0.1111111111111111;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = (1.0d0 / x) * (-0.1111111111111111d0)
end function
public static double code(double x, double y) {
	return (1.0 / x) * -0.1111111111111111;
}
def code(x, y):
	return (1.0 / x) * -0.1111111111111111
function code(x, y)
	return Float64(Float64(1.0 / x) * -0.1111111111111111)
end
function tmp = code(x, y)
	tmp = (1.0 / x) * -0.1111111111111111;
end
code[x_, y_] := N[(N[(1.0 / x), $MachinePrecision] * -0.1111111111111111), $MachinePrecision]
\begin{array}{l}

\\
\frac{1}{x} \cdot -0.1111111111111111
\end{array}
Derivation
  1. Initial program 99.7%

    \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  2. Step-by-step derivation
    1. sub-neg99.7%

      \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right)} \]
    2. *-commutative99.7%

      \[\leadsto \left(1 - \frac{1}{\color{blue}{9 \cdot x}}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    3. associate-/r*99.6%

      \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{9}}{x}}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    4. metadata-eval99.6%

      \[\leadsto \left(1 - \frac{\color{blue}{0.1111111111111111}}{x}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    5. distribute-frac-neg99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} \]
    6. neg-mul-199.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} \]
    7. times-frac99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-1}{3} \cdot \frac{y}{\sqrt{x}}} \]
    8. metadata-eval99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{-0.3333333333333333} \cdot \frac{y}{\sqrt{x}} \]
  3. Simplified99.6%

    \[\leadsto \color{blue}{\left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}} \]
  4. Add Preprocessing
  5. Step-by-step derivation
    1. clear-num99.5%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \color{blue}{\frac{1}{\frac{\sqrt{x}}{y}}} \]
    2. un-div-inv99.5%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-0.3333333333333333}{\frac{\sqrt{x}}{y}}} \]
  6. Applied egg-rr99.5%

    \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-0.3333333333333333}{\frac{\sqrt{x}}{y}}} \]
  7. Taylor expanded in x around 0 64.1%

    \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot \left(\sqrt{x} \cdot y\right) - 0.1111111111111111}{x}} \]
  8. Taylor expanded in y around 0 31.1%

    \[\leadsto \color{blue}{\frac{-0.1111111111111111}{x}} \]
  9. Step-by-step derivation
    1. clear-num31.2%

      \[\leadsto \color{blue}{\frac{1}{\frac{x}{-0.1111111111111111}}} \]
    2. associate-/r/31.2%

      \[\leadsto \color{blue}{\frac{1}{x} \cdot -0.1111111111111111} \]
  10. Applied egg-rr31.2%

    \[\leadsto \color{blue}{\frac{1}{x} \cdot -0.1111111111111111} \]
  11. Final simplification31.2%

    \[\leadsto \frac{1}{x} \cdot -0.1111111111111111 \]
  12. Add Preprocessing

Alternative 13: 62.4% accurate, 22.6× speedup?

\[\begin{array}{l} \\ 1 + \frac{-0.1111111111111111}{x} \end{array} \]
(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}
Derivation
  1. Initial program 99.7%

    \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  2. Step-by-step derivation
    1. associate--l-99.7%

      \[\leadsto \color{blue}{1 - \left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)} \]
    2. sub-neg99.7%

      \[\leadsto \color{blue}{1 + \left(-\left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)\right)} \]
    3. +-commutative99.7%

      \[\leadsto 1 + \left(-\color{blue}{\left(\frac{y}{3 \cdot \sqrt{x}} + \frac{1}{x \cdot 9}\right)}\right) \]
    4. distribute-neg-in99.7%

      \[\leadsto 1 + \color{blue}{\left(\left(-\frac{y}{3 \cdot \sqrt{x}}\right) + \left(-\frac{1}{x \cdot 9}\right)\right)} \]
    5. distribute-frac-neg99.7%

      \[\leadsto 1 + \left(\color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} + \left(-\frac{1}{x \cdot 9}\right)\right) \]
    6. sub-neg99.7%

      \[\leadsto 1 + \color{blue}{\left(\frac{-y}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right)} \]
    7. neg-mul-199.7%

      \[\leadsto 1 + \left(\frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
    8. *-commutative99.7%

      \[\leadsto 1 + \left(\frac{\color{blue}{y \cdot -1}}{3 \cdot \sqrt{x}} - \frac{1}{x \cdot 9}\right) \]
    9. associate-/l*99.6%

      \[\leadsto 1 + \left(\color{blue}{y \cdot \frac{-1}{3 \cdot \sqrt{x}}} - \frac{1}{x \cdot 9}\right) \]
    10. fma-neg99.6%

      \[\leadsto 1 + \color{blue}{\mathsf{fma}\left(y, \frac{-1}{3 \cdot \sqrt{x}}, -\frac{1}{x \cdot 9}\right)} \]
    11. associate-/r*99.6%

      \[\leadsto 1 + \mathsf{fma}\left(y, \color{blue}{\frac{\frac{-1}{3}}{\sqrt{x}}}, -\frac{1}{x \cdot 9}\right) \]
    12. metadata-eval99.6%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{\color{blue}{-0.3333333333333333}}{\sqrt{x}}, -\frac{1}{x \cdot 9}\right) \]
    13. *-commutative99.6%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\frac{1}{\color{blue}{9 \cdot x}}\right) \]
    14. associate-/r*99.5%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, -\color{blue}{\frac{\frac{1}{9}}{x}}\right) \]
    15. distribute-neg-frac99.5%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \color{blue}{\frac{-\frac{1}{9}}{x}}\right) \]
    16. metadata-eval99.5%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-\color{blue}{0.1111111111111111}}{x}\right) \]
    17. metadata-eval99.5%

      \[\leadsto 1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{\color{blue}{-0.1111111111111111}}{x}\right) \]
  3. Simplified99.5%

    \[\leadsto \color{blue}{1 + \mathsf{fma}\left(y, \frac{-0.3333333333333333}{\sqrt{x}}, \frac{-0.1111111111111111}{x}\right)} \]
  4. Add Preprocessing
  5. Taylor expanded in y around 0 60.3%

    \[\leadsto 1 + \color{blue}{\frac{-0.1111111111111111}{x}} \]
  6. Final simplification60.3%

    \[\leadsto 1 + \frac{-0.1111111111111111}{x} \]
  7. Add Preprocessing

Alternative 14: 32.6% accurate, 37.7× speedup?

\[\begin{array}{l} \\ \frac{-0.1111111111111111}{x} \end{array} \]
(FPCore (x y) :precision binary64 (/ -0.1111111111111111 x))
double code(double x, double y) {
	return -0.1111111111111111 / x;
}
real(8) function code(x, y)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = (-0.1111111111111111d0) / x
end function
public static double code(double x, double y) {
	return -0.1111111111111111 / x;
}
def code(x, y):
	return -0.1111111111111111 / x
function code(x, y)
	return Float64(-0.1111111111111111 / x)
end
function tmp = code(x, y)
	tmp = -0.1111111111111111 / x;
end
code[x_, y_] := N[(-0.1111111111111111 / x), $MachinePrecision]
\begin{array}{l}

\\
\frac{-0.1111111111111111}{x}
\end{array}
Derivation
  1. Initial program 99.7%

    \[\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
  2. Step-by-step derivation
    1. sub-neg99.7%

      \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right)} \]
    2. *-commutative99.7%

      \[\leadsto \left(1 - \frac{1}{\color{blue}{9 \cdot x}}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    3. associate-/r*99.6%

      \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{9}}{x}}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    4. metadata-eval99.6%

      \[\leadsto \left(1 - \frac{\color{blue}{0.1111111111111111}}{x}\right) + \left(-\frac{y}{3 \cdot \sqrt{x}}\right) \]
    5. distribute-frac-neg99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-y}{3 \cdot \sqrt{x}}} \]
    6. neg-mul-199.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \frac{\color{blue}{-1 \cdot y}}{3 \cdot \sqrt{x}} \]
    7. times-frac99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-1}{3} \cdot \frac{y}{\sqrt{x}}} \]
    8. metadata-eval99.6%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{-0.3333333333333333} \cdot \frac{y}{\sqrt{x}} \]
  3. Simplified99.6%

    \[\leadsto \color{blue}{\left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}} \]
  4. Add Preprocessing
  5. Step-by-step derivation
    1. clear-num99.5%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + -0.3333333333333333 \cdot \color{blue}{\frac{1}{\frac{\sqrt{x}}{y}}} \]
    2. un-div-inv99.5%

      \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-0.3333333333333333}{\frac{\sqrt{x}}{y}}} \]
  6. Applied egg-rr99.5%

    \[\leadsto \left(1 - \frac{0.1111111111111111}{x}\right) + \color{blue}{\frac{-0.3333333333333333}{\frac{\sqrt{x}}{y}}} \]
  7. Taylor expanded in x around 0 64.1%

    \[\leadsto \color{blue}{\frac{-0.3333333333333333 \cdot \left(\sqrt{x} \cdot y\right) - 0.1111111111111111}{x}} \]
  8. Taylor expanded in y around 0 31.1%

    \[\leadsto \color{blue}{\frac{-0.1111111111111111}{x}} \]
  9. Final simplification31.1%

    \[\leadsto \frac{-0.1111111111111111}{x} \]
  10. Add Preprocessing

Developer target: 99.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(1 - \frac{\frac{1}{x}}{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(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}

Reproduce

?
herbie shell --seed 2024075 
(FPCore (x y)
  :name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, D"
  :precision binary64

  :alt
  (- (- 1.0 (/ (/ 1.0 x) 9.0)) (/ y (* 3.0 (sqrt x))))

  (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))