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

Percentage Accurate: 99.7% → 99.6%
Time: 3.5s
Alternatives: 20
Speedup: N/A×

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)));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y)
use fmin_fmax_functions
    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}

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 20 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)));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y)
use fmin_fmax_functions
    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.6% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{81 - \frac{9}{x}}{81} - \frac{\frac{y}{\sqrt{x}}}{3} \end{array} \]
(FPCore (x y)
 :precision binary64
 (- (/ (- 81.0 (/ 9.0 x)) 81.0) (/ (/ y (sqrt x)) 3.0)))
double code(double x, double y) {
	return ((81.0 - (9.0 / x)) / 81.0) - ((y / sqrt(x)) / 3.0);
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = ((81.0d0 - (9.0d0 / x)) / 81.0d0) - ((y / sqrt(x)) / 3.0d0)
end function
public static double code(double x, double y) {
	return ((81.0 - (9.0 / x)) / 81.0) - ((y / Math.sqrt(x)) / 3.0);
}
def code(x, y):
	return ((81.0 - (9.0 / x)) / 81.0) - ((y / math.sqrt(x)) / 3.0)
function code(x, y)
	return Float64(Float64(Float64(81.0 - Float64(9.0 / x)) / 81.0) - Float64(Float64(y / sqrt(x)) / 3.0))
end
function tmp = code(x, y)
	tmp = ((81.0 - (9.0 / x)) / 81.0) - ((y / sqrt(x)) / 3.0);
end
code[x_, y_] := N[(N[(N[(81.0 - N[(9.0 / x), $MachinePrecision]), $MachinePrecision] / 81.0), $MachinePrecision] - N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{81 - \frac{9}{x}}{81} - \frac{\frac{y}{\sqrt{x}}}{3}
\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. lift-/.f64N/A

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

      \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{\color{blue}{3 \cdot \sqrt{x}}} \]
    3. *-commutativeN/A

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

      \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
    5. lower-/.f64N/A

      \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
    6. lower-/.f6499.6

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

    \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
  4. Step-by-step derivation
    1. lift--.f64N/A

      \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    2. lift-/.f64N/A

      \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
    3. lift-*.f64N/A

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

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

      \[\leadsto \left(\frac{9}{9} - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
    6. lift-/.f64N/A

      \[\leadsto \left(\frac{9}{9} - \frac{\color{blue}{\frac{1}{x}}}{9}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
    7. frac-subN/A

      \[\leadsto \color{blue}{\frac{9 \cdot 9 - 9 \cdot \frac{1}{x}}{9 \cdot 9}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    8. lower-/.f64N/A

      \[\leadsto \color{blue}{\frac{9 \cdot 9 - 9 \cdot \frac{1}{x}}{9 \cdot 9}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    9. lower--.f64N/A

      \[\leadsto \frac{\color{blue}{9 \cdot 9 - 9 \cdot \frac{1}{x}}}{9 \cdot 9} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    10. metadata-evalN/A

      \[\leadsto \frac{\color{blue}{81} - 9 \cdot \frac{1}{x}}{9 \cdot 9} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    11. lift-/.f64N/A

      \[\leadsto \frac{81 - 9 \cdot \color{blue}{\frac{1}{x}}}{9 \cdot 9} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    12. mult-flip-revN/A

      \[\leadsto \frac{81 - \color{blue}{\frac{9}{x}}}{9 \cdot 9} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    13. lower-/.f64N/A

      \[\leadsto \frac{81 - \color{blue}{\frac{9}{x}}}{9 \cdot 9} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    14. metadata-eval99.5

      \[\leadsto \frac{81 - \frac{9}{x}}{\color{blue}{81}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
  5. Applied rewrites99.5%

    \[\leadsto \color{blue}{\frac{81 - \frac{9}{x}}{81}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
  6. Add Preprocessing

Alternative 2: 99.6% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(1 - \frac{9}{x \cdot 81}\right) - \frac{y \cdot 0.3333333333333333}{\sqrt{x}} \end{array} \]
(FPCore (x y)
 :precision binary64
 (- (- 1.0 (/ 9.0 (* x 81.0))) (/ (* y 0.3333333333333333) (sqrt x))))
double code(double x, double y) {
	return (1.0 - (9.0 / (x * 81.0))) - ((y * 0.3333333333333333) / sqrt(x));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = (1.0d0 - (9.0d0 / (x * 81.0d0))) - ((y * 0.3333333333333333d0) / sqrt(x))
end function
public static double code(double x, double y) {
	return (1.0 - (9.0 / (x * 81.0))) - ((y * 0.3333333333333333) / Math.sqrt(x));
}
def code(x, y):
	return (1.0 - (9.0 / (x * 81.0))) - ((y * 0.3333333333333333) / math.sqrt(x))
function code(x, y)
	return Float64(Float64(1.0 - Float64(9.0 / Float64(x * 81.0))) - Float64(Float64(y * 0.3333333333333333) / sqrt(x)))
end
function tmp = code(x, y)
	tmp = (1.0 - (9.0 / (x * 81.0))) - ((y * 0.3333333333333333) / sqrt(x));
end
code[x_, y_] := N[(N[(1.0 - N[(9.0 / N[(x * 81.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * 0.3333333333333333), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(1 - \frac{9}{x \cdot 81}\right) - \frac{y \cdot 0.3333333333333333}{\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. lift-/.f64N/A

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

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

      \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{3}}{\sqrt{x}}} \]
    4. lower-/.f64N/A

      \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{3}}{\sqrt{x}}} \]
    5. mult-flipN/A

      \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \frac{\color{blue}{y \cdot \frac{1}{3}}}{\sqrt{x}} \]
    6. lower-*.f64N/A

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

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

    \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{y \cdot 0.3333333333333333}{\sqrt{x}}} \]
  4. Step-by-step derivation
    1. *-lft-identityN/A

      \[\leadsto \left(1 - \color{blue}{1 \cdot \frac{1}{x \cdot 9}}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    2. metadata-evalN/A

      \[\leadsto \left(1 - \color{blue}{\frac{9}{9}} \cdot \frac{1}{x \cdot 9}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    3. lift-/.f64N/A

      \[\leadsto \left(1 - \frac{9}{9} \cdot \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    4. lift-*.f64N/A

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

      \[\leadsto \left(1 - \frac{9}{9} \cdot \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    6. times-fracN/A

      \[\leadsto \left(1 - \color{blue}{\frac{9 \cdot \frac{1}{x}}{9 \cdot 9}}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    7. mult-flipN/A

      \[\leadsto \left(1 - \frac{\color{blue}{\frac{9}{x}}}{9 \cdot 9}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    8. lift-/.f64N/A

      \[\leadsto \left(1 - \frac{\color{blue}{\frac{9}{x}}}{9 \cdot 9}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    9. metadata-evalN/A

      \[\leadsto \left(1 - \frac{\frac{9}{x}}{\color{blue}{81}}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    10. lift-/.f64N/A

      \[\leadsto \left(1 - \frac{\color{blue}{\frac{9}{x}}}{81}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    11. associate-/l/N/A

      \[\leadsto \left(1 - \color{blue}{\frac{9}{x \cdot 81}}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    12. *-commutativeN/A

      \[\leadsto \left(1 - \frac{9}{\color{blue}{81 \cdot x}}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    13. lower-/.f64N/A

      \[\leadsto \left(1 - \color{blue}{\frac{9}{81 \cdot x}}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    14. *-commutativeN/A

      \[\leadsto \left(1 - \frac{9}{\color{blue}{x \cdot 81}}\right) - \frac{y \cdot \frac{1}{3}}{\sqrt{x}} \]
    15. lower-*.f6499.6

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

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

Alternative 3: 99.6% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \frac{x - 0.1111111111111111}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \end{array} \]
(FPCore (x y)
 :precision binary64
 (- (/ (- x 0.1111111111111111) x) (/ (/ y (sqrt x)) 3.0)))
double code(double x, double y) {
	return ((x - 0.1111111111111111) / x) - ((y / sqrt(x)) / 3.0);
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    code = ((x - 0.1111111111111111d0) / x) - ((y / sqrt(x)) / 3.0d0)
end function
public static double code(double x, double y) {
	return ((x - 0.1111111111111111) / x) - ((y / Math.sqrt(x)) / 3.0);
}
def code(x, y):
	return ((x - 0.1111111111111111) / x) - ((y / math.sqrt(x)) / 3.0)
function code(x, y)
	return Float64(Float64(Float64(x - 0.1111111111111111) / x) - Float64(Float64(y / sqrt(x)) / 3.0))
end
function tmp = code(x, y)
	tmp = ((x - 0.1111111111111111) / x) - ((y / sqrt(x)) / 3.0);
end
code[x_, y_] := N[(N[(N[(x - 0.1111111111111111), $MachinePrecision] / x), $MachinePrecision] - N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{x - 0.1111111111111111}{x} - \frac{\frac{y}{\sqrt{x}}}{3}
\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. lift-/.f64N/A

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

      \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{\color{blue}{3 \cdot \sqrt{x}}} \]
    3. *-commutativeN/A

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

      \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
    5. lower-/.f64N/A

      \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
    6. lower-/.f6499.6

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

    \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
  4. Step-by-step derivation
    1. lift--.f64N/A

      \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    2. lift-/.f64N/A

      \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
    3. lift-*.f64N/A

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

      \[\leadsto \left(1 - \frac{\color{blue}{1 \cdot 1}}{x \cdot 9}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
    5. *-commutativeN/A

      \[\leadsto \left(1 - \frac{1 \cdot 1}{\color{blue}{9 \cdot x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
    6. frac-timesN/A

      \[\leadsto \left(1 - \color{blue}{\frac{1}{9} \cdot \frac{1}{x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
    7. metadata-evalN/A

      \[\leadsto \left(1 - \color{blue}{\frac{1}{9}} \cdot \frac{1}{x}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
    8. mult-flipN/A

      \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{9}}{x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
    9. sub-to-fractionN/A

      \[\leadsto \color{blue}{\frac{1 \cdot x - \frac{1}{9}}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    10. lower-/.f64N/A

      \[\leadsto \color{blue}{\frac{1 \cdot x - \frac{1}{9}}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    11. *-lft-identityN/A

      \[\leadsto \frac{\color{blue}{x} - \frac{1}{9}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    12. lower--.f6499.6

      \[\leadsto \frac{\color{blue}{x - 0.1111111111111111}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
  5. Applied rewrites99.6%

    \[\leadsto \color{blue}{\frac{x - 0.1111111111111111}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
  6. Add Preprocessing

Alternative 4: 99.5% accurate, 1.2× speedup?

\[\begin{array}{l} \\ 1 - \mathsf{fma}\left(\frac{0.3333333333333333}{\sqrt{x}}, y, \frac{0.1111111111111111}{x}\right) \end{array} \]
(FPCore (x y)
 :precision binary64
 (- 1.0 (fma (/ 0.3333333333333333 (sqrt x)) y (/ 0.1111111111111111 x))))
double code(double x, double y) {
	return 1.0 - fma((0.3333333333333333 / sqrt(x)), y, (0.1111111111111111 / x));
}
function code(x, y)
	return Float64(1.0 - fma(Float64(0.3333333333333333 / sqrt(x)), y, Float64(0.1111111111111111 / x)))
end
code[x_, y_] := N[(1.0 - N[(N[(0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * y + N[(0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
1 - \mathsf{fma}\left(\frac{0.3333333333333333}{\sqrt{x}}, y, \frac{0.1111111111111111}{x}\right)
\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. lift--.f64N/A

      \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}} \]
    2. lift--.f64N/A

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

      \[\leadsto \color{blue}{1 - \left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)} \]
    4. lower--.f64N/A

      \[\leadsto \color{blue}{1 - \left(\frac{1}{x \cdot 9} + \frac{y}{3 \cdot \sqrt{x}}\right)} \]
    5. +-commutativeN/A

      \[\leadsto 1 - \color{blue}{\left(\frac{y}{3 \cdot \sqrt{x}} + \frac{1}{x \cdot 9}\right)} \]
    6. lift-/.f64N/A

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

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

      \[\leadsto 1 - \left(\color{blue}{\frac{1}{3 \cdot \sqrt{x}} \cdot y} + \frac{1}{x \cdot 9}\right) \]
    9. lower-fma.f64N/A

      \[\leadsto 1 - \color{blue}{\mathsf{fma}\left(\frac{1}{3 \cdot \sqrt{x}}, y, \frac{1}{x \cdot 9}\right)} \]
    10. lift-*.f64N/A

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

      \[\leadsto 1 - \mathsf{fma}\left(\color{blue}{\frac{\frac{1}{3}}{\sqrt{x}}}, y, \frac{1}{x \cdot 9}\right) \]
    12. lower-/.f64N/A

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

      \[\leadsto 1 - \mathsf{fma}\left(\frac{\color{blue}{0.3333333333333333}}{\sqrt{x}}, y, \frac{1}{x \cdot 9}\right) \]
    14. lift-/.f64N/A

      \[\leadsto 1 - \mathsf{fma}\left(\frac{\frac{1}{3}}{\sqrt{x}}, y, \color{blue}{\frac{1}{x \cdot 9}}\right) \]
    15. lift-*.f64N/A

      \[\leadsto 1 - \mathsf{fma}\left(\frac{\frac{1}{3}}{\sqrt{x}}, y, \frac{1}{\color{blue}{x \cdot 9}}\right) \]
    16. *-commutativeN/A

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

      \[\leadsto 1 - \mathsf{fma}\left(\frac{\frac{1}{3}}{\sqrt{x}}, y, \color{blue}{\frac{\frac{1}{9}}{x}}\right) \]
    18. metadata-evalN/A

      \[\leadsto 1 - \mathsf{fma}\left(\frac{\frac{1}{3}}{\sqrt{x}}, y, \frac{\color{blue}{\frac{1}{9}}}{x}\right) \]
    19. metadata-evalN/A

      \[\leadsto 1 - \mathsf{fma}\left(\frac{\frac{1}{3}}{\sqrt{x}}, y, \frac{\color{blue}{{9}^{-1}}}{x}\right) \]
    20. lower-/.f64N/A

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

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

    \[\leadsto \color{blue}{1 - \mathsf{fma}\left(\frac{0.3333333333333333}{\sqrt{x}}, y, \frac{0.1111111111111111}{x}\right)} \]
  4. Add Preprocessing

Alternative 5: 98.4% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \leq -2 \cdot 10^{+14}:\\ \;\;\;\;\frac{-0.1111111111111111}{x} - \frac{\frac{y}{\sqrt{x}}}{3}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, \frac{0.3333333333333333}{\sqrt{x}}, 0.1111111111111111 \cdot 9\right)\\ \end{array} \end{array} \]
(FPCore (x y)
 :precision binary64
 (if (<= (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))) -2e+14)
   (- (/ -0.1111111111111111 x) (/ (/ y (sqrt x)) 3.0))
   (fma (- y) (/ 0.3333333333333333 (sqrt x)) (* 0.1111111111111111 9.0))))
double code(double x, double y) {
	double tmp;
	if (((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)))) <= -2e+14) {
		tmp = (-0.1111111111111111 / x) - ((y / sqrt(x)) / 3.0);
	} else {
		tmp = fma(-y, (0.3333333333333333 / sqrt(x)), (0.1111111111111111 * 9.0));
	}
	return tmp;
}
function code(x, y)
	tmp = 0.0
	if (Float64(Float64(1.0 - Float64(1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) <= -2e+14)
		tmp = Float64(Float64(-0.1111111111111111 / x) - Float64(Float64(y / sqrt(x)) / 3.0));
	else
		tmp = fma(Float64(-y), Float64(0.3333333333333333 / sqrt(x)), Float64(0.1111111111111111 * 9.0));
	end
	return tmp
end
code[x_, y_] := If[LessEqual[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], -2e+14], N[(N[(-0.1111111111111111 / x), $MachinePrecision] - N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / 3.0), $MachinePrecision]), $MachinePrecision], N[((-y) * N[(0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] + N[(0.1111111111111111 * 9.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \leq -2 \cdot 10^{+14}:\\
\;\;\;\;\frac{-0.1111111111111111}{x} - \frac{\frac{y}{\sqrt{x}}}{3}\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-y, \frac{0.3333333333333333}{\sqrt{x}}, 0.1111111111111111 \cdot 9\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x)))) < -2e14

    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. lift-/.f64N/A

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

        \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{\color{blue}{3 \cdot \sqrt{x}}} \]
      3. *-commutativeN/A

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

        \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
      5. lower-/.f64N/A

        \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
      6. lower-/.f6499.6

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

      \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
    4. Step-by-step derivation
      1. lift--.f64N/A

        \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{\frac{y}{\sqrt{x}}}{3} \]
      2. lift-/.f64N/A

        \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
      3. lift-*.f64N/A

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

        \[\leadsto \left(1 - \frac{\color{blue}{1 \cdot 1}}{x \cdot 9}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
      5. *-commutativeN/A

        \[\leadsto \left(1 - \frac{1 \cdot 1}{\color{blue}{9 \cdot x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
      6. frac-timesN/A

        \[\leadsto \left(1 - \color{blue}{\frac{1}{9} \cdot \frac{1}{x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
      7. metadata-evalN/A

        \[\leadsto \left(1 - \color{blue}{\frac{1}{9}} \cdot \frac{1}{x}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
      8. mult-flipN/A

        \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{9}}{x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
      9. sub-to-fractionN/A

        \[\leadsto \color{blue}{\frac{1 \cdot x - \frac{1}{9}}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
      10. lower-/.f64N/A

        \[\leadsto \color{blue}{\frac{1 \cdot x - \frac{1}{9}}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
      11. *-lft-identityN/A

        \[\leadsto \frac{\color{blue}{x} - \frac{1}{9}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
      12. lower--.f6499.6

        \[\leadsto \frac{\color{blue}{x - 0.1111111111111111}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    5. Applied rewrites99.6%

      \[\leadsto \color{blue}{\frac{x - 0.1111111111111111}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    6. Taylor expanded in x around 0

      \[\leadsto \frac{\color{blue}{\frac{-1}{9}}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
    7. Step-by-step derivation
      1. Applied rewrites68.5%

        \[\leadsto \frac{\color{blue}{-0.1111111111111111}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]

      if -2e14 < (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x))))

      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. lift--.f64N/A

          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
        2. lift-/.f64N/A

          \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
        3. lift-*.f64N/A

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

          \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
        5. inv-powN/A

          \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
        6. sub-to-fractionN/A

          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
        7. lower-/.f64N/A

          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
        8. metadata-evalN/A

          \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
        9. lower--.f64N/A

          \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
        10. inv-powN/A

          \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
        11. lower-/.f6499.7

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

        \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
      4. Taylor expanded in x around inf

        \[\leadsto \frac{\color{blue}{9}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
      5. Step-by-step derivation
        1. Applied rewrites68.0%

          \[\leadsto \frac{\color{blue}{9}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
        2. Step-by-step derivation
          1. lift--.f64N/A

            \[\leadsto \color{blue}{\frac{9}{9} - \frac{y}{3 \cdot \sqrt{x}}} \]
          2. sub-flipN/A

            \[\leadsto \color{blue}{\frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{3 \cdot \sqrt{x}}\right)\right)} \]
          3. lift-/.f64N/A

            \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{y}{3 \cdot \sqrt{x}}}\right)\right) \]
          4. lift-*.f64N/A

            \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{\color{blue}{3 \cdot \sqrt{x}}}\right)\right) \]
          5. *-commutativeN/A

            \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{\color{blue}{\sqrt{x} \cdot 3}}\right)\right) \]
          6. associate-/l/N/A

            \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) \]
          7. lift-/.f64N/A

            \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{\color{blue}{\frac{y}{\sqrt{x}}}}{3}\right)\right) \]
          8. lift-/.f64N/A

            \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) \]
          9. +-commutativeN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{y}{\sqrt{x}}}{3}\right)\right) + \frac{9}{9}} \]
          10. lift-/.f64N/A

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) + \frac{9}{9} \]
          11. lift-/.f64N/A

            \[\leadsto \left(\mathsf{neg}\left(\frac{\color{blue}{\frac{y}{\sqrt{x}}}}{3}\right)\right) + \frac{9}{9} \]
          12. associate-/l/N/A

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y}{\sqrt{x} \cdot 3}}\right)\right) + \frac{9}{9} \]
          13. *-commutativeN/A

            \[\leadsto \left(\mathsf{neg}\left(\frac{y}{\color{blue}{3 \cdot \sqrt{x}}}\right)\right) + \frac{9}{9} \]
          14. lift-*.f64N/A

            \[\leadsto \left(\mathsf{neg}\left(\frac{y}{\color{blue}{3 \cdot \sqrt{x}}}\right)\right) + \frac{9}{9} \]
          15. lift-/.f64N/A

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y}{3 \cdot \sqrt{x}}}\right)\right) + \frac{9}{9} \]
          16. lift-/.f64N/A

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y}{3 \cdot \sqrt{x}}}\right)\right) + \frac{9}{9} \]
          17. mult-flipN/A

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{y \cdot \frac{1}{3 \cdot \sqrt{x}}}\right)\right) + \frac{9}{9} \]
          18. distribute-lft-neg-inN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot \frac{1}{3 \cdot \sqrt{x}}} + \frac{9}{9} \]
        3. Applied rewrites68.0%

          \[\leadsto \color{blue}{\mathsf{fma}\left(-y, \frac{0.3333333333333333}{\sqrt{x}}, 0.1111111111111111 \cdot 9\right)} \]
      6. Recombined 2 regimes into one program.
      7. Add Preprocessing

      Alternative 6: 98.4% accurate, 1.1× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 0.112:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{\sqrt{x}}, -0.3333333333333333, \frac{-0.1111111111111111}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, \frac{0.3333333333333333}{\sqrt{x}}, 0.1111111111111111 \cdot 9\right)\\ \end{array} \end{array} \]
      (FPCore (x y)
       :precision binary64
       (if (<= x 0.112)
         (fma (/ y (sqrt x)) -0.3333333333333333 (/ -0.1111111111111111 x))
         (fma (- y) (/ 0.3333333333333333 (sqrt x)) (* 0.1111111111111111 9.0))))
      double code(double x, double y) {
      	double tmp;
      	if (x <= 0.112) {
      		tmp = fma((y / sqrt(x)), -0.3333333333333333, (-0.1111111111111111 / x));
      	} else {
      		tmp = fma(-y, (0.3333333333333333 / sqrt(x)), (0.1111111111111111 * 9.0));
      	}
      	return tmp;
      }
      
      function code(x, y)
      	tmp = 0.0
      	if (x <= 0.112)
      		tmp = fma(Float64(y / sqrt(x)), -0.3333333333333333, Float64(-0.1111111111111111 / x));
      	else
      		tmp = fma(Float64(-y), Float64(0.3333333333333333 / sqrt(x)), Float64(0.1111111111111111 * 9.0));
      	end
      	return tmp
      end
      
      code[x_, y_] := If[LessEqual[x, 0.112], N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision], N[((-y) * N[(0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] + N[(0.1111111111111111 * 9.0), $MachinePrecision]), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;x \leq 0.112:\\
      \;\;\;\;\mathsf{fma}\left(\frac{y}{\sqrt{x}}, -0.3333333333333333, \frac{-0.1111111111111111}{x}\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(-y, \frac{0.3333333333333333}{\sqrt{x}}, 0.1111111111111111 \cdot 9\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if x < 0.112000000000000002

        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. lift-/.f64N/A

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

            \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{\color{blue}{3 \cdot \sqrt{x}}} \]
          3. *-commutativeN/A

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

            \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
          5. lower-/.f64N/A

            \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
          6. lower-/.f6499.6

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

          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
        4. Step-by-step derivation
          1. lift--.f64N/A

            \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{\frac{y}{\sqrt{x}}}{3} \]
          2. lift-/.f64N/A

            \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
          3. lift-*.f64N/A

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

            \[\leadsto \left(1 - \frac{\color{blue}{1 \cdot 1}}{x \cdot 9}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
          5. *-commutativeN/A

            \[\leadsto \left(1 - \frac{1 \cdot 1}{\color{blue}{9 \cdot x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
          6. frac-timesN/A

            \[\leadsto \left(1 - \color{blue}{\frac{1}{9} \cdot \frac{1}{x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
          7. metadata-evalN/A

            \[\leadsto \left(1 - \color{blue}{\frac{1}{9}} \cdot \frac{1}{x}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
          8. mult-flipN/A

            \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{9}}{x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
          9. sub-to-fractionN/A

            \[\leadsto \color{blue}{\frac{1 \cdot x - \frac{1}{9}}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
          10. lower-/.f64N/A

            \[\leadsto \color{blue}{\frac{1 \cdot x - \frac{1}{9}}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
          11. *-lft-identityN/A

            \[\leadsto \frac{\color{blue}{x} - \frac{1}{9}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
          12. lower--.f6499.6

            \[\leadsto \frac{\color{blue}{x - 0.1111111111111111}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
        5. Applied rewrites99.6%

          \[\leadsto \color{blue}{\frac{x - 0.1111111111111111}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
        6. Taylor expanded in x around 0

          \[\leadsto \frac{\color{blue}{\frac{-1}{9}}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
        7. Step-by-step derivation
          1. Applied rewrites68.5%

            \[\leadsto \frac{\color{blue}{-0.1111111111111111}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
          2. Step-by-step derivation
            1. lift--.f64N/A

              \[\leadsto \color{blue}{\frac{\frac{-1}{9}}{x} - \frac{\frac{y}{\sqrt{x}}}{3}} \]
            2. sub-flipN/A

              \[\leadsto \color{blue}{\frac{\frac{-1}{9}}{x} + \left(\mathsf{neg}\left(\frac{\frac{y}{\sqrt{x}}}{3}\right)\right)} \]
            3. +-commutativeN/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{y}{\sqrt{x}}}{3}\right)\right) + \frac{\frac{-1}{9}}{x}} \]
            4. lift-/.f64N/A

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) + \frac{\frac{-1}{9}}{x} \]
            5. mult-flipN/A

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y}{\sqrt{x}} \cdot \frac{1}{3}}\right)\right) + \frac{\frac{-1}{9}}{x} \]
            6. metadata-evalN/A

              \[\leadsto \left(\mathsf{neg}\left(\frac{y}{\sqrt{x}} \cdot \color{blue}{\frac{1}{3}}\right)\right) + \frac{\frac{-1}{9}}{x} \]
            7. distribute-rgt-neg-inN/A

              \[\leadsto \color{blue}{\frac{y}{\sqrt{x}} \cdot \left(\mathsf{neg}\left(\frac{1}{3}\right)\right)} + \frac{\frac{-1}{9}}{x} \]
            8. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{\sqrt{x}}, \mathsf{neg}\left(\frac{1}{3}\right), \frac{\frac{-1}{9}}{x}\right)} \]
            9. metadata-eval68.5

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

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

          if 0.112000000000000002 < x

          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. lift--.f64N/A

              \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
            2. lift-/.f64N/A

              \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
            3. lift-*.f64N/A

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

              \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
            5. inv-powN/A

              \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
            6. sub-to-fractionN/A

              \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
            7. lower-/.f64N/A

              \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
            8. metadata-evalN/A

              \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
            9. lower--.f64N/A

              \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
            10. inv-powN/A

              \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
            11. lower-/.f6499.7

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

            \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
          4. Taylor expanded in x around inf

            \[\leadsto \frac{\color{blue}{9}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
          5. Step-by-step derivation
            1. Applied rewrites68.0%

              \[\leadsto \frac{\color{blue}{9}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
            2. Step-by-step derivation
              1. lift--.f64N/A

                \[\leadsto \color{blue}{\frac{9}{9} - \frac{y}{3 \cdot \sqrt{x}}} \]
              2. sub-flipN/A

                \[\leadsto \color{blue}{\frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{3 \cdot \sqrt{x}}\right)\right)} \]
              3. lift-/.f64N/A

                \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{y}{3 \cdot \sqrt{x}}}\right)\right) \]
              4. lift-*.f64N/A

                \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{\color{blue}{3 \cdot \sqrt{x}}}\right)\right) \]
              5. *-commutativeN/A

                \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{\color{blue}{\sqrt{x} \cdot 3}}\right)\right) \]
              6. associate-/l/N/A

                \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) \]
              7. lift-/.f64N/A

                \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{\color{blue}{\frac{y}{\sqrt{x}}}}{3}\right)\right) \]
              8. lift-/.f64N/A

                \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) \]
              9. +-commutativeN/A

                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{y}{\sqrt{x}}}{3}\right)\right) + \frac{9}{9}} \]
              10. lift-/.f64N/A

                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) + \frac{9}{9} \]
              11. lift-/.f64N/A

                \[\leadsto \left(\mathsf{neg}\left(\frac{\color{blue}{\frac{y}{\sqrt{x}}}}{3}\right)\right) + \frac{9}{9} \]
              12. associate-/l/N/A

                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y}{\sqrt{x} \cdot 3}}\right)\right) + \frac{9}{9} \]
              13. *-commutativeN/A

                \[\leadsto \left(\mathsf{neg}\left(\frac{y}{\color{blue}{3 \cdot \sqrt{x}}}\right)\right) + \frac{9}{9} \]
              14. lift-*.f64N/A

                \[\leadsto \left(\mathsf{neg}\left(\frac{y}{\color{blue}{3 \cdot \sqrt{x}}}\right)\right) + \frac{9}{9} \]
              15. lift-/.f64N/A

                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y}{3 \cdot \sqrt{x}}}\right)\right) + \frac{9}{9} \]
              16. lift-/.f64N/A

                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y}{3 \cdot \sqrt{x}}}\right)\right) + \frac{9}{9} \]
              17. mult-flipN/A

                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{y \cdot \frac{1}{3 \cdot \sqrt{x}}}\right)\right) + \frac{9}{9} \]
              18. distribute-lft-neg-inN/A

                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot \frac{1}{3 \cdot \sqrt{x}}} + \frac{9}{9} \]
            3. Applied rewrites68.0%

              \[\leadsto \color{blue}{\mathsf{fma}\left(-y, \frac{0.3333333333333333}{\sqrt{x}}, 0.1111111111111111 \cdot 9\right)} \]
          6. Recombined 2 regimes into one program.
          7. Add Preprocessing

          Alternative 7: 98.0% accurate, 1.1× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 0.112:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{\sqrt{x}}, -0.3333333333333333, \frac{-0.1111111111111111}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;9 \cdot 0.1111111111111111 - \frac{y}{3 \cdot \sqrt{x}}\\ \end{array} \end{array} \]
          (FPCore (x y)
           :precision binary64
           (if (<= x 0.112)
             (fma (/ y (sqrt x)) -0.3333333333333333 (/ -0.1111111111111111 x))
             (- (* 9.0 0.1111111111111111) (/ y (* 3.0 (sqrt x))))))
          double code(double x, double y) {
          	double tmp;
          	if (x <= 0.112) {
          		tmp = fma((y / sqrt(x)), -0.3333333333333333, (-0.1111111111111111 / x));
          	} else {
          		tmp = (9.0 * 0.1111111111111111) - (y / (3.0 * sqrt(x)));
          	}
          	return tmp;
          }
          
          function code(x, y)
          	tmp = 0.0
          	if (x <= 0.112)
          		tmp = fma(Float64(y / sqrt(x)), -0.3333333333333333, Float64(-0.1111111111111111 / x));
          	else
          		tmp = Float64(Float64(9.0 * 0.1111111111111111) - Float64(y / Float64(3.0 * sqrt(x))));
          	end
          	return tmp
          end
          
          code[x_, y_] := If[LessEqual[x, 0.112], N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision], N[(N[(9.0 * 0.1111111111111111), $MachinePrecision] - N[(y / N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;x \leq 0.112:\\
          \;\;\;\;\mathsf{fma}\left(\frac{y}{\sqrt{x}}, -0.3333333333333333, \frac{-0.1111111111111111}{x}\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;9 \cdot 0.1111111111111111 - \frac{y}{3 \cdot \sqrt{x}}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if x < 0.112000000000000002

            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. lift-/.f64N/A

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

                \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{\color{blue}{3 \cdot \sqrt{x}}} \]
              3. *-commutativeN/A

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

                \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
              5. lower-/.f64N/A

                \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
              6. lower-/.f6499.6

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

              \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
            4. Step-by-step derivation
              1. lift--.f64N/A

                \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{\frac{y}{\sqrt{x}}}{3} \]
              2. lift-/.f64N/A

                \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
              3. lift-*.f64N/A

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

                \[\leadsto \left(1 - \frac{\color{blue}{1 \cdot 1}}{x \cdot 9}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
              5. *-commutativeN/A

                \[\leadsto \left(1 - \frac{1 \cdot 1}{\color{blue}{9 \cdot x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
              6. frac-timesN/A

                \[\leadsto \left(1 - \color{blue}{\frac{1}{9} \cdot \frac{1}{x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
              7. metadata-evalN/A

                \[\leadsto \left(1 - \color{blue}{\frac{1}{9}} \cdot \frac{1}{x}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
              8. mult-flipN/A

                \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{9}}{x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
              9. sub-to-fractionN/A

                \[\leadsto \color{blue}{\frac{1 \cdot x - \frac{1}{9}}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
              10. lower-/.f64N/A

                \[\leadsto \color{blue}{\frac{1 \cdot x - \frac{1}{9}}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
              11. *-lft-identityN/A

                \[\leadsto \frac{\color{blue}{x} - \frac{1}{9}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
              12. lower--.f6499.6

                \[\leadsto \frac{\color{blue}{x - 0.1111111111111111}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
            5. Applied rewrites99.6%

              \[\leadsto \color{blue}{\frac{x - 0.1111111111111111}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
            6. Taylor expanded in x around 0

              \[\leadsto \frac{\color{blue}{\frac{-1}{9}}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
            7. Step-by-step derivation
              1. Applied rewrites68.5%

                \[\leadsto \frac{\color{blue}{-0.1111111111111111}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
              2. Step-by-step derivation
                1. lift--.f64N/A

                  \[\leadsto \color{blue}{\frac{\frac{-1}{9}}{x} - \frac{\frac{y}{\sqrt{x}}}{3}} \]
                2. sub-flipN/A

                  \[\leadsto \color{blue}{\frac{\frac{-1}{9}}{x} + \left(\mathsf{neg}\left(\frac{\frac{y}{\sqrt{x}}}{3}\right)\right)} \]
                3. +-commutativeN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{y}{\sqrt{x}}}{3}\right)\right) + \frac{\frac{-1}{9}}{x}} \]
                4. lift-/.f64N/A

                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) + \frac{\frac{-1}{9}}{x} \]
                5. mult-flipN/A

                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y}{\sqrt{x}} \cdot \frac{1}{3}}\right)\right) + \frac{\frac{-1}{9}}{x} \]
                6. metadata-evalN/A

                  \[\leadsto \left(\mathsf{neg}\left(\frac{y}{\sqrt{x}} \cdot \color{blue}{\frac{1}{3}}\right)\right) + \frac{\frac{-1}{9}}{x} \]
                7. distribute-rgt-neg-inN/A

                  \[\leadsto \color{blue}{\frac{y}{\sqrt{x}} \cdot \left(\mathsf{neg}\left(\frac{1}{3}\right)\right)} + \frac{\frac{-1}{9}}{x} \]
                8. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{\sqrt{x}}, \mathsf{neg}\left(\frac{1}{3}\right), \frac{\frac{-1}{9}}{x}\right)} \]
                9. metadata-eval68.5

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

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

              if 0.112000000000000002 < x

              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. lift--.f64N/A

                  \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
                2. lift-/.f64N/A

                  \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                3. lift-*.f64N/A

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

                  \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                5. inv-powN/A

                  \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                6. sub-to-fractionN/A

                  \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                7. lower-/.f64N/A

                  \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                8. metadata-evalN/A

                  \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                9. lower--.f64N/A

                  \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                10. inv-powN/A

                  \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                11. lower-/.f6499.7

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

                \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
              4. Taylor expanded in x around inf

                \[\leadsto \frac{\color{blue}{9}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
              5. Step-by-step derivation
                1. Applied rewrites68.0%

                  \[\leadsto \frac{\color{blue}{9}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                2. Step-by-step derivation
                  1. lift-/.f64N/A

                    \[\leadsto \color{blue}{\frac{9}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                  2. mult-flipN/A

                    \[\leadsto \color{blue}{9 \cdot \frac{1}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                  3. metadata-evalN/A

                    \[\leadsto 9 \cdot \color{blue}{\frac{1}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                  4. lower-*.f6468.0

                    \[\leadsto \color{blue}{9 \cdot 0.1111111111111111} - \frac{y}{3 \cdot \sqrt{x}} \]
                3. Applied rewrites68.0%

                  \[\leadsto \color{blue}{9 \cdot 0.1111111111111111} - \frac{y}{3 \cdot \sqrt{x}} \]
              6. Recombined 2 regimes into one program.
              7. Add Preprocessing

              Alternative 8: 97.6% accurate, 1.1× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_0 := \frac{y}{\sqrt{x}}\\ \mathbf{if}\;x \leq 3.4 \cdot 10^{-13}:\\ \;\;\;\;\mathsf{fma}\left(t\_0, -0.3333333333333333, \frac{-0.1111111111111111}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t\_0, -0.3333333333333333, 0.1111111111111111 \cdot 9\right)\\ \end{array} \end{array} \]
              (FPCore (x y)
               :precision binary64
               (let* ((t_0 (/ y (sqrt x))))
                 (if (<= x 3.4e-13)
                   (fma t_0 -0.3333333333333333 (/ -0.1111111111111111 x))
                   (fma t_0 -0.3333333333333333 (* 0.1111111111111111 9.0)))))
              double code(double x, double y) {
              	double t_0 = y / sqrt(x);
              	double tmp;
              	if (x <= 3.4e-13) {
              		tmp = fma(t_0, -0.3333333333333333, (-0.1111111111111111 / x));
              	} else {
              		tmp = fma(t_0, -0.3333333333333333, (0.1111111111111111 * 9.0));
              	}
              	return tmp;
              }
              
              function code(x, y)
              	t_0 = Float64(y / sqrt(x))
              	tmp = 0.0
              	if (x <= 3.4e-13)
              		tmp = fma(t_0, -0.3333333333333333, Float64(-0.1111111111111111 / x));
              	else
              		tmp = fma(t_0, -0.3333333333333333, Float64(0.1111111111111111 * 9.0));
              	end
              	return tmp
              end
              
              code[x_, y_] := Block[{t$95$0 = N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 3.4e-13], N[(t$95$0 * -0.3333333333333333 + N[(-0.1111111111111111 / x), $MachinePrecision]), $MachinePrecision], N[(t$95$0 * -0.3333333333333333 + N[(0.1111111111111111 * 9.0), $MachinePrecision]), $MachinePrecision]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_0 := \frac{y}{\sqrt{x}}\\
              \mathbf{if}\;x \leq 3.4 \cdot 10^{-13}:\\
              \;\;\;\;\mathsf{fma}\left(t\_0, -0.3333333333333333, \frac{-0.1111111111111111}{x}\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;\mathsf{fma}\left(t\_0, -0.3333333333333333, 0.1111111111111111 \cdot 9\right)\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if x < 3.40000000000000015e-13

                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. lift-/.f64N/A

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

                    \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{\color{blue}{3 \cdot \sqrt{x}}} \]
                  3. *-commutativeN/A

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

                    \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
                  5. lower-/.f64N/A

                    \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
                  6. lower-/.f6499.6

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

                  \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
                4. Step-by-step derivation
                  1. lift--.f64N/A

                    \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{\frac{y}{\sqrt{x}}}{3} \]
                  2. lift-/.f64N/A

                    \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
                  3. lift-*.f64N/A

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

                    \[\leadsto \left(1 - \frac{\color{blue}{1 \cdot 1}}{x \cdot 9}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
                  5. *-commutativeN/A

                    \[\leadsto \left(1 - \frac{1 \cdot 1}{\color{blue}{9 \cdot x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
                  6. frac-timesN/A

                    \[\leadsto \left(1 - \color{blue}{\frac{1}{9} \cdot \frac{1}{x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
                  7. metadata-evalN/A

                    \[\leadsto \left(1 - \color{blue}{\frac{1}{9}} \cdot \frac{1}{x}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
                  8. mult-flipN/A

                    \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{9}}{x}}\right) - \frac{\frac{y}{\sqrt{x}}}{3} \]
                  9. sub-to-fractionN/A

                    \[\leadsto \color{blue}{\frac{1 \cdot x - \frac{1}{9}}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
                  10. lower-/.f64N/A

                    \[\leadsto \color{blue}{\frac{1 \cdot x - \frac{1}{9}}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
                  11. *-lft-identityN/A

                    \[\leadsto \frac{\color{blue}{x} - \frac{1}{9}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
                  12. lower--.f6499.6

                    \[\leadsto \frac{\color{blue}{x - 0.1111111111111111}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
                5. Applied rewrites99.6%

                  \[\leadsto \color{blue}{\frac{x - 0.1111111111111111}{x}} - \frac{\frac{y}{\sqrt{x}}}{3} \]
                6. Taylor expanded in x around 0

                  \[\leadsto \frac{\color{blue}{\frac{-1}{9}}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
                7. Step-by-step derivation
                  1. Applied rewrites68.5%

                    \[\leadsto \frac{\color{blue}{-0.1111111111111111}}{x} - \frac{\frac{y}{\sqrt{x}}}{3} \]
                  2. Step-by-step derivation
                    1. lift--.f64N/A

                      \[\leadsto \color{blue}{\frac{\frac{-1}{9}}{x} - \frac{\frac{y}{\sqrt{x}}}{3}} \]
                    2. sub-flipN/A

                      \[\leadsto \color{blue}{\frac{\frac{-1}{9}}{x} + \left(\mathsf{neg}\left(\frac{\frac{y}{\sqrt{x}}}{3}\right)\right)} \]
                    3. +-commutativeN/A

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{y}{\sqrt{x}}}{3}\right)\right) + \frac{\frac{-1}{9}}{x}} \]
                    4. lift-/.f64N/A

                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) + \frac{\frac{-1}{9}}{x} \]
                    5. mult-flipN/A

                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y}{\sqrt{x}} \cdot \frac{1}{3}}\right)\right) + \frac{\frac{-1}{9}}{x} \]
                    6. metadata-evalN/A

                      \[\leadsto \left(\mathsf{neg}\left(\frac{y}{\sqrt{x}} \cdot \color{blue}{\frac{1}{3}}\right)\right) + \frac{\frac{-1}{9}}{x} \]
                    7. distribute-rgt-neg-inN/A

                      \[\leadsto \color{blue}{\frac{y}{\sqrt{x}} \cdot \left(\mathsf{neg}\left(\frac{1}{3}\right)\right)} + \frac{\frac{-1}{9}}{x} \]
                    8. lower-fma.f64N/A

                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{\sqrt{x}}, \mathsf{neg}\left(\frac{1}{3}\right), \frac{\frac{-1}{9}}{x}\right)} \]
                    9. metadata-eval68.5

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

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

                  if 3.40000000000000015e-13 < x

                  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. lift--.f64N/A

                      \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
                    2. lift-/.f64N/A

                      \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                    3. lift-*.f64N/A

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

                      \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                    5. inv-powN/A

                      \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                    6. sub-to-fractionN/A

                      \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                    7. lower-/.f64N/A

                      \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                    8. metadata-evalN/A

                      \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                    9. lower--.f64N/A

                      \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                    10. inv-powN/A

                      \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                    11. lower-/.f6499.7

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

                    \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                  4. Taylor expanded in x around inf

                    \[\leadsto \frac{\color{blue}{9}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                  5. Step-by-step derivation
                    1. Applied rewrites68.0%

                      \[\leadsto \frac{\color{blue}{9}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                    2. Step-by-step derivation
                      1. lift--.f64N/A

                        \[\leadsto \color{blue}{\frac{9}{9} - \frac{y}{3 \cdot \sqrt{x}}} \]
                      2. sub-flipN/A

                        \[\leadsto \color{blue}{\frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{3 \cdot \sqrt{x}}\right)\right)} \]
                      3. lift-/.f64N/A

                        \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{y}{3 \cdot \sqrt{x}}}\right)\right) \]
                      4. lift-*.f64N/A

                        \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{\color{blue}{3 \cdot \sqrt{x}}}\right)\right) \]
                      5. *-commutativeN/A

                        \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{\color{blue}{\sqrt{x} \cdot 3}}\right)\right) \]
                      6. associate-/l/N/A

                        \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) \]
                      7. lift-/.f64N/A

                        \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{\color{blue}{\frac{y}{\sqrt{x}}}}{3}\right)\right) \]
                      8. lift-/.f64N/A

                        \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) \]
                      9. +-commutativeN/A

                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{y}{\sqrt{x}}}{3}\right)\right) + \frac{9}{9}} \]
                    3. Applied rewrites67.9%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{\sqrt{x}}, -0.3333333333333333, 0.1111111111111111 \cdot 9\right)} \]
                  6. Recombined 2 regimes into one program.
                  7. Add Preprocessing

                  Alternative 9: 94.3% accurate, 1.0× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_0 := \mathsf{fma}\left(\frac{y}{\sqrt{x}}, -0.3333333333333333, 0.1111111111111111 \cdot 9\right)\\ \mathbf{if}\;y \leq -7.6 \cdot 10^{+82}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;y \leq 1.3 \cdot 10^{+72}:\\ \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_0\\ \end{array} \end{array} \]
                  (FPCore (x y)
                   :precision binary64
                   (let* ((t_0
                           (fma (/ y (sqrt x)) -0.3333333333333333 (* 0.1111111111111111 9.0))))
                     (if (<= y -7.6e+82)
                       t_0
                       (if (<= y 1.3e+72) (* 0.1111111111111111 (- 9.0 (/ 1.0 x))) t_0))))
                  double code(double x, double y) {
                  	double t_0 = fma((y / sqrt(x)), -0.3333333333333333, (0.1111111111111111 * 9.0));
                  	double tmp;
                  	if (y <= -7.6e+82) {
                  		tmp = t_0;
                  	} else if (y <= 1.3e+72) {
                  		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                  	} else {
                  		tmp = t_0;
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y)
                  	t_0 = fma(Float64(y / sqrt(x)), -0.3333333333333333, Float64(0.1111111111111111 * 9.0))
                  	tmp = 0.0
                  	if (y <= -7.6e+82)
                  		tmp = t_0;
                  	elseif (y <= 1.3e+72)
                  		tmp = Float64(0.1111111111111111 * Float64(9.0 - Float64(1.0 / x)));
                  	else
                  		tmp = t_0;
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_] := Block[{t$95$0 = N[(N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * -0.3333333333333333 + N[(0.1111111111111111 * 9.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.6e+82], t$95$0, If[LessEqual[y, 1.3e+72], N[(0.1111111111111111 * N[(9.0 - N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_0 := \mathsf{fma}\left(\frac{y}{\sqrt{x}}, -0.3333333333333333, 0.1111111111111111 \cdot 9\right)\\
                  \mathbf{if}\;y \leq -7.6 \cdot 10^{+82}:\\
                  \;\;\;\;t\_0\\
                  
                  \mathbf{elif}\;y \leq 1.3 \cdot 10^{+72}:\\
                  \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_0\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if y < -7.60000000000000067e82 or 1.29999999999999991e72 < y

                    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. lift--.f64N/A

                        \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
                      2. lift-/.f64N/A

                        \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                      3. lift-*.f64N/A

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

                        \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                      5. inv-powN/A

                        \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                      6. sub-to-fractionN/A

                        \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                      7. lower-/.f64N/A

                        \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                      8. metadata-evalN/A

                        \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                      9. lower--.f64N/A

                        \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                      10. inv-powN/A

                        \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                      11. lower-/.f6499.7

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

                      \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                    4. Taylor expanded in x around inf

                      \[\leadsto \frac{\color{blue}{9}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                    5. Step-by-step derivation
                      1. Applied rewrites68.0%

                        \[\leadsto \frac{\color{blue}{9}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                      2. Step-by-step derivation
                        1. lift--.f64N/A

                          \[\leadsto \color{blue}{\frac{9}{9} - \frac{y}{3 \cdot \sqrt{x}}} \]
                        2. sub-flipN/A

                          \[\leadsto \color{blue}{\frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{3 \cdot \sqrt{x}}\right)\right)} \]
                        3. lift-/.f64N/A

                          \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{y}{3 \cdot \sqrt{x}}}\right)\right) \]
                        4. lift-*.f64N/A

                          \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{\color{blue}{3 \cdot \sqrt{x}}}\right)\right) \]
                        5. *-commutativeN/A

                          \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{y}{\color{blue}{\sqrt{x} \cdot 3}}\right)\right) \]
                        6. associate-/l/N/A

                          \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) \]
                        7. lift-/.f64N/A

                          \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\frac{\color{blue}{\frac{y}{\sqrt{x}}}}{3}\right)\right) \]
                        8. lift-/.f64N/A

                          \[\leadsto \frac{9}{9} + \left(\mathsf{neg}\left(\color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}}\right)\right) \]
                        9. +-commutativeN/A

                          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\frac{y}{\sqrt{x}}}{3}\right)\right) + \frac{9}{9}} \]
                      3. Applied rewrites67.9%

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

                      if -7.60000000000000067e82 < y < 1.29999999999999991e72

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        3. lift-*.f64N/A

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

                          \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        5. inv-powN/A

                          \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        6. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        7. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        8. metadata-evalN/A

                          \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        9. lower--.f64N/A

                          \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        10. inv-powN/A

                          \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        11. lower-/.f6499.7

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

                        \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                      4. Taylor expanded in y around 0

                        \[\leadsto \color{blue}{\frac{1}{9} \cdot \left(9 - \frac{1}{x}\right)} \]
                      5. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \color{blue}{\left(9 - \frac{1}{x}\right)} \]
                        2. lower--.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \left(9 - \color{blue}{\frac{1}{x}}\right) \]
                        3. lower-/.f6462.5

                          \[\leadsto 0.1111111111111111 \cdot \left(9 - \frac{1}{\color{blue}{x}}\right) \]
                      6. Applied rewrites62.5%

                        \[\leadsto \color{blue}{0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)} \]
                    6. Recombined 2 regimes into one program.
                    7. Add Preprocessing

                    Alternative 10: 92.5% accurate, 1.1× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\ \;\;\;\;\frac{1}{\frac{3 \cdot \sqrt{x}}{-y}}\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\ \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{-y}{\sqrt{x}}}{3}\\ \end{array} \end{array} \]
                    (FPCore (x y)
                     :precision binary64
                     (if (<= y -9.2e+82)
                       (/ 1.0 (/ (* 3.0 (sqrt x)) (- y)))
                       (if (<= y 1.7e+102)
                         (* 0.1111111111111111 (- 9.0 (/ 1.0 x)))
                         (/ (/ (- y) (sqrt x)) 3.0))))
                    double code(double x, double y) {
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = 1.0 / ((3.0 * sqrt(x)) / -y);
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = (-y / sqrt(x)) / 3.0;
                    	}
                    	return tmp;
                    }
                    
                    module fmin_fmax_functions
                        implicit none
                        private
                        public fmax
                        public fmin
                    
                        interface fmax
                            module procedure fmax88
                            module procedure fmax44
                            module procedure fmax84
                            module procedure fmax48
                        end interface
                        interface fmin
                            module procedure fmin88
                            module procedure fmin44
                            module procedure fmin84
                            module procedure fmin48
                        end interface
                    contains
                        real(8) function fmax88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmax44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmax84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmax48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                        end function
                        real(8) function fmin88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmin44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmin84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmin48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                        end function
                    end module
                    
                    real(8) function code(x, y)
                    use fmin_fmax_functions
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8) :: tmp
                        if (y <= (-9.2d+82)) then
                            tmp = 1.0d0 / ((3.0d0 * sqrt(x)) / -y)
                        else if (y <= 1.7d+102) then
                            tmp = 0.1111111111111111d0 * (9.0d0 - (1.0d0 / x))
                        else
                            tmp = (-y / sqrt(x)) / 3.0d0
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y) {
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = 1.0 / ((3.0 * Math.sqrt(x)) / -y);
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = (-y / Math.sqrt(x)) / 3.0;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y):
                    	tmp = 0
                    	if y <= -9.2e+82:
                    		tmp = 1.0 / ((3.0 * math.sqrt(x)) / -y)
                    	elif y <= 1.7e+102:
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x))
                    	else:
                    		tmp = (-y / math.sqrt(x)) / 3.0
                    	return tmp
                    
                    function code(x, y)
                    	tmp = 0.0
                    	if (y <= -9.2e+82)
                    		tmp = Float64(1.0 / Float64(Float64(3.0 * sqrt(x)) / Float64(-y)));
                    	elseif (y <= 1.7e+102)
                    		tmp = Float64(0.1111111111111111 * Float64(9.0 - Float64(1.0 / x)));
                    	else
                    		tmp = Float64(Float64(Float64(-y) / sqrt(x)) / 3.0);
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y)
                    	tmp = 0.0;
                    	if (y <= -9.2e+82)
                    		tmp = 1.0 / ((3.0 * sqrt(x)) / -y);
                    	elseif (y <= 1.7e+102)
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	else
                    		tmp = (-y / sqrt(x)) / 3.0;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_] := If[LessEqual[y, -9.2e+82], N[(1.0 / N[(N[(3.0 * N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e+102], N[(0.1111111111111111 * N[(9.0 - N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-y) / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / 3.0), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\
                    \;\;\;\;\frac{1}{\frac{3 \cdot \sqrt{x}}{-y}}\\
                    
                    \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\
                    \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{\frac{-y}{\sqrt{x}}}{3}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if y < -9.19999999999999953e82

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{y}{3 \cdot \sqrt{x}}} \]
                        3. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{\left(1 - \frac{1}{x \cdot 9}\right) \cdot \left(3 \cdot \sqrt{x}\right) - y}{3 \cdot \sqrt{x}}} \]
                        4. lower-/.f64N/A

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

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

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

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

                        \[\leadsto \frac{\color{blue}{-1 \cdot y}}{\sqrt{x} \cdot 3} \]
                      7. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \color{blue}{\frac{-1 \cdot y}{\sqrt{x} \cdot 3}} \]
                        2. div-flipN/A

                          \[\leadsto \color{blue}{\frac{1}{\frac{\sqrt{x} \cdot 3}{-1 \cdot y}}} \]
                        3. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{1}{\frac{\sqrt{x} \cdot 3}{-1 \cdot y}}} \]
                        4. lower-/.f6438.5

                          \[\leadsto \frac{1}{\color{blue}{\frac{\sqrt{x} \cdot 3}{-1 \cdot y}}} \]
                        5. lift-*.f64N/A

                          \[\leadsto \frac{1}{\frac{\color{blue}{\sqrt{x} \cdot 3}}{-1 \cdot y}} \]
                        6. *-commutativeN/A

                          \[\leadsto \frac{1}{\frac{\color{blue}{3 \cdot \sqrt{x}}}{-1 \cdot y}} \]
                        7. lower-*.f6438.5

                          \[\leadsto \frac{1}{\frac{\color{blue}{3 \cdot \sqrt{x}}}{-1 \cdot y}} \]
                        8. lift-*.f64N/A

                          \[\leadsto \frac{1}{\frac{3 \cdot \sqrt{x}}{-1 \cdot \color{blue}{y}}} \]
                        9. mul-1-negN/A

                          \[\leadsto \frac{1}{\frac{3 \cdot \sqrt{x}}{\mathsf{neg}\left(y\right)}} \]
                        10. lower-neg.f6438.5

                          \[\leadsto \frac{1}{\frac{3 \cdot \sqrt{x}}{-y}} \]
                      8. Applied rewrites38.5%

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

                      if -9.19999999999999953e82 < y < 1.7e102

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        3. lift-*.f64N/A

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

                          \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        5. inv-powN/A

                          \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        6. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        7. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        8. metadata-evalN/A

                          \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        9. lower--.f64N/A

                          \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        10. inv-powN/A

                          \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        11. lower-/.f6499.7

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

                        \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                      4. Taylor expanded in y around 0

                        \[\leadsto \color{blue}{\frac{1}{9} \cdot \left(9 - \frac{1}{x}\right)} \]
                      5. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \color{blue}{\left(9 - \frac{1}{x}\right)} \]
                        2. lower--.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \left(9 - \color{blue}{\frac{1}{x}}\right) \]
                        3. lower-/.f6462.5

                          \[\leadsto 0.1111111111111111 \cdot \left(9 - \frac{1}{\color{blue}{x}}\right) \]
                      6. Applied rewrites62.5%

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

                      if 1.7e102 < y

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{y}{3 \cdot \sqrt{x}}} \]
                        3. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{\left(1 - \frac{1}{x \cdot 9}\right) \cdot \left(3 \cdot \sqrt{x}\right) - y}{3 \cdot \sqrt{x}}} \]
                        4. lower-/.f64N/A

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

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

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

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

                        \[\leadsto \frac{\color{blue}{-1 \cdot y}}{\sqrt{x} \cdot 3} \]
                      7. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \color{blue}{\frac{-1 \cdot y}{\sqrt{x} \cdot 3}} \]
                        2. lift-*.f64N/A

                          \[\leadsto \frac{-1 \cdot y}{\color{blue}{\sqrt{x} \cdot 3}} \]
                        3. associate-/r*N/A

                          \[\leadsto \color{blue}{\frac{\frac{-1 \cdot y}{\sqrt{x}}}{3}} \]
                        4. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{\frac{-1 \cdot y}{\sqrt{x}}}{3}} \]
                        5. lower-/.f6438.5

                          \[\leadsto \frac{\color{blue}{\frac{-1 \cdot y}{\sqrt{x}}}}{3} \]
                        6. lift-*.f64N/A

                          \[\leadsto \frac{\frac{-1 \cdot \color{blue}{y}}{\sqrt{x}}}{3} \]
                        7. mul-1-negN/A

                          \[\leadsto \frac{\frac{\mathsf{neg}\left(y\right)}{\sqrt{x}}}{3} \]
                        8. lower-neg.f6438.5

                          \[\leadsto \frac{\frac{-y}{\sqrt{x}}}{3} \]
                      8. Applied rewrites38.5%

                        \[\leadsto \color{blue}{\frac{\frac{-y}{\sqrt{x}}}{3}} \]
                    3. Recombined 3 regimes into one program.
                    4. Add Preprocessing

                    Alternative 11: 92.5% accurate, 1.1× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\ \;\;\;\;\frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right)\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\ \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{-y}{\sqrt{x}}}{3}\\ \end{array} \end{array} \]
                    (FPCore (x y)
                     :precision binary64
                     (if (<= y -9.2e+82)
                       (* (/ 0.3333333333333333 (sqrt x)) (- y))
                       (if (<= y 1.7e+102)
                         (* 0.1111111111111111 (- 9.0 (/ 1.0 x)))
                         (/ (/ (- y) (sqrt x)) 3.0))))
                    double code(double x, double y) {
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = (0.3333333333333333 / sqrt(x)) * -y;
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = (-y / sqrt(x)) / 3.0;
                    	}
                    	return tmp;
                    }
                    
                    module fmin_fmax_functions
                        implicit none
                        private
                        public fmax
                        public fmin
                    
                        interface fmax
                            module procedure fmax88
                            module procedure fmax44
                            module procedure fmax84
                            module procedure fmax48
                        end interface
                        interface fmin
                            module procedure fmin88
                            module procedure fmin44
                            module procedure fmin84
                            module procedure fmin48
                        end interface
                    contains
                        real(8) function fmax88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmax44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmax84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmax48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                        end function
                        real(8) function fmin88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmin44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmin84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmin48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                        end function
                    end module
                    
                    real(8) function code(x, y)
                    use fmin_fmax_functions
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8) :: tmp
                        if (y <= (-9.2d+82)) then
                            tmp = (0.3333333333333333d0 / sqrt(x)) * -y
                        else if (y <= 1.7d+102) then
                            tmp = 0.1111111111111111d0 * (9.0d0 - (1.0d0 / x))
                        else
                            tmp = (-y / sqrt(x)) / 3.0d0
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y) {
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = (0.3333333333333333 / Math.sqrt(x)) * -y;
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = (-y / Math.sqrt(x)) / 3.0;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y):
                    	tmp = 0
                    	if y <= -9.2e+82:
                    		tmp = (0.3333333333333333 / math.sqrt(x)) * -y
                    	elif y <= 1.7e+102:
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x))
                    	else:
                    		tmp = (-y / math.sqrt(x)) / 3.0
                    	return tmp
                    
                    function code(x, y)
                    	tmp = 0.0
                    	if (y <= -9.2e+82)
                    		tmp = Float64(Float64(0.3333333333333333 / sqrt(x)) * Float64(-y));
                    	elseif (y <= 1.7e+102)
                    		tmp = Float64(0.1111111111111111 * Float64(9.0 - Float64(1.0 / x)));
                    	else
                    		tmp = Float64(Float64(Float64(-y) / sqrt(x)) / 3.0);
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y)
                    	tmp = 0.0;
                    	if (y <= -9.2e+82)
                    		tmp = (0.3333333333333333 / sqrt(x)) * -y;
                    	elseif (y <= 1.7e+102)
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	else
                    		tmp = (-y / sqrt(x)) / 3.0;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_] := If[LessEqual[y, -9.2e+82], N[(N[(0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[y, 1.7e+102], N[(0.1111111111111111 * N[(9.0 - N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-y) / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] / 3.0), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\
                    \;\;\;\;\frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right)\\
                    
                    \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\
                    \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{\frac{-y}{\sqrt{x}}}{3}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if y < -9.19999999999999953e82

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{y}{3 \cdot \sqrt{x}}} \]
                        3. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{\left(1 - \frac{1}{x \cdot 9}\right) \cdot \left(3 \cdot \sqrt{x}\right) - y}{3 \cdot \sqrt{x}}} \]
                        4. lower-/.f64N/A

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

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

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

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

                        \[\leadsto \frac{\color{blue}{-1 \cdot y}}{\sqrt{x} \cdot 3} \]
                      7. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \color{blue}{\frac{-1 \cdot y}{\sqrt{x} \cdot 3}} \]
                        2. div-flipN/A

                          \[\leadsto \color{blue}{\frac{1}{\frac{\sqrt{x} \cdot 3}{-1 \cdot y}}} \]
                        3. associate-/r/N/A

                          \[\leadsto \color{blue}{\frac{1}{\sqrt{x} \cdot 3} \cdot \left(-1 \cdot y\right)} \]
                        4. lift-*.f64N/A

                          \[\leadsto \frac{1}{\color{blue}{\sqrt{x} \cdot 3}} \cdot \left(-1 \cdot y\right) \]
                        5. *-commutativeN/A

                          \[\leadsto \frac{1}{\color{blue}{3 \cdot \sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        6. associate-/l/N/A

                          \[\leadsto \color{blue}{\frac{\frac{1}{3}}{\sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        7. metadata-evalN/A

                          \[\leadsto \frac{\color{blue}{\frac{1}{3}}}{\sqrt{x}} \cdot \left(-1 \cdot y\right) \]
                        8. lower-*.f64N/A

                          \[\leadsto \color{blue}{\frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(-1 \cdot y\right)} \]
                        9. lower-/.f6438.5

                          \[\leadsto \color{blue}{\frac{0.3333333333333333}{\sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        10. lift-*.f64N/A

                          \[\leadsto \frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(-1 \cdot \color{blue}{y}\right) \]
                        11. mul-1-negN/A

                          \[\leadsto \frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(\mathsf{neg}\left(y\right)\right) \]
                        12. lower-neg.f6438.5

                          \[\leadsto \frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right) \]
                      8. Applied rewrites38.5%

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

                      if -9.19999999999999953e82 < y < 1.7e102

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        3. lift-*.f64N/A

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

                          \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        5. inv-powN/A

                          \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        6. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        7. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        8. metadata-evalN/A

                          \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        9. lower--.f64N/A

                          \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        10. inv-powN/A

                          \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        11. lower-/.f6499.7

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

                        \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                      4. Taylor expanded in y around 0

                        \[\leadsto \color{blue}{\frac{1}{9} \cdot \left(9 - \frac{1}{x}\right)} \]
                      5. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \color{blue}{\left(9 - \frac{1}{x}\right)} \]
                        2. lower--.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \left(9 - \color{blue}{\frac{1}{x}}\right) \]
                        3. lower-/.f6462.5

                          \[\leadsto 0.1111111111111111 \cdot \left(9 - \frac{1}{\color{blue}{x}}\right) \]
                      6. Applied rewrites62.5%

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

                      if 1.7e102 < y

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{y}{3 \cdot \sqrt{x}}} \]
                        3. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{\left(1 - \frac{1}{x \cdot 9}\right) \cdot \left(3 \cdot \sqrt{x}\right) - y}{3 \cdot \sqrt{x}}} \]
                        4. lower-/.f64N/A

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

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

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

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

                        \[\leadsto \frac{\color{blue}{-1 \cdot y}}{\sqrt{x} \cdot 3} \]
                      7. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \color{blue}{\frac{-1 \cdot y}{\sqrt{x} \cdot 3}} \]
                        2. lift-*.f64N/A

                          \[\leadsto \frac{-1 \cdot y}{\color{blue}{\sqrt{x} \cdot 3}} \]
                        3. associate-/r*N/A

                          \[\leadsto \color{blue}{\frac{\frac{-1 \cdot y}{\sqrt{x}}}{3}} \]
                        4. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{\frac{-1 \cdot y}{\sqrt{x}}}{3}} \]
                        5. lower-/.f6438.5

                          \[\leadsto \frac{\color{blue}{\frac{-1 \cdot y}{\sqrt{x}}}}{3} \]
                        6. lift-*.f64N/A

                          \[\leadsto \frac{\frac{-1 \cdot \color{blue}{y}}{\sqrt{x}}}{3} \]
                        7. mul-1-negN/A

                          \[\leadsto \frac{\frac{\mathsf{neg}\left(y\right)}{\sqrt{x}}}{3} \]
                        8. lower-neg.f6438.5

                          \[\leadsto \frac{\frac{-y}{\sqrt{x}}}{3} \]
                      8. Applied rewrites38.5%

                        \[\leadsto \color{blue}{\frac{\frac{-y}{\sqrt{x}}}{3}} \]
                    3. Recombined 3 regimes into one program.
                    4. Add Preprocessing

                    Alternative 12: 92.5% accurate, 1.1× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\ \;\;\;\;\frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right)\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\ \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{-y}{3}}{\sqrt{x}}\\ \end{array} \end{array} \]
                    (FPCore (x y)
                     :precision binary64
                     (if (<= y -9.2e+82)
                       (* (/ 0.3333333333333333 (sqrt x)) (- y))
                       (if (<= y 1.7e+102)
                         (* 0.1111111111111111 (- 9.0 (/ 1.0 x)))
                         (/ (/ (- y) 3.0) (sqrt x)))))
                    double code(double x, double y) {
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = (0.3333333333333333 / sqrt(x)) * -y;
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = (-y / 3.0) / sqrt(x);
                    	}
                    	return tmp;
                    }
                    
                    module fmin_fmax_functions
                        implicit none
                        private
                        public fmax
                        public fmin
                    
                        interface fmax
                            module procedure fmax88
                            module procedure fmax44
                            module procedure fmax84
                            module procedure fmax48
                        end interface
                        interface fmin
                            module procedure fmin88
                            module procedure fmin44
                            module procedure fmin84
                            module procedure fmin48
                        end interface
                    contains
                        real(8) function fmax88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmax44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmax84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmax48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                        end function
                        real(8) function fmin88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmin44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmin84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmin48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                        end function
                    end module
                    
                    real(8) function code(x, y)
                    use fmin_fmax_functions
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8) :: tmp
                        if (y <= (-9.2d+82)) then
                            tmp = (0.3333333333333333d0 / sqrt(x)) * -y
                        else if (y <= 1.7d+102) then
                            tmp = 0.1111111111111111d0 * (9.0d0 - (1.0d0 / x))
                        else
                            tmp = (-y / 3.0d0) / sqrt(x)
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y) {
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = (0.3333333333333333 / Math.sqrt(x)) * -y;
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = (-y / 3.0) / Math.sqrt(x);
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y):
                    	tmp = 0
                    	if y <= -9.2e+82:
                    		tmp = (0.3333333333333333 / math.sqrt(x)) * -y
                    	elif y <= 1.7e+102:
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x))
                    	else:
                    		tmp = (-y / 3.0) / math.sqrt(x)
                    	return tmp
                    
                    function code(x, y)
                    	tmp = 0.0
                    	if (y <= -9.2e+82)
                    		tmp = Float64(Float64(0.3333333333333333 / sqrt(x)) * Float64(-y));
                    	elseif (y <= 1.7e+102)
                    		tmp = Float64(0.1111111111111111 * Float64(9.0 - Float64(1.0 / x)));
                    	else
                    		tmp = Float64(Float64(Float64(-y) / 3.0) / sqrt(x));
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y)
                    	tmp = 0.0;
                    	if (y <= -9.2e+82)
                    		tmp = (0.3333333333333333 / sqrt(x)) * -y;
                    	elseif (y <= 1.7e+102)
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	else
                    		tmp = (-y / 3.0) / sqrt(x);
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_] := If[LessEqual[y, -9.2e+82], N[(N[(0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[y, 1.7e+102], N[(0.1111111111111111 * N[(9.0 - N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-y) / 3.0), $MachinePrecision] / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\
                    \;\;\;\;\frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right)\\
                    
                    \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\
                    \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{\frac{-y}{3}}{\sqrt{x}}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if y < -9.19999999999999953e82

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{y}{3 \cdot \sqrt{x}}} \]
                        3. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{\left(1 - \frac{1}{x \cdot 9}\right) \cdot \left(3 \cdot \sqrt{x}\right) - y}{3 \cdot \sqrt{x}}} \]
                        4. lower-/.f64N/A

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

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

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

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

                        \[\leadsto \frac{\color{blue}{-1 \cdot y}}{\sqrt{x} \cdot 3} \]
                      7. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \color{blue}{\frac{-1 \cdot y}{\sqrt{x} \cdot 3}} \]
                        2. div-flipN/A

                          \[\leadsto \color{blue}{\frac{1}{\frac{\sqrt{x} \cdot 3}{-1 \cdot y}}} \]
                        3. associate-/r/N/A

                          \[\leadsto \color{blue}{\frac{1}{\sqrt{x} \cdot 3} \cdot \left(-1 \cdot y\right)} \]
                        4. lift-*.f64N/A

                          \[\leadsto \frac{1}{\color{blue}{\sqrt{x} \cdot 3}} \cdot \left(-1 \cdot y\right) \]
                        5. *-commutativeN/A

                          \[\leadsto \frac{1}{\color{blue}{3 \cdot \sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        6. associate-/l/N/A

                          \[\leadsto \color{blue}{\frac{\frac{1}{3}}{\sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        7. metadata-evalN/A

                          \[\leadsto \frac{\color{blue}{\frac{1}{3}}}{\sqrt{x}} \cdot \left(-1 \cdot y\right) \]
                        8. lower-*.f64N/A

                          \[\leadsto \color{blue}{\frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(-1 \cdot y\right)} \]
                        9. lower-/.f6438.5

                          \[\leadsto \color{blue}{\frac{0.3333333333333333}{\sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        10. lift-*.f64N/A

                          \[\leadsto \frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(-1 \cdot \color{blue}{y}\right) \]
                        11. mul-1-negN/A

                          \[\leadsto \frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(\mathsf{neg}\left(y\right)\right) \]
                        12. lower-neg.f6438.5

                          \[\leadsto \frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right) \]
                      8. Applied rewrites38.5%

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

                      if -9.19999999999999953e82 < y < 1.7e102

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        3. lift-*.f64N/A

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

                          \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        5. inv-powN/A

                          \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        6. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        7. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        8. metadata-evalN/A

                          \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        9. lower--.f64N/A

                          \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        10. inv-powN/A

                          \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        11. lower-/.f6499.7

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

                        \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                      4. Taylor expanded in y around 0

                        \[\leadsto \color{blue}{\frac{1}{9} \cdot \left(9 - \frac{1}{x}\right)} \]
                      5. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \color{blue}{\left(9 - \frac{1}{x}\right)} \]
                        2. lower--.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \left(9 - \color{blue}{\frac{1}{x}}\right) \]
                        3. lower-/.f6462.5

                          \[\leadsto 0.1111111111111111 \cdot \left(9 - \frac{1}{\color{blue}{x}}\right) \]
                      6. Applied rewrites62.5%

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

                      if 1.7e102 < y

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{y}{3 \cdot \sqrt{x}}} \]
                        3. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{\left(1 - \frac{1}{x \cdot 9}\right) \cdot \left(3 \cdot \sqrt{x}\right) - y}{3 \cdot \sqrt{x}}} \]
                        4. lower-/.f64N/A

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

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

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

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

                        \[\leadsto \frac{\color{blue}{-1 \cdot y}}{\sqrt{x} \cdot 3} \]
                      7. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \color{blue}{\frac{-1 \cdot y}{\sqrt{x} \cdot 3}} \]
                        2. lift-*.f64N/A

                          \[\leadsto \frac{-1 \cdot y}{\color{blue}{\sqrt{x} \cdot 3}} \]
                        3. *-commutativeN/A

                          \[\leadsto \frac{-1 \cdot y}{\color{blue}{3 \cdot \sqrt{x}}} \]
                        4. associate-/r*N/A

                          \[\leadsto \color{blue}{\frac{\frac{-1 \cdot y}{3}}{\sqrt{x}}} \]
                        5. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{\frac{-1 \cdot y}{3}}{\sqrt{x}}} \]
                        6. lower-/.f6438.6

                          \[\leadsto \frac{\color{blue}{\frac{-1 \cdot y}{3}}}{\sqrt{x}} \]
                        7. lift-*.f64N/A

                          \[\leadsto \frac{\frac{-1 \cdot \color{blue}{y}}{3}}{\sqrt{x}} \]
                        8. mul-1-negN/A

                          \[\leadsto \frac{\frac{\mathsf{neg}\left(y\right)}{3}}{\sqrt{x}} \]
                        9. lower-neg.f6438.6

                          \[\leadsto \frac{\frac{-y}{3}}{\sqrt{x}} \]
                      8. Applied rewrites38.6%

                        \[\leadsto \color{blue}{\frac{\frac{-y}{3}}{\sqrt{x}}} \]
                    3. Recombined 3 regimes into one program.
                    4. Add Preprocessing

                    Alternative 13: 92.5% accurate, 1.2× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\ \;\;\;\;\frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right)\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\ \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{-y}{\sqrt{x} \cdot 3}\\ \end{array} \end{array} \]
                    (FPCore (x y)
                     :precision binary64
                     (if (<= y -9.2e+82)
                       (* (/ 0.3333333333333333 (sqrt x)) (- y))
                       (if (<= y 1.7e+102)
                         (* 0.1111111111111111 (- 9.0 (/ 1.0 x)))
                         (/ (- y) (* (sqrt x) 3.0)))))
                    double code(double x, double y) {
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = (0.3333333333333333 / sqrt(x)) * -y;
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = -y / (sqrt(x) * 3.0);
                    	}
                    	return tmp;
                    }
                    
                    module fmin_fmax_functions
                        implicit none
                        private
                        public fmax
                        public fmin
                    
                        interface fmax
                            module procedure fmax88
                            module procedure fmax44
                            module procedure fmax84
                            module procedure fmax48
                        end interface
                        interface fmin
                            module procedure fmin88
                            module procedure fmin44
                            module procedure fmin84
                            module procedure fmin48
                        end interface
                    contains
                        real(8) function fmax88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmax44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmax84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmax48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                        end function
                        real(8) function fmin88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmin44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmin84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmin48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                        end function
                    end module
                    
                    real(8) function code(x, y)
                    use fmin_fmax_functions
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8) :: tmp
                        if (y <= (-9.2d+82)) then
                            tmp = (0.3333333333333333d0 / sqrt(x)) * -y
                        else if (y <= 1.7d+102) then
                            tmp = 0.1111111111111111d0 * (9.0d0 - (1.0d0 / x))
                        else
                            tmp = -y / (sqrt(x) * 3.0d0)
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y) {
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = (0.3333333333333333 / Math.sqrt(x)) * -y;
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = -y / (Math.sqrt(x) * 3.0);
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y):
                    	tmp = 0
                    	if y <= -9.2e+82:
                    		tmp = (0.3333333333333333 / math.sqrt(x)) * -y
                    	elif y <= 1.7e+102:
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x))
                    	else:
                    		tmp = -y / (math.sqrt(x) * 3.0)
                    	return tmp
                    
                    function code(x, y)
                    	tmp = 0.0
                    	if (y <= -9.2e+82)
                    		tmp = Float64(Float64(0.3333333333333333 / sqrt(x)) * Float64(-y));
                    	elseif (y <= 1.7e+102)
                    		tmp = Float64(0.1111111111111111 * Float64(9.0 - Float64(1.0 / x)));
                    	else
                    		tmp = Float64(Float64(-y) / Float64(sqrt(x) * 3.0));
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y)
                    	tmp = 0.0;
                    	if (y <= -9.2e+82)
                    		tmp = (0.3333333333333333 / sqrt(x)) * -y;
                    	elseif (y <= 1.7e+102)
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	else
                    		tmp = -y / (sqrt(x) * 3.0);
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_] := If[LessEqual[y, -9.2e+82], N[(N[(0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[y, 1.7e+102], N[(0.1111111111111111 * N[(9.0 - N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-y) / N[(N[Sqrt[x], $MachinePrecision] * 3.0), $MachinePrecision]), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\
                    \;\;\;\;\frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right)\\
                    
                    \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\
                    \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{-y}{\sqrt{x} \cdot 3}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if y < -9.19999999999999953e82

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{y}{3 \cdot \sqrt{x}}} \]
                        3. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{\left(1 - \frac{1}{x \cdot 9}\right) \cdot \left(3 \cdot \sqrt{x}\right) - y}{3 \cdot \sqrt{x}}} \]
                        4. lower-/.f64N/A

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

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

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

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

                        \[\leadsto \frac{\color{blue}{-1 \cdot y}}{\sqrt{x} \cdot 3} \]
                      7. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \color{blue}{\frac{-1 \cdot y}{\sqrt{x} \cdot 3}} \]
                        2. div-flipN/A

                          \[\leadsto \color{blue}{\frac{1}{\frac{\sqrt{x} \cdot 3}{-1 \cdot y}}} \]
                        3. associate-/r/N/A

                          \[\leadsto \color{blue}{\frac{1}{\sqrt{x} \cdot 3} \cdot \left(-1 \cdot y\right)} \]
                        4. lift-*.f64N/A

                          \[\leadsto \frac{1}{\color{blue}{\sqrt{x} \cdot 3}} \cdot \left(-1 \cdot y\right) \]
                        5. *-commutativeN/A

                          \[\leadsto \frac{1}{\color{blue}{3 \cdot \sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        6. associate-/l/N/A

                          \[\leadsto \color{blue}{\frac{\frac{1}{3}}{\sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        7. metadata-evalN/A

                          \[\leadsto \frac{\color{blue}{\frac{1}{3}}}{\sqrt{x}} \cdot \left(-1 \cdot y\right) \]
                        8. lower-*.f64N/A

                          \[\leadsto \color{blue}{\frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(-1 \cdot y\right)} \]
                        9. lower-/.f6438.5

                          \[\leadsto \color{blue}{\frac{0.3333333333333333}{\sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        10. lift-*.f64N/A

                          \[\leadsto \frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(-1 \cdot \color{blue}{y}\right) \]
                        11. mul-1-negN/A

                          \[\leadsto \frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(\mathsf{neg}\left(y\right)\right) \]
                        12. lower-neg.f6438.5

                          \[\leadsto \frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right) \]
                      8. Applied rewrites38.5%

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

                      if -9.19999999999999953e82 < y < 1.7e102

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        3. lift-*.f64N/A

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

                          \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        5. inv-powN/A

                          \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        6. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        7. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        8. metadata-evalN/A

                          \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        9. lower--.f64N/A

                          \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        10. inv-powN/A

                          \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        11. lower-/.f6499.7

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

                        \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                      4. Taylor expanded in y around 0

                        \[\leadsto \color{blue}{\frac{1}{9} \cdot \left(9 - \frac{1}{x}\right)} \]
                      5. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \color{blue}{\left(9 - \frac{1}{x}\right)} \]
                        2. lower--.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \left(9 - \color{blue}{\frac{1}{x}}\right) \]
                        3. lower-/.f6462.5

                          \[\leadsto 0.1111111111111111 \cdot \left(9 - \frac{1}{\color{blue}{x}}\right) \]
                      6. Applied rewrites62.5%

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

                      if 1.7e102 < y

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{y}{3 \cdot \sqrt{x}}} \]
                        3. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{\left(1 - \frac{1}{x \cdot 9}\right) \cdot \left(3 \cdot \sqrt{x}\right) - y}{3 \cdot \sqrt{x}}} \]
                        4. lower-/.f64N/A

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

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

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

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

                        \[\leadsto \frac{\color{blue}{-1 \cdot y}}{\sqrt{x} \cdot 3} \]
                      7. Step-by-step derivation
                        1. lift-*.f64N/A

                          \[\leadsto \frac{-1 \cdot \color{blue}{y}}{\sqrt{x} \cdot 3} \]
                        2. mul-1-negN/A

                          \[\leadsto \frac{\mathsf{neg}\left(y\right)}{\sqrt{x} \cdot 3} \]
                        3. lower-neg.f6438.6

                          \[\leadsto \frac{-y}{\sqrt{x} \cdot 3} \]
                      8. Applied rewrites38.6%

                        \[\leadsto \frac{-y}{\sqrt{x} \cdot 3} \]
                    3. Recombined 3 regimes into one program.
                    4. Add Preprocessing

                    Alternative 14: 92.5% accurate, 1.2× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\ \;\;\;\;\frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right)\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\ \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;-0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\ \end{array} \end{array} \]
                    (FPCore (x y)
                     :precision binary64
                     (if (<= y -9.2e+82)
                       (* (/ 0.3333333333333333 (sqrt x)) (- y))
                       (if (<= y 1.7e+102)
                         (* 0.1111111111111111 (- 9.0 (/ 1.0 x)))
                         (* -0.3333333333333333 (/ y (sqrt x))))))
                    double code(double x, double y) {
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = (0.3333333333333333 / sqrt(x)) * -y;
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = -0.3333333333333333 * (y / sqrt(x));
                    	}
                    	return tmp;
                    }
                    
                    module fmin_fmax_functions
                        implicit none
                        private
                        public fmax
                        public fmin
                    
                        interface fmax
                            module procedure fmax88
                            module procedure fmax44
                            module procedure fmax84
                            module procedure fmax48
                        end interface
                        interface fmin
                            module procedure fmin88
                            module procedure fmin44
                            module procedure fmin84
                            module procedure fmin48
                        end interface
                    contains
                        real(8) function fmax88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmax44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmax84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmax48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                        end function
                        real(8) function fmin88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmin44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmin84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmin48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                        end function
                    end module
                    
                    real(8) function code(x, y)
                    use fmin_fmax_functions
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8) :: tmp
                        if (y <= (-9.2d+82)) then
                            tmp = (0.3333333333333333d0 / sqrt(x)) * -y
                        else if (y <= 1.7d+102) then
                            tmp = 0.1111111111111111d0 * (9.0d0 - (1.0d0 / x))
                        else
                            tmp = (-0.3333333333333333d0) * (y / sqrt(x))
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y) {
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = (0.3333333333333333 / Math.sqrt(x)) * -y;
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = -0.3333333333333333 * (y / Math.sqrt(x));
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y):
                    	tmp = 0
                    	if y <= -9.2e+82:
                    		tmp = (0.3333333333333333 / math.sqrt(x)) * -y
                    	elif y <= 1.7e+102:
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x))
                    	else:
                    		tmp = -0.3333333333333333 * (y / math.sqrt(x))
                    	return tmp
                    
                    function code(x, y)
                    	tmp = 0.0
                    	if (y <= -9.2e+82)
                    		tmp = Float64(Float64(0.3333333333333333 / sqrt(x)) * Float64(-y));
                    	elseif (y <= 1.7e+102)
                    		tmp = Float64(0.1111111111111111 * Float64(9.0 - Float64(1.0 / x)));
                    	else
                    		tmp = Float64(-0.3333333333333333 * Float64(y / sqrt(x)));
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y)
                    	tmp = 0.0;
                    	if (y <= -9.2e+82)
                    		tmp = (0.3333333333333333 / sqrt(x)) * -y;
                    	elseif (y <= 1.7e+102)
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	else
                    		tmp = -0.3333333333333333 * (y / sqrt(x));
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_] := If[LessEqual[y, -9.2e+82], N[(N[(0.3333333333333333 / N[Sqrt[x], $MachinePrecision]), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[y, 1.7e+102], N[(0.1111111111111111 * N[(9.0 - N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\
                    \;\;\;\;\frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right)\\
                    
                    \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\
                    \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;-0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if y < -9.19999999999999953e82

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{y}{3 \cdot \sqrt{x}}} \]
                        3. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{\left(1 - \frac{1}{x \cdot 9}\right) \cdot \left(3 \cdot \sqrt{x}\right) - y}{3 \cdot \sqrt{x}}} \]
                        4. lower-/.f64N/A

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

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

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

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

                        \[\leadsto \frac{\color{blue}{-1 \cdot y}}{\sqrt{x} \cdot 3} \]
                      7. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \color{blue}{\frac{-1 \cdot y}{\sqrt{x} \cdot 3}} \]
                        2. div-flipN/A

                          \[\leadsto \color{blue}{\frac{1}{\frac{\sqrt{x} \cdot 3}{-1 \cdot y}}} \]
                        3. associate-/r/N/A

                          \[\leadsto \color{blue}{\frac{1}{\sqrt{x} \cdot 3} \cdot \left(-1 \cdot y\right)} \]
                        4. lift-*.f64N/A

                          \[\leadsto \frac{1}{\color{blue}{\sqrt{x} \cdot 3}} \cdot \left(-1 \cdot y\right) \]
                        5. *-commutativeN/A

                          \[\leadsto \frac{1}{\color{blue}{3 \cdot \sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        6. associate-/l/N/A

                          \[\leadsto \color{blue}{\frac{\frac{1}{3}}{\sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        7. metadata-evalN/A

                          \[\leadsto \frac{\color{blue}{\frac{1}{3}}}{\sqrt{x}} \cdot \left(-1 \cdot y\right) \]
                        8. lower-*.f64N/A

                          \[\leadsto \color{blue}{\frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(-1 \cdot y\right)} \]
                        9. lower-/.f6438.5

                          \[\leadsto \color{blue}{\frac{0.3333333333333333}{\sqrt{x}}} \cdot \left(-1 \cdot y\right) \]
                        10. lift-*.f64N/A

                          \[\leadsto \frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(-1 \cdot \color{blue}{y}\right) \]
                        11. mul-1-negN/A

                          \[\leadsto \frac{\frac{1}{3}}{\sqrt{x}} \cdot \left(\mathsf{neg}\left(y\right)\right) \]
                        12. lower-neg.f6438.5

                          \[\leadsto \frac{0.3333333333333333}{\sqrt{x}} \cdot \left(-y\right) \]
                      8. Applied rewrites38.5%

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

                      if -9.19999999999999953e82 < y < 1.7e102

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        3. lift-*.f64N/A

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

                          \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        5. inv-powN/A

                          \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        6. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        7. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        8. metadata-evalN/A

                          \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        9. lower--.f64N/A

                          \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        10. inv-powN/A

                          \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        11. lower-/.f6499.7

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

                        \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                      4. Taylor expanded in y around 0

                        \[\leadsto \color{blue}{\frac{1}{9} \cdot \left(9 - \frac{1}{x}\right)} \]
                      5. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \color{blue}{\left(9 - \frac{1}{x}\right)} \]
                        2. lower--.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \left(9 - \color{blue}{\frac{1}{x}}\right) \]
                        3. lower-/.f6462.5

                          \[\leadsto 0.1111111111111111 \cdot \left(9 - \frac{1}{\color{blue}{x}}\right) \]
                      6. Applied rewrites62.5%

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

                      if 1.7e102 < y

                      1. Initial program 99.7%

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

                        \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{\sqrt{x}}} \]
                      3. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \frac{-1}{3} \cdot \color{blue}{\frac{y}{\sqrt{x}}} \]
                        2. lower-/.f64N/A

                          \[\leadsto \frac{-1}{3} \cdot \frac{y}{\color{blue}{\sqrt{x}}} \]
                        3. lower-sqrt.f6438.5

                          \[\leadsto -0.3333333333333333 \cdot \frac{y}{\sqrt{x}} \]
                      4. Applied rewrites38.5%

                        \[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{y}{\sqrt{x}}} \]
                    3. Recombined 3 regimes into one program.
                    4. Add Preprocessing

                    Alternative 15: 92.5% accurate, 1.2× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_0 := -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\ \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\ \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\ \mathbf{else}:\\ \;\;\;\;t\_0\\ \end{array} \end{array} \]
                    (FPCore (x y)
                     :precision binary64
                     (let* ((t_0 (* -0.3333333333333333 (/ y (sqrt x)))))
                       (if (<= y -9.2e+82)
                         t_0
                         (if (<= y 1.7e+102) (* 0.1111111111111111 (- 9.0 (/ 1.0 x))) t_0))))
                    double code(double x, double y) {
                    	double t_0 = -0.3333333333333333 * (y / sqrt(x));
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = t_0;
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = t_0;
                    	}
                    	return tmp;
                    }
                    
                    module fmin_fmax_functions
                        implicit none
                        private
                        public fmax
                        public fmin
                    
                        interface fmax
                            module procedure fmax88
                            module procedure fmax44
                            module procedure fmax84
                            module procedure fmax48
                        end interface
                        interface fmin
                            module procedure fmin88
                            module procedure fmin44
                            module procedure fmin84
                            module procedure fmin48
                        end interface
                    contains
                        real(8) function fmax88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmax44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmax84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmax48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                        end function
                        real(8) function fmin88(x, y) result (res)
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(4) function fmin44(x, y) result (res)
                            real(4), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                        end function
                        real(8) function fmin84(x, y) result(res)
                            real(8), intent (in) :: x
                            real(4), intent (in) :: y
                            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                        end function
                        real(8) function fmin48(x, y) result(res)
                            real(4), intent (in) :: x
                            real(8), intent (in) :: y
                            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                        end function
                    end module
                    
                    real(8) function code(x, y)
                    use fmin_fmax_functions
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8) :: t_0
                        real(8) :: tmp
                        t_0 = (-0.3333333333333333d0) * (y / sqrt(x))
                        if (y <= (-9.2d+82)) then
                            tmp = t_0
                        else if (y <= 1.7d+102) then
                            tmp = 0.1111111111111111d0 * (9.0d0 - (1.0d0 / x))
                        else
                            tmp = t_0
                        end if
                        code = tmp
                    end function
                    
                    public static double code(double x, double y) {
                    	double t_0 = -0.3333333333333333 * (y / Math.sqrt(x));
                    	double tmp;
                    	if (y <= -9.2e+82) {
                    		tmp = t_0;
                    	} else if (y <= 1.7e+102) {
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	} else {
                    		tmp = t_0;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y):
                    	t_0 = -0.3333333333333333 * (y / math.sqrt(x))
                    	tmp = 0
                    	if y <= -9.2e+82:
                    		tmp = t_0
                    	elif y <= 1.7e+102:
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x))
                    	else:
                    		tmp = t_0
                    	return tmp
                    
                    function code(x, y)
                    	t_0 = Float64(-0.3333333333333333 * Float64(y / sqrt(x)))
                    	tmp = 0.0
                    	if (y <= -9.2e+82)
                    		tmp = t_0;
                    	elseif (y <= 1.7e+102)
                    		tmp = Float64(0.1111111111111111 * Float64(9.0 - Float64(1.0 / x)));
                    	else
                    		tmp = t_0;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y)
                    	t_0 = -0.3333333333333333 * (y / sqrt(x));
                    	tmp = 0.0;
                    	if (y <= -9.2e+82)
                    		tmp = t_0;
                    	elseif (y <= 1.7e+102)
                    		tmp = 0.1111111111111111 * (9.0 - (1.0 / x));
                    	else
                    		tmp = t_0;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_] := Block[{t$95$0 = N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.2e+82], t$95$0, If[LessEqual[y, 1.7e+102], N[(0.1111111111111111 * N[(9.0 - N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_0 := -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\
                    \mathbf{if}\;y \leq -9.2 \cdot 10^{+82}:\\
                    \;\;\;\;t\_0\\
                    
                    \mathbf{elif}\;y \leq 1.7 \cdot 10^{+102}:\\
                    \;\;\;\;0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_0\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 2 regimes
                    2. if y < -9.19999999999999953e82 or 1.7e102 < y

                      1. Initial program 99.7%

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

                        \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{\sqrt{x}}} \]
                      3. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \frac{-1}{3} \cdot \color{blue}{\frac{y}{\sqrt{x}}} \]
                        2. lower-/.f64N/A

                          \[\leadsto \frac{-1}{3} \cdot \frac{y}{\color{blue}{\sqrt{x}}} \]
                        3. lower-sqrt.f6438.5

                          \[\leadsto -0.3333333333333333 \cdot \frac{y}{\sqrt{x}} \]
                      4. Applied rewrites38.5%

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

                      if -9.19999999999999953e82 < y < 1.7e102

                      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. lift--.f64N/A

                          \[\leadsto \color{blue}{\left(1 - \frac{1}{x \cdot 9}\right)} - \frac{y}{3 \cdot \sqrt{x}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(1 - \color{blue}{\frac{1}{x \cdot 9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        3. lift-*.f64N/A

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

                          \[\leadsto \left(1 - \color{blue}{\frac{\frac{1}{x}}{9}}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        5. inv-powN/A

                          \[\leadsto \left(1 - \frac{\color{blue}{{x}^{-1}}}{9}\right) - \frac{y}{3 \cdot \sqrt{x}} \]
                        6. sub-to-fractionN/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        7. lower-/.f64N/A

                          \[\leadsto \color{blue}{\frac{1 \cdot 9 - {x}^{-1}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                        8. metadata-evalN/A

                          \[\leadsto \frac{\color{blue}{9} - {x}^{-1}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        9. lower--.f64N/A

                          \[\leadsto \frac{\color{blue}{9 - {x}^{-1}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        10. inv-powN/A

                          \[\leadsto \frac{9 - \color{blue}{\frac{1}{x}}}{9} - \frac{y}{3 \cdot \sqrt{x}} \]
                        11. lower-/.f6499.7

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

                        \[\leadsto \color{blue}{\frac{9 - \frac{1}{x}}{9}} - \frac{y}{3 \cdot \sqrt{x}} \]
                      4. Taylor expanded in y around 0

                        \[\leadsto \color{blue}{\frac{1}{9} \cdot \left(9 - \frac{1}{x}\right)} \]
                      5. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \color{blue}{\left(9 - \frac{1}{x}\right)} \]
                        2. lower--.f64N/A

                          \[\leadsto \frac{1}{9} \cdot \left(9 - \color{blue}{\frac{1}{x}}\right) \]
                        3. lower-/.f6462.5

                          \[\leadsto 0.1111111111111111 \cdot \left(9 - \frac{1}{\color{blue}{x}}\right) \]
                      6. Applied rewrites62.5%

                        \[\leadsto \color{blue}{0.1111111111111111 \cdot \left(9 - \frac{1}{x}\right)} \]
                    3. Recombined 2 regimes into one program.
                    4. Add Preprocessing

                    Alternative 16: 81.7% accurate, 0.3× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_0 := -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\ t_1 := \left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;t\_1 \leq -2000000000000:\\ \;\;\;\;\frac{\frac{9}{x}}{-81}\\ \mathbf{elif}\;t\_1 \leq 2:\\ \;\;\;\;1\\ \mathbf{else}:\\ \;\;\;\;t\_0\\ \end{array} \end{array} \]
                    (FPCore (x y)
                     :precision binary64
                     (let* ((t_0 (* -0.3333333333333333 (/ y (sqrt x))))
                            (t_1 (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x))))))
                       (if (<= t_1 (- INFINITY))
                         t_0
                         (if (<= t_1 -2000000000000.0)
                           (/ (/ 9.0 x) -81.0)
                           (if (<= t_1 2.0) 1.0 t_0)))))
                    double code(double x, double y) {
                    	double t_0 = -0.3333333333333333 * (y / sqrt(x));
                    	double t_1 = (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)));
                    	double tmp;
                    	if (t_1 <= -((double) INFINITY)) {
                    		tmp = t_0;
                    	} else if (t_1 <= -2000000000000.0) {
                    		tmp = (9.0 / x) / -81.0;
                    	} else if (t_1 <= 2.0) {
                    		tmp = 1.0;
                    	} else {
                    		tmp = t_0;
                    	}
                    	return tmp;
                    }
                    
                    public static double code(double x, double y) {
                    	double t_0 = -0.3333333333333333 * (y / Math.sqrt(x));
                    	double t_1 = (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)));
                    	double tmp;
                    	if (t_1 <= -Double.POSITIVE_INFINITY) {
                    		tmp = t_0;
                    	} else if (t_1 <= -2000000000000.0) {
                    		tmp = (9.0 / x) / -81.0;
                    	} else if (t_1 <= 2.0) {
                    		tmp = 1.0;
                    	} else {
                    		tmp = t_0;
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y):
                    	t_0 = -0.3333333333333333 * (y / math.sqrt(x))
                    	t_1 = (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))
                    	tmp = 0
                    	if t_1 <= -math.inf:
                    		tmp = t_0
                    	elif t_1 <= -2000000000000.0:
                    		tmp = (9.0 / x) / -81.0
                    	elif t_1 <= 2.0:
                    		tmp = 1.0
                    	else:
                    		tmp = t_0
                    	return tmp
                    
                    function code(x, y)
                    	t_0 = Float64(-0.3333333333333333 * Float64(y / sqrt(x)))
                    	t_1 = Float64(Float64(1.0 - Float64(1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x))))
                    	tmp = 0.0
                    	if (t_1 <= Float64(-Inf))
                    		tmp = t_0;
                    	elseif (t_1 <= -2000000000000.0)
                    		tmp = Float64(Float64(9.0 / x) / -81.0);
                    	elseif (t_1 <= 2.0)
                    		tmp = 1.0;
                    	else
                    		tmp = t_0;
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y)
                    	t_0 = -0.3333333333333333 * (y / sqrt(x));
                    	t_1 = (1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)));
                    	tmp = 0.0;
                    	if (t_1 <= -Inf)
                    		tmp = t_0;
                    	elseif (t_1 <= -2000000000000.0)
                    		tmp = (9.0 / x) / -81.0;
                    	elseif (t_1 <= 2.0)
                    		tmp = 1.0;
                    	else
                    		tmp = t_0;
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_] := Block[{t$95$0 = N[(-0.3333333333333333 * N[(y / N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = 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]}, If[LessEqual[t$95$1, (-Infinity)], t$95$0, If[LessEqual[t$95$1, -2000000000000.0], N[(N[(9.0 / x), $MachinePrecision] / -81.0), $MachinePrecision], If[LessEqual[t$95$1, 2.0], 1.0, t$95$0]]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_0 := -0.3333333333333333 \cdot \frac{y}{\sqrt{x}}\\
                    t_1 := \left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}}\\
                    \mathbf{if}\;t\_1 \leq -\infty:\\
                    \;\;\;\;t\_0\\
                    
                    \mathbf{elif}\;t\_1 \leq -2000000000000:\\
                    \;\;\;\;\frac{\frac{9}{x}}{-81}\\
                    
                    \mathbf{elif}\;t\_1 \leq 2:\\
                    \;\;\;\;1\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_0\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x)))) < -inf.0 or 2 < (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x))))

                      1. Initial program 99.7%

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

                        \[\leadsto \color{blue}{\frac{-1}{3} \cdot \frac{y}{\sqrt{x}}} \]
                      3. Step-by-step derivation
                        1. lower-*.f64N/A

                          \[\leadsto \frac{-1}{3} \cdot \color{blue}{\frac{y}{\sqrt{x}}} \]
                        2. lower-/.f64N/A

                          \[\leadsto \frac{-1}{3} \cdot \frac{y}{\color{blue}{\sqrt{x}}} \]
                        3. lower-sqrt.f6438.5

                          \[\leadsto -0.3333333333333333 \cdot \frac{y}{\sqrt{x}} \]
                      4. Applied rewrites38.5%

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

                      if -inf.0 < (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x)))) < -2e12

                      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. lift-/.f64N/A

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

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{\color{blue}{3 \cdot \sqrt{x}}} \]
                        3. *-commutativeN/A

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

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
                        5. lower-/.f64N/A

                          \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
                        6. lower-/.f6499.6

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

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

                        \[\leadsto \color{blue}{\frac{\frac{-1}{9}}{x}} \]
                      5. Step-by-step derivation
                        1. lower-/.f6432.1

                          \[\leadsto \frac{-0.1111111111111111}{\color{blue}{x}} \]
                      6. Applied rewrites32.1%

                        \[\leadsto \color{blue}{\frac{-0.1111111111111111}{x}} \]
                      7. Step-by-step derivation
                        1. lift-/.f64N/A

                          \[\leadsto \frac{\frac{-1}{9}}{\color{blue}{x}} \]
                        2. div-flipN/A

                          \[\leadsto \frac{1}{\color{blue}{\frac{x}{\frac{-1}{9}}}} \]
                        3. associate-/r/N/A

                          \[\leadsto \frac{1}{x} \cdot \color{blue}{\frac{-1}{9}} \]
                        4. lower-*.f64N/A

                          \[\leadsto \frac{1}{x} \cdot \color{blue}{\frac{-1}{9}} \]
                        5. lower-/.f6432.1

                          \[\leadsto \frac{1}{x} \cdot -0.1111111111111111 \]
                      8. Applied rewrites32.1%

                        \[\leadsto \frac{1}{x} \cdot \color{blue}{-0.1111111111111111} \]
                      9. Step-by-step derivation
                        1. lift-*.f64N/A

                          \[\leadsto \frac{1}{x} \cdot \color{blue}{\frac{-1}{9}} \]
                        2. metadata-evalN/A

                          \[\leadsto \frac{1}{x} \cdot \left(\mathsf{neg}\left(\frac{1}{9}\right)\right) \]
                        3. distribute-rgt-neg-outN/A

                          \[\leadsto \mathsf{neg}\left(\frac{1}{x} \cdot \frac{1}{9}\right) \]
                        4. lift-/.f64N/A

                          \[\leadsto \mathsf{neg}\left(\frac{1}{x} \cdot \frac{1}{9}\right) \]
                        5. metadata-evalN/A

                          \[\leadsto \mathsf{neg}\left(\frac{1}{x} \cdot \frac{1}{9}\right) \]
                        6. times-fracN/A

                          \[\leadsto \mathsf{neg}\left(\frac{1 \cdot 1}{x \cdot 9}\right) \]
                        7. metadata-evalN/A

                          \[\leadsto \mathsf{neg}\left(\frac{1}{x \cdot 9}\right) \]
                        8. *-commutativeN/A

                          \[\leadsto \mathsf{neg}\left(\frac{1}{9 \cdot x}\right) \]
                        9. associate-/r*N/A

                          \[\leadsto \mathsf{neg}\left(\frac{\frac{1}{9}}{x}\right) \]
                        10. metadata-evalN/A

                          \[\leadsto \mathsf{neg}\left(\frac{\frac{1}{9}}{x}\right) \]
                        11. metadata-evalN/A

                          \[\leadsto \mathsf{neg}\left(\frac{1 \cdot \frac{1}{9}}{x}\right) \]
                        12. associate-*r/N/A

                          \[\leadsto \mathsf{neg}\left(1 \cdot \frac{\frac{1}{9}}{x}\right) \]
                        13. metadata-evalN/A

                          \[\leadsto \mathsf{neg}\left(1 \cdot \frac{\frac{9}{81}}{x}\right) \]
                        14. associate-/r*N/A

                          \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{81 \cdot x}\right) \]
                        15. *-commutativeN/A

                          \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{x \cdot 81}\right) \]
                        16. lift-*.f64N/A

                          \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{x \cdot 81}\right) \]
                        17. lift-/.f64N/A

                          \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{x \cdot 81}\right) \]
                        18. *-lft-identityN/A

                          \[\leadsto \mathsf{neg}\left(\frac{9}{x \cdot 81}\right) \]
                        19. /-rgt-identityN/A

                          \[\leadsto \mathsf{neg}\left(\frac{\frac{9}{x \cdot 81}}{1}\right) \]
                        20. /-rgt-identityN/A

                          \[\leadsto \mathsf{neg}\left(\frac{9}{x \cdot 81}\right) \]
                        21. lift-/.f64N/A

                          \[\leadsto \mathsf{neg}\left(\frac{9}{x \cdot 81}\right) \]
                        22. lift-*.f64N/A

                          \[\leadsto \mathsf{neg}\left(\frac{9}{x \cdot 81}\right) \]
                        23. associate-/r*N/A

                          \[\leadsto \mathsf{neg}\left(\frac{\frac{9}{x}}{81}\right) \]
                        24. distribute-neg-frac2N/A

                          \[\leadsto \frac{\frac{9}{x}}{\color{blue}{\mathsf{neg}\left(81\right)}} \]
                        25. lower-/.f64N/A

                          \[\leadsto \frac{\frac{9}{x}}{\color{blue}{\mathsf{neg}\left(81\right)}} \]
                        26. lower-/.f64N/A

                          \[\leadsto \frac{\frac{9}{x}}{\mathsf{neg}\left(\color{blue}{81}\right)} \]
                        27. metadata-eval32.1

                          \[\leadsto \frac{\frac{9}{x}}{-81} \]
                      10. Applied rewrites32.1%

                        \[\leadsto \frac{\frac{9}{x}}{\color{blue}{-81}} \]

                      if -2e12 < (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x)))) < 2

                      1. Initial program 99.7%

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

                        \[\leadsto \color{blue}{1} \]
                      3. Step-by-step derivation
                        1. Applied rewrites31.3%

                          \[\leadsto \color{blue}{1} \]
                      4. Recombined 3 regimes into one program.
                      5. Add Preprocessing

                      Alternative 17: 61.5% accurate, 0.7× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \leq -2000000000000:\\ \;\;\;\;\frac{\frac{9}{x}}{-81}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \end{array} \]
                      (FPCore (x y)
                       :precision binary64
                       (if (<= (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))) -2000000000000.0)
                         (/ (/ 9.0 x) -81.0)
                         1.0))
                      double code(double x, double y) {
                      	double tmp;
                      	if (((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)))) <= -2000000000000.0) {
                      		tmp = (9.0 / x) / -81.0;
                      	} else {
                      		tmp = 1.0;
                      	}
                      	return tmp;
                      }
                      
                      module fmin_fmax_functions
                          implicit none
                          private
                          public fmax
                          public fmin
                      
                          interface fmax
                              module procedure fmax88
                              module procedure fmax44
                              module procedure fmax84
                              module procedure fmax48
                          end interface
                          interface fmin
                              module procedure fmin88
                              module procedure fmin44
                              module procedure fmin84
                              module procedure fmin48
                          end interface
                      contains
                          real(8) function fmax88(x, y) result (res)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                          end function
                          real(4) function fmax44(x, y) result (res)
                              real(4), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                          end function
                          real(8) function fmax84(x, y) result(res)
                              real(8), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                          end function
                          real(8) function fmax48(x, y) result(res)
                              real(4), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                          end function
                          real(8) function fmin88(x, y) result (res)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                          end function
                          real(4) function fmin44(x, y) result (res)
                              real(4), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                          end function
                          real(8) function fmin84(x, y) result(res)
                              real(8), intent (in) :: x
                              real(4), intent (in) :: y
                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                          end function
                          real(8) function fmin48(x, y) result(res)
                              real(4), intent (in) :: x
                              real(8), intent (in) :: y
                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                          end function
                      end module
                      
                      real(8) function code(x, y)
                      use fmin_fmax_functions
                          real(8), intent (in) :: x
                          real(8), intent (in) :: y
                          real(8) :: tmp
                          if (((1.0d0 - (1.0d0 / (x * 9.0d0))) - (y / (3.0d0 * sqrt(x)))) <= (-2000000000000.0d0)) then
                              tmp = (9.0d0 / x) / (-81.0d0)
                          else
                              tmp = 1.0d0
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y) {
                      	double tmp;
                      	if (((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)))) <= -2000000000000.0) {
                      		tmp = (9.0 / x) / -81.0;
                      	} else {
                      		tmp = 1.0;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y):
                      	tmp = 0
                      	if ((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))) <= -2000000000000.0:
                      		tmp = (9.0 / x) / -81.0
                      	else:
                      		tmp = 1.0
                      	return tmp
                      
                      function code(x, y)
                      	tmp = 0.0
                      	if (Float64(Float64(1.0 - Float64(1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) <= -2000000000000.0)
                      		tmp = Float64(Float64(9.0 / x) / -81.0);
                      	else
                      		tmp = 1.0;
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y)
                      	tmp = 0.0;
                      	if (((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)))) <= -2000000000000.0)
                      		tmp = (9.0 / x) / -81.0;
                      	else
                      		tmp = 1.0;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_] := If[LessEqual[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], -2000000000000.0], N[(N[(9.0 / x), $MachinePrecision] / -81.0), $MachinePrecision], 1.0]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \leq -2000000000000:\\
                      \;\;\;\;\frac{\frac{9}{x}}{-81}\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x)))) < -2e12

                        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. lift-/.f64N/A

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

                            \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{\color{blue}{3 \cdot \sqrt{x}}} \]
                          3. *-commutativeN/A

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

                            \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
                          5. lower-/.f64N/A

                            \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
                          6. lower-/.f6499.6

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

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

                          \[\leadsto \color{blue}{\frac{\frac{-1}{9}}{x}} \]
                        5. Step-by-step derivation
                          1. lower-/.f6432.1

                            \[\leadsto \frac{-0.1111111111111111}{\color{blue}{x}} \]
                        6. Applied rewrites32.1%

                          \[\leadsto \color{blue}{\frac{-0.1111111111111111}{x}} \]
                        7. Step-by-step derivation
                          1. lift-/.f64N/A

                            \[\leadsto \frac{\frac{-1}{9}}{\color{blue}{x}} \]
                          2. div-flipN/A

                            \[\leadsto \frac{1}{\color{blue}{\frac{x}{\frac{-1}{9}}}} \]
                          3. associate-/r/N/A

                            \[\leadsto \frac{1}{x} \cdot \color{blue}{\frac{-1}{9}} \]
                          4. lower-*.f64N/A

                            \[\leadsto \frac{1}{x} \cdot \color{blue}{\frac{-1}{9}} \]
                          5. lower-/.f6432.1

                            \[\leadsto \frac{1}{x} \cdot -0.1111111111111111 \]
                        8. Applied rewrites32.1%

                          \[\leadsto \frac{1}{x} \cdot \color{blue}{-0.1111111111111111} \]
                        9. Step-by-step derivation
                          1. lift-*.f64N/A

                            \[\leadsto \frac{1}{x} \cdot \color{blue}{\frac{-1}{9}} \]
                          2. metadata-evalN/A

                            \[\leadsto \frac{1}{x} \cdot \left(\mathsf{neg}\left(\frac{1}{9}\right)\right) \]
                          3. distribute-rgt-neg-outN/A

                            \[\leadsto \mathsf{neg}\left(\frac{1}{x} \cdot \frac{1}{9}\right) \]
                          4. lift-/.f64N/A

                            \[\leadsto \mathsf{neg}\left(\frac{1}{x} \cdot \frac{1}{9}\right) \]
                          5. metadata-evalN/A

                            \[\leadsto \mathsf{neg}\left(\frac{1}{x} \cdot \frac{1}{9}\right) \]
                          6. times-fracN/A

                            \[\leadsto \mathsf{neg}\left(\frac{1 \cdot 1}{x \cdot 9}\right) \]
                          7. metadata-evalN/A

                            \[\leadsto \mathsf{neg}\left(\frac{1}{x \cdot 9}\right) \]
                          8. *-commutativeN/A

                            \[\leadsto \mathsf{neg}\left(\frac{1}{9 \cdot x}\right) \]
                          9. associate-/r*N/A

                            \[\leadsto \mathsf{neg}\left(\frac{\frac{1}{9}}{x}\right) \]
                          10. metadata-evalN/A

                            \[\leadsto \mathsf{neg}\left(\frac{\frac{1}{9}}{x}\right) \]
                          11. metadata-evalN/A

                            \[\leadsto \mathsf{neg}\left(\frac{1 \cdot \frac{1}{9}}{x}\right) \]
                          12. associate-*r/N/A

                            \[\leadsto \mathsf{neg}\left(1 \cdot \frac{\frac{1}{9}}{x}\right) \]
                          13. metadata-evalN/A

                            \[\leadsto \mathsf{neg}\left(1 \cdot \frac{\frac{9}{81}}{x}\right) \]
                          14. associate-/r*N/A

                            \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{81 \cdot x}\right) \]
                          15. *-commutativeN/A

                            \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{x \cdot 81}\right) \]
                          16. lift-*.f64N/A

                            \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{x \cdot 81}\right) \]
                          17. lift-/.f64N/A

                            \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{x \cdot 81}\right) \]
                          18. *-lft-identityN/A

                            \[\leadsto \mathsf{neg}\left(\frac{9}{x \cdot 81}\right) \]
                          19. /-rgt-identityN/A

                            \[\leadsto \mathsf{neg}\left(\frac{\frac{9}{x \cdot 81}}{1}\right) \]
                          20. /-rgt-identityN/A

                            \[\leadsto \mathsf{neg}\left(\frac{9}{x \cdot 81}\right) \]
                          21. lift-/.f64N/A

                            \[\leadsto \mathsf{neg}\left(\frac{9}{x \cdot 81}\right) \]
                          22. lift-*.f64N/A

                            \[\leadsto \mathsf{neg}\left(\frac{9}{x \cdot 81}\right) \]
                          23. associate-/r*N/A

                            \[\leadsto \mathsf{neg}\left(\frac{\frac{9}{x}}{81}\right) \]
                          24. distribute-neg-frac2N/A

                            \[\leadsto \frac{\frac{9}{x}}{\color{blue}{\mathsf{neg}\left(81\right)}} \]
                          25. lower-/.f64N/A

                            \[\leadsto \frac{\frac{9}{x}}{\color{blue}{\mathsf{neg}\left(81\right)}} \]
                          26. lower-/.f64N/A

                            \[\leadsto \frac{\frac{9}{x}}{\mathsf{neg}\left(\color{blue}{81}\right)} \]
                          27. metadata-eval32.1

                            \[\leadsto \frac{\frac{9}{x}}{-81} \]
                        10. Applied rewrites32.1%

                          \[\leadsto \frac{\frac{9}{x}}{\color{blue}{-81}} \]

                        if -2e12 < (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x))))

                        1. Initial program 99.7%

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

                          \[\leadsto \color{blue}{1} \]
                        3. Step-by-step derivation
                          1. Applied rewrites31.3%

                            \[\leadsto \color{blue}{1} \]
                        4. Recombined 2 regimes into one program.
                        5. Add Preprocessing

                        Alternative 18: 61.5% accurate, 0.7× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \leq -2000000000000:\\ \;\;\;\;\frac{9}{-81 \cdot x}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \end{array} \]
                        (FPCore (x y)
                         :precision binary64
                         (if (<= (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))) -2000000000000.0)
                           (/ 9.0 (* -81.0 x))
                           1.0))
                        double code(double x, double y) {
                        	double tmp;
                        	if (((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)))) <= -2000000000000.0) {
                        		tmp = 9.0 / (-81.0 * x);
                        	} else {
                        		tmp = 1.0;
                        	}
                        	return tmp;
                        }
                        
                        module fmin_fmax_functions
                            implicit none
                            private
                            public fmax
                            public fmin
                        
                            interface fmax
                                module procedure fmax88
                                module procedure fmax44
                                module procedure fmax84
                                module procedure fmax48
                            end interface
                            interface fmin
                                module procedure fmin88
                                module procedure fmin44
                                module procedure fmin84
                                module procedure fmin48
                            end interface
                        contains
                            real(8) function fmax88(x, y) result (res)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                            end function
                            real(4) function fmax44(x, y) result (res)
                                real(4), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                            end function
                            real(8) function fmax84(x, y) result(res)
                                real(8), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                            end function
                            real(8) function fmax48(x, y) result(res)
                                real(4), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                            end function
                            real(8) function fmin88(x, y) result (res)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                            end function
                            real(4) function fmin44(x, y) result (res)
                                real(4), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                            end function
                            real(8) function fmin84(x, y) result(res)
                                real(8), intent (in) :: x
                                real(4), intent (in) :: y
                                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                            end function
                            real(8) function fmin48(x, y) result(res)
                                real(4), intent (in) :: x
                                real(8), intent (in) :: y
                                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                            end function
                        end module
                        
                        real(8) function code(x, y)
                        use fmin_fmax_functions
                            real(8), intent (in) :: x
                            real(8), intent (in) :: y
                            real(8) :: tmp
                            if (((1.0d0 - (1.0d0 / (x * 9.0d0))) - (y / (3.0d0 * sqrt(x)))) <= (-2000000000000.0d0)) then
                                tmp = 9.0d0 / ((-81.0d0) * x)
                            else
                                tmp = 1.0d0
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y) {
                        	double tmp;
                        	if (((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)))) <= -2000000000000.0) {
                        		tmp = 9.0 / (-81.0 * x);
                        	} else {
                        		tmp = 1.0;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y):
                        	tmp = 0
                        	if ((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))) <= -2000000000000.0:
                        		tmp = 9.0 / (-81.0 * x)
                        	else:
                        		tmp = 1.0
                        	return tmp
                        
                        function code(x, y)
                        	tmp = 0.0
                        	if (Float64(Float64(1.0 - Float64(1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) <= -2000000000000.0)
                        		tmp = Float64(9.0 / Float64(-81.0 * x));
                        	else
                        		tmp = 1.0;
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y)
                        	tmp = 0.0;
                        	if (((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)))) <= -2000000000000.0)
                        		tmp = 9.0 / (-81.0 * x);
                        	else
                        		tmp = 1.0;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_] := If[LessEqual[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], -2000000000000.0], N[(9.0 / N[(-81.0 * x), $MachinePrecision]), $MachinePrecision], 1.0]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \leq -2000000000000:\\
                        \;\;\;\;\frac{9}{-81 \cdot x}\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;1\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 2 regimes
                        2. if (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x)))) < -2e12

                          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. lift-/.f64N/A

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

                              \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{\color{blue}{3 \cdot \sqrt{x}}} \]
                            3. *-commutativeN/A

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

                              \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
                            5. lower-/.f64N/A

                              \[\leadsto \left(1 - \frac{1}{x \cdot 9}\right) - \color{blue}{\frac{\frac{y}{\sqrt{x}}}{3}} \]
                            6. lower-/.f6499.6

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

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

                            \[\leadsto \color{blue}{\frac{\frac{-1}{9}}{x}} \]
                          5. Step-by-step derivation
                            1. lower-/.f6432.1

                              \[\leadsto \frac{-0.1111111111111111}{\color{blue}{x}} \]
                          6. Applied rewrites32.1%

                            \[\leadsto \color{blue}{\frac{-0.1111111111111111}{x}} \]
                          7. Step-by-step derivation
                            1. lift-/.f64N/A

                              \[\leadsto \frac{\frac{-1}{9}}{\color{blue}{x}} \]
                            2. div-flipN/A

                              \[\leadsto \frac{1}{\color{blue}{\frac{x}{\frac{-1}{9}}}} \]
                            3. associate-/r/N/A

                              \[\leadsto \frac{1}{x} \cdot \color{blue}{\frac{-1}{9}} \]
                            4. lower-*.f64N/A

                              \[\leadsto \frac{1}{x} \cdot \color{blue}{\frac{-1}{9}} \]
                            5. lower-/.f6432.1

                              \[\leadsto \frac{1}{x} \cdot -0.1111111111111111 \]
                          8. Applied rewrites32.1%

                            \[\leadsto \frac{1}{x} \cdot \color{blue}{-0.1111111111111111} \]
                          9. Step-by-step derivation
                            1. lift-*.f64N/A

                              \[\leadsto \frac{1}{x} \cdot \color{blue}{\frac{-1}{9}} \]
                            2. metadata-evalN/A

                              \[\leadsto \frac{1}{x} \cdot \left(\mathsf{neg}\left(\frac{1}{9}\right)\right) \]
                            3. distribute-rgt-neg-outN/A

                              \[\leadsto \mathsf{neg}\left(\frac{1}{x} \cdot \frac{1}{9}\right) \]
                            4. lift-/.f64N/A

                              \[\leadsto \mathsf{neg}\left(\frac{1}{x} \cdot \frac{1}{9}\right) \]
                            5. metadata-evalN/A

                              \[\leadsto \mathsf{neg}\left(\frac{1}{x} \cdot \frac{1}{9}\right) \]
                            6. times-fracN/A

                              \[\leadsto \mathsf{neg}\left(\frac{1 \cdot 1}{x \cdot 9}\right) \]
                            7. metadata-evalN/A

                              \[\leadsto \mathsf{neg}\left(\frac{1}{x \cdot 9}\right) \]
                            8. *-commutativeN/A

                              \[\leadsto \mathsf{neg}\left(\frac{1}{9 \cdot x}\right) \]
                            9. associate-/r*N/A

                              \[\leadsto \mathsf{neg}\left(\frac{\frac{1}{9}}{x}\right) \]
                            10. metadata-evalN/A

                              \[\leadsto \mathsf{neg}\left(\frac{\frac{1}{9}}{x}\right) \]
                            11. metadata-evalN/A

                              \[\leadsto \mathsf{neg}\left(\frac{1 \cdot \frac{1}{9}}{x}\right) \]
                            12. associate-*r/N/A

                              \[\leadsto \mathsf{neg}\left(1 \cdot \frac{\frac{1}{9}}{x}\right) \]
                            13. metadata-evalN/A

                              \[\leadsto \mathsf{neg}\left(1 \cdot \frac{\frac{9}{81}}{x}\right) \]
                            14. associate-/r*N/A

                              \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{81 \cdot x}\right) \]
                            15. *-commutativeN/A

                              \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{x \cdot 81}\right) \]
                            16. lift-*.f64N/A

                              \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{x \cdot 81}\right) \]
                            17. lift-/.f64N/A

                              \[\leadsto \mathsf{neg}\left(1 \cdot \frac{9}{x \cdot 81}\right) \]
                            18. *-lft-identityN/A

                              \[\leadsto \mathsf{neg}\left(\frac{9}{x \cdot 81}\right) \]
                            19. /-rgt-identityN/A

                              \[\leadsto \mathsf{neg}\left(\frac{\frac{9}{x \cdot 81}}{1}\right) \]
                            20. /-rgt-identityN/A

                              \[\leadsto \mathsf{neg}\left(\frac{9}{x \cdot 81}\right) \]
                            21. lift-/.f64N/A

                              \[\leadsto \mathsf{neg}\left(\frac{9}{x \cdot 81}\right) \]
                            22. distribute-neg-frac2N/A

                              \[\leadsto \frac{9}{\color{blue}{\mathsf{neg}\left(x \cdot 81\right)}} \]
                            23. lower-/.f64N/A

                              \[\leadsto \frac{9}{\color{blue}{\mathsf{neg}\left(x \cdot 81\right)}} \]
                            24. lift-*.f64N/A

                              \[\leadsto \frac{9}{\mathsf{neg}\left(x \cdot 81\right)} \]
                            25. *-commutativeN/A

                              \[\leadsto \frac{9}{\mathsf{neg}\left(81 \cdot x\right)} \]
                            26. distribute-lft-neg-inN/A

                              \[\leadsto \frac{9}{\left(\mathsf{neg}\left(81\right)\right) \cdot \color{blue}{x}} \]
                            27. lower-*.f64N/A

                              \[\leadsto \frac{9}{\left(\mathsf{neg}\left(81\right)\right) \cdot \color{blue}{x}} \]
                          10. Applied rewrites32.1%

                            \[\leadsto \frac{9}{\color{blue}{-81 \cdot x}} \]

                          if -2e12 < (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x))))

                          1. Initial program 99.7%

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

                            \[\leadsto \color{blue}{1} \]
                          3. Step-by-step derivation
                            1. Applied rewrites31.3%

                              \[\leadsto \color{blue}{1} \]
                          4. Recombined 2 regimes into one program.
                          5. Add Preprocessing

                          Alternative 19: 61.5% accurate, 0.7× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \leq -2000000000000:\\ \;\;\;\;\frac{-0.1111111111111111}{x}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \end{array} \]
                          (FPCore (x y)
                           :precision binary64
                           (if (<= (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))) -2000000000000.0)
                             (/ -0.1111111111111111 x)
                             1.0))
                          double code(double x, double y) {
                          	double tmp;
                          	if (((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)))) <= -2000000000000.0) {
                          		tmp = -0.1111111111111111 / x;
                          	} else {
                          		tmp = 1.0;
                          	}
                          	return tmp;
                          }
                          
                          module fmin_fmax_functions
                              implicit none
                              private
                              public fmax
                              public fmin
                          
                              interface fmax
                                  module procedure fmax88
                                  module procedure fmax44
                                  module procedure fmax84
                                  module procedure fmax48
                              end interface
                              interface fmin
                                  module procedure fmin88
                                  module procedure fmin44
                                  module procedure fmin84
                                  module procedure fmin48
                              end interface
                          contains
                              real(8) function fmax88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmax44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmax84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmax48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                              end function
                              real(8) function fmin88(x, y) result (res)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(4) function fmin44(x, y) result (res)
                                  real(4), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                              end function
                              real(8) function fmin84(x, y) result(res)
                                  real(8), intent (in) :: x
                                  real(4), intent (in) :: y
                                  res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                              end function
                              real(8) function fmin48(x, y) result(res)
                                  real(4), intent (in) :: x
                                  real(8), intent (in) :: y
                                  res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                              end function
                          end module
                          
                          real(8) function code(x, y)
                          use fmin_fmax_functions
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8) :: tmp
                              if (((1.0d0 - (1.0d0 / (x * 9.0d0))) - (y / (3.0d0 * sqrt(x)))) <= (-2000000000000.0d0)) then
                                  tmp = (-0.1111111111111111d0) / x
                              else
                                  tmp = 1.0d0
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y) {
                          	double tmp;
                          	if (((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * Math.sqrt(x)))) <= -2000000000000.0) {
                          		tmp = -0.1111111111111111 / x;
                          	} else {
                          		tmp = 1.0;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y):
                          	tmp = 0
                          	if ((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * math.sqrt(x)))) <= -2000000000000.0:
                          		tmp = -0.1111111111111111 / x
                          	else:
                          		tmp = 1.0
                          	return tmp
                          
                          function code(x, y)
                          	tmp = 0.0
                          	if (Float64(Float64(1.0 - Float64(1.0 / Float64(x * 9.0))) - Float64(y / Float64(3.0 * sqrt(x)))) <= -2000000000000.0)
                          		tmp = Float64(-0.1111111111111111 / x);
                          	else
                          		tmp = 1.0;
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y)
                          	tmp = 0.0;
                          	if (((1.0 - (1.0 / (x * 9.0))) - (y / (3.0 * sqrt(x)))) <= -2000000000000.0)
                          		tmp = -0.1111111111111111 / x;
                          	else
                          		tmp = 1.0;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_] := If[LessEqual[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], -2000000000000.0], N[(-0.1111111111111111 / x), $MachinePrecision], 1.0]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;\left(1 - \frac{1}{x \cdot 9}\right) - \frac{y}{3 \cdot \sqrt{x}} \leq -2000000000000:\\
                          \;\;\;\;\frac{-0.1111111111111111}{x}\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x)))) < -2e12

                            1. Initial program 99.7%

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

                              \[\leadsto \color{blue}{\frac{\frac{-1}{9}}{x}} \]
                            3. Step-by-step derivation
                              1. lower-/.f6432.1

                                \[\leadsto \frac{-0.1111111111111111}{\color{blue}{x}} \]
                            4. Applied rewrites32.1%

                              \[\leadsto \color{blue}{\frac{-0.1111111111111111}{x}} \]

                            if -2e12 < (-.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x #s(literal 9 binary64)))) (/.f64 y (*.f64 #s(literal 3 binary64) (sqrt.f64 x))))

                            1. Initial program 99.7%

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

                              \[\leadsto \color{blue}{1} \]
                            3. Step-by-step derivation
                              1. Applied rewrites31.3%

                                \[\leadsto \color{blue}{1} \]
                            4. Recombined 2 regimes into one program.
                            5. Add Preprocessing

                            Alternative 20: 31.3% accurate, 20.6× speedup?

                            \[\begin{array}{l} \\ 1 \end{array} \]
                            (FPCore (x y) :precision binary64 1.0)
                            double code(double x, double y) {
                            	return 1.0;
                            }
                            
                            module fmin_fmax_functions
                                implicit none
                                private
                                public fmax
                                public fmin
                            
                                interface fmax
                                    module procedure fmax88
                                    module procedure fmax44
                                    module procedure fmax84
                                    module procedure fmax48
                                end interface
                                interface fmin
                                    module procedure fmin88
                                    module procedure fmin44
                                    module procedure fmin84
                                    module procedure fmin48
                                end interface
                            contains
                                real(8) function fmax88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmax44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmax84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmax48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                end function
                                real(8) function fmin88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmin44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmin84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmin48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                end function
                            end module
                            
                            real(8) function code(x, y)
                            use fmin_fmax_functions
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                code = 1.0d0
                            end function
                            
                            public static double code(double x, double y) {
                            	return 1.0;
                            }
                            
                            def code(x, y):
                            	return 1.0
                            
                            function code(x, y)
                            	return 1.0
                            end
                            
                            function tmp = code(x, y)
                            	tmp = 1.0;
                            end
                            
                            code[x_, y_] := 1.0
                            
                            \begin{array}{l}
                            
                            \\
                            1
                            \end{array}
                            
                            Derivation
                            1. Initial program 99.7%

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

                              \[\leadsto \color{blue}{1} \]
                            3. Step-by-step derivation
                              1. Applied rewrites31.3%

                                \[\leadsto \color{blue}{1} \]
                              2. Add Preprocessing

                              Reproduce

                              ?
                              herbie shell --seed 2025149 
                              (FPCore (x y)
                                :name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, D"
                                :precision binary64
                                (- (- 1.0 (/ 1.0 (* x 9.0))) (/ y (* 3.0 (sqrt x)))))