Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, B

Percentage Accurate: 99.9% → 99.9%
Time: 9.4s
Alternatives: 14
Speedup: 1.0×

Specification

?
\[\begin{array}{l} \\ \left(x + \cos y\right) - z \cdot \sin y \end{array} \]
(FPCore (x y z) :precision binary64 (- (+ x (cos y)) (* z (sin y))))
double code(double x, double y, double z) {
	return (x + cos(y)) - (z * sin(y));
}
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, z)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = (x + cos(y)) - (z * sin(y))
end function
public static double code(double x, double y, double z) {
	return (x + Math.cos(y)) - (z * Math.sin(y));
}
def code(x, y, z):
	return (x + math.cos(y)) - (z * math.sin(y))
function code(x, y, z)
	return Float64(Float64(x + cos(y)) - Float64(z * sin(y)))
end
function tmp = code(x, y, z)
	tmp = (x + cos(y)) - (z * sin(y));
end
code[x_, y_, z_] := N[(N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x + \cos y\right) - z \cdot \sin y
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 14 alternatives:

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

Initial Program: 99.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x + \cos y\right) - z \cdot \sin y \end{array} \]
(FPCore (x y z) :precision binary64 (- (+ x (cos y)) (* z (sin y))))
double code(double x, double y, double z) {
	return (x + cos(y)) - (z * sin(y));
}
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, z)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = (x + cos(y)) - (z * sin(y))
end function
public static double code(double x, double y, double z) {
	return (x + Math.cos(y)) - (z * Math.sin(y));
}
def code(x, y, z):
	return (x + math.cos(y)) - (z * math.sin(y))
function code(x, y, z)
	return Float64(Float64(x + cos(y)) - Float64(z * sin(y)))
end
function tmp = code(x, y, z)
	tmp = (x + cos(y)) - (z * sin(y));
end
code[x_, y_, z_] := N[(N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x + \cos y\right) - z \cdot \sin y
\end{array}

Alternative 1: 99.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x + \cos y\right) - z \cdot \sin y \end{array} \]
(FPCore (x y z) :precision binary64 (- (+ x (cos y)) (* z (sin y))))
double code(double x, double y, double z) {
	return (x + cos(y)) - (z * sin(y));
}
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, z)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = (x + cos(y)) - (z * sin(y))
end function
public static double code(double x, double y, double z) {
	return (x + Math.cos(y)) - (z * Math.sin(y));
}
def code(x, y, z):
	return (x + math.cos(y)) - (z * math.sin(y))
function code(x, y, z)
	return Float64(Float64(x + cos(y)) - Float64(z * sin(y)))
end
function tmp = code(x, y, z)
	tmp = (x + cos(y)) - (z * sin(y));
end
code[x_, y_, z_] := N[(N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x + \cos y\right) - z \cdot \sin y
\end{array}
Derivation
  1. Initial program 99.9%

    \[\left(x + \cos y\right) - z \cdot \sin y \]
  2. Add Preprocessing
  3. Add Preprocessing

Alternative 2: 98.3% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := z \cdot \sin y\\ t_1 := \left(x + \cos y\right) - t\_0\\ \mathbf{if}\;t\_1 \leq -100000000 \lor \neg \left(t\_1 \leq 2\right):\\ \;\;\;\;x - t\_0\\ \mathbf{else}:\\ \;\;\;\;\cos y + x\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0 (* z (sin y))) (t_1 (- (+ x (cos y)) t_0)))
   (if (or (<= t_1 -100000000.0) (not (<= t_1 2.0))) (- x t_0) (+ (cos y) x))))
double code(double x, double y, double z) {
	double t_0 = z * sin(y);
	double t_1 = (x + cos(y)) - t_0;
	double tmp;
	if ((t_1 <= -100000000.0) || !(t_1 <= 2.0)) {
		tmp = x - t_0;
	} else {
		tmp = cos(y) + 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, z)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8) :: t_0
    real(8) :: t_1
    real(8) :: tmp
    t_0 = z * sin(y)
    t_1 = (x + cos(y)) - t_0
    if ((t_1 <= (-100000000.0d0)) .or. (.not. (t_1 <= 2.0d0))) then
        tmp = x - t_0
    else
        tmp = cos(y) + x
    end if
    code = tmp
end function
public static double code(double x, double y, double z) {
	double t_0 = z * Math.sin(y);
	double t_1 = (x + Math.cos(y)) - t_0;
	double tmp;
	if ((t_1 <= -100000000.0) || !(t_1 <= 2.0)) {
		tmp = x - t_0;
	} else {
		tmp = Math.cos(y) + x;
	}
	return tmp;
}
def code(x, y, z):
	t_0 = z * math.sin(y)
	t_1 = (x + math.cos(y)) - t_0
	tmp = 0
	if (t_1 <= -100000000.0) or not (t_1 <= 2.0):
		tmp = x - t_0
	else:
		tmp = math.cos(y) + x
	return tmp
function code(x, y, z)
	t_0 = Float64(z * sin(y))
	t_1 = Float64(Float64(x + cos(y)) - t_0)
	tmp = 0.0
	if ((t_1 <= -100000000.0) || !(t_1 <= 2.0))
		tmp = Float64(x - t_0);
	else
		tmp = Float64(cos(y) + x);
	end
	return tmp
end
function tmp_2 = code(x, y, z)
	t_0 = z * sin(y);
	t_1 = (x + cos(y)) - t_0;
	tmp = 0.0;
	if ((t_1 <= -100000000.0) || ~((t_1 <= 2.0)))
		tmp = x - t_0;
	else
		tmp = cos(y) + x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -100000000.0], N[Not[LessEqual[t$95$1, 2.0]], $MachinePrecision]], N[(x - t$95$0), $MachinePrecision], N[(N[Cos[y], $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := z \cdot \sin y\\
t_1 := \left(x + \cos y\right) - t\_0\\
\mathbf{if}\;t\_1 \leq -100000000 \lor \neg \left(t\_1 \leq 2\right):\\
\;\;\;\;x - t\_0\\

\mathbf{else}:\\
\;\;\;\;\cos y + x\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (+.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y))) < -1e8 or 2 < (-.f64 (+.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))

    1. Initial program 99.8%

      \[\left(x + \cos y\right) - z \cdot \sin y \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf

      \[\leadsto \color{blue}{x} - z \cdot \sin y \]
    4. Step-by-step derivation
      1. Applied rewrites98.9%

        \[\leadsto \color{blue}{x} - z \cdot \sin y \]

      if -1e8 < (-.f64 (+.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y))) < 2

      1. Initial program 100.0%

        \[\left(x + \cos y\right) - z \cdot \sin y \]
      2. Add Preprocessing
      3. Taylor expanded in z around 0

        \[\leadsto \color{blue}{x + \cos y} \]
      4. Step-by-step derivation
        1. Applied rewrites98.0%

          \[\leadsto \color{blue}{\cos y + x} \]
      5. Recombined 2 regimes into one program.
      6. Final simplification98.6%

        \[\leadsto \begin{array}{l} \mathbf{if}\;\left(x + \cos y\right) - z \cdot \sin y \leq -100000000 \lor \neg \left(\left(x + \cos y\right) - z \cdot \sin y \leq 2\right):\\ \;\;\;\;x - z \cdot \sin y\\ \mathbf{else}:\\ \;\;\;\;\cos y + x\\ \end{array} \]
      7. Add Preprocessing

      Alternative 3: 72.0% accurate, 0.4× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left(x + \cos y\right) - z \cdot \sin y\\ \mathbf{if}\;t\_0 \leq -100000000:\\ \;\;\;\;x\\ \mathbf{elif}\;t\_0 \leq 0.99999999999996:\\ \;\;\;\;\cos y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-z, y, 1 + x\right)\\ \end{array} \end{array} \]
      (FPCore (x y z)
       :precision binary64
       (let* ((t_0 (- (+ x (cos y)) (* z (sin y)))))
         (if (<= t_0 -100000000.0)
           x
           (if (<= t_0 0.99999999999996) (cos y) (fma (- z) y (+ 1.0 x))))))
      double code(double x, double y, double z) {
      	double t_0 = (x + cos(y)) - (z * sin(y));
      	double tmp;
      	if (t_0 <= -100000000.0) {
      		tmp = x;
      	} else if (t_0 <= 0.99999999999996) {
      		tmp = cos(y);
      	} else {
      		tmp = fma(-z, y, (1.0 + x));
      	}
      	return tmp;
      }
      
      function code(x, y, z)
      	t_0 = Float64(Float64(x + cos(y)) - Float64(z * sin(y)))
      	tmp = 0.0
      	if (t_0 <= -100000000.0)
      		tmp = x;
      	elseif (t_0 <= 0.99999999999996)
      		tmp = cos(y);
      	else
      		tmp = fma(Float64(-z), y, Float64(1.0 + x));
      	end
      	return tmp
      end
      
      code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -100000000.0], x, If[LessEqual[t$95$0, 0.99999999999996], N[Cos[y], $MachinePrecision], N[((-z) * y + N[(1.0 + x), $MachinePrecision]), $MachinePrecision]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := \left(x + \cos y\right) - z \cdot \sin y\\
      \mathbf{if}\;t\_0 \leq -100000000:\\
      \;\;\;\;x\\
      
      \mathbf{elif}\;t\_0 \leq 0.99999999999996:\\
      \;\;\;\;\cos y\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(-z, y, 1 + x\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if (-.f64 (+.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y))) < -1e8

        1. Initial program 99.8%

          \[\left(x + \cos y\right) - z \cdot \sin y \]
        2. Add Preprocessing
        3. Taylor expanded in x around inf

          \[\leadsto \color{blue}{x} \]
        4. Step-by-step derivation
          1. Applied rewrites65.7%

            \[\leadsto \color{blue}{x} \]

          if -1e8 < (-.f64 (+.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y))) < 0.99999999999996003

          1. Initial program 100.0%

            \[\left(x + \cos y\right) - z \cdot \sin y \]
          2. Add Preprocessing
          3. Taylor expanded in z around 0

            \[\leadsto \color{blue}{x + \cos y} \]
          4. Step-by-step derivation
            1. Applied rewrites97.7%

              \[\leadsto \color{blue}{\cos y + x} \]
            2. Taylor expanded in x around 0

              \[\leadsto \cos y \]
            3. Step-by-step derivation
              1. Applied rewrites93.7%

                \[\leadsto \cos y \]

              if 0.99999999999996003 < (-.f64 (+.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))

              1. Initial program 99.9%

                \[\left(x + \cos y\right) - z \cdot \sin y \]
              2. Add Preprocessing
              3. Taylor expanded in y around 0

                \[\leadsto \color{blue}{1 + \left(x + -1 \cdot \left(y \cdot z\right)\right)} \]
              4. Step-by-step derivation
                1. Applied rewrites70.3%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(-z, y, 1 + x\right)} \]
              5. Recombined 3 regimes into one program.
              6. Add Preprocessing

              Alternative 4: 98.3% accurate, 1.0× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -400000000 \lor \neg \left(x \leq 1.6 \cdot 10^{-6}\right):\\ \;\;\;\;x - z \cdot \sin y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-z, \sin y, \cos y\right)\\ \end{array} \end{array} \]
              (FPCore (x y z)
               :precision binary64
               (if (or (<= x -400000000.0) (not (<= x 1.6e-6)))
                 (- x (* z (sin y)))
                 (fma (- z) (sin y) (cos y))))
              double code(double x, double y, double z) {
              	double tmp;
              	if ((x <= -400000000.0) || !(x <= 1.6e-6)) {
              		tmp = x - (z * sin(y));
              	} else {
              		tmp = fma(-z, sin(y), cos(y));
              	}
              	return tmp;
              }
              
              function code(x, y, z)
              	tmp = 0.0
              	if ((x <= -400000000.0) || !(x <= 1.6e-6))
              		tmp = Float64(x - Float64(z * sin(y)));
              	else
              		tmp = fma(Float64(-z), sin(y), cos(y));
              	end
              	return tmp
              end
              
              code[x_, y_, z_] := If[Or[LessEqual[x, -400000000.0], N[Not[LessEqual[x, 1.6e-6]], $MachinePrecision]], N[(x - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-z) * N[Sin[y], $MachinePrecision] + N[Cos[y], $MachinePrecision]), $MachinePrecision]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;x \leq -400000000 \lor \neg \left(x \leq 1.6 \cdot 10^{-6}\right):\\
              \;\;\;\;x - z \cdot \sin y\\
              
              \mathbf{else}:\\
              \;\;\;\;\mathsf{fma}\left(-z, \sin y, \cos y\right)\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if x < -4e8 or 1.5999999999999999e-6 < x

                1. Initial program 99.9%

                  \[\left(x + \cos y\right) - z \cdot \sin y \]
                2. Add Preprocessing
                3. Taylor expanded in x around inf

                  \[\leadsto \color{blue}{x} - z \cdot \sin y \]
                4. Step-by-step derivation
                  1. Applied rewrites99.4%

                    \[\leadsto \color{blue}{x} - z \cdot \sin y \]

                  if -4e8 < x < 1.5999999999999999e-6

                  1. Initial program 99.8%

                    \[\left(x + \cos y\right) - z \cdot \sin y \]
                  2. Add Preprocessing
                  3. Taylor expanded in x around 0

                    \[\leadsto \color{blue}{\cos y - z \cdot \sin y} \]
                  4. Step-by-step derivation
                    1. Applied rewrites98.8%

                      \[\leadsto \color{blue}{\mathsf{fma}\left(-z, \sin y, \cos y\right)} \]
                  5. Recombined 2 regimes into one program.
                  6. Final simplification99.1%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -400000000 \lor \neg \left(x \leq 1.6 \cdot 10^{-6}\right):\\ \;\;\;\;x - z \cdot \sin y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-z, \sin y, \cos y\right)\\ \end{array} \]
                  7. Add Preprocessing

                  Alternative 5: 81.9% accurate, 1.8× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -8.8 \cdot 10^{+95} \lor \neg \left(z \leq 3.2 \cdot 10^{+106}\right):\\ \;\;\;\;\left(-z\right) \cdot \sin y\\ \mathbf{else}:\\ \;\;\;\;\cos y + x\\ \end{array} \end{array} \]
                  (FPCore (x y z)
                   :precision binary64
                   (if (or (<= z -8.8e+95) (not (<= z 3.2e+106)))
                     (* (- z) (sin y))
                     (+ (cos y) x)))
                  double code(double x, double y, double z) {
                  	double tmp;
                  	if ((z <= -8.8e+95) || !(z <= 3.2e+106)) {
                  		tmp = -z * sin(y);
                  	} else {
                  		tmp = cos(y) + 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, z)
                  use fmin_fmax_functions
                      real(8), intent (in) :: x
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z
                      real(8) :: tmp
                      if ((z <= (-8.8d+95)) .or. (.not. (z <= 3.2d+106))) then
                          tmp = -z * sin(y)
                      else
                          tmp = cos(y) + x
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double x, double y, double z) {
                  	double tmp;
                  	if ((z <= -8.8e+95) || !(z <= 3.2e+106)) {
                  		tmp = -z * Math.sin(y);
                  	} else {
                  		tmp = Math.cos(y) + x;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z):
                  	tmp = 0
                  	if (z <= -8.8e+95) or not (z <= 3.2e+106):
                  		tmp = -z * math.sin(y)
                  	else:
                  		tmp = math.cos(y) + x
                  	return tmp
                  
                  function code(x, y, z)
                  	tmp = 0.0
                  	if ((z <= -8.8e+95) || !(z <= 3.2e+106))
                  		tmp = Float64(Float64(-z) * sin(y));
                  	else
                  		tmp = Float64(cos(y) + x);
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z)
                  	tmp = 0.0;
                  	if ((z <= -8.8e+95) || ~((z <= 3.2e+106)))
                  		tmp = -z * sin(y);
                  	else
                  		tmp = cos(y) + x;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_] := If[Or[LessEqual[z, -8.8e+95], N[Not[LessEqual[z, 3.2e+106]], $MachinePrecision]], N[((-z) * N[Sin[y], $MachinePrecision]), $MachinePrecision], N[(N[Cos[y], $MachinePrecision] + x), $MachinePrecision]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;z \leq -8.8 \cdot 10^{+95} \lor \neg \left(z \leq 3.2 \cdot 10^{+106}\right):\\
                  \;\;\;\;\left(-z\right) \cdot \sin y\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\cos y + x\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if z < -8.7999999999999996e95 or 3.1999999999999998e106 < z

                    1. Initial program 99.8%

                      \[\left(x + \cos y\right) - z \cdot \sin y \]
                    2. Add Preprocessing
                    3. Taylor expanded in z around inf

                      \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \sin y\right)} \]
                    4. Step-by-step derivation
                      1. Applied rewrites67.1%

                        \[\leadsto \color{blue}{\left(-z\right) \cdot \sin y} \]

                      if -8.7999999999999996e95 < z < 3.1999999999999998e106

                      1. Initial program 99.9%

                        \[\left(x + \cos y\right) - z \cdot \sin y \]
                      2. Add Preprocessing
                      3. Taylor expanded in z around 0

                        \[\leadsto \color{blue}{x + \cos y} \]
                      4. Step-by-step derivation
                        1. Applied rewrites91.6%

                          \[\leadsto \color{blue}{\cos y + x} \]
                      5. Recombined 2 regimes into one program.
                      6. Final simplification82.9%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -8.8 \cdot 10^{+95} \lor \neg \left(z \leq 3.2 \cdot 10^{+106}\right):\\ \;\;\;\;\left(-z\right) \cdot \sin y\\ \mathbf{else}:\\ \;\;\;\;\cos y + x\\ \end{array} \]
                      7. Add Preprocessing

                      Alternative 6: 80.1% accurate, 1.8× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -0.62 \lor \neg \left(y \leq 3 \cdot 10^{-7}\right):\\ \;\;\;\;\cos y + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-z, y, 1 + x\right)\\ \end{array} \end{array} \]
                      (FPCore (x y z)
                       :precision binary64
                       (if (or (<= y -0.62) (not (<= y 3e-7)))
                         (+ (cos y) x)
                         (fma (- z) y (+ 1.0 x))))
                      double code(double x, double y, double z) {
                      	double tmp;
                      	if ((y <= -0.62) || !(y <= 3e-7)) {
                      		tmp = cos(y) + x;
                      	} else {
                      		tmp = fma(-z, y, (1.0 + x));
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z)
                      	tmp = 0.0
                      	if ((y <= -0.62) || !(y <= 3e-7))
                      		tmp = Float64(cos(y) + x);
                      	else
                      		tmp = fma(Float64(-z), y, Float64(1.0 + x));
                      	end
                      	return tmp
                      end
                      
                      code[x_, y_, z_] := If[Or[LessEqual[y, -0.62], N[Not[LessEqual[y, 3e-7]], $MachinePrecision]], N[(N[Cos[y], $MachinePrecision] + x), $MachinePrecision], N[((-z) * y + N[(1.0 + x), $MachinePrecision]), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;y \leq -0.62 \lor \neg \left(y \leq 3 \cdot 10^{-7}\right):\\
                      \;\;\;\;\cos y + x\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\mathsf{fma}\left(-z, y, 1 + x\right)\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if y < -0.619999999999999996 or 2.9999999999999999e-7 < y

                        1. Initial program 99.8%

                          \[\left(x + \cos y\right) - z \cdot \sin y \]
                        2. Add Preprocessing
                        3. Taylor expanded in z around 0

                          \[\leadsto \color{blue}{x + \cos y} \]
                        4. Step-by-step derivation
                          1. Applied rewrites56.8%

                            \[\leadsto \color{blue}{\cos y + x} \]

                          if -0.619999999999999996 < y < 2.9999999999999999e-7

                          1. Initial program 100.0%

                            \[\left(x + \cos y\right) - z \cdot \sin y \]
                          2. Add Preprocessing
                          3. Taylor expanded in y around 0

                            \[\leadsto \color{blue}{1 + \left(x + -1 \cdot \left(y \cdot z\right)\right)} \]
                          4. Step-by-step derivation
                            1. Applied rewrites100.0%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(-z, y, 1 + x\right)} \]
                          5. Recombined 2 regimes into one program.
                          6. Final simplification77.4%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -0.62 \lor \neg \left(y \leq 3 \cdot 10^{-7}\right):\\ \;\;\;\;\cos y + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-z, y, 1 + x\right)\\ \end{array} \]
                          7. Add Preprocessing

                          Alternative 7: 69.4% accurate, 4.9× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.55 \cdot 10^{+18} \lor \neg \left(y \leq 5.5\right):\\ \;\;\;\;1 + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\left(0.16666666666666666 \cdot \left(z \cdot y\right) - 0.5\right) \cdot y - z, y, 1 + x\right)\\ \end{array} \end{array} \]
                          (FPCore (x y z)
                           :precision binary64
                           (if (or (<= y -1.55e+18) (not (<= y 5.5)))
                             (+ 1.0 x)
                             (fma (- (* (- (* 0.16666666666666666 (* z y)) 0.5) y) z) y (+ 1.0 x))))
                          double code(double x, double y, double z) {
                          	double tmp;
                          	if ((y <= -1.55e+18) || !(y <= 5.5)) {
                          		tmp = 1.0 + x;
                          	} else {
                          		tmp = fma(((((0.16666666666666666 * (z * y)) - 0.5) * y) - z), y, (1.0 + x));
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z)
                          	tmp = 0.0
                          	if ((y <= -1.55e+18) || !(y <= 5.5))
                          		tmp = Float64(1.0 + x);
                          	else
                          		tmp = fma(Float64(Float64(Float64(Float64(0.16666666666666666 * Float64(z * y)) - 0.5) * y) - z), y, Float64(1.0 + x));
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_] := If[Or[LessEqual[y, -1.55e+18], N[Not[LessEqual[y, 5.5]], $MachinePrecision]], N[(1.0 + x), $MachinePrecision], N[(N[(N[(N[(N[(0.16666666666666666 * N[(z * y), $MachinePrecision]), $MachinePrecision] - 0.5), $MachinePrecision] * y), $MachinePrecision] - z), $MachinePrecision] * y + N[(1.0 + x), $MachinePrecision]), $MachinePrecision]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;y \leq -1.55 \cdot 10^{+18} \lor \neg \left(y \leq 5.5\right):\\
                          \;\;\;\;1 + x\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\mathsf{fma}\left(\left(0.16666666666666666 \cdot \left(z \cdot y\right) - 0.5\right) \cdot y - z, y, 1 + x\right)\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 2 regimes
                          2. if y < -1.55e18 or 5.5 < y

                            1. Initial program 99.8%

                              \[\left(x + \cos y\right) - z \cdot \sin y \]
                            2. Add Preprocessing
                            3. Taylor expanded in y around 0

                              \[\leadsto \color{blue}{1 + x} \]
                            4. Step-by-step derivation
                              1. Applied rewrites37.9%

                                \[\leadsto \color{blue}{1 + x} \]

                              if -1.55e18 < y < 5.5

                              1. Initial program 100.0%

                                \[\left(x + \cos y\right) - z \cdot \sin y \]
                              2. Add Preprocessing
                              3. Taylor expanded in y around 0

                                \[\leadsto \color{blue}{1 + \left(x + y \cdot \left(y \cdot \left(\frac{1}{6} \cdot \left(y \cdot z\right) - \frac{1}{2}\right) - z\right)\right)} \]
                              4. Step-by-step derivation
                                1. Applied rewrites97.1%

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(\left(0.16666666666666666 \cdot \left(z \cdot y\right) - 0.5\right) \cdot y - z, y, 1 + x\right)} \]
                              5. Recombined 2 regimes into one program.
                              6. Final simplification67.3%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.55 \cdot 10^{+18} \lor \neg \left(y \leq 5.5\right):\\ \;\;\;\;1 + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\left(0.16666666666666666 \cdot \left(z \cdot y\right) - 0.5\right) \cdot y - z, y, 1 + x\right)\\ \end{array} \]
                              7. Add Preprocessing

                              Alternative 8: 69.3% accurate, 7.1× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -420000000000 \lor \neg \left(y \leq 11\right):\\ \;\;\;\;1 + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5 \cdot y - z, y, 1 + x\right)\\ \end{array} \end{array} \]
                              (FPCore (x y z)
                               :precision binary64
                               (if (or (<= y -420000000000.0) (not (<= y 11.0)))
                                 (+ 1.0 x)
                                 (fma (- (* -0.5 y) z) y (+ 1.0 x))))
                              double code(double x, double y, double z) {
                              	double tmp;
                              	if ((y <= -420000000000.0) || !(y <= 11.0)) {
                              		tmp = 1.0 + x;
                              	} else {
                              		tmp = fma(((-0.5 * y) - z), y, (1.0 + x));
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z)
                              	tmp = 0.0
                              	if ((y <= -420000000000.0) || !(y <= 11.0))
                              		tmp = Float64(1.0 + x);
                              	else
                              		tmp = fma(Float64(Float64(-0.5 * y) - z), y, Float64(1.0 + x));
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_] := If[Or[LessEqual[y, -420000000000.0], N[Not[LessEqual[y, 11.0]], $MachinePrecision]], N[(1.0 + x), $MachinePrecision], N[(N[(N[(-0.5 * y), $MachinePrecision] - z), $MachinePrecision] * y + N[(1.0 + x), $MachinePrecision]), $MachinePrecision]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;y \leq -420000000000 \lor \neg \left(y \leq 11\right):\\
                              \;\;\;\;1 + x\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\mathsf{fma}\left(-0.5 \cdot y - z, y, 1 + x\right)\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if y < -4.2e11 or 11 < y

                                1. Initial program 99.8%

                                  \[\left(x + \cos y\right) - z \cdot \sin y \]
                                2. Add Preprocessing
                                3. Taylor expanded in y around 0

                                  \[\leadsto \color{blue}{1 + x} \]
                                4. Step-by-step derivation
                                  1. Applied rewrites37.1%

                                    \[\leadsto \color{blue}{1 + x} \]

                                  if -4.2e11 < y < 11

                                  1. Initial program 100.0%

                                    \[\left(x + \cos y\right) - z \cdot \sin y \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in y around 0

                                    \[\leadsto \color{blue}{1 + \left(x + y \cdot \left(\frac{-1}{2} \cdot y - z\right)\right)} \]
                                  4. Step-by-step derivation
                                    1. Applied rewrites99.3%

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-0.5 \cdot y - z, y, 1 + x\right)} \]
                                  5. Recombined 2 regimes into one program.
                                  6. Final simplification67.2%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -420000000000 \lor \neg \left(y \leq 11\right):\\ \;\;\;\;1 + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-0.5 \cdot y - z, y, 1 + x\right)\\ \end{array} \]
                                  7. Add Preprocessing

                                  Alternative 9: 69.3% accurate, 8.8× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.65 \cdot 10^{+14} \lor \neg \left(y \leq 16000000\right):\\ \;\;\;\;1 + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-z, y, 1 + x\right)\\ \end{array} \end{array} \]
                                  (FPCore (x y z)
                                   :precision binary64
                                   (if (or (<= y -1.65e+14) (not (<= y 16000000.0)))
                                     (+ 1.0 x)
                                     (fma (- z) y (+ 1.0 x))))
                                  double code(double x, double y, double z) {
                                  	double tmp;
                                  	if ((y <= -1.65e+14) || !(y <= 16000000.0)) {
                                  		tmp = 1.0 + x;
                                  	} else {
                                  		tmp = fma(-z, y, (1.0 + x));
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y, z)
                                  	tmp = 0.0
                                  	if ((y <= -1.65e+14) || !(y <= 16000000.0))
                                  		tmp = Float64(1.0 + x);
                                  	else
                                  		tmp = fma(Float64(-z), y, Float64(1.0 + x));
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_, z_] := If[Or[LessEqual[y, -1.65e+14], N[Not[LessEqual[y, 16000000.0]], $MachinePrecision]], N[(1.0 + x), $MachinePrecision], N[((-z) * y + N[(1.0 + x), $MachinePrecision]), $MachinePrecision]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;y \leq -1.65 \cdot 10^{+14} \lor \neg \left(y \leq 16000000\right):\\
                                  \;\;\;\;1 + x\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\mathsf{fma}\left(-z, y, 1 + x\right)\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if y < -1.65e14 or 1.6e7 < y

                                    1. Initial program 99.8%

                                      \[\left(x + \cos y\right) - z \cdot \sin y \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in y around 0

                                      \[\leadsto \color{blue}{1 + x} \]
                                    4. Step-by-step derivation
                                      1. Applied rewrites37.7%

                                        \[\leadsto \color{blue}{1 + x} \]

                                      if -1.65e14 < y < 1.6e7

                                      1. Initial program 100.0%

                                        \[\left(x + \cos y\right) - z \cdot \sin y \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in y around 0

                                        \[\leadsto \color{blue}{1 + \left(x + -1 \cdot \left(y \cdot z\right)\right)} \]
                                      4. Step-by-step derivation
                                        1. Applied rewrites97.1%

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-z, y, 1 + x\right)} \]
                                      5. Recombined 2 regimes into one program.
                                      6. Final simplification67.2%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.65 \cdot 10^{+14} \lor \neg \left(y \leq 16000000\right):\\ \;\;\;\;1 + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-z, y, 1 + x\right)\\ \end{array} \]
                                      7. Add Preprocessing

                                      Alternative 10: 66.3% accurate, 10.1× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -5 \cdot 10^{-28} \lor \neg \left(x \leq 1.72 \cdot 10^{-6}\right):\\ \;\;\;\;1 + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-z, y, 1\right)\\ \end{array} \end{array} \]
                                      (FPCore (x y z)
                                       :precision binary64
                                       (if (or (<= x -5e-28) (not (<= x 1.72e-6))) (+ 1.0 x) (fma (- z) y 1.0)))
                                      double code(double x, double y, double z) {
                                      	double tmp;
                                      	if ((x <= -5e-28) || !(x <= 1.72e-6)) {
                                      		tmp = 1.0 + x;
                                      	} else {
                                      		tmp = fma(-z, y, 1.0);
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z)
                                      	tmp = 0.0
                                      	if ((x <= -5e-28) || !(x <= 1.72e-6))
                                      		tmp = Float64(1.0 + x);
                                      	else
                                      		tmp = fma(Float64(-z), y, 1.0);
                                      	end
                                      	return tmp
                                      end
                                      
                                      code[x_, y_, z_] := If[Or[LessEqual[x, -5e-28], N[Not[LessEqual[x, 1.72e-6]], $MachinePrecision]], N[(1.0 + x), $MachinePrecision], N[((-z) * y + 1.0), $MachinePrecision]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;x \leq -5 \cdot 10^{-28} \lor \neg \left(x \leq 1.72 \cdot 10^{-6}\right):\\
                                      \;\;\;\;1 + x\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;\mathsf{fma}\left(-z, y, 1\right)\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if x < -5.0000000000000002e-28 or 1.72e-6 < x

                                        1. Initial program 99.9%

                                          \[\left(x + \cos y\right) - z \cdot \sin y \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in y around 0

                                          \[\leadsto \color{blue}{1 + x} \]
                                        4. Step-by-step derivation
                                          1. Applied rewrites80.2%

                                            \[\leadsto \color{blue}{1 + x} \]

                                          if -5.0000000000000002e-28 < x < 1.72e-6

                                          1. Initial program 99.8%

                                            \[\left(x + \cos y\right) - z \cdot \sin y \]
                                          2. Add Preprocessing
                                          3. Taylor expanded in y around 0

                                            \[\leadsto \color{blue}{1 + \left(x + -1 \cdot \left(y \cdot z\right)\right)} \]
                                          4. Step-by-step derivation
                                            1. Applied rewrites47.9%

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-z, y, 1 + x\right)} \]
                                            2. Taylor expanded in x around 0

                                              \[\leadsto \mathsf{fma}\left(-z, y, 1\right) \]
                                            3. Step-by-step derivation
                                              1. Applied rewrites47.9%

                                                \[\leadsto \mathsf{fma}\left(-z, y, 1\right) \]
                                            4. Recombined 2 regimes into one program.
                                            5. Final simplification65.0%

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5 \cdot 10^{-28} \lor \neg \left(x \leq 1.72 \cdot 10^{-6}\right):\\ \;\;\;\;1 + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-z, y, 1\right)\\ \end{array} \]
                                            6. Add Preprocessing

                                            Alternative 11: 61.7% accurate, 15.1× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq 4.6 \cdot 10^{+217}:\\ \;\;\;\;1 + x\\ \mathbf{else}:\\ \;\;\;\;\left(-z\right) \cdot y\\ \end{array} \end{array} \]
                                            (FPCore (x y z) :precision binary64 (if (<= z 4.6e+217) (+ 1.0 x) (* (- z) y)))
                                            double code(double x, double y, double z) {
                                            	double tmp;
                                            	if (z <= 4.6e+217) {
                                            		tmp = 1.0 + x;
                                            	} else {
                                            		tmp = -z * y;
                                            	}
                                            	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, z)
                                            use fmin_fmax_functions
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8), intent (in) :: z
                                                real(8) :: tmp
                                                if (z <= 4.6d+217) then
                                                    tmp = 1.0d0 + x
                                                else
                                                    tmp = -z * y
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z) {
                                            	double tmp;
                                            	if (z <= 4.6e+217) {
                                            		tmp = 1.0 + x;
                                            	} else {
                                            		tmp = -z * y;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z):
                                            	tmp = 0
                                            	if z <= 4.6e+217:
                                            		tmp = 1.0 + x
                                            	else:
                                            		tmp = -z * y
                                            	return tmp
                                            
                                            function code(x, y, z)
                                            	tmp = 0.0
                                            	if (z <= 4.6e+217)
                                            		tmp = Float64(1.0 + x);
                                            	else
                                            		tmp = Float64(Float64(-z) * y);
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z)
                                            	tmp = 0.0;
                                            	if (z <= 4.6e+217)
                                            		tmp = 1.0 + x;
                                            	else
                                            		tmp = -z * y;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_] := If[LessEqual[z, 4.6e+217], N[(1.0 + x), $MachinePrecision], N[((-z) * y), $MachinePrecision]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;z \leq 4.6 \cdot 10^{+217}:\\
                                            \;\;\;\;1 + x\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;\left(-z\right) \cdot y\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if z < 4.5999999999999998e217

                                              1. Initial program 99.9%

                                                \[\left(x + \cos y\right) - z \cdot \sin y \]
                                              2. Add Preprocessing
                                              3. Taylor expanded in y around 0

                                                \[\leadsto \color{blue}{1 + x} \]
                                              4. Step-by-step derivation
                                                1. Applied rewrites65.2%

                                                  \[\leadsto \color{blue}{1 + x} \]

                                                if 4.5999999999999998e217 < z

                                                1. Initial program 99.6%

                                                  \[\left(x + \cos y\right) - z \cdot \sin y \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in z around inf

                                                  \[\leadsto \color{blue}{-1 \cdot \left(z \cdot \sin y\right)} \]
                                                4. Step-by-step derivation
                                                  1. Applied rewrites88.0%

                                                    \[\leadsto \color{blue}{\left(-z\right) \cdot \sin y} \]
                                                  2. Taylor expanded in y around 0

                                                    \[\leadsto \left(-z\right) \cdot y \]
                                                  3. Step-by-step derivation
                                                    1. Applied rewrites34.6%

                                                      \[\leadsto \left(-z\right) \cdot y \]
                                                  4. Recombined 2 regimes into one program.
                                                  5. Add Preprocessing

                                                  Alternative 12: 60.2% accurate, 16.3× speedup?

                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -3.9 \cdot 10^{-13}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 1:\\ \;\;\;\;1\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                                                  (FPCore (x y z)
                                                   :precision binary64
                                                   (if (<= x -3.9e-13) x (if (<= x 1.0) 1.0 x)))
                                                  double code(double x, double y, double z) {
                                                  	double tmp;
                                                  	if (x <= -3.9e-13) {
                                                  		tmp = x;
                                                  	} else if (x <= 1.0) {
                                                  		tmp = 1.0;
                                                  	} else {
                                                  		tmp = 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, z)
                                                  use fmin_fmax_functions
                                                      real(8), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      real(8), intent (in) :: z
                                                      real(8) :: tmp
                                                      if (x <= (-3.9d-13)) then
                                                          tmp = x
                                                      else if (x <= 1.0d0) then
                                                          tmp = 1.0d0
                                                      else
                                                          tmp = x
                                                      end if
                                                      code = tmp
                                                  end function
                                                  
                                                  public static double code(double x, double y, double z) {
                                                  	double tmp;
                                                  	if (x <= -3.9e-13) {
                                                  		tmp = x;
                                                  	} else if (x <= 1.0) {
                                                  		tmp = 1.0;
                                                  	} else {
                                                  		tmp = x;
                                                  	}
                                                  	return tmp;
                                                  }
                                                  
                                                  def code(x, y, z):
                                                  	tmp = 0
                                                  	if x <= -3.9e-13:
                                                  		tmp = x
                                                  	elif x <= 1.0:
                                                  		tmp = 1.0
                                                  	else:
                                                  		tmp = x
                                                  	return tmp
                                                  
                                                  function code(x, y, z)
                                                  	tmp = 0.0
                                                  	if (x <= -3.9e-13)
                                                  		tmp = x;
                                                  	elseif (x <= 1.0)
                                                  		tmp = 1.0;
                                                  	else
                                                  		tmp = x;
                                                  	end
                                                  	return tmp
                                                  end
                                                  
                                                  function tmp_2 = code(x, y, z)
                                                  	tmp = 0.0;
                                                  	if (x <= -3.9e-13)
                                                  		tmp = x;
                                                  	elseif (x <= 1.0)
                                                  		tmp = 1.0;
                                                  	else
                                                  		tmp = x;
                                                  	end
                                                  	tmp_2 = tmp;
                                                  end
                                                  
                                                  code[x_, y_, z_] := If[LessEqual[x, -3.9e-13], x, If[LessEqual[x, 1.0], 1.0, x]]
                                                  
                                                  \begin{array}{l}
                                                  
                                                  \\
                                                  \begin{array}{l}
                                                  \mathbf{if}\;x \leq -3.9 \cdot 10^{-13}:\\
                                                  \;\;\;\;x\\
                                                  
                                                  \mathbf{elif}\;x \leq 1:\\
                                                  \;\;\;\;1\\
                                                  
                                                  \mathbf{else}:\\
                                                  \;\;\;\;x\\
                                                  
                                                  
                                                  \end{array}
                                                  \end{array}
                                                  
                                                  Derivation
                                                  1. Split input into 2 regimes
                                                  2. if x < -3.90000000000000004e-13 or 1 < x

                                                    1. Initial program 99.9%

                                                      \[\left(x + \cos y\right) - z \cdot \sin y \]
                                                    2. Add Preprocessing
                                                    3. Taylor expanded in x around inf

                                                      \[\leadsto \color{blue}{x} \]
                                                    4. Step-by-step derivation
                                                      1. Applied rewrites81.7%

                                                        \[\leadsto \color{blue}{x} \]

                                                      if -3.90000000000000004e-13 < x < 1

                                                      1. Initial program 99.8%

                                                        \[\left(x + \cos y\right) - z \cdot \sin y \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in y around 0

                                                        \[\leadsto \color{blue}{1 + x} \]
                                                      4. Step-by-step derivation
                                                        1. Applied rewrites37.5%

                                                          \[\leadsto \color{blue}{1 + x} \]
                                                        2. Taylor expanded in x around 0

                                                          \[\leadsto 1 \]
                                                        3. Step-by-step derivation
                                                          1. Applied rewrites37.5%

                                                            \[\leadsto 1 \]
                                                        4. Recombined 2 regimes into one program.
                                                        5. Add Preprocessing

                                                        Alternative 13: 61.1% accurate, 53.0× speedup?

                                                        \[\begin{array}{l} \\ 1 + x \end{array} \]
                                                        (FPCore (x y z) :precision binary64 (+ 1.0 x))
                                                        double code(double x, double y, double z) {
                                                        	return 1.0 + 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, z)
                                                        use fmin_fmax_functions
                                                            real(8), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            real(8), intent (in) :: z
                                                            code = 1.0d0 + x
                                                        end function
                                                        
                                                        public static double code(double x, double y, double z) {
                                                        	return 1.0 + x;
                                                        }
                                                        
                                                        def code(x, y, z):
                                                        	return 1.0 + x
                                                        
                                                        function code(x, y, z)
                                                        	return Float64(1.0 + x)
                                                        end
                                                        
                                                        function tmp = code(x, y, z)
                                                        	tmp = 1.0 + x;
                                                        end
                                                        
                                                        code[x_, y_, z_] := N[(1.0 + x), $MachinePrecision]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        1 + x
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Initial program 99.9%

                                                          \[\left(x + \cos y\right) - z \cdot \sin y \]
                                                        2. Add Preprocessing
                                                        3. Taylor expanded in y around 0

                                                          \[\leadsto \color{blue}{1 + x} \]
                                                        4. Step-by-step derivation
                                                          1. Applied rewrites60.4%

                                                            \[\leadsto \color{blue}{1 + x} \]
                                                          2. Add Preprocessing

                                                          Alternative 14: 42.5% accurate, 212.0× speedup?

                                                          \[\begin{array}{l} \\ x \end{array} \]
                                                          (FPCore (x y z) :precision binary64 x)
                                                          double code(double x, double y, double z) {
                                                          	return 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, z)
                                                          use fmin_fmax_functions
                                                              real(8), intent (in) :: x
                                                              real(8), intent (in) :: y
                                                              real(8), intent (in) :: z
                                                              code = x
                                                          end function
                                                          
                                                          public static double code(double x, double y, double z) {
                                                          	return x;
                                                          }
                                                          
                                                          def code(x, y, z):
                                                          	return x
                                                          
                                                          function code(x, y, z)
                                                          	return x
                                                          end
                                                          
                                                          function tmp = code(x, y, z)
                                                          	tmp = x;
                                                          end
                                                          
                                                          code[x_, y_, z_] := x
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          x
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Initial program 99.9%

                                                            \[\left(x + \cos y\right) - z \cdot \sin y \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in x around inf

                                                            \[\leadsto \color{blue}{x} \]
                                                          4. Step-by-step derivation
                                                            1. Applied rewrites43.4%

                                                              \[\leadsto \color{blue}{x} \]
                                                            2. Add Preprocessing

                                                            Reproduce

                                                            ?
                                                            herbie shell --seed 2025019 
                                                            (FPCore (x y z)
                                                              :name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, B"
                                                              :precision binary64
                                                              (- (+ x (cos y)) (* z (sin y))))