Statistics.Distribution.Poisson.Internal:probability from math-functions-0.1.5.2

Percentage Accurate: 100.0% → 100.0%
Time: 11.3s
Alternatives: 22
Speedup: 1.0×

Specification

?
\[\begin{array}{l} \\ e^{\left(x + y \cdot \log y\right) - z} \end{array} \]
(FPCore (x y z) :precision binary64 (exp (- (+ x (* y (log y))) z)))
double code(double x, double y, double z) {
	return exp(((x + (y * log(y))) - z));
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = exp(((x + (y * log(y))) - z))
end function
public static double code(double x, double y, double z) {
	return Math.exp(((x + (y * Math.log(y))) - z));
}
def code(x, y, z):
	return math.exp(((x + (y * math.log(y))) - z))
function code(x, y, z)
	return exp(Float64(Float64(x + Float64(y * log(y))) - z))
end
function tmp = code(x, y, z)
	tmp = exp(((x + (y * log(y))) - z));
end
code[x_, y_, z_] := N[Exp[N[(N[(x + N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}

\\
e^{\left(x + y \cdot \log y\right) - z}
\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 22 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: 100.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ e^{\left(x + y \cdot \log y\right) - z} \end{array} \]
(FPCore (x y z) :precision binary64 (exp (- (+ x (* y (log y))) z)))
double code(double x, double y, double z) {
	return exp(((x + (y * log(y))) - z));
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = exp(((x + (y * log(y))) - z))
end function
public static double code(double x, double y, double z) {
	return Math.exp(((x + (y * Math.log(y))) - z));
}
def code(x, y, z):
	return math.exp(((x + (y * math.log(y))) - z))
function code(x, y, z)
	return exp(Float64(Float64(x + Float64(y * log(y))) - z))
end
function tmp = code(x, y, z)
	tmp = exp(((x + (y * log(y))) - z));
end
code[x_, y_, z_] := N[Exp[N[(N[(x + N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}

\\
e^{\left(x + y \cdot \log y\right) - z}
\end{array}

Alternative 1: 100.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ e^{\left(x + y \cdot \log y\right) - z} \end{array} \]
(FPCore (x y z) :precision binary64 (exp (- (+ x (* y (log y))) z)))
double code(double x, double y, double z) {
	return exp(((x + (y * log(y))) - z));
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = exp(((x + (y * log(y))) - z))
end function
public static double code(double x, double y, double z) {
	return Math.exp(((x + (y * Math.log(y))) - z));
}
def code(x, y, z):
	return math.exp(((x + (y * math.log(y))) - z))
function code(x, y, z)
	return exp(Float64(Float64(x + Float64(y * log(y))) - z))
end
function tmp = code(x, y, z)
	tmp = exp(((x + (y * log(y))) - z));
end
code[x_, y_, z_] := N[Exp[N[(N[(x + N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}

\\
e^{\left(x + y \cdot \log y\right) - z}
\end{array}
Derivation
  1. Initial program 100.0%

    \[e^{\left(x + y \cdot \log y\right) - z} \]
  2. Add Preprocessing
  3. Add Preprocessing

Alternative 2: 90.6% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := x + y \cdot \log y\\ \mathbf{if}\;t\_0 \leq -1 \cdot 10^{+55}:\\ \;\;\;\;e^{x}\\ \mathbf{elif}\;t\_0 \leq 0.0005:\\ \;\;\;\;e^{0 - z}\\ \mathbf{else}:\\ \;\;\;\;e^{\mathsf{fma}\left(y, \log y, x\right)}\\ \end{array} \end{array} \]
(FPCore (x y z)
 :precision binary64
 (let* ((t_0 (+ x (* y (log y)))))
   (if (<= t_0 -1e+55)
     (exp x)
     (if (<= t_0 0.0005) (exp (- 0.0 z)) (exp (fma y (log y) x))))))
double code(double x, double y, double z) {
	double t_0 = x + (y * log(y));
	double tmp;
	if (t_0 <= -1e+55) {
		tmp = exp(x);
	} else if (t_0 <= 0.0005) {
		tmp = exp((0.0 - z));
	} else {
		tmp = exp(fma(y, log(y), x));
	}
	return tmp;
}
function code(x, y, z)
	t_0 = Float64(x + Float64(y * log(y)))
	tmp = 0.0
	if (t_0 <= -1e+55)
		tmp = exp(x);
	elseif (t_0 <= 0.0005)
		tmp = exp(Float64(0.0 - z));
	else
		tmp = exp(fma(y, log(y), x));
	end
	return tmp
end
code[x_, y_, z_] := Block[{t$95$0 = N[(x + N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -1e+55], N[Exp[x], $MachinePrecision], If[LessEqual[t$95$0, 0.0005], N[Exp[N[(0.0 - z), $MachinePrecision]], $MachinePrecision], N[Exp[N[(y * N[Log[y], $MachinePrecision] + x), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := x + y \cdot \log y\\
\mathbf{if}\;t\_0 \leq -1 \cdot 10^{+55}:\\
\;\;\;\;e^{x}\\

\mathbf{elif}\;t\_0 \leq 0.0005:\\
\;\;\;\;e^{0 - z}\\

\mathbf{else}:\\
\;\;\;\;e^{\mathsf{fma}\left(y, \log y, x\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 x (*.f64 y (log.f64 y))) < -1.00000000000000001e55

    1. Initial program 100.0%

      \[e^{\left(x + y \cdot \log y\right) - z} \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf

      \[\leadsto e^{\color{blue}{x}} \]
    4. Step-by-step derivation
      1. Simplified97.5%

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

      if -1.00000000000000001e55 < (+.f64 x (*.f64 y (log.f64 y))) < 5.0000000000000001e-4

      1. Initial program 100.0%

        \[e^{\left(x + y \cdot \log y\right) - z} \]
      2. Add Preprocessing
      3. Taylor expanded in z around inf

        \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
      4. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
        2. neg-sub0N/A

          \[\leadsto e^{\color{blue}{0 - z}} \]
        3. --lowering--.f6499.0

          \[\leadsto e^{\color{blue}{0 - z}} \]
      5. Simplified99.0%

        \[\leadsto e^{\color{blue}{0 - z}} \]
      6. Step-by-step derivation
        1. sub0-negN/A

          \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
        2. neg-lowering-neg.f6499.0

          \[\leadsto e^{\color{blue}{-z}} \]
      7. Applied egg-rr99.0%

        \[\leadsto e^{\color{blue}{-z}} \]

      if 5.0000000000000001e-4 < (+.f64 x (*.f64 y (log.f64 y)))

      1. Initial program 99.9%

        \[e^{\left(x + y \cdot \log y\right) - z} \]
      2. Add Preprocessing
      3. Taylor expanded in z around 0

        \[\leadsto \color{blue}{e^{x + y \cdot \log y}} \]
      4. Step-by-step derivation
        1. exp-lowering-exp.f64N/A

          \[\leadsto \color{blue}{e^{x + y \cdot \log y}} \]
        2. +-commutativeN/A

          \[\leadsto e^{\color{blue}{y \cdot \log y + x}} \]
        3. accelerator-lowering-fma.f64N/A

          \[\leadsto e^{\color{blue}{\mathsf{fma}\left(y, \log y, x\right)}} \]
        4. log-lowering-log.f6490.9

          \[\leadsto e^{\mathsf{fma}\left(y, \color{blue}{\log y}, x\right)} \]
      5. Simplified90.9%

        \[\leadsto \color{blue}{e^{\mathsf{fma}\left(y, \log y, x\right)}} \]
    5. Recombined 3 regimes into one program.
    6. Final simplification94.3%

      \[\leadsto \begin{array}{l} \mathbf{if}\;x + y \cdot \log y \leq -1 \cdot 10^{+55}:\\ \;\;\;\;e^{x}\\ \mathbf{elif}\;x + y \cdot \log y \leq 0.0005:\\ \;\;\;\;e^{0 - z}\\ \mathbf{else}:\\ \;\;\;\;e^{\mathsf{fma}\left(y, \log y, x\right)}\\ \end{array} \]
    7. Add Preprocessing

    Alternative 3: 79.3% accurate, 0.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_0 := x + y \cdot \log y\\ \mathbf{if}\;t\_0 \leq -1 \cdot 10^{+55}:\\ \;\;\;\;e^{x}\\ \mathbf{elif}\;t\_0 \leq 10^{+50}:\\ \;\;\;\;e^{0 - z}\\ \mathbf{else}:\\ \;\;\;\;{y}^{y}\\ \end{array} \end{array} \]
    (FPCore (x y z)
     :precision binary64
     (let* ((t_0 (+ x (* y (log y)))))
       (if (<= t_0 -1e+55) (exp x) (if (<= t_0 1e+50) (exp (- 0.0 z)) (pow y y)))))
    double code(double x, double y, double z) {
    	double t_0 = x + (y * log(y));
    	double tmp;
    	if (t_0 <= -1e+55) {
    		tmp = exp(x);
    	} else if (t_0 <= 1e+50) {
    		tmp = exp((0.0 - z));
    	} else {
    		tmp = pow(y, y);
    	}
    	return tmp;
    }
    
    real(8) function code(x, y, z)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8) :: t_0
        real(8) :: tmp
        t_0 = x + (y * log(y))
        if (t_0 <= (-1d+55)) then
            tmp = exp(x)
        else if (t_0 <= 1d+50) then
            tmp = exp((0.0d0 - z))
        else
            tmp = y ** y
        end if
        code = tmp
    end function
    
    public static double code(double x, double y, double z) {
    	double t_0 = x + (y * Math.log(y));
    	double tmp;
    	if (t_0 <= -1e+55) {
    		tmp = Math.exp(x);
    	} else if (t_0 <= 1e+50) {
    		tmp = Math.exp((0.0 - z));
    	} else {
    		tmp = Math.pow(y, y);
    	}
    	return tmp;
    }
    
    def code(x, y, z):
    	t_0 = x + (y * math.log(y))
    	tmp = 0
    	if t_0 <= -1e+55:
    		tmp = math.exp(x)
    	elif t_0 <= 1e+50:
    		tmp = math.exp((0.0 - z))
    	else:
    		tmp = math.pow(y, y)
    	return tmp
    
    function code(x, y, z)
    	t_0 = Float64(x + Float64(y * log(y)))
    	tmp = 0.0
    	if (t_0 <= -1e+55)
    		tmp = exp(x);
    	elseif (t_0 <= 1e+50)
    		tmp = exp(Float64(0.0 - z));
    	else
    		tmp = y ^ y;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z)
    	t_0 = x + (y * log(y));
    	tmp = 0.0;
    	if (t_0 <= -1e+55)
    		tmp = exp(x);
    	elseif (t_0 <= 1e+50)
    		tmp = exp((0.0 - z));
    	else
    		tmp = y ^ y;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_] := Block[{t$95$0 = N[(x + N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, -1e+55], N[Exp[x], $MachinePrecision], If[LessEqual[t$95$0, 1e+50], N[Exp[N[(0.0 - z), $MachinePrecision]], $MachinePrecision], N[Power[y, y], $MachinePrecision]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_0 := x + y \cdot \log y\\
    \mathbf{if}\;t\_0 \leq -1 \cdot 10^{+55}:\\
    \;\;\;\;e^{x}\\
    
    \mathbf{elif}\;t\_0 \leq 10^{+50}:\\
    \;\;\;\;e^{0 - z}\\
    
    \mathbf{else}:\\
    \;\;\;\;{y}^{y}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (+.f64 x (*.f64 y (log.f64 y))) < -1.00000000000000001e55

      1. Initial program 100.0%

        \[e^{\left(x + y \cdot \log y\right) - z} \]
      2. Add Preprocessing
      3. Taylor expanded in x around inf

        \[\leadsto e^{\color{blue}{x}} \]
      4. Step-by-step derivation
        1. Simplified97.5%

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

        if -1.00000000000000001e55 < (+.f64 x (*.f64 y (log.f64 y))) < 1.0000000000000001e50

        1. Initial program 99.9%

          \[e^{\left(x + y \cdot \log y\right) - z} \]
        2. Add Preprocessing
        3. Taylor expanded in z around inf

          \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
        4. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
          2. neg-sub0N/A

            \[\leadsto e^{\color{blue}{0 - z}} \]
          3. --lowering--.f6492.9

            \[\leadsto e^{\color{blue}{0 - z}} \]
        5. Simplified92.9%

          \[\leadsto e^{\color{blue}{0 - z}} \]
        6. Step-by-step derivation
          1. sub0-negN/A

            \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
          2. neg-lowering-neg.f6492.9

            \[\leadsto e^{\color{blue}{-z}} \]
        7. Applied egg-rr92.9%

          \[\leadsto e^{\color{blue}{-z}} \]

        if 1.0000000000000001e50 < (+.f64 x (*.f64 y (log.f64 y)))

        1. Initial program 100.0%

          \[e^{\left(x + y \cdot \log y\right) - z} \]
        2. Add Preprocessing
        3. Taylor expanded in z around 0

          \[\leadsto \color{blue}{e^{x + y \cdot \log y}} \]
        4. Step-by-step derivation
          1. exp-lowering-exp.f64N/A

            \[\leadsto \color{blue}{e^{x + y \cdot \log y}} \]
          2. +-commutativeN/A

            \[\leadsto e^{\color{blue}{y \cdot \log y + x}} \]
          3. accelerator-lowering-fma.f64N/A

            \[\leadsto e^{\color{blue}{\mathsf{fma}\left(y, \log y, x\right)}} \]
          4. log-lowering-log.f6493.7

            \[\leadsto e^{\mathsf{fma}\left(y, \color{blue}{\log y}, x\right)} \]
        5. Simplified93.7%

          \[\leadsto \color{blue}{e^{\mathsf{fma}\left(y, \log y, x\right)}} \]
        6. Taylor expanded in x around 0

          \[\leadsto \color{blue}{{y}^{y}} \]
        7. Step-by-step derivation
          1. pow-lowering-pow.f6476.7

            \[\leadsto \color{blue}{{y}^{y}} \]
        8. Simplified76.7%

          \[\leadsto \color{blue}{{y}^{y}} \]
      5. Recombined 3 regimes into one program.
      6. Final simplification85.7%

        \[\leadsto \begin{array}{l} \mathbf{if}\;x + y \cdot \log y \leq -1 \cdot 10^{+55}:\\ \;\;\;\;e^{x}\\ \mathbf{elif}\;x + y \cdot \log y \leq 10^{+50}:\\ \;\;\;\;e^{0 - z}\\ \mathbf{else}:\\ \;\;\;\;{y}^{y}\\ \end{array} \]
      7. Add Preprocessing

      Alternative 4: 94.8% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \cdot \log y \leq 200:\\ \;\;\;\;{y}^{y} \cdot e^{x - z}\\ \mathbf{else}:\\ \;\;\;\;e^{\mathsf{fma}\left(y, \log y, x\right)}\\ \end{array} \end{array} \]
      (FPCore (x y z)
       :precision binary64
       (if (<= (* y (log y)) 200.0)
         (* (pow y y) (exp (- x z)))
         (exp (fma y (log y) x))))
      double code(double x, double y, double z) {
      	double tmp;
      	if ((y * log(y)) <= 200.0) {
      		tmp = pow(y, y) * exp((x - z));
      	} else {
      		tmp = exp(fma(y, log(y), x));
      	}
      	return tmp;
      }
      
      function code(x, y, z)
      	tmp = 0.0
      	if (Float64(y * log(y)) <= 200.0)
      		tmp = Float64((y ^ y) * exp(Float64(x - z)));
      	else
      		tmp = exp(fma(y, log(y), x));
      	end
      	return tmp
      end
      
      code[x_, y_, z_] := If[LessEqual[N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision], 200.0], N[(N[Power[y, y], $MachinePrecision] * N[Exp[N[(x - z), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[Exp[N[(y * N[Log[y], $MachinePrecision] + x), $MachinePrecision]], $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;y \cdot \log y \leq 200:\\
      \;\;\;\;{y}^{y} \cdot e^{x - z}\\
      
      \mathbf{else}:\\
      \;\;\;\;e^{\mathsf{fma}\left(y, \log y, x\right)}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if (*.f64 y (log.f64 y)) < 200

        1. Initial program 99.9%

          \[e^{\left(x + y \cdot \log y\right) - z} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto e^{\color{blue}{\left(y \cdot \log y + x\right)} - z} \]
          2. associate--l+N/A

            \[\leadsto e^{\color{blue}{y \cdot \log y + \left(x - z\right)}} \]
          3. exp-sumN/A

            \[\leadsto \color{blue}{e^{y \cdot \log y} \cdot e^{x - z}} \]
          4. *-lowering-*.f64N/A

            \[\leadsto \color{blue}{e^{y \cdot \log y} \cdot e^{x - z}} \]
          5. *-commutativeN/A

            \[\leadsto e^{\color{blue}{\log y \cdot y}} \cdot e^{x - z} \]
          6. exp-to-powN/A

            \[\leadsto \color{blue}{{y}^{y}} \cdot e^{x - z} \]
          7. pow-lowering-pow.f64N/A

            \[\leadsto \color{blue}{{y}^{y}} \cdot e^{x - z} \]
          8. exp-lowering-exp.f64N/A

            \[\leadsto {y}^{y} \cdot \color{blue}{e^{x - z}} \]
          9. --lowering--.f64100.0

            \[\leadsto {y}^{y} \cdot e^{\color{blue}{x - z}} \]
        4. Applied egg-rr100.0%

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

        if 200 < (*.f64 y (log.f64 y))

        1. Initial program 100.0%

          \[e^{\left(x + y \cdot \log y\right) - z} \]
        2. Add Preprocessing
        3. Taylor expanded in z around 0

          \[\leadsto \color{blue}{e^{x + y \cdot \log y}} \]
        4. Step-by-step derivation
          1. exp-lowering-exp.f64N/A

            \[\leadsto \color{blue}{e^{x + y \cdot \log y}} \]
          2. +-commutativeN/A

            \[\leadsto e^{\color{blue}{y \cdot \log y + x}} \]
          3. accelerator-lowering-fma.f64N/A

            \[\leadsto e^{\color{blue}{\mathsf{fma}\left(y, \log y, x\right)}} \]
          4. log-lowering-log.f6492.4

            \[\leadsto e^{\mathsf{fma}\left(y, \color{blue}{\log y}, x\right)} \]
        5. Simplified92.4%

          \[\leadsto \color{blue}{e^{\mathsf{fma}\left(y, \log y, x\right)}} \]
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 5: 30.8% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_0 := \left(x + y \cdot \log y\right) - z\\ t_1 := \mathsf{fma}\left(0.5, z \cdot z, 0\right)\\ \mathbf{if}\;t\_0 \leq -1 \cdot 10^{+55}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+120}:\\ \;\;\;\;1 - z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z)
       :precision binary64
       (let* ((t_0 (- (+ x (* y (log y))) z)) (t_1 (fma 0.5 (* z z) 0.0)))
         (if (<= t_0 -1e+55) t_1 (if (<= t_0 5e+120) (- 1.0 z) t_1))))
      double code(double x, double y, double z) {
      	double t_0 = (x + (y * log(y))) - z;
      	double t_1 = fma(0.5, (z * z), 0.0);
      	double tmp;
      	if (t_0 <= -1e+55) {
      		tmp = t_1;
      	} else if (t_0 <= 5e+120) {
      		tmp = 1.0 - z;
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z)
      	t_0 = Float64(Float64(x + Float64(y * log(y))) - z)
      	t_1 = fma(0.5, Float64(z * z), 0.0)
      	tmp = 0.0
      	if (t_0 <= -1e+55)
      		tmp = t_1;
      	elseif (t_0 <= 5e+120)
      		tmp = Float64(1.0 - z);
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]}, Block[{t$95$1 = N[(0.5 * N[(z * z), $MachinePrecision] + 0.0), $MachinePrecision]}, If[LessEqual[t$95$0, -1e+55], t$95$1, If[LessEqual[t$95$0, 5e+120], N[(1.0 - z), $MachinePrecision], t$95$1]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_0 := \left(x + y \cdot \log y\right) - z\\
      t_1 := \mathsf{fma}\left(0.5, z \cdot z, 0\right)\\
      \mathbf{if}\;t\_0 \leq -1 \cdot 10^{+55}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;t\_0 \leq 5 \cdot 10^{+120}:\\
      \;\;\;\;1 - z\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if (-.f64 (+.f64 x (*.f64 y (log.f64 y))) z) < -1.00000000000000001e55 or 5.00000000000000019e120 < (-.f64 (+.f64 x (*.f64 y (log.f64 y))) z)

        1. Initial program 100.0%

          \[e^{\left(x + y \cdot \log y\right) - z} \]
        2. Add Preprocessing
        3. Taylor expanded in z around inf

          \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
        4. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
          2. neg-sub0N/A

            \[\leadsto e^{\color{blue}{0 - z}} \]
          3. --lowering--.f6445.4

            \[\leadsto e^{\color{blue}{0 - z}} \]
        5. Simplified45.4%

          \[\leadsto e^{\color{blue}{0 - z}} \]
        6. Taylor expanded in z around 0

          \[\leadsto \color{blue}{1 + z \cdot \left(\frac{1}{2} \cdot z - 1\right)} \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{z \cdot \left(\frac{1}{2} \cdot z - 1\right) + 1} \]
          2. accelerator-lowering-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} \cdot z - 1, 1\right)} \]
          3. sub-negN/A

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
          4. metadata-evalN/A

            \[\leadsto \mathsf{fma}\left(z, \frac{1}{2} \cdot z + \color{blue}{-1}, 1\right) \]
          5. accelerator-lowering-fma.f6421.2

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(0.5, z, -1\right)}, 1\right) \]
        8. Simplified21.2%

          \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)} \]
        9. Taylor expanded in z around inf

          \[\leadsto \color{blue}{\frac{1}{2} \cdot {z}^{2}} \]
        10. Step-by-step derivation
          1. +-rgt-identityN/A

            \[\leadsto \color{blue}{\frac{1}{2} \cdot {z}^{2} + 0} \]
          2. accelerator-lowering-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{1}{2}, {z}^{2}, 0\right)} \]
          3. unpow2N/A

            \[\leadsto \mathsf{fma}\left(\frac{1}{2}, \color{blue}{z \cdot z}, 0\right) \]
          4. *-lowering-*.f6427.0

            \[\leadsto \mathsf{fma}\left(0.5, \color{blue}{z \cdot z}, 0\right) \]
        11. Simplified27.0%

          \[\leadsto \color{blue}{\mathsf{fma}\left(0.5, z \cdot z, 0\right)} \]

        if -1.00000000000000001e55 < (-.f64 (+.f64 x (*.f64 y (log.f64 y))) z) < 5.00000000000000019e120

        1. Initial program 99.9%

          \[e^{\left(x + y \cdot \log y\right) - z} \]
        2. Add Preprocessing
        3. Taylor expanded in z around inf

          \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
        4. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
          2. neg-sub0N/A

            \[\leadsto e^{\color{blue}{0 - z}} \]
          3. --lowering--.f6470.5

            \[\leadsto e^{\color{blue}{0 - z}} \]
        5. Simplified70.5%

          \[\leadsto e^{\color{blue}{0 - z}} \]
        6. Taylor expanded in z around 0

          \[\leadsto \color{blue}{1 + -1 \cdot z} \]
        7. Step-by-step derivation
          1. neg-mul-1N/A

            \[\leadsto 1 + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)} \]
          2. unsub-negN/A

            \[\leadsto \color{blue}{1 - z} \]
          3. --lowering--.f6447.1

            \[\leadsto \color{blue}{1 - z} \]
        8. Simplified47.1%

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

      Alternative 6: 31.5% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;e^{\left(x + y \cdot \log y\right) - z} \leq 10^{-300}:\\ \;\;\;\;\mathsf{fma}\left(0.5, z \cdot z, 0\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, z \cdot 0.5, 1\right)\\ \end{array} \end{array} \]
      (FPCore (x y z)
       :precision binary64
       (if (<= (exp (- (+ x (* y (log y))) z)) 1e-300)
         (fma 0.5 (* z z) 0.0)
         (fma z (* z 0.5) 1.0)))
      double code(double x, double y, double z) {
      	double tmp;
      	if (exp(((x + (y * log(y))) - z)) <= 1e-300) {
      		tmp = fma(0.5, (z * z), 0.0);
      	} else {
      		tmp = fma(z, (z * 0.5), 1.0);
      	}
      	return tmp;
      }
      
      function code(x, y, z)
      	tmp = 0.0
      	if (exp(Float64(Float64(x + Float64(y * log(y))) - z)) <= 1e-300)
      		tmp = fma(0.5, Float64(z * z), 0.0);
      	else
      		tmp = fma(z, Float64(z * 0.5), 1.0);
      	end
      	return tmp
      end
      
      code[x_, y_, z_] := If[LessEqual[N[Exp[N[(N[(x + N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]], $MachinePrecision], 1e-300], N[(0.5 * N[(z * z), $MachinePrecision] + 0.0), $MachinePrecision], N[(z * N[(z * 0.5), $MachinePrecision] + 1.0), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;e^{\left(x + y \cdot \log y\right) - z} \leq 10^{-300}:\\
      \;\;\;\;\mathsf{fma}\left(0.5, z \cdot z, 0\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(z, z \cdot 0.5, 1\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if (exp.f64 (-.f64 (+.f64 x (*.f64 y (log.f64 y))) z)) < 1.00000000000000003e-300

        1. Initial program 100.0%

          \[e^{\left(x + y \cdot \log y\right) - z} \]
        2. Add Preprocessing
        3. Taylor expanded in z around inf

          \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
        4. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
          2. neg-sub0N/A

            \[\leadsto e^{\color{blue}{0 - z}} \]
          3. --lowering--.f6457.9

            \[\leadsto e^{\color{blue}{0 - z}} \]
        5. Simplified57.9%

          \[\leadsto e^{\color{blue}{0 - z}} \]
        6. Taylor expanded in z around 0

          \[\leadsto \color{blue}{1 + z \cdot \left(\frac{1}{2} \cdot z - 1\right)} \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{z \cdot \left(\frac{1}{2} \cdot z - 1\right) + 1} \]
          2. accelerator-lowering-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} \cdot z - 1, 1\right)} \]
          3. sub-negN/A

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
          4. metadata-evalN/A

            \[\leadsto \mathsf{fma}\left(z, \frac{1}{2} \cdot z + \color{blue}{-1}, 1\right) \]
          5. accelerator-lowering-fma.f642.3

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(0.5, z, -1\right)}, 1\right) \]
        8. Simplified2.3%

          \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)} \]
        9. Taylor expanded in z around inf

          \[\leadsto \color{blue}{\frac{1}{2} \cdot {z}^{2}} \]
        10. Step-by-step derivation
          1. +-rgt-identityN/A

            \[\leadsto \color{blue}{\frac{1}{2} \cdot {z}^{2} + 0} \]
          2. accelerator-lowering-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{1}{2}, {z}^{2}, 0\right)} \]
          3. unpow2N/A

            \[\leadsto \mathsf{fma}\left(\frac{1}{2}, \color{blue}{z \cdot z}, 0\right) \]
          4. *-lowering-*.f6418.4

            \[\leadsto \mathsf{fma}\left(0.5, \color{blue}{z \cdot z}, 0\right) \]
        11. Simplified18.4%

          \[\leadsto \color{blue}{\mathsf{fma}\left(0.5, z \cdot z, 0\right)} \]

        if 1.00000000000000003e-300 < (exp.f64 (-.f64 (+.f64 x (*.f64 y (log.f64 y))) z))

        1. Initial program 99.9%

          \[e^{\left(x + y \cdot \log y\right) - z} \]
        2. Add Preprocessing
        3. Taylor expanded in z around inf

          \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
        4. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
          2. neg-sub0N/A

            \[\leadsto e^{\color{blue}{0 - z}} \]
          3. --lowering--.f6451.3

            \[\leadsto e^{\color{blue}{0 - z}} \]
        5. Simplified51.3%

          \[\leadsto e^{\color{blue}{0 - z}} \]
        6. Taylor expanded in z around 0

          \[\leadsto \color{blue}{1 + z \cdot \left(\frac{1}{2} \cdot z - 1\right)} \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{z \cdot \left(\frac{1}{2} \cdot z - 1\right) + 1} \]
          2. accelerator-lowering-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} \cdot z - 1, 1\right)} \]
          3. sub-negN/A

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
          4. metadata-evalN/A

            \[\leadsto \mathsf{fma}\left(z, \frac{1}{2} \cdot z + \color{blue}{-1}, 1\right) \]
          5. accelerator-lowering-fma.f6438.8

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(0.5, z, -1\right)}, 1\right) \]
        8. Simplified38.8%

          \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)} \]
        9. Taylor expanded in z around inf

          \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z}, 1\right) \]
        10. Step-by-step derivation
          1. *-lowering-*.f6438.5

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{0.5 \cdot z}, 1\right) \]
        11. Simplified38.5%

          \[\leadsto \mathsf{fma}\left(z, \color{blue}{0.5 \cdot z}, 1\right) \]
      3. Recombined 2 regimes into one program.
      4. Final simplification33.2%

        \[\leadsto \begin{array}{l} \mathbf{if}\;e^{\left(x + y \cdot \log y\right) - z} \leq 10^{-300}:\\ \;\;\;\;\mathsf{fma}\left(0.5, z \cdot z, 0\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, z \cdot 0.5, 1\right)\\ \end{array} \]
      5. Add Preprocessing

      Alternative 7: 26.9% accurate, 1.6× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\left(x + y \cdot \log y\right) - z \leq 2 \cdot 10^{+117}:\\ \;\;\;\;1 - z\\ \mathbf{else}:\\ \;\;\;\;z \cdot \mathsf{fma}\left(0.5, z, -1\right)\\ \end{array} \end{array} \]
      (FPCore (x y z)
       :precision binary64
       (if (<= (- (+ x (* y (log y))) z) 2e+117) (- 1.0 z) (* z (fma 0.5 z -1.0))))
      double code(double x, double y, double z) {
      	double tmp;
      	if (((x + (y * log(y))) - z) <= 2e+117) {
      		tmp = 1.0 - z;
      	} else {
      		tmp = z * fma(0.5, z, -1.0);
      	}
      	return tmp;
      }
      
      function code(x, y, z)
      	tmp = 0.0
      	if (Float64(Float64(x + Float64(y * log(y))) - z) <= 2e+117)
      		tmp = Float64(1.0 - z);
      	else
      		tmp = Float64(z * fma(0.5, z, -1.0));
      	end
      	return tmp
      end
      
      code[x_, y_, z_] := If[LessEqual[N[(N[(x + N[(y * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision], 2e+117], N[(1.0 - z), $MachinePrecision], N[(z * N[(0.5 * z + -1.0), $MachinePrecision]), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;\left(x + y \cdot \log y\right) - z \leq 2 \cdot 10^{+117}:\\
      \;\;\;\;1 - z\\
      
      \mathbf{else}:\\
      \;\;\;\;z \cdot \mathsf{fma}\left(0.5, z, -1\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if (-.f64 (+.f64 x (*.f64 y (log.f64 y))) z) < 2.0000000000000001e117

        1. Initial program 99.9%

          \[e^{\left(x + y \cdot \log y\right) - z} \]
        2. Add Preprocessing
        3. Taylor expanded in z around inf

          \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
        4. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
          2. neg-sub0N/A

            \[\leadsto e^{\color{blue}{0 - z}} \]
          3. --lowering--.f6464.1

            \[\leadsto e^{\color{blue}{0 - z}} \]
        5. Simplified64.1%

          \[\leadsto e^{\color{blue}{0 - z}} \]
        6. Taylor expanded in z around 0

          \[\leadsto \color{blue}{1 + -1 \cdot z} \]
        7. Step-by-step derivation
          1. neg-mul-1N/A

            \[\leadsto 1 + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)} \]
          2. unsub-negN/A

            \[\leadsto \color{blue}{1 - z} \]
          3. --lowering--.f6427.3

            \[\leadsto \color{blue}{1 - z} \]
        8. Simplified27.3%

          \[\leadsto \color{blue}{1 - z} \]

        if 2.0000000000000001e117 < (-.f64 (+.f64 x (*.f64 y (log.f64 y))) z)

        1. Initial program 100.0%

          \[e^{\left(x + y \cdot \log y\right) - z} \]
        2. Add Preprocessing
        3. Taylor expanded in z around inf

          \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
        4. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
          2. neg-sub0N/A

            \[\leadsto e^{\color{blue}{0 - z}} \]
          3. --lowering--.f6439.6

            \[\leadsto e^{\color{blue}{0 - z}} \]
        5. Simplified39.6%

          \[\leadsto e^{\color{blue}{0 - z}} \]
        6. Taylor expanded in z around 0

          \[\leadsto \color{blue}{1 + z \cdot \left(\frac{1}{2} \cdot z - 1\right)} \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{z \cdot \left(\frac{1}{2} \cdot z - 1\right) + 1} \]
          2. accelerator-lowering-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} \cdot z - 1, 1\right)} \]
          3. sub-negN/A

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
          4. metadata-evalN/A

            \[\leadsto \mathsf{fma}\left(z, \frac{1}{2} \cdot z + \color{blue}{-1}, 1\right) \]
          5. accelerator-lowering-fma.f6431.4

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(0.5, z, -1\right)}, 1\right) \]
        8. Simplified31.4%

          \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)} \]
        9. Taylor expanded in z around inf

          \[\leadsto \color{blue}{{z}^{2} \cdot \left(\frac{1}{2} - \frac{1}{z}\right)} \]
        10. Simplified30.7%

          \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(0.5, z, -1\right)} \]
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 8: 70.2% accurate, 1.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.02 \cdot 10^{+86}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right), 4, -1\right), 1\right)\\ \mathbf{elif}\;z \leq 4.45 \cdot 10^{+102}:\\ \;\;\;\;e^{x}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \end{array} \]
      (FPCore (x y z)
       :precision binary64
       (if (<= z -1.02e+86)
         (fma
          z
          (fma (* z (fma (* z (* z z)) -0.004629629629629629 0.125)) 4.0 -1.0)
          1.0)
         (if (<= z 4.45e+102)
           (exp x)
           (/ 1.0 (fma z (fma z (fma z 0.16666666666666666 0.5) 1.0) 1.0)))))
      double code(double x, double y, double z) {
      	double tmp;
      	if (z <= -1.02e+86) {
      		tmp = fma(z, fma((z * fma((z * (z * z)), -0.004629629629629629, 0.125)), 4.0, -1.0), 1.0);
      	} else if (z <= 4.45e+102) {
      		tmp = exp(x);
      	} else {
      		tmp = 1.0 / fma(z, fma(z, fma(z, 0.16666666666666666, 0.5), 1.0), 1.0);
      	}
      	return tmp;
      }
      
      function code(x, y, z)
      	tmp = 0.0
      	if (z <= -1.02e+86)
      		tmp = fma(z, fma(Float64(z * fma(Float64(z * Float64(z * z)), -0.004629629629629629, 0.125)), 4.0, -1.0), 1.0);
      	elseif (z <= 4.45e+102)
      		tmp = exp(x);
      	else
      		tmp = Float64(1.0 / fma(z, fma(z, fma(z, 0.16666666666666666, 0.5), 1.0), 1.0));
      	end
      	return tmp
      end
      
      code[x_, y_, z_] := If[LessEqual[z, -1.02e+86], N[(z * N[(N[(z * N[(N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision] * -0.004629629629629629 + 0.125), $MachinePrecision]), $MachinePrecision] * 4.0 + -1.0), $MachinePrecision] + 1.0), $MachinePrecision], If[LessEqual[z, 4.45e+102], N[Exp[x], $MachinePrecision], N[(1.0 / N[(z * N[(z * N[(z * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -1.02 \cdot 10^{+86}:\\
      \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right), 4, -1\right), 1\right)\\
      
      \mathbf{elif}\;z \leq 4.45 \cdot 10^{+102}:\\
      \;\;\;\;e^{x}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -1.01999999999999996e86

        1. Initial program 100.0%

          \[e^{\left(x + y \cdot \log y\right) - z} \]
        2. Add Preprocessing
        3. Taylor expanded in z around inf

          \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
        4. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
          2. neg-sub0N/A

            \[\leadsto e^{\color{blue}{0 - z}} \]
          3. --lowering--.f6490.4

            \[\leadsto e^{\color{blue}{0 - z}} \]
        5. Simplified90.4%

          \[\leadsto e^{\color{blue}{0 - z}} \]
        6. Taylor expanded in z around 0

          \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
        7. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
          2. accelerator-lowering-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
          3. sub-negN/A

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
          4. metadata-evalN/A

            \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
          5. accelerator-lowering-fma.f64N/A

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
          6. +-commutativeN/A

            \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
          7. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
          8. accelerator-lowering-fma.f6488.2

            \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
        8. Simplified88.2%

          \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
        9. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) \cdot z} + -1, 1\right) \]
          2. flip3-+N/A

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{{\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} \cdot z + -1, 1\right) \]
          3. associate-*l/N/A

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} + -1, 1\right) \]
          4. div-invN/A

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\left(\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z\right) \cdot \frac{1}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} + -1, 1\right) \]
          5. accelerator-lowering-fma.f64N/A

            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z, \frac{1}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}, -1\right)}, 1\right) \]
        10. Applied egg-rr19.6%

          \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \frac{1}{0.25 + \mathsf{fma}\left(z, 0.08333333333333333, \left(z \cdot z\right) \cdot 0.027777777777777776\right)}, -1\right)}, 1\right) \]
        11. Taylor expanded in z around 0

          \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), \frac{-1}{216}, \frac{1}{8}\right) \cdot z, \color{blue}{4}, -1\right), 1\right) \]
        12. Step-by-step derivation
          1. Simplified90.4%

            \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \color{blue}{4}, -1\right), 1\right) \]

          if -1.01999999999999996e86 < z < 4.4499999999999999e102

          1. Initial program 99.9%

            \[e^{\left(x + y \cdot \log y\right) - z} \]
          2. Add Preprocessing
          3. Taylor expanded in x around inf

            \[\leadsto e^{\color{blue}{x}} \]
          4. Step-by-step derivation
            1. Simplified61.0%

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

            if 4.4499999999999999e102 < z

            1. Initial program 100.0%

              \[e^{\left(x + y \cdot \log y\right) - z} \]
            2. Add Preprocessing
            3. Taylor expanded in z around inf

              \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
            4. Step-by-step derivation
              1. mul-1-negN/A

                \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
              2. neg-sub0N/A

                \[\leadsto e^{\color{blue}{0 - z}} \]
              3. --lowering--.f6474.8

                \[\leadsto e^{\color{blue}{0 - z}} \]
            5. Simplified74.8%

              \[\leadsto e^{\color{blue}{0 - z}} \]
            6. Taylor expanded in z around 0

              \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
            7. Step-by-step derivation
              1. +-commutativeN/A

                \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
              2. accelerator-lowering-fma.f64N/A

                \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
              3. sub-negN/A

                \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
              4. metadata-evalN/A

                \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
              5. accelerator-lowering-fma.f64N/A

                \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
              6. +-commutativeN/A

                \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
              7. *-commutativeN/A

                \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
              8. accelerator-lowering-fma.f641.2

                \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
            8. Simplified1.2%

              \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
            9. Step-by-step derivation
              1. flip3-+N/A

                \[\leadsto \color{blue}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}} \]
              2. clear-numN/A

                \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
              3. /-lowering-/.f64N/A

                \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
              4. clear-numN/A

                \[\leadsto \frac{1}{\color{blue}{\frac{1}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}}}} \]
              5. flip3-+N/A

                \[\leadsto \frac{1}{\frac{1}{\color{blue}{z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right) + 1}}} \]
            10. Applied egg-rr1.2%

              \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)}}} \]
            11. Taylor expanded in z around 0

              \[\leadsto \frac{1}{\color{blue}{1 + z \cdot \left(1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right)\right)}} \]
            12. Step-by-step derivation
              1. +-commutativeN/A

                \[\leadsto \frac{1}{\color{blue}{z \cdot \left(1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right)\right) + 1}} \]
              2. accelerator-lowering-fma.f64N/A

                \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(z, 1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right), 1\right)}} \]
              3. +-commutativeN/A

                \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right) + 1}, 1\right)} \]
              4. accelerator-lowering-fma.f64N/A

                \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{1}{6} \cdot z, 1\right)}, 1\right)} \]
              5. +-commutativeN/A

                \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{1}{6} \cdot z + \frac{1}{2}}, 1\right), 1\right)} \]
              6. *-commutativeN/A

                \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right)} \]
              7. accelerator-lowering-fma.f6472.6

                \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.16666666666666666, 0.5\right)}, 1\right), 1\right)} \]
            13. Simplified72.6%

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.02 \cdot 10^{+86}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right), 4, -1\right), 1\right)\\ \mathbf{elif}\;z \leq 4.45 \cdot 10^{+102}:\\ \;\;\;\;e^{x}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \]
          7. Add Preprocessing

          Alternative 9: 72.2% accurate, 2.0× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 8.4 \cdot 10^{+47}:\\ \;\;\;\;e^{x}\\ \mathbf{else}:\\ \;\;\;\;{y}^{y}\\ \end{array} \end{array} \]
          (FPCore (x y z) :precision binary64 (if (<= y 8.4e+47) (exp x) (pow y y)))
          double code(double x, double y, double z) {
          	double tmp;
          	if (y <= 8.4e+47) {
          		tmp = exp(x);
          	} else {
          		tmp = pow(y, y);
          	}
          	return tmp;
          }
          
          real(8) function code(x, y, z)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              real(8), intent (in) :: z
              real(8) :: tmp
              if (y <= 8.4d+47) then
                  tmp = exp(x)
              else
                  tmp = y ** y
              end if
              code = tmp
          end function
          
          public static double code(double x, double y, double z) {
          	double tmp;
          	if (y <= 8.4e+47) {
          		tmp = Math.exp(x);
          	} else {
          		tmp = Math.pow(y, y);
          	}
          	return tmp;
          }
          
          def code(x, y, z):
          	tmp = 0
          	if y <= 8.4e+47:
          		tmp = math.exp(x)
          	else:
          		tmp = math.pow(y, y)
          	return tmp
          
          function code(x, y, z)
          	tmp = 0.0
          	if (y <= 8.4e+47)
          		tmp = exp(x);
          	else
          		tmp = y ^ y;
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z)
          	tmp = 0.0;
          	if (y <= 8.4e+47)
          		tmp = exp(x);
          	else
          		tmp = y ^ y;
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_] := If[LessEqual[y, 8.4e+47], N[Exp[x], $MachinePrecision], N[Power[y, y], $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;y \leq 8.4 \cdot 10^{+47}:\\
          \;\;\;\;e^{x}\\
          
          \mathbf{else}:\\
          \;\;\;\;{y}^{y}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if y < 8.4e47

            1. Initial program 99.9%

              \[e^{\left(x + y \cdot \log y\right) - z} \]
            2. Add Preprocessing
            3. Taylor expanded in x around inf

              \[\leadsto e^{\color{blue}{x}} \]
            4. Step-by-step derivation
              1. Simplified67.0%

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

              if 8.4e47 < y

              1. Initial program 100.0%

                \[e^{\left(x + y \cdot \log y\right) - z} \]
              2. Add Preprocessing
              3. Taylor expanded in z around 0

                \[\leadsto \color{blue}{e^{x + y \cdot \log y}} \]
              4. Step-by-step derivation
                1. exp-lowering-exp.f64N/A

                  \[\leadsto \color{blue}{e^{x + y \cdot \log y}} \]
                2. +-commutativeN/A

                  \[\leadsto e^{\color{blue}{y \cdot \log y + x}} \]
                3. accelerator-lowering-fma.f64N/A

                  \[\leadsto e^{\color{blue}{\mathsf{fma}\left(y, \log y, x\right)}} \]
                4. log-lowering-log.f6494.3

                  \[\leadsto e^{\mathsf{fma}\left(y, \color{blue}{\log y}, x\right)} \]
              5. Simplified94.3%

                \[\leadsto \color{blue}{e^{\mathsf{fma}\left(y, \log y, x\right)}} \]
              6. Taylor expanded in x around 0

                \[\leadsto \color{blue}{{y}^{y}} \]
              7. Step-by-step derivation
                1. pow-lowering-pow.f6486.7

                  \[\leadsto \color{blue}{{y}^{y}} \]
              8. Simplified86.7%

                \[\leadsto \color{blue}{{y}^{y}} \]
            5. Recombined 2 regimes into one program.
            6. Add Preprocessing

            Alternative 10: 55.9% accurate, 2.1× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_0 := \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ t_1 := z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right)\\ \mathbf{if}\;z \leq -4.4 \cdot 10^{+51}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(t\_1, \mathsf{fma}\left(z, -1.3333333333333333, 4\right), -1\right), 1\right)\\ \mathbf{elif}\;z \leq 1.06 \cdot 10^{-231}:\\ \;\;\;\;t\_0\\ \mathbf{elif}\;z \leq 3.9 \cdot 10^{-47}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(t\_1, \frac{36 + \frac{\frac{972}{z \cdot z} + -108}{z}}{z \cdot z}, -1\right), 1\right)\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{+80}:\\ \;\;\;\;t\_0\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \end{array} \]
            (FPCore (x y z)
             :precision binary64
             (let* ((t_0 (fma x (fma x (fma x 0.16666666666666666 0.5) 1.0) 1.0))
                    (t_1 (* z (fma (* z (* z z)) -0.004629629629629629 0.125))))
               (if (<= z -4.4e+51)
                 (fma z (fma t_1 (fma z -1.3333333333333333 4.0) -1.0) 1.0)
                 (if (<= z 1.06e-231)
                   t_0
                   (if (<= z 3.9e-47)
                     (fma
                      z
                      (fma
                       t_1
                       (/ (+ 36.0 (/ (+ (/ 972.0 (* z z)) -108.0) z)) (* z z))
                       -1.0)
                      1.0)
                     (if (<= z 1.6e+80)
                       t_0
                       (/
                        1.0
                        (fma z (fma z (fma z 0.16666666666666666 0.5) 1.0) 1.0))))))))
            double code(double x, double y, double z) {
            	double t_0 = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
            	double t_1 = z * fma((z * (z * z)), -0.004629629629629629, 0.125);
            	double tmp;
            	if (z <= -4.4e+51) {
            		tmp = fma(z, fma(t_1, fma(z, -1.3333333333333333, 4.0), -1.0), 1.0);
            	} else if (z <= 1.06e-231) {
            		tmp = t_0;
            	} else if (z <= 3.9e-47) {
            		tmp = fma(z, fma(t_1, ((36.0 + (((972.0 / (z * z)) + -108.0) / z)) / (z * z)), -1.0), 1.0);
            	} else if (z <= 1.6e+80) {
            		tmp = t_0;
            	} else {
            		tmp = 1.0 / fma(z, fma(z, fma(z, 0.16666666666666666, 0.5), 1.0), 1.0);
            	}
            	return tmp;
            }
            
            function code(x, y, z)
            	t_0 = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0)
            	t_1 = Float64(z * fma(Float64(z * Float64(z * z)), -0.004629629629629629, 0.125))
            	tmp = 0.0
            	if (z <= -4.4e+51)
            		tmp = fma(z, fma(t_1, fma(z, -1.3333333333333333, 4.0), -1.0), 1.0);
            	elseif (z <= 1.06e-231)
            		tmp = t_0;
            	elseif (z <= 3.9e-47)
            		tmp = fma(z, fma(t_1, Float64(Float64(36.0 + Float64(Float64(Float64(972.0 / Float64(z * z)) + -108.0) / z)) / Float64(z * z)), -1.0), 1.0);
            	elseif (z <= 1.6e+80)
            		tmp = t_0;
            	else
            		tmp = Float64(1.0 / fma(z, fma(z, fma(z, 0.16666666666666666, 0.5), 1.0), 1.0));
            	end
            	return tmp
            end
            
            code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(x * N[(x * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]}, Block[{t$95$1 = N[(z * N[(N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision] * -0.004629629629629629 + 0.125), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.4e+51], N[(z * N[(t$95$1 * N[(z * -1.3333333333333333 + 4.0), $MachinePrecision] + -1.0), $MachinePrecision] + 1.0), $MachinePrecision], If[LessEqual[z, 1.06e-231], t$95$0, If[LessEqual[z, 3.9e-47], N[(z * N[(t$95$1 * N[(N[(36.0 + N[(N[(N[(972.0 / N[(z * z), $MachinePrecision]), $MachinePrecision] + -108.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision] + 1.0), $MachinePrecision], If[LessEqual[z, 1.6e+80], t$95$0, N[(1.0 / N[(z * N[(z * N[(z * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_0 := \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\
            t_1 := z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right)\\
            \mathbf{if}\;z \leq -4.4 \cdot 10^{+51}:\\
            \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(t\_1, \mathsf{fma}\left(z, -1.3333333333333333, 4\right), -1\right), 1\right)\\
            
            \mathbf{elif}\;z \leq 1.06 \cdot 10^{-231}:\\
            \;\;\;\;t\_0\\
            
            \mathbf{elif}\;z \leq 3.9 \cdot 10^{-47}:\\
            \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(t\_1, \frac{36 + \frac{\frac{972}{z \cdot z} + -108}{z}}{z \cdot z}, -1\right), 1\right)\\
            
            \mathbf{elif}\;z \leq 1.6 \cdot 10^{+80}:\\
            \;\;\;\;t\_0\\
            
            \mathbf{else}:\\
            \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 4 regimes
            2. if z < -4.39999999999999984e51

              1. Initial program 100.0%

                \[e^{\left(x + y \cdot \log y\right) - z} \]
              2. Add Preprocessing
              3. Taylor expanded in z around inf

                \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
              4. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                2. neg-sub0N/A

                  \[\leadsto e^{\color{blue}{0 - z}} \]
                3. --lowering--.f6487.4

                  \[\leadsto e^{\color{blue}{0 - z}} \]
              5. Simplified87.4%

                \[\leadsto e^{\color{blue}{0 - z}} \]
              6. Taylor expanded in z around 0

                \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
              7. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                2. accelerator-lowering-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                3. sub-negN/A

                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                4. metadata-evalN/A

                  \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                5. accelerator-lowering-fma.f64N/A

                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                6. +-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                7. *-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                8. accelerator-lowering-fma.f6477.5

                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
              8. Simplified77.5%

                \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
              9. Step-by-step derivation
                1. *-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{\left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) \cdot z} + -1, 1\right) \]
                2. flip3-+N/A

                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{{\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} \cdot z + -1, 1\right) \]
                3. associate-*l/N/A

                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} + -1, 1\right) \]
                4. div-invN/A

                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{\left(\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z\right) \cdot \frac{1}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} + -1, 1\right) \]
                5. accelerator-lowering-fma.f64N/A

                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z, \frac{1}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}, -1\right)}, 1\right) \]
              10. Applied egg-rr19.6%

                \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \frac{1}{0.25 + \mathsf{fma}\left(z, 0.08333333333333333, \left(z \cdot z\right) \cdot 0.027777777777777776\right)}, -1\right)}, 1\right) \]
              11. Taylor expanded in z around 0

                \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), \frac{-1}{216}, \frac{1}{8}\right) \cdot z, \color{blue}{4 + \frac{-4}{3} \cdot z}, -1\right), 1\right) \]
              12. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), \frac{-1}{216}, \frac{1}{8}\right) \cdot z, \color{blue}{\frac{-4}{3} \cdot z + 4}, -1\right), 1\right) \]
                2. *-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), \frac{-1}{216}, \frac{1}{8}\right) \cdot z, \color{blue}{z \cdot \frac{-4}{3}} + 4, -1\right), 1\right) \]
                3. accelerator-lowering-fma.f6487.4

                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \color{blue}{\mathsf{fma}\left(z, -1.3333333333333333, 4\right)}, -1\right), 1\right) \]
              13. Simplified87.4%

                \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \color{blue}{\mathsf{fma}\left(z, -1.3333333333333333, 4\right)}, -1\right), 1\right) \]

              if -4.39999999999999984e51 < z < 1.0600000000000001e-231 or 3.89999999999999978e-47 < z < 1.59999999999999995e80

              1. Initial program 100.0%

                \[e^{\left(x + y \cdot \log y\right) - z} \]
              2. Add Preprocessing
              3. Taylor expanded in x around inf

                \[\leadsto e^{\color{blue}{x}} \]
              4. Step-by-step derivation
                1. Simplified63.1%

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

                  \[\leadsto \color{blue}{1 + x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right)} \]
                3. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto \color{blue}{x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right) + 1} \]
                  2. accelerator-lowering-fma.f64N/A

                    \[\leadsto \color{blue}{\mathsf{fma}\left(x, 1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right), 1\right)} \]
                  3. +-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right) + 1}, 1\right) \]
                  4. accelerator-lowering-fma.f64N/A

                    \[\leadsto \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, \frac{1}{2} + \frac{1}{6} \cdot x, 1\right)}, 1\right) \]
                  5. +-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{1}{6} \cdot x + \frac{1}{2}}, 1\right), 1\right) \]
                  6. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right) \]
                  7. accelerator-lowering-fma.f6443.2

                    \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, 0.16666666666666666, 0.5\right)}, 1\right), 1\right) \]
                4. Simplified43.2%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)} \]

                if 1.0600000000000001e-231 < z < 3.89999999999999978e-47

                1. Initial program 99.8%

                  \[e^{\left(x + y \cdot \log y\right) - z} \]
                2. Add Preprocessing
                3. Taylor expanded in z around inf

                  \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                4. Step-by-step derivation
                  1. mul-1-negN/A

                    \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                  2. neg-sub0N/A

                    \[\leadsto e^{\color{blue}{0 - z}} \]
                  3. --lowering--.f6418.0

                    \[\leadsto e^{\color{blue}{0 - z}} \]
                5. Simplified18.0%

                  \[\leadsto e^{\color{blue}{0 - z}} \]
                6. Taylor expanded in z around 0

                  \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                7. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                  2. accelerator-lowering-fma.f64N/A

                    \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                  3. sub-negN/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                  4. metadata-evalN/A

                    \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                  5. accelerator-lowering-fma.f64N/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                  6. +-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                  7. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                  8. accelerator-lowering-fma.f6418.0

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                8. Simplified18.0%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                9. Step-by-step derivation
                  1. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) \cdot z} + -1, 1\right) \]
                  2. flip3-+N/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{{\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} \cdot z + -1, 1\right) \]
                  3. associate-*l/N/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} + -1, 1\right) \]
                  4. div-invN/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\left(\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z\right) \cdot \frac{1}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} + -1, 1\right) \]
                  5. accelerator-lowering-fma.f64N/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z, \frac{1}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}, -1\right)}, 1\right) \]
                10. Applied egg-rr18.0%

                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \frac{1}{0.25 + \mathsf{fma}\left(z, 0.08333333333333333, \left(z \cdot z\right) \cdot 0.027777777777777776\right)}, -1\right)}, 1\right) \]
                11. Taylor expanded in z around inf

                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), \frac{-1}{216}, \frac{1}{8}\right) \cdot z, \color{blue}{\frac{\left(36 + \frac{972}{{z}^{3}}\right) - 108 \cdot \frac{1}{z}}{{z}^{2}}}, -1\right), 1\right) \]
                12. Step-by-step derivation
                  1. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), \frac{-1}{216}, \frac{1}{8}\right) \cdot z, \color{blue}{\frac{\left(36 + \frac{972}{{z}^{3}}\right) - 108 \cdot \frac{1}{z}}{{z}^{2}}}, -1\right), 1\right) \]
                13. Simplified64.2%

                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \color{blue}{\frac{36 + \frac{\frac{972}{z \cdot z} + -108}{z}}{z \cdot z}}, -1\right), 1\right) \]

                if 1.59999999999999995e80 < z

                1. Initial program 100.0%

                  \[e^{\left(x + y \cdot \log y\right) - z} \]
                2. Add Preprocessing
                3. Taylor expanded in z around inf

                  \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                4. Step-by-step derivation
                  1. mul-1-negN/A

                    \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                  2. neg-sub0N/A

                    \[\leadsto e^{\color{blue}{0 - z}} \]
                  3. --lowering--.f6475.4

                    \[\leadsto e^{\color{blue}{0 - z}} \]
                5. Simplified75.4%

                  \[\leadsto e^{\color{blue}{0 - z}} \]
                6. Taylor expanded in z around 0

                  \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                7. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                  2. accelerator-lowering-fma.f64N/A

                    \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                  3. sub-negN/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                  4. metadata-evalN/A

                    \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                  5. accelerator-lowering-fma.f64N/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                  6. +-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                  7. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                  8. accelerator-lowering-fma.f641.2

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                8. Simplified1.2%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                9. Step-by-step derivation
                  1. flip3-+N/A

                    \[\leadsto \color{blue}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}} \]
                  2. clear-numN/A

                    \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
                  3. /-lowering-/.f64N/A

                    \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
                  4. clear-numN/A

                    \[\leadsto \frac{1}{\color{blue}{\frac{1}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}}}} \]
                  5. flip3-+N/A

                    \[\leadsto \frac{1}{\frac{1}{\color{blue}{z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right) + 1}}} \]
                10. Applied egg-rr1.2%

                  \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)}}} \]
                11. Taylor expanded in z around 0

                  \[\leadsto \frac{1}{\color{blue}{1 + z \cdot \left(1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right)\right)}} \]
                12. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto \frac{1}{\color{blue}{z \cdot \left(1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right)\right) + 1}} \]
                  2. accelerator-lowering-fma.f64N/A

                    \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(z, 1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right), 1\right)}} \]
                  3. +-commutativeN/A

                    \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right) + 1}, 1\right)} \]
                  4. accelerator-lowering-fma.f64N/A

                    \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{1}{6} \cdot z, 1\right)}, 1\right)} \]
                  5. +-commutativeN/A

                    \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{1}{6} \cdot z + \frac{1}{2}}, 1\right), 1\right)} \]
                  6. *-commutativeN/A

                    \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right)} \]
                  7. accelerator-lowering-fma.f6471.0

                    \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.16666666666666666, 0.5\right)}, 1\right), 1\right)} \]
                13. Simplified71.0%

                  \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}} \]
              5. Recombined 4 regimes into one program.
              6. Final simplification59.4%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.4 \cdot 10^{+51}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right), \mathsf{fma}\left(z, -1.3333333333333333, 4\right), -1\right), 1\right)\\ \mathbf{elif}\;z \leq 1.06 \cdot 10^{-231}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \mathbf{elif}\;z \leq 3.9 \cdot 10^{-47}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right), \frac{36 + \frac{\frac{972}{z \cdot z} + -108}{z}}{z \cdot z}, -1\right), 1\right)\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{+80}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \]
              7. Add Preprocessing

              Alternative 11: 54.4% accurate, 4.6× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.4 \cdot 10^{+51}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right), \mathsf{fma}\left(z, -1.3333333333333333, 4\right), -1\right), 1\right)\\ \mathbf{elif}\;z \leq 6.3 \cdot 10^{+81}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \end{array} \]
              (FPCore (x y z)
               :precision binary64
               (if (<= z -5.4e+51)
                 (fma
                  z
                  (fma
                   (* z (fma (* z (* z z)) -0.004629629629629629 0.125))
                   (fma z -1.3333333333333333 4.0)
                   -1.0)
                  1.0)
                 (if (<= z 6.3e+81)
                   (fma x (fma x (fma x 0.16666666666666666 0.5) 1.0) 1.0)
                   (/ 1.0 (fma z (fma z (fma z 0.16666666666666666 0.5) 1.0) 1.0)))))
              double code(double x, double y, double z) {
              	double tmp;
              	if (z <= -5.4e+51) {
              		tmp = fma(z, fma((z * fma((z * (z * z)), -0.004629629629629629, 0.125)), fma(z, -1.3333333333333333, 4.0), -1.0), 1.0);
              	} else if (z <= 6.3e+81) {
              		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
              	} else {
              		tmp = 1.0 / fma(z, fma(z, fma(z, 0.16666666666666666, 0.5), 1.0), 1.0);
              	}
              	return tmp;
              }
              
              function code(x, y, z)
              	tmp = 0.0
              	if (z <= -5.4e+51)
              		tmp = fma(z, fma(Float64(z * fma(Float64(z * Float64(z * z)), -0.004629629629629629, 0.125)), fma(z, -1.3333333333333333, 4.0), -1.0), 1.0);
              	elseif (z <= 6.3e+81)
              		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
              	else
              		tmp = Float64(1.0 / fma(z, fma(z, fma(z, 0.16666666666666666, 0.5), 1.0), 1.0));
              	end
              	return tmp
              end
              
              code[x_, y_, z_] := If[LessEqual[z, -5.4e+51], N[(z * N[(N[(z * N[(N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision] * -0.004629629629629629 + 0.125), $MachinePrecision]), $MachinePrecision] * N[(z * -1.3333333333333333 + 4.0), $MachinePrecision] + -1.0), $MachinePrecision] + 1.0), $MachinePrecision], If[LessEqual[z, 6.3e+81], N[(x * N[(x * N[(x * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision], N[(1.0 / N[(z * N[(z * N[(z * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;z \leq -5.4 \cdot 10^{+51}:\\
              \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right), \mathsf{fma}\left(z, -1.3333333333333333, 4\right), -1\right), 1\right)\\
              
              \mathbf{elif}\;z \leq 6.3 \cdot 10^{+81}:\\
              \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if z < -5.39999999999999983e51

                1. Initial program 100.0%

                  \[e^{\left(x + y \cdot \log y\right) - z} \]
                2. Add Preprocessing
                3. Taylor expanded in z around inf

                  \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                4. Step-by-step derivation
                  1. mul-1-negN/A

                    \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                  2. neg-sub0N/A

                    \[\leadsto e^{\color{blue}{0 - z}} \]
                  3. --lowering--.f6487.4

                    \[\leadsto e^{\color{blue}{0 - z}} \]
                5. Simplified87.4%

                  \[\leadsto e^{\color{blue}{0 - z}} \]
                6. Taylor expanded in z around 0

                  \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                7. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                  2. accelerator-lowering-fma.f64N/A

                    \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                  3. sub-negN/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                  4. metadata-evalN/A

                    \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                  5. accelerator-lowering-fma.f64N/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                  6. +-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                  7. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                  8. accelerator-lowering-fma.f6477.5

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                8. Simplified77.5%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                9. Step-by-step derivation
                  1. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) \cdot z} + -1, 1\right) \]
                  2. flip3-+N/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{{\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} \cdot z + -1, 1\right) \]
                  3. associate-*l/N/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} + -1, 1\right) \]
                  4. div-invN/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\left(\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z\right) \cdot \frac{1}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} + -1, 1\right) \]
                  5. accelerator-lowering-fma.f64N/A

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z, \frac{1}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}, -1\right)}, 1\right) \]
                10. Applied egg-rr19.6%

                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \frac{1}{0.25 + \mathsf{fma}\left(z, 0.08333333333333333, \left(z \cdot z\right) \cdot 0.027777777777777776\right)}, -1\right)}, 1\right) \]
                11. Taylor expanded in z around 0

                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), \frac{-1}{216}, \frac{1}{8}\right) \cdot z, \color{blue}{4 + \frac{-4}{3} \cdot z}, -1\right), 1\right) \]
                12. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), \frac{-1}{216}, \frac{1}{8}\right) \cdot z, \color{blue}{\frac{-4}{3} \cdot z + 4}, -1\right), 1\right) \]
                  2. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), \frac{-1}{216}, \frac{1}{8}\right) \cdot z, \color{blue}{z \cdot \frac{-4}{3}} + 4, -1\right), 1\right) \]
                  3. accelerator-lowering-fma.f6487.4

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \color{blue}{\mathsf{fma}\left(z, -1.3333333333333333, 4\right)}, -1\right), 1\right) \]
                13. Simplified87.4%

                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \color{blue}{\mathsf{fma}\left(z, -1.3333333333333333, 4\right)}, -1\right), 1\right) \]

                if -5.39999999999999983e51 < z < 6.3000000000000004e81

                1. Initial program 99.9%

                  \[e^{\left(x + y \cdot \log y\right) - z} \]
                2. Add Preprocessing
                3. Taylor expanded in x around inf

                  \[\leadsto e^{\color{blue}{x}} \]
                4. Step-by-step derivation
                  1. Simplified60.5%

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

                    \[\leadsto \color{blue}{1 + x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right)} \]
                  3. Step-by-step derivation
                    1. +-commutativeN/A

                      \[\leadsto \color{blue}{x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right) + 1} \]
                    2. accelerator-lowering-fma.f64N/A

                      \[\leadsto \color{blue}{\mathsf{fma}\left(x, 1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right), 1\right)} \]
                    3. +-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right) + 1}, 1\right) \]
                    4. accelerator-lowering-fma.f64N/A

                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, \frac{1}{2} + \frac{1}{6} \cdot x, 1\right)}, 1\right) \]
                    5. +-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{1}{6} \cdot x + \frac{1}{2}}, 1\right), 1\right) \]
                    6. *-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right) \]
                    7. accelerator-lowering-fma.f6440.9

                      \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, 0.16666666666666666, 0.5\right)}, 1\right), 1\right) \]
                  4. Simplified40.9%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)} \]

                  if 6.3000000000000004e81 < z

                  1. Initial program 100.0%

                    \[e^{\left(x + y \cdot \log y\right) - z} \]
                  2. Add Preprocessing
                  3. Taylor expanded in z around inf

                    \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                  4. Step-by-step derivation
                    1. mul-1-negN/A

                      \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                    2. neg-sub0N/A

                      \[\leadsto e^{\color{blue}{0 - z}} \]
                    3. --lowering--.f6475.4

                      \[\leadsto e^{\color{blue}{0 - z}} \]
                  5. Simplified75.4%

                    \[\leadsto e^{\color{blue}{0 - z}} \]
                  6. Taylor expanded in z around 0

                    \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                  7. Step-by-step derivation
                    1. +-commutativeN/A

                      \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                    2. accelerator-lowering-fma.f64N/A

                      \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                    3. sub-negN/A

                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                    4. metadata-evalN/A

                      \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                    5. accelerator-lowering-fma.f64N/A

                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                    6. +-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                    7. *-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                    8. accelerator-lowering-fma.f641.2

                      \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                  8. Simplified1.2%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                  9. Step-by-step derivation
                    1. flip3-+N/A

                      \[\leadsto \color{blue}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}} \]
                    2. clear-numN/A

                      \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
                    3. /-lowering-/.f64N/A

                      \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
                    4. clear-numN/A

                      \[\leadsto \frac{1}{\color{blue}{\frac{1}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}}}} \]
                    5. flip3-+N/A

                      \[\leadsto \frac{1}{\frac{1}{\color{blue}{z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right) + 1}}} \]
                  10. Applied egg-rr1.2%

                    \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)}}} \]
                  11. Taylor expanded in z around 0

                    \[\leadsto \frac{1}{\color{blue}{1 + z \cdot \left(1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right)\right)}} \]
                  12. Step-by-step derivation
                    1. +-commutativeN/A

                      \[\leadsto \frac{1}{\color{blue}{z \cdot \left(1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right)\right) + 1}} \]
                    2. accelerator-lowering-fma.f64N/A

                      \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(z, 1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right), 1\right)}} \]
                    3. +-commutativeN/A

                      \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right) + 1}, 1\right)} \]
                    4. accelerator-lowering-fma.f64N/A

                      \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{1}{6} \cdot z, 1\right)}, 1\right)} \]
                    5. +-commutativeN/A

                      \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{1}{6} \cdot z + \frac{1}{2}}, 1\right), 1\right)} \]
                    6. *-commutativeN/A

                      \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right)} \]
                    7. accelerator-lowering-fma.f6471.0

                      \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.16666666666666666, 0.5\right)}, 1\right), 1\right)} \]
                  13. Simplified71.0%

                    \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}} \]
                5. Recombined 3 regimes into one program.
                6. Final simplification54.1%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.4 \cdot 10^{+51}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right), \mathsf{fma}\left(z, -1.3333333333333333, 4\right), -1\right), 1\right)\\ \mathbf{elif}\;z \leq 6.3 \cdot 10^{+81}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \]
                7. Add Preprocessing

                Alternative 12: 53.9% accurate, 5.0× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2 \cdot 10^{+55}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right), 4, -1\right), 1\right)\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{+81}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \end{array} \]
                (FPCore (x y z)
                 :precision binary64
                 (if (<= z -2e+55)
                   (fma
                    z
                    (fma (* z (fma (* z (* z z)) -0.004629629629629629 0.125)) 4.0 -1.0)
                    1.0)
                   (if (<= z 6.2e+81)
                     (fma x (fma x (fma x 0.16666666666666666 0.5) 1.0) 1.0)
                     (/ 1.0 (fma z (fma z (fma z 0.16666666666666666 0.5) 1.0) 1.0)))))
                double code(double x, double y, double z) {
                	double tmp;
                	if (z <= -2e+55) {
                		tmp = fma(z, fma((z * fma((z * (z * z)), -0.004629629629629629, 0.125)), 4.0, -1.0), 1.0);
                	} else if (z <= 6.2e+81) {
                		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
                	} else {
                		tmp = 1.0 / fma(z, fma(z, fma(z, 0.16666666666666666, 0.5), 1.0), 1.0);
                	}
                	return tmp;
                }
                
                function code(x, y, z)
                	tmp = 0.0
                	if (z <= -2e+55)
                		tmp = fma(z, fma(Float64(z * fma(Float64(z * Float64(z * z)), -0.004629629629629629, 0.125)), 4.0, -1.0), 1.0);
                	elseif (z <= 6.2e+81)
                		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
                	else
                		tmp = Float64(1.0 / fma(z, fma(z, fma(z, 0.16666666666666666, 0.5), 1.0), 1.0));
                	end
                	return tmp
                end
                
                code[x_, y_, z_] := If[LessEqual[z, -2e+55], N[(z * N[(N[(z * N[(N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision] * -0.004629629629629629 + 0.125), $MachinePrecision]), $MachinePrecision] * 4.0 + -1.0), $MachinePrecision] + 1.0), $MachinePrecision], If[LessEqual[z, 6.2e+81], N[(x * N[(x * N[(x * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision], N[(1.0 / N[(z * N[(z * N[(z * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;z \leq -2 \cdot 10^{+55}:\\
                \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right), 4, -1\right), 1\right)\\
                
                \mathbf{elif}\;z \leq 6.2 \cdot 10^{+81}:\\
                \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if z < -2.00000000000000002e55

                  1. Initial program 100.0%

                    \[e^{\left(x + y \cdot \log y\right) - z} \]
                  2. Add Preprocessing
                  3. Taylor expanded in z around inf

                    \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                  4. Step-by-step derivation
                    1. mul-1-negN/A

                      \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                    2. neg-sub0N/A

                      \[\leadsto e^{\color{blue}{0 - z}} \]
                    3. --lowering--.f6487.4

                      \[\leadsto e^{\color{blue}{0 - z}} \]
                  5. Simplified87.4%

                    \[\leadsto e^{\color{blue}{0 - z}} \]
                  6. Taylor expanded in z around 0

                    \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                  7. Step-by-step derivation
                    1. +-commutativeN/A

                      \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                    2. accelerator-lowering-fma.f64N/A

                      \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                    3. sub-negN/A

                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                    4. metadata-evalN/A

                      \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                    5. accelerator-lowering-fma.f64N/A

                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                    6. +-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                    7. *-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                    8. accelerator-lowering-fma.f6477.5

                      \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                  8. Simplified77.5%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                  9. Step-by-step derivation
                    1. *-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{\left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) \cdot z} + -1, 1\right) \]
                    2. flip3-+N/A

                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{{\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} \cdot z + -1, 1\right) \]
                    3. associate-*l/N/A

                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} + -1, 1\right) \]
                    4. div-invN/A

                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{\left(\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z\right) \cdot \frac{1}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}} + -1, 1\right) \]
                    5. accelerator-lowering-fma.f64N/A

                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(\left({\left(z \cdot \frac{-1}{6}\right)}^{3} + {\frac{1}{2}}^{3}\right) \cdot z, \frac{1}{\left(z \cdot \frac{-1}{6}\right) \cdot \left(z \cdot \frac{-1}{6}\right) + \left(\frac{1}{2} \cdot \frac{1}{2} - \left(z \cdot \frac{-1}{6}\right) \cdot \frac{1}{2}\right)}, -1\right)}, 1\right) \]
                  10. Applied egg-rr19.6%

                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \frac{1}{0.25 + \mathsf{fma}\left(z, 0.08333333333333333, \left(z \cdot z\right) \cdot 0.027777777777777776\right)}, -1\right)}, 1\right) \]
                  11. Taylor expanded in z around 0

                    \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), \frac{-1}{216}, \frac{1}{8}\right) \cdot z, \color{blue}{4}, -1\right), 1\right) \]
                  12. Step-by-step derivation
                    1. Simplified83.6%

                      \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(\mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right) \cdot z, \color{blue}{4}, -1\right), 1\right) \]

                    if -2.00000000000000002e55 < z < 6.2e81

                    1. Initial program 99.9%

                      \[e^{\left(x + y \cdot \log y\right) - z} \]
                    2. Add Preprocessing
                    3. Taylor expanded in x around inf

                      \[\leadsto e^{\color{blue}{x}} \]
                    4. Step-by-step derivation
                      1. Simplified60.5%

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

                        \[\leadsto \color{blue}{1 + x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right)} \]
                      3. Step-by-step derivation
                        1. +-commutativeN/A

                          \[\leadsto \color{blue}{x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right) + 1} \]
                        2. accelerator-lowering-fma.f64N/A

                          \[\leadsto \color{blue}{\mathsf{fma}\left(x, 1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right), 1\right)} \]
                        3. +-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right) + 1}, 1\right) \]
                        4. accelerator-lowering-fma.f64N/A

                          \[\leadsto \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, \frac{1}{2} + \frac{1}{6} \cdot x, 1\right)}, 1\right) \]
                        5. +-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{1}{6} \cdot x + \frac{1}{2}}, 1\right), 1\right) \]
                        6. *-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right) \]
                        7. accelerator-lowering-fma.f6440.9

                          \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, 0.16666666666666666, 0.5\right)}, 1\right), 1\right) \]
                      4. Simplified40.9%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)} \]

                      if 6.2e81 < z

                      1. Initial program 100.0%

                        \[e^{\left(x + y \cdot \log y\right) - z} \]
                      2. Add Preprocessing
                      3. Taylor expanded in z around inf

                        \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                      4. Step-by-step derivation
                        1. mul-1-negN/A

                          \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                        2. neg-sub0N/A

                          \[\leadsto e^{\color{blue}{0 - z}} \]
                        3. --lowering--.f6475.4

                          \[\leadsto e^{\color{blue}{0 - z}} \]
                      5. Simplified75.4%

                        \[\leadsto e^{\color{blue}{0 - z}} \]
                      6. Taylor expanded in z around 0

                        \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                      7. Step-by-step derivation
                        1. +-commutativeN/A

                          \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                        2. accelerator-lowering-fma.f64N/A

                          \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                        3. sub-negN/A

                          \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                        4. metadata-evalN/A

                          \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                        5. accelerator-lowering-fma.f64N/A

                          \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                        6. +-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                        7. *-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                        8. accelerator-lowering-fma.f641.2

                          \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                      8. Simplified1.2%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                      9. Step-by-step derivation
                        1. flip3-+N/A

                          \[\leadsto \color{blue}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}} \]
                        2. clear-numN/A

                          \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
                        3. /-lowering-/.f64N/A

                          \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
                        4. clear-numN/A

                          \[\leadsto \frac{1}{\color{blue}{\frac{1}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}}}} \]
                        5. flip3-+N/A

                          \[\leadsto \frac{1}{\frac{1}{\color{blue}{z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right) + 1}}} \]
                      10. Applied egg-rr1.2%

                        \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)}}} \]
                      11. Taylor expanded in z around 0

                        \[\leadsto \frac{1}{\color{blue}{1 + z \cdot \left(1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right)\right)}} \]
                      12. Step-by-step derivation
                        1. +-commutativeN/A

                          \[\leadsto \frac{1}{\color{blue}{z \cdot \left(1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right)\right) + 1}} \]
                        2. accelerator-lowering-fma.f64N/A

                          \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(z, 1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right), 1\right)}} \]
                        3. +-commutativeN/A

                          \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right) + 1}, 1\right)} \]
                        4. accelerator-lowering-fma.f64N/A

                          \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{1}{6} \cdot z, 1\right)}, 1\right)} \]
                        5. +-commutativeN/A

                          \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{1}{6} \cdot z + \frac{1}{2}}, 1\right), 1\right)} \]
                        6. *-commutativeN/A

                          \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right)} \]
                        7. accelerator-lowering-fma.f6471.0

                          \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.16666666666666666, 0.5\right)}, 1\right), 1\right)} \]
                      13. Simplified71.0%

                        \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}} \]
                    5. Recombined 3 regimes into one program.
                    6. Final simplification53.4%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2 \cdot 10^{+55}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z \cdot \mathsf{fma}\left(z \cdot \left(z \cdot z\right), -0.004629629629629629, 0.125\right), 4, -1\right), 1\right)\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{+81}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \]
                    7. Add Preprocessing

                    Alternative 13: 51.5% accurate, 5.0× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.18 \cdot 10^{+95}:\\ \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{+81}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \end{array} \]
                    (FPCore (x y z)
                     :precision binary64
                     (if (<= z -1.18e+95)
                       (* (* z (* z z)) -0.16666666666666666)
                       (if (<= z 6.2e+81)
                         (fma x (fma x (fma x 0.16666666666666666 0.5) 1.0) 1.0)
                         (/ 1.0 (fma z (fma z (fma z 0.16666666666666666 0.5) 1.0) 1.0)))))
                    double code(double x, double y, double z) {
                    	double tmp;
                    	if (z <= -1.18e+95) {
                    		tmp = (z * (z * z)) * -0.16666666666666666;
                    	} else if (z <= 6.2e+81) {
                    		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
                    	} else {
                    		tmp = 1.0 / fma(z, fma(z, fma(z, 0.16666666666666666, 0.5), 1.0), 1.0);
                    	}
                    	return tmp;
                    }
                    
                    function code(x, y, z)
                    	tmp = 0.0
                    	if (z <= -1.18e+95)
                    		tmp = Float64(Float64(z * Float64(z * z)) * -0.16666666666666666);
                    	elseif (z <= 6.2e+81)
                    		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
                    	else
                    		tmp = Float64(1.0 / fma(z, fma(z, fma(z, 0.16666666666666666, 0.5), 1.0), 1.0));
                    	end
                    	return tmp
                    end
                    
                    code[x_, y_, z_] := If[LessEqual[z, -1.18e+95], N[(N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision] * -0.16666666666666666), $MachinePrecision], If[LessEqual[z, 6.2e+81], N[(x * N[(x * N[(x * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision], N[(1.0 / N[(z * N[(z * N[(z * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;z \leq -1.18 \cdot 10^{+95}:\\
                    \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\
                    
                    \mathbf{elif}\;z \leq 6.2 \cdot 10^{+81}:\\
                    \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if z < -1.17999999999999998e95

                      1. Initial program 100.0%

                        \[e^{\left(x + y \cdot \log y\right) - z} \]
                      2. Add Preprocessing
                      3. Taylor expanded in z around inf

                        \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                      4. Step-by-step derivation
                        1. mul-1-negN/A

                          \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                        2. neg-sub0N/A

                          \[\leadsto e^{\color{blue}{0 - z}} \]
                        3. --lowering--.f6490.4

                          \[\leadsto e^{\color{blue}{0 - z}} \]
                      5. Simplified90.4%

                        \[\leadsto e^{\color{blue}{0 - z}} \]
                      6. Taylor expanded in z around 0

                        \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                      7. Step-by-step derivation
                        1. +-commutativeN/A

                          \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                        2. accelerator-lowering-fma.f64N/A

                          \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                        3. sub-negN/A

                          \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                        4. metadata-evalN/A

                          \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                        5. accelerator-lowering-fma.f64N/A

                          \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                        6. +-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                        7. *-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                        8. accelerator-lowering-fma.f6488.2

                          \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                      8. Simplified88.2%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                      9. Taylor expanded in z around inf

                        \[\leadsto \color{blue}{\frac{-1}{6} \cdot {z}^{3}} \]
                      10. Step-by-step derivation
                        1. *-lowering-*.f64N/A

                          \[\leadsto \color{blue}{\frac{-1}{6} \cdot {z}^{3}} \]
                        2. cube-multN/A

                          \[\leadsto \frac{-1}{6} \cdot \color{blue}{\left(z \cdot \left(z \cdot z\right)\right)} \]
                        3. unpow2N/A

                          \[\leadsto \frac{-1}{6} \cdot \left(z \cdot \color{blue}{{z}^{2}}\right) \]
                        4. *-lowering-*.f64N/A

                          \[\leadsto \frac{-1}{6} \cdot \color{blue}{\left(z \cdot {z}^{2}\right)} \]
                        5. unpow2N/A

                          \[\leadsto \frac{-1}{6} \cdot \left(z \cdot \color{blue}{\left(z \cdot z\right)}\right) \]
                        6. *-lowering-*.f6488.2

                          \[\leadsto -0.16666666666666666 \cdot \left(z \cdot \color{blue}{\left(z \cdot z\right)}\right) \]
                      11. Simplified88.2%

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

                      if -1.17999999999999998e95 < z < 6.2e81

                      1. Initial program 99.9%

                        \[e^{\left(x + y \cdot \log y\right) - z} \]
                      2. Add Preprocessing
                      3. Taylor expanded in x around inf

                        \[\leadsto e^{\color{blue}{x}} \]
                      4. Step-by-step derivation
                        1. Simplified60.8%

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

                          \[\leadsto \color{blue}{1 + x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right)} \]
                        3. Step-by-step derivation
                          1. +-commutativeN/A

                            \[\leadsto \color{blue}{x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right) + 1} \]
                          2. accelerator-lowering-fma.f64N/A

                            \[\leadsto \color{blue}{\mathsf{fma}\left(x, 1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right), 1\right)} \]
                          3. +-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right) + 1}, 1\right) \]
                          4. accelerator-lowering-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, \frac{1}{2} + \frac{1}{6} \cdot x, 1\right)}, 1\right) \]
                          5. +-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{1}{6} \cdot x + \frac{1}{2}}, 1\right), 1\right) \]
                          6. *-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right) \]
                          7. accelerator-lowering-fma.f6440.1

                            \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, 0.16666666666666666, 0.5\right)}, 1\right), 1\right) \]
                        4. Simplified40.1%

                          \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)} \]

                        if 6.2e81 < z

                        1. Initial program 100.0%

                          \[e^{\left(x + y \cdot \log y\right) - z} \]
                        2. Add Preprocessing
                        3. Taylor expanded in z around inf

                          \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                        4. Step-by-step derivation
                          1. mul-1-negN/A

                            \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                          2. neg-sub0N/A

                            \[\leadsto e^{\color{blue}{0 - z}} \]
                          3. --lowering--.f6475.4

                            \[\leadsto e^{\color{blue}{0 - z}} \]
                        5. Simplified75.4%

                          \[\leadsto e^{\color{blue}{0 - z}} \]
                        6. Taylor expanded in z around 0

                          \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                        7. Step-by-step derivation
                          1. +-commutativeN/A

                            \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                          2. accelerator-lowering-fma.f64N/A

                            \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                          3. sub-negN/A

                            \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                          4. metadata-evalN/A

                            \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                          5. accelerator-lowering-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                          6. +-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                          7. *-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                          8. accelerator-lowering-fma.f641.2

                            \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                        8. Simplified1.2%

                          \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                        9. Step-by-step derivation
                          1. flip3-+N/A

                            \[\leadsto \color{blue}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}} \]
                          2. clear-numN/A

                            \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
                          3. /-lowering-/.f64N/A

                            \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
                          4. clear-numN/A

                            \[\leadsto \frac{1}{\color{blue}{\frac{1}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}}}} \]
                          5. flip3-+N/A

                            \[\leadsto \frac{1}{\frac{1}{\color{blue}{z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right) + 1}}} \]
                        10. Applied egg-rr1.2%

                          \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)}}} \]
                        11. Taylor expanded in z around 0

                          \[\leadsto \frac{1}{\color{blue}{1 + z \cdot \left(1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right)\right)}} \]
                        12. Step-by-step derivation
                          1. +-commutativeN/A

                            \[\leadsto \frac{1}{\color{blue}{z \cdot \left(1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right)\right) + 1}} \]
                          2. accelerator-lowering-fma.f64N/A

                            \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(z, 1 + z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right), 1\right)}} \]
                          3. +-commutativeN/A

                            \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot z\right) + 1}, 1\right)} \]
                          4. accelerator-lowering-fma.f64N/A

                            \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{1}{6} \cdot z, 1\right)}, 1\right)} \]
                          5. +-commutativeN/A

                            \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{1}{6} \cdot z + \frac{1}{2}}, 1\right), 1\right)} \]
                          6. *-commutativeN/A

                            \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right)} \]
                          7. accelerator-lowering-fma.f6471.0

                            \[\leadsto \frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.16666666666666666, 0.5\right)}, 1\right), 1\right)} \]
                        13. Simplified71.0%

                          \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}} \]
                      5. Recombined 3 regimes into one program.
                      6. Final simplification52.6%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.18 \cdot 10^{+95}:\\ \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{+81}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \]
                      7. Add Preprocessing

                      Alternative 14: 49.5% accurate, 5.9× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.3 \cdot 10^{+96}:\\ \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\ \mathbf{elif}\;z \leq 1.95 \cdot 10^{+142}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.5, 1\right), 1\right)}\\ \end{array} \end{array} \]
                      (FPCore (x y z)
                       :precision binary64
                       (if (<= z -2.3e+96)
                         (* (* z (* z z)) -0.16666666666666666)
                         (if (<= z 1.95e+142)
                           (fma x (fma x (fma x 0.16666666666666666 0.5) 1.0) 1.0)
                           (/ 1.0 (fma z (fma z 0.5 1.0) 1.0)))))
                      double code(double x, double y, double z) {
                      	double tmp;
                      	if (z <= -2.3e+96) {
                      		tmp = (z * (z * z)) * -0.16666666666666666;
                      	} else if (z <= 1.95e+142) {
                      		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
                      	} else {
                      		tmp = 1.0 / fma(z, fma(z, 0.5, 1.0), 1.0);
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z)
                      	tmp = 0.0
                      	if (z <= -2.3e+96)
                      		tmp = Float64(Float64(z * Float64(z * z)) * -0.16666666666666666);
                      	elseif (z <= 1.95e+142)
                      		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
                      	else
                      		tmp = Float64(1.0 / fma(z, fma(z, 0.5, 1.0), 1.0));
                      	end
                      	return tmp
                      end
                      
                      code[x_, y_, z_] := If[LessEqual[z, -2.3e+96], N[(N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision] * -0.16666666666666666), $MachinePrecision], If[LessEqual[z, 1.95e+142], N[(x * N[(x * N[(x * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision], N[(1.0 / N[(z * N[(z * 0.5 + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;z \leq -2.3 \cdot 10^{+96}:\\
                      \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\
                      
                      \mathbf{elif}\;z \leq 1.95 \cdot 10^{+142}:\\
                      \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.5, 1\right), 1\right)}\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if z < -2.30000000000000015e96

                        1. Initial program 100.0%

                          \[e^{\left(x + y \cdot \log y\right) - z} \]
                        2. Add Preprocessing
                        3. Taylor expanded in z around inf

                          \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                        4. Step-by-step derivation
                          1. mul-1-negN/A

                            \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                          2. neg-sub0N/A

                            \[\leadsto e^{\color{blue}{0 - z}} \]
                          3. --lowering--.f6490.4

                            \[\leadsto e^{\color{blue}{0 - z}} \]
                        5. Simplified90.4%

                          \[\leadsto e^{\color{blue}{0 - z}} \]
                        6. Taylor expanded in z around 0

                          \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                        7. Step-by-step derivation
                          1. +-commutativeN/A

                            \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                          2. accelerator-lowering-fma.f64N/A

                            \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                          3. sub-negN/A

                            \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                          4. metadata-evalN/A

                            \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                          5. accelerator-lowering-fma.f64N/A

                            \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                          6. +-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                          7. *-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                          8. accelerator-lowering-fma.f6488.2

                            \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                        8. Simplified88.2%

                          \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                        9. Taylor expanded in z around inf

                          \[\leadsto \color{blue}{\frac{-1}{6} \cdot {z}^{3}} \]
                        10. Step-by-step derivation
                          1. *-lowering-*.f64N/A

                            \[\leadsto \color{blue}{\frac{-1}{6} \cdot {z}^{3}} \]
                          2. cube-multN/A

                            \[\leadsto \frac{-1}{6} \cdot \color{blue}{\left(z \cdot \left(z \cdot z\right)\right)} \]
                          3. unpow2N/A

                            \[\leadsto \frac{-1}{6} \cdot \left(z \cdot \color{blue}{{z}^{2}}\right) \]
                          4. *-lowering-*.f64N/A

                            \[\leadsto \frac{-1}{6} \cdot \color{blue}{\left(z \cdot {z}^{2}\right)} \]
                          5. unpow2N/A

                            \[\leadsto \frac{-1}{6} \cdot \left(z \cdot \color{blue}{\left(z \cdot z\right)}\right) \]
                          6. *-lowering-*.f6488.2

                            \[\leadsto -0.16666666666666666 \cdot \left(z \cdot \color{blue}{\left(z \cdot z\right)}\right) \]
                        11. Simplified88.2%

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

                        if -2.30000000000000015e96 < z < 1.95e142

                        1. Initial program 99.9%

                          \[e^{\left(x + y \cdot \log y\right) - z} \]
                        2. Add Preprocessing
                        3. Taylor expanded in x around inf

                          \[\leadsto e^{\color{blue}{x}} \]
                        4. Step-by-step derivation
                          1. Simplified60.5%

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

                            \[\leadsto \color{blue}{1 + x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right)} \]
                          3. Step-by-step derivation
                            1. +-commutativeN/A

                              \[\leadsto \color{blue}{x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right) + 1} \]
                            2. accelerator-lowering-fma.f64N/A

                              \[\leadsto \color{blue}{\mathsf{fma}\left(x, 1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right), 1\right)} \]
                            3. +-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right) + 1}, 1\right) \]
                            4. accelerator-lowering-fma.f64N/A

                              \[\leadsto \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, \frac{1}{2} + \frac{1}{6} \cdot x, 1\right)}, 1\right) \]
                            5. +-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{1}{6} \cdot x + \frac{1}{2}}, 1\right), 1\right) \]
                            6. *-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right) \]
                            7. accelerator-lowering-fma.f6439.5

                              \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, 0.16666666666666666, 0.5\right)}, 1\right), 1\right) \]
                          4. Simplified39.5%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)} \]

                          if 1.95e142 < z

                          1. Initial program 100.0%

                            \[e^{\left(x + y \cdot \log y\right) - z} \]
                          2. Add Preprocessing
                          3. Taylor expanded in z around inf

                            \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                          4. Step-by-step derivation
                            1. mul-1-negN/A

                              \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                            2. neg-sub0N/A

                              \[\leadsto e^{\color{blue}{0 - z}} \]
                            3. --lowering--.f6479.6

                              \[\leadsto e^{\color{blue}{0 - z}} \]
                          5. Simplified79.6%

                            \[\leadsto e^{\color{blue}{0 - z}} \]
                          6. Taylor expanded in z around 0

                            \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                          7. Step-by-step derivation
                            1. +-commutativeN/A

                              \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                            2. accelerator-lowering-fma.f64N/A

                              \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                            3. sub-negN/A

                              \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                            4. metadata-evalN/A

                              \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                            5. accelerator-lowering-fma.f64N/A

                              \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                            6. +-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                            7. *-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                            8. accelerator-lowering-fma.f641.2

                              \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                          8. Simplified1.2%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                          9. Step-by-step derivation
                            1. flip3-+N/A

                              \[\leadsto \color{blue}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}} \]
                            2. clear-numN/A

                              \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
                            3. /-lowering-/.f64N/A

                              \[\leadsto \color{blue}{\frac{1}{\frac{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}}} \]
                            4. clear-numN/A

                              \[\leadsto \frac{1}{\color{blue}{\frac{1}{\frac{{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right)}^{3} + {1}^{3}}{\left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) + \left(1 \cdot 1 - \left(z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right)\right) \cdot 1\right)}}}} \]
                            5. flip3-+N/A

                              \[\leadsto \frac{1}{\frac{1}{\color{blue}{z \cdot \left(z \cdot \left(z \cdot \frac{-1}{6} + \frac{1}{2}\right) + -1\right) + 1}}} \]
                          10. Applied egg-rr1.2%

                            \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)}}} \]
                          11. Taylor expanded in z around 0

                            \[\leadsto \frac{1}{\color{blue}{1 + z \cdot \left(1 + \frac{1}{2} \cdot z\right)}} \]
                          12. Step-by-step derivation
                            1. +-commutativeN/A

                              \[\leadsto \frac{1}{\color{blue}{z \cdot \left(1 + \frac{1}{2} \cdot z\right) + 1}} \]
                            2. accelerator-lowering-fma.f64N/A

                              \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(z, 1 + \frac{1}{2} \cdot z, 1\right)}} \]
                            3. +-commutativeN/A

                              \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z + 1}, 1\right)} \]
                            4. *-commutativeN/A

                              \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{z \cdot \frac{1}{2}} + 1, 1\right)} \]
                            5. accelerator-lowering-fma.f6473.4

                              \[\leadsto \frac{1}{\mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, 0.5, 1\right)}, 1\right)} \]
                          13. Simplified73.4%

                            \[\leadsto \frac{1}{\color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.5, 1\right), 1\right)}} \]
                        5. Recombined 3 regimes into one program.
                        6. Final simplification51.1%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.3 \cdot 10^{+96}:\\ \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\ \mathbf{elif}\;z \leq 1.95 \cdot 10^{+142}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, 0.5, 1\right), 1\right)}\\ \end{array} \]
                        7. Add Preprocessing

                        Alternative 15: 46.1% accurate, 6.8× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.8 \cdot 10^{+39}:\\ \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\ \mathbf{elif}\;x \leq 6.8 \cdot 10^{+84}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \end{array} \end{array} \]
                        (FPCore (x y z)
                         :precision binary64
                         (if (<= x -1.8e+39)
                           (* (* z (* z z)) -0.16666666666666666)
                           (if (<= x 6.8e+84)
                             (fma z (fma z (fma z -0.16666666666666666 0.5) -1.0) 1.0)
                             (fma x (fma x (fma x 0.16666666666666666 0.5) 1.0) 1.0))))
                        double code(double x, double y, double z) {
                        	double tmp;
                        	if (x <= -1.8e+39) {
                        		tmp = (z * (z * z)) * -0.16666666666666666;
                        	} else if (x <= 6.8e+84) {
                        		tmp = fma(z, fma(z, fma(z, -0.16666666666666666, 0.5), -1.0), 1.0);
                        	} else {
                        		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
                        	}
                        	return tmp;
                        }
                        
                        function code(x, y, z)
                        	tmp = 0.0
                        	if (x <= -1.8e+39)
                        		tmp = Float64(Float64(z * Float64(z * z)) * -0.16666666666666666);
                        	elseif (x <= 6.8e+84)
                        		tmp = fma(z, fma(z, fma(z, -0.16666666666666666, 0.5), -1.0), 1.0);
                        	else
                        		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
                        	end
                        	return tmp
                        end
                        
                        code[x_, y_, z_] := If[LessEqual[x, -1.8e+39], N[(N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision] * -0.16666666666666666), $MachinePrecision], If[LessEqual[x, 6.8e+84], N[(z * N[(z * N[(z * -0.16666666666666666 + 0.5), $MachinePrecision] + -1.0), $MachinePrecision] + 1.0), $MachinePrecision], N[(x * N[(x * N[(x * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;x \leq -1.8 \cdot 10^{+39}:\\
                        \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\
                        
                        \mathbf{elif}\;x \leq 6.8 \cdot 10^{+84}:\\
                        \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if x < -1.79999999999999992e39

                          1. Initial program 100.0%

                            \[e^{\left(x + y \cdot \log y\right) - z} \]
                          2. Add Preprocessing
                          3. Taylor expanded in z around inf

                            \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                          4. Step-by-step derivation
                            1. mul-1-negN/A

                              \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                            2. neg-sub0N/A

                              \[\leadsto e^{\color{blue}{0 - z}} \]
                            3. --lowering--.f6437.1

                              \[\leadsto e^{\color{blue}{0 - z}} \]
                          5. Simplified37.1%

                            \[\leadsto e^{\color{blue}{0 - z}} \]
                          6. Taylor expanded in z around 0

                            \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                          7. Step-by-step derivation
                            1. +-commutativeN/A

                              \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                            2. accelerator-lowering-fma.f64N/A

                              \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                            3. sub-negN/A

                              \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                            4. metadata-evalN/A

                              \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                            5. accelerator-lowering-fma.f64N/A

                              \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                            6. +-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                            7. *-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                            8. accelerator-lowering-fma.f6414.1

                              \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                          8. Simplified14.1%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                          9. Taylor expanded in z around inf

                            \[\leadsto \color{blue}{\frac{-1}{6} \cdot {z}^{3}} \]
                          10. Step-by-step derivation
                            1. *-lowering-*.f64N/A

                              \[\leadsto \color{blue}{\frac{-1}{6} \cdot {z}^{3}} \]
                            2. cube-multN/A

                              \[\leadsto \frac{-1}{6} \cdot \color{blue}{\left(z \cdot \left(z \cdot z\right)\right)} \]
                            3. unpow2N/A

                              \[\leadsto \frac{-1}{6} \cdot \left(z \cdot \color{blue}{{z}^{2}}\right) \]
                            4. *-lowering-*.f64N/A

                              \[\leadsto \frac{-1}{6} \cdot \color{blue}{\left(z \cdot {z}^{2}\right)} \]
                            5. unpow2N/A

                              \[\leadsto \frac{-1}{6} \cdot \left(z \cdot \color{blue}{\left(z \cdot z\right)}\right) \]
                            6. *-lowering-*.f6440.6

                              \[\leadsto -0.16666666666666666 \cdot \left(z \cdot \color{blue}{\left(z \cdot z\right)}\right) \]
                          11. Simplified40.6%

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

                          if -1.79999999999999992e39 < x < 6.7999999999999996e84

                          1. Initial program 99.9%

                            \[e^{\left(x + y \cdot \log y\right) - z} \]
                          2. Add Preprocessing
                          3. Taylor expanded in z around inf

                            \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                          4. Step-by-step derivation
                            1. mul-1-negN/A

                              \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                            2. neg-sub0N/A

                              \[\leadsto e^{\color{blue}{0 - z}} \]
                            3. --lowering--.f6464.9

                              \[\leadsto e^{\color{blue}{0 - z}} \]
                          5. Simplified64.9%

                            \[\leadsto e^{\color{blue}{0 - z}} \]
                          6. Taylor expanded in z around 0

                            \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                          7. Step-by-step derivation
                            1. +-commutativeN/A

                              \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                            2. accelerator-lowering-fma.f64N/A

                              \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                            3. sub-negN/A

                              \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                            4. metadata-evalN/A

                              \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                            5. accelerator-lowering-fma.f64N/A

                              \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                            6. +-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                            7. *-commutativeN/A

                              \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                            8. accelerator-lowering-fma.f6439.7

                              \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                          8. Simplified39.7%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]

                          if 6.7999999999999996e84 < x

                          1. Initial program 100.0%

                            \[e^{\left(x + y \cdot \log y\right) - z} \]
                          2. Add Preprocessing
                          3. Taylor expanded in x around inf

                            \[\leadsto e^{\color{blue}{x}} \]
                          4. Step-by-step derivation
                            1. Simplified93.8%

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

                              \[\leadsto \color{blue}{1 + x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right)} \]
                            3. Step-by-step derivation
                              1. +-commutativeN/A

                                \[\leadsto \color{blue}{x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right) + 1} \]
                              2. accelerator-lowering-fma.f64N/A

                                \[\leadsto \color{blue}{\mathsf{fma}\left(x, 1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right), 1\right)} \]
                              3. +-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right) + 1}, 1\right) \]
                              4. accelerator-lowering-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, \frac{1}{2} + \frac{1}{6} \cdot x, 1\right)}, 1\right) \]
                              5. +-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{1}{6} \cdot x + \frac{1}{2}}, 1\right), 1\right) \]
                              6. *-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right) \]
                              7. accelerator-lowering-fma.f6486.2

                                \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, 0.16666666666666666, 0.5\right)}, 1\right), 1\right) \]
                            4. Simplified86.2%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)} \]
                          5. Recombined 3 regimes into one program.
                          6. Final simplification48.6%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.8 \cdot 10^{+39}:\\ \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\ \mathbf{elif}\;x \leq 6.8 \cdot 10^{+84}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \end{array} \]
                          7. Add Preprocessing

                          Alternative 16: 44.8% accurate, 6.8× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.5 \cdot 10^{+39}:\\ \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\ \mathbf{elif}\;x \leq 4.4 \cdot 10^{+84}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \end{array} \end{array} \]
                          (FPCore (x y z)
                           :precision binary64
                           (if (<= x -1.5e+39)
                             (* (* z (* z z)) -0.16666666666666666)
                             (if (<= x 4.4e+84)
                               (fma z (fma 0.5 z -1.0) 1.0)
                               (fma x (fma x (fma x 0.16666666666666666 0.5) 1.0) 1.0))))
                          double code(double x, double y, double z) {
                          	double tmp;
                          	if (x <= -1.5e+39) {
                          		tmp = (z * (z * z)) * -0.16666666666666666;
                          	} else if (x <= 4.4e+84) {
                          		tmp = fma(z, fma(0.5, z, -1.0), 1.0);
                          	} else {
                          		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z)
                          	tmp = 0.0
                          	if (x <= -1.5e+39)
                          		tmp = Float64(Float64(z * Float64(z * z)) * -0.16666666666666666);
                          	elseif (x <= 4.4e+84)
                          		tmp = fma(z, fma(0.5, z, -1.0), 1.0);
                          	else
                          		tmp = fma(x, fma(x, fma(x, 0.16666666666666666, 0.5), 1.0), 1.0);
                          	end
                          	return tmp
                          end
                          
                          code[x_, y_, z_] := If[LessEqual[x, -1.5e+39], N[(N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision] * -0.16666666666666666), $MachinePrecision], If[LessEqual[x, 4.4e+84], N[(z * N[(0.5 * z + -1.0), $MachinePrecision] + 1.0), $MachinePrecision], N[(x * N[(x * N[(x * 0.16666666666666666 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;x \leq -1.5 \cdot 10^{+39}:\\
                          \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\
                          
                          \mathbf{elif}\;x \leq 4.4 \cdot 10^{+84}:\\
                          \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if x < -1.5e39

                            1. Initial program 100.0%

                              \[e^{\left(x + y \cdot \log y\right) - z} \]
                            2. Add Preprocessing
                            3. Taylor expanded in z around inf

                              \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                            4. Step-by-step derivation
                              1. mul-1-negN/A

                                \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                              2. neg-sub0N/A

                                \[\leadsto e^{\color{blue}{0 - z}} \]
                              3. --lowering--.f6437.1

                                \[\leadsto e^{\color{blue}{0 - z}} \]
                            5. Simplified37.1%

                              \[\leadsto e^{\color{blue}{0 - z}} \]
                            6. Taylor expanded in z around 0

                              \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                            7. Step-by-step derivation
                              1. +-commutativeN/A

                                \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                              2. accelerator-lowering-fma.f64N/A

                                \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                              3. sub-negN/A

                                \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                              4. metadata-evalN/A

                                \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                              5. accelerator-lowering-fma.f64N/A

                                \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                              6. +-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                              7. *-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                              8. accelerator-lowering-fma.f6414.1

                                \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                            8. Simplified14.1%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                            9. Taylor expanded in z around inf

                              \[\leadsto \color{blue}{\frac{-1}{6} \cdot {z}^{3}} \]
                            10. Step-by-step derivation
                              1. *-lowering-*.f64N/A

                                \[\leadsto \color{blue}{\frac{-1}{6} \cdot {z}^{3}} \]
                              2. cube-multN/A

                                \[\leadsto \frac{-1}{6} \cdot \color{blue}{\left(z \cdot \left(z \cdot z\right)\right)} \]
                              3. unpow2N/A

                                \[\leadsto \frac{-1}{6} \cdot \left(z \cdot \color{blue}{{z}^{2}}\right) \]
                              4. *-lowering-*.f64N/A

                                \[\leadsto \frac{-1}{6} \cdot \color{blue}{\left(z \cdot {z}^{2}\right)} \]
                              5. unpow2N/A

                                \[\leadsto \frac{-1}{6} \cdot \left(z \cdot \color{blue}{\left(z \cdot z\right)}\right) \]
                              6. *-lowering-*.f6440.6

                                \[\leadsto -0.16666666666666666 \cdot \left(z \cdot \color{blue}{\left(z \cdot z\right)}\right) \]
                            11. Simplified40.6%

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

                            if -1.5e39 < x < 4.3999999999999997e84

                            1. Initial program 99.9%

                              \[e^{\left(x + y \cdot \log y\right) - z} \]
                            2. Add Preprocessing
                            3. Taylor expanded in z around inf

                              \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                            4. Step-by-step derivation
                              1. mul-1-negN/A

                                \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                              2. neg-sub0N/A

                                \[\leadsto e^{\color{blue}{0 - z}} \]
                              3. --lowering--.f6464.9

                                \[\leadsto e^{\color{blue}{0 - z}} \]
                            5. Simplified64.9%

                              \[\leadsto e^{\color{blue}{0 - z}} \]
                            6. Taylor expanded in z around 0

                              \[\leadsto \color{blue}{1 + z \cdot \left(\frac{1}{2} \cdot z - 1\right)} \]
                            7. Step-by-step derivation
                              1. +-commutativeN/A

                                \[\leadsto \color{blue}{z \cdot \left(\frac{1}{2} \cdot z - 1\right) + 1} \]
                              2. accelerator-lowering-fma.f64N/A

                                \[\leadsto \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} \cdot z - 1, 1\right)} \]
                              3. sub-negN/A

                                \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                              4. metadata-evalN/A

                                \[\leadsto \mathsf{fma}\left(z, \frac{1}{2} \cdot z + \color{blue}{-1}, 1\right) \]
                              5. accelerator-lowering-fma.f6439.5

                                \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(0.5, z, -1\right)}, 1\right) \]
                            8. Simplified39.5%

                              \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)} \]

                            if 4.3999999999999997e84 < x

                            1. Initial program 100.0%

                              \[e^{\left(x + y \cdot \log y\right) - z} \]
                            2. Add Preprocessing
                            3. Taylor expanded in x around inf

                              \[\leadsto e^{\color{blue}{x}} \]
                            4. Step-by-step derivation
                              1. Simplified93.8%

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

                                \[\leadsto \color{blue}{1 + x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right)} \]
                              3. Step-by-step derivation
                                1. +-commutativeN/A

                                  \[\leadsto \color{blue}{x \cdot \left(1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\right) + 1} \]
                                2. accelerator-lowering-fma.f64N/A

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(x, 1 + x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right), 1\right)} \]
                                3. +-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right) + 1}, 1\right) \]
                                4. accelerator-lowering-fma.f64N/A

                                  \[\leadsto \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, \frac{1}{2} + \frac{1}{6} \cdot x, 1\right)}, 1\right) \]
                                5. +-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\frac{1}{6} \cdot x + \frac{1}{2}}, 1\right), 1\right) \]
                                6. *-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{x \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right) \]
                                7. accelerator-lowering-fma.f6486.2

                                  \[\leadsto \mathsf{fma}\left(x, \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, 0.16666666666666666, 0.5\right)}, 1\right), 1\right) \]
                              4. Simplified86.2%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)} \]
                            5. Recombined 3 regimes into one program.
                            6. Final simplification48.5%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.5 \cdot 10^{+39}:\\ \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\ \mathbf{elif}\;x \leq 4.4 \cdot 10^{+84}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.16666666666666666, 0.5\right), 1\right), 1\right)\\ \end{array} \]
                            7. Add Preprocessing

                            Alternative 17: 41.8% accurate, 8.5× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.5 \cdot 10^{+39}:\\ \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\ \mathbf{elif}\;x \leq 3.6 \cdot 10^{+108}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.5, 1\right), 1\right)\\ \end{array} \end{array} \]
                            (FPCore (x y z)
                             :precision binary64
                             (if (<= x -1.5e+39)
                               (* (* z (* z z)) -0.16666666666666666)
                               (if (<= x 3.6e+108)
                                 (fma z (fma 0.5 z -1.0) 1.0)
                                 (fma x (fma x 0.5 1.0) 1.0))))
                            double code(double x, double y, double z) {
                            	double tmp;
                            	if (x <= -1.5e+39) {
                            		tmp = (z * (z * z)) * -0.16666666666666666;
                            	} else if (x <= 3.6e+108) {
                            		tmp = fma(z, fma(0.5, z, -1.0), 1.0);
                            	} else {
                            		tmp = fma(x, fma(x, 0.5, 1.0), 1.0);
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z)
                            	tmp = 0.0
                            	if (x <= -1.5e+39)
                            		tmp = Float64(Float64(z * Float64(z * z)) * -0.16666666666666666);
                            	elseif (x <= 3.6e+108)
                            		tmp = fma(z, fma(0.5, z, -1.0), 1.0);
                            	else
                            		tmp = fma(x, fma(x, 0.5, 1.0), 1.0);
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_] := If[LessEqual[x, -1.5e+39], N[(N[(z * N[(z * z), $MachinePrecision]), $MachinePrecision] * -0.16666666666666666), $MachinePrecision], If[LessEqual[x, 3.6e+108], N[(z * N[(0.5 * z + -1.0), $MachinePrecision] + 1.0), $MachinePrecision], N[(x * N[(x * 0.5 + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;x \leq -1.5 \cdot 10^{+39}:\\
                            \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\
                            
                            \mathbf{elif}\;x \leq 3.6 \cdot 10^{+108}:\\
                            \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.5, 1\right), 1\right)\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 3 regimes
                            2. if x < -1.5e39

                              1. Initial program 100.0%

                                \[e^{\left(x + y \cdot \log y\right) - z} \]
                              2. Add Preprocessing
                              3. Taylor expanded in z around inf

                                \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                              4. Step-by-step derivation
                                1. mul-1-negN/A

                                  \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                                2. neg-sub0N/A

                                  \[\leadsto e^{\color{blue}{0 - z}} \]
                                3. --lowering--.f6437.1

                                  \[\leadsto e^{\color{blue}{0 - z}} \]
                              5. Simplified37.1%

                                \[\leadsto e^{\color{blue}{0 - z}} \]
                              6. Taylor expanded in z around 0

                                \[\leadsto \color{blue}{1 + z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right)} \]
                              7. Step-by-step derivation
                                1. +-commutativeN/A

                                  \[\leadsto \color{blue}{z \cdot \left(z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1\right) + 1} \]
                                2. accelerator-lowering-fma.f64N/A

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) - 1, 1\right)} \]
                                3. sub-negN/A

                                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                                4. metadata-evalN/A

                                  \[\leadsto \mathsf{fma}\left(z, z \cdot \left(\frac{1}{2} + \frac{-1}{6} \cdot z\right) + \color{blue}{-1}, 1\right) \]
                                5. accelerator-lowering-fma.f64N/A

                                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} + \frac{-1}{6} \cdot z, -1\right)}, 1\right) \]
                                6. +-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\frac{-1}{6} \cdot z + \frac{1}{2}}, -1\right), 1\right) \]
                                7. *-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{z \cdot \frac{-1}{6}} + \frac{1}{2}, -1\right), 1\right) \]
                                8. accelerator-lowering-fma.f6414.1

                                  \[\leadsto \mathsf{fma}\left(z, \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(z, -0.16666666666666666, 0.5\right)}, -1\right), 1\right) \]
                              8. Simplified14.1%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, -0.16666666666666666, 0.5\right), -1\right), 1\right)} \]
                              9. Taylor expanded in z around inf

                                \[\leadsto \color{blue}{\frac{-1}{6} \cdot {z}^{3}} \]
                              10. Step-by-step derivation
                                1. *-lowering-*.f64N/A

                                  \[\leadsto \color{blue}{\frac{-1}{6} \cdot {z}^{3}} \]
                                2. cube-multN/A

                                  \[\leadsto \frac{-1}{6} \cdot \color{blue}{\left(z \cdot \left(z \cdot z\right)\right)} \]
                                3. unpow2N/A

                                  \[\leadsto \frac{-1}{6} \cdot \left(z \cdot \color{blue}{{z}^{2}}\right) \]
                                4. *-lowering-*.f64N/A

                                  \[\leadsto \frac{-1}{6} \cdot \color{blue}{\left(z \cdot {z}^{2}\right)} \]
                                5. unpow2N/A

                                  \[\leadsto \frac{-1}{6} \cdot \left(z \cdot \color{blue}{\left(z \cdot z\right)}\right) \]
                                6. *-lowering-*.f6440.6

                                  \[\leadsto -0.16666666666666666 \cdot \left(z \cdot \color{blue}{\left(z \cdot z\right)}\right) \]
                              11. Simplified40.6%

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

                              if -1.5e39 < x < 3.6e108

                              1. Initial program 99.9%

                                \[e^{\left(x + y \cdot \log y\right) - z} \]
                              2. Add Preprocessing
                              3. Taylor expanded in z around inf

                                \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                              4. Step-by-step derivation
                                1. mul-1-negN/A

                                  \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                                2. neg-sub0N/A

                                  \[\leadsto e^{\color{blue}{0 - z}} \]
                                3. --lowering--.f6463.2

                                  \[\leadsto e^{\color{blue}{0 - z}} \]
                              5. Simplified63.2%

                                \[\leadsto e^{\color{blue}{0 - z}} \]
                              6. Taylor expanded in z around 0

                                \[\leadsto \color{blue}{1 + z \cdot \left(\frac{1}{2} \cdot z - 1\right)} \]
                              7. Step-by-step derivation
                                1. +-commutativeN/A

                                  \[\leadsto \color{blue}{z \cdot \left(\frac{1}{2} \cdot z - 1\right) + 1} \]
                                2. accelerator-lowering-fma.f64N/A

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} \cdot z - 1, 1\right)} \]
                                3. sub-negN/A

                                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                                4. metadata-evalN/A

                                  \[\leadsto \mathsf{fma}\left(z, \frac{1}{2} \cdot z + \color{blue}{-1}, 1\right) \]
                                5. accelerator-lowering-fma.f6438.7

                                  \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(0.5, z, -1\right)}, 1\right) \]
                              8. Simplified38.7%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)} \]

                              if 3.6e108 < x

                              1. Initial program 100.0%

                                \[e^{\left(x + y \cdot \log y\right) - z} \]
                              2. Add Preprocessing
                              3. Taylor expanded in x around inf

                                \[\leadsto e^{\color{blue}{x}} \]
                              4. Step-by-step derivation
                                1. Simplified93.0%

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

                                  \[\leadsto \color{blue}{1 + x \cdot \left(1 + \frac{1}{2} \cdot x\right)} \]
                                3. Step-by-step derivation
                                  1. +-commutativeN/A

                                    \[\leadsto \color{blue}{x \cdot \left(1 + \frac{1}{2} \cdot x\right) + 1} \]
                                  2. accelerator-lowering-fma.f64N/A

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(x, 1 + \frac{1}{2} \cdot x, 1\right)} \]
                                  3. +-commutativeN/A

                                    \[\leadsto \mathsf{fma}\left(x, \color{blue}{\frac{1}{2} \cdot x + 1}, 1\right) \]
                                  4. *-commutativeN/A

                                    \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \frac{1}{2}} + 1, 1\right) \]
                                  5. accelerator-lowering-fma.f6470.9

                                    \[\leadsto \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, 0.5, 1\right)}, 1\right) \]
                                4. Simplified70.9%

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.5, 1\right), 1\right)} \]
                              5. Recombined 3 regimes into one program.
                              6. Final simplification44.4%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.5 \cdot 10^{+39}:\\ \;\;\;\;\left(z \cdot \left(z \cdot z\right)\right) \cdot -0.16666666666666666\\ \mathbf{elif}\;x \leq 3.6 \cdot 10^{+108}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.5, 1\right), 1\right)\\ \end{array} \]
                              7. Add Preprocessing

                              Alternative 18: 40.4% accurate, 8.5× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.5 \cdot 10^{+39}:\\ \;\;\;\;\mathsf{fma}\left(0.5, z \cdot z, 0\right)\\ \mathbf{elif}\;x \leq 3.6 \cdot 10^{+108}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.5, 1\right), 1\right)\\ \end{array} \end{array} \]
                              (FPCore (x y z)
                               :precision binary64
                               (if (<= x -1.5e+39)
                                 (fma 0.5 (* z z) 0.0)
                                 (if (<= x 3.6e+108)
                                   (fma z (fma 0.5 z -1.0) 1.0)
                                   (fma x (fma x 0.5 1.0) 1.0))))
                              double code(double x, double y, double z) {
                              	double tmp;
                              	if (x <= -1.5e+39) {
                              		tmp = fma(0.5, (z * z), 0.0);
                              	} else if (x <= 3.6e+108) {
                              		tmp = fma(z, fma(0.5, z, -1.0), 1.0);
                              	} else {
                              		tmp = fma(x, fma(x, 0.5, 1.0), 1.0);
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z)
                              	tmp = 0.0
                              	if (x <= -1.5e+39)
                              		tmp = fma(0.5, Float64(z * z), 0.0);
                              	elseif (x <= 3.6e+108)
                              		tmp = fma(z, fma(0.5, z, -1.0), 1.0);
                              	else
                              		tmp = fma(x, fma(x, 0.5, 1.0), 1.0);
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_] := If[LessEqual[x, -1.5e+39], N[(0.5 * N[(z * z), $MachinePrecision] + 0.0), $MachinePrecision], If[LessEqual[x, 3.6e+108], N[(z * N[(0.5 * z + -1.0), $MachinePrecision] + 1.0), $MachinePrecision], N[(x * N[(x * 0.5 + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;x \leq -1.5 \cdot 10^{+39}:\\
                              \;\;\;\;\mathsf{fma}\left(0.5, z \cdot z, 0\right)\\
                              
                              \mathbf{elif}\;x \leq 3.6 \cdot 10^{+108}:\\
                              \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.5, 1\right), 1\right)\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 3 regimes
                              2. if x < -1.5e39

                                1. Initial program 100.0%

                                  \[e^{\left(x + y \cdot \log y\right) - z} \]
                                2. Add Preprocessing
                                3. Taylor expanded in z around inf

                                  \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                                4. Step-by-step derivation
                                  1. mul-1-negN/A

                                    \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                                  2. neg-sub0N/A

                                    \[\leadsto e^{\color{blue}{0 - z}} \]
                                  3. --lowering--.f6437.1

                                    \[\leadsto e^{\color{blue}{0 - z}} \]
                                5. Simplified37.1%

                                  \[\leadsto e^{\color{blue}{0 - z}} \]
                                6. Taylor expanded in z around 0

                                  \[\leadsto \color{blue}{1 + z \cdot \left(\frac{1}{2} \cdot z - 1\right)} \]
                                7. Step-by-step derivation
                                  1. +-commutativeN/A

                                    \[\leadsto \color{blue}{z \cdot \left(\frac{1}{2} \cdot z - 1\right) + 1} \]
                                  2. accelerator-lowering-fma.f64N/A

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} \cdot z - 1, 1\right)} \]
                                  3. sub-negN/A

                                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                                  4. metadata-evalN/A

                                    \[\leadsto \mathsf{fma}\left(z, \frac{1}{2} \cdot z + \color{blue}{-1}, 1\right) \]
                                  5. accelerator-lowering-fma.f6412.3

                                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(0.5, z, -1\right)}, 1\right) \]
                                8. Simplified12.3%

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)} \]
                                9. Taylor expanded in z around inf

                                  \[\leadsto \color{blue}{\frac{1}{2} \cdot {z}^{2}} \]
                                10. Step-by-step derivation
                                  1. +-rgt-identityN/A

                                    \[\leadsto \color{blue}{\frac{1}{2} \cdot {z}^{2} + 0} \]
                                  2. accelerator-lowering-fma.f64N/A

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{1}{2}, {z}^{2}, 0\right)} \]
                                  3. unpow2N/A

                                    \[\leadsto \mathsf{fma}\left(\frac{1}{2}, \color{blue}{z \cdot z}, 0\right) \]
                                  4. *-lowering-*.f6433.5

                                    \[\leadsto \mathsf{fma}\left(0.5, \color{blue}{z \cdot z}, 0\right) \]
                                11. Simplified33.5%

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(0.5, z \cdot z, 0\right)} \]

                                if -1.5e39 < x < 3.6e108

                                1. Initial program 99.9%

                                  \[e^{\left(x + y \cdot \log y\right) - z} \]
                                2. Add Preprocessing
                                3. Taylor expanded in z around inf

                                  \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                                4. Step-by-step derivation
                                  1. mul-1-negN/A

                                    \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                                  2. neg-sub0N/A

                                    \[\leadsto e^{\color{blue}{0 - z}} \]
                                  3. --lowering--.f6463.2

                                    \[\leadsto e^{\color{blue}{0 - z}} \]
                                5. Simplified63.2%

                                  \[\leadsto e^{\color{blue}{0 - z}} \]
                                6. Taylor expanded in z around 0

                                  \[\leadsto \color{blue}{1 + z \cdot \left(\frac{1}{2} \cdot z - 1\right)} \]
                                7. Step-by-step derivation
                                  1. +-commutativeN/A

                                    \[\leadsto \color{blue}{z \cdot \left(\frac{1}{2} \cdot z - 1\right) + 1} \]
                                  2. accelerator-lowering-fma.f64N/A

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} \cdot z - 1, 1\right)} \]
                                  3. sub-negN/A

                                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                                  4. metadata-evalN/A

                                    \[\leadsto \mathsf{fma}\left(z, \frac{1}{2} \cdot z + \color{blue}{-1}, 1\right) \]
                                  5. accelerator-lowering-fma.f6438.7

                                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(0.5, z, -1\right)}, 1\right) \]
                                8. Simplified38.7%

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)} \]

                                if 3.6e108 < x

                                1. Initial program 100.0%

                                  \[e^{\left(x + y \cdot \log y\right) - z} \]
                                2. Add Preprocessing
                                3. Taylor expanded in x around inf

                                  \[\leadsto e^{\color{blue}{x}} \]
                                4. Step-by-step derivation
                                  1. Simplified93.0%

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

                                    \[\leadsto \color{blue}{1 + x \cdot \left(1 + \frac{1}{2} \cdot x\right)} \]
                                  3. Step-by-step derivation
                                    1. +-commutativeN/A

                                      \[\leadsto \color{blue}{x \cdot \left(1 + \frac{1}{2} \cdot x\right) + 1} \]
                                    2. accelerator-lowering-fma.f64N/A

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(x, 1 + \frac{1}{2} \cdot x, 1\right)} \]
                                    3. +-commutativeN/A

                                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{\frac{1}{2} \cdot x + 1}, 1\right) \]
                                    4. *-commutativeN/A

                                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \frac{1}{2}} + 1, 1\right) \]
                                    5. accelerator-lowering-fma.f6470.9

                                      \[\leadsto \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, 0.5, 1\right)}, 1\right) \]
                                  4. Simplified70.9%

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

                                Alternative 19: 40.2% accurate, 8.5× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.65 \cdot 10^{+39}:\\ \;\;\;\;\mathsf{fma}\left(0.5, z \cdot z, 0\right)\\ \mathbf{elif}\;x \leq 3.6 \cdot 10^{+108}:\\ \;\;\;\;\mathsf{fma}\left(z, z \cdot 0.5, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.5, 1\right), 1\right)\\ \end{array} \end{array} \]
                                (FPCore (x y z)
                                 :precision binary64
                                 (if (<= x -1.65e+39)
                                   (fma 0.5 (* z z) 0.0)
                                   (if (<= x 3.6e+108) (fma z (* z 0.5) 1.0) (fma x (fma x 0.5 1.0) 1.0))))
                                double code(double x, double y, double z) {
                                	double tmp;
                                	if (x <= -1.65e+39) {
                                		tmp = fma(0.5, (z * z), 0.0);
                                	} else if (x <= 3.6e+108) {
                                		tmp = fma(z, (z * 0.5), 1.0);
                                	} else {
                                		tmp = fma(x, fma(x, 0.5, 1.0), 1.0);
                                	}
                                	return tmp;
                                }
                                
                                function code(x, y, z)
                                	tmp = 0.0
                                	if (x <= -1.65e+39)
                                		tmp = fma(0.5, Float64(z * z), 0.0);
                                	elseif (x <= 3.6e+108)
                                		tmp = fma(z, Float64(z * 0.5), 1.0);
                                	else
                                		tmp = fma(x, fma(x, 0.5, 1.0), 1.0);
                                	end
                                	return tmp
                                end
                                
                                code[x_, y_, z_] := If[LessEqual[x, -1.65e+39], N[(0.5 * N[(z * z), $MachinePrecision] + 0.0), $MachinePrecision], If[LessEqual[x, 3.6e+108], N[(z * N[(z * 0.5), $MachinePrecision] + 1.0), $MachinePrecision], N[(x * N[(x * 0.5 + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;x \leq -1.65 \cdot 10^{+39}:\\
                                \;\;\;\;\mathsf{fma}\left(0.5, z \cdot z, 0\right)\\
                                
                                \mathbf{elif}\;x \leq 3.6 \cdot 10^{+108}:\\
                                \;\;\;\;\mathsf{fma}\left(z, z \cdot 0.5, 1\right)\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.5, 1\right), 1\right)\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if x < -1.6500000000000001e39

                                  1. Initial program 100.0%

                                    \[e^{\left(x + y \cdot \log y\right) - z} \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in z around inf

                                    \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                                  4. Step-by-step derivation
                                    1. mul-1-negN/A

                                      \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                                    2. neg-sub0N/A

                                      \[\leadsto e^{\color{blue}{0 - z}} \]
                                    3. --lowering--.f6437.1

                                      \[\leadsto e^{\color{blue}{0 - z}} \]
                                  5. Simplified37.1%

                                    \[\leadsto e^{\color{blue}{0 - z}} \]
                                  6. Taylor expanded in z around 0

                                    \[\leadsto \color{blue}{1 + z \cdot \left(\frac{1}{2} \cdot z - 1\right)} \]
                                  7. Step-by-step derivation
                                    1. +-commutativeN/A

                                      \[\leadsto \color{blue}{z \cdot \left(\frac{1}{2} \cdot z - 1\right) + 1} \]
                                    2. accelerator-lowering-fma.f64N/A

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} \cdot z - 1, 1\right)} \]
                                    3. sub-negN/A

                                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                                    4. metadata-evalN/A

                                      \[\leadsto \mathsf{fma}\left(z, \frac{1}{2} \cdot z + \color{blue}{-1}, 1\right) \]
                                    5. accelerator-lowering-fma.f6412.3

                                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(0.5, z, -1\right)}, 1\right) \]
                                  8. Simplified12.3%

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)} \]
                                  9. Taylor expanded in z around inf

                                    \[\leadsto \color{blue}{\frac{1}{2} \cdot {z}^{2}} \]
                                  10. Step-by-step derivation
                                    1. +-rgt-identityN/A

                                      \[\leadsto \color{blue}{\frac{1}{2} \cdot {z}^{2} + 0} \]
                                    2. accelerator-lowering-fma.f64N/A

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{1}{2}, {z}^{2}, 0\right)} \]
                                    3. unpow2N/A

                                      \[\leadsto \mathsf{fma}\left(\frac{1}{2}, \color{blue}{z \cdot z}, 0\right) \]
                                    4. *-lowering-*.f6433.5

                                      \[\leadsto \mathsf{fma}\left(0.5, \color{blue}{z \cdot z}, 0\right) \]
                                  11. Simplified33.5%

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(0.5, z \cdot z, 0\right)} \]

                                  if -1.6500000000000001e39 < x < 3.6e108

                                  1. Initial program 99.9%

                                    \[e^{\left(x + y \cdot \log y\right) - z} \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in z around inf

                                    \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                                  4. Step-by-step derivation
                                    1. mul-1-negN/A

                                      \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                                    2. neg-sub0N/A

                                      \[\leadsto e^{\color{blue}{0 - z}} \]
                                    3. --lowering--.f6463.2

                                      \[\leadsto e^{\color{blue}{0 - z}} \]
                                  5. Simplified63.2%

                                    \[\leadsto e^{\color{blue}{0 - z}} \]
                                  6. Taylor expanded in z around 0

                                    \[\leadsto \color{blue}{1 + z \cdot \left(\frac{1}{2} \cdot z - 1\right)} \]
                                  7. Step-by-step derivation
                                    1. +-commutativeN/A

                                      \[\leadsto \color{blue}{z \cdot \left(\frac{1}{2} \cdot z - 1\right) + 1} \]
                                    2. accelerator-lowering-fma.f64N/A

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(z, \frac{1}{2} \cdot z - 1, 1\right)} \]
                                    3. sub-negN/A

                                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z + \left(\mathsf{neg}\left(1\right)\right)}, 1\right) \]
                                    4. metadata-evalN/A

                                      \[\leadsto \mathsf{fma}\left(z, \frac{1}{2} \cdot z + \color{blue}{-1}, 1\right) \]
                                    5. accelerator-lowering-fma.f6438.7

                                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{\mathsf{fma}\left(0.5, z, -1\right)}, 1\right) \]
                                  8. Simplified38.7%

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(z, \mathsf{fma}\left(0.5, z, -1\right), 1\right)} \]
                                  9. Taylor expanded in z around inf

                                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{\frac{1}{2} \cdot z}, 1\right) \]
                                  10. Step-by-step derivation
                                    1. *-lowering-*.f6438.3

                                      \[\leadsto \mathsf{fma}\left(z, \color{blue}{0.5 \cdot z}, 1\right) \]
                                  11. Simplified38.3%

                                    \[\leadsto \mathsf{fma}\left(z, \color{blue}{0.5 \cdot z}, 1\right) \]

                                  if 3.6e108 < x

                                  1. Initial program 100.0%

                                    \[e^{\left(x + y \cdot \log y\right) - z} \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in x around inf

                                    \[\leadsto e^{\color{blue}{x}} \]
                                  4. Step-by-step derivation
                                    1. Simplified93.0%

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

                                      \[\leadsto \color{blue}{1 + x \cdot \left(1 + \frac{1}{2} \cdot x\right)} \]
                                    3. Step-by-step derivation
                                      1. +-commutativeN/A

                                        \[\leadsto \color{blue}{x \cdot \left(1 + \frac{1}{2} \cdot x\right) + 1} \]
                                      2. accelerator-lowering-fma.f64N/A

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(x, 1 + \frac{1}{2} \cdot x, 1\right)} \]
                                      3. +-commutativeN/A

                                        \[\leadsto \mathsf{fma}\left(x, \color{blue}{\frac{1}{2} \cdot x + 1}, 1\right) \]
                                      4. *-commutativeN/A

                                        \[\leadsto \mathsf{fma}\left(x, \color{blue}{x \cdot \frac{1}{2}} + 1, 1\right) \]
                                      5. accelerator-lowering-fma.f6470.9

                                        \[\leadsto \mathsf{fma}\left(x, \color{blue}{\mathsf{fma}\left(x, 0.5, 1\right)}, 1\right) \]
                                    4. Simplified70.9%

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.5, 1\right), 1\right)} \]
                                  5. Recombined 3 regimes into one program.
                                  6. Final simplification42.7%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.65 \cdot 10^{+39}:\\ \;\;\;\;\mathsf{fma}\left(0.5, z \cdot z, 0\right)\\ \mathbf{elif}\;x \leq 3.6 \cdot 10^{+108}:\\ \;\;\;\;\mathsf{fma}\left(z, z \cdot 0.5, 1\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, 0.5, 1\right), 1\right)\\ \end{array} \]
                                  7. Add Preprocessing

                                  Alternative 20: 14.3% accurate, 53.0× speedup?

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

                                    \[e^{\left(x + y \cdot \log y\right) - z} \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in z around inf

                                    \[\leadsto e^{\color{blue}{-1 \cdot z}} \]
                                  4. Step-by-step derivation
                                    1. mul-1-negN/A

                                      \[\leadsto e^{\color{blue}{\mathsf{neg}\left(z\right)}} \]
                                    2. neg-sub0N/A

                                      \[\leadsto e^{\color{blue}{0 - z}} \]
                                    3. --lowering--.f6453.0

                                      \[\leadsto e^{\color{blue}{0 - z}} \]
                                  5. Simplified53.0%

                                    \[\leadsto e^{\color{blue}{0 - z}} \]
                                  6. Taylor expanded in z around 0

                                    \[\leadsto \color{blue}{1 + -1 \cdot z} \]
                                  7. Step-by-step derivation
                                    1. neg-mul-1N/A

                                      \[\leadsto 1 + \color{blue}{\left(\mathsf{neg}\left(z\right)\right)} \]
                                    2. unsub-negN/A

                                      \[\leadsto \color{blue}{1 - z} \]
                                    3. --lowering--.f6416.6

                                      \[\leadsto \color{blue}{1 - z} \]
                                  8. Simplified16.6%

                                    \[\leadsto \color{blue}{1 - z} \]
                                  9. Add Preprocessing

                                  Alternative 21: 14.3% accurate, 53.0× speedup?

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

                                    \[e^{\left(x + y \cdot \log y\right) - z} \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in x around inf

                                    \[\leadsto e^{\color{blue}{x}} \]
                                  4. Step-by-step derivation
                                    1. Simplified52.3%

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

                                      \[\leadsto \color{blue}{1 + x} \]
                                    3. Step-by-step derivation
                                      1. +-lowering-+.f6416.6

                                        \[\leadsto \color{blue}{1 + x} \]
                                    4. Simplified16.6%

                                      \[\leadsto \color{blue}{1 + x} \]
                                    5. Final simplification16.6%

                                      \[\leadsto x + 1 \]
                                    6. Add Preprocessing

                                    Alternative 22: 14.1% accurate, 212.0× speedup?

                                    \[\begin{array}{l} \\ 1 \end{array} \]
                                    (FPCore (x y z) :precision binary64 1.0)
                                    double code(double x, double y, double z) {
                                    	return 1.0;
                                    }
                                    
                                    real(8) function code(x, y, z)
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        real(8), intent (in) :: z
                                        code = 1.0d0
                                    end function
                                    
                                    public static double code(double x, double y, double z) {
                                    	return 1.0;
                                    }
                                    
                                    def code(x, y, z):
                                    	return 1.0
                                    
                                    function code(x, y, z)
                                    	return 1.0
                                    end
                                    
                                    function tmp = code(x, y, z)
                                    	tmp = 1.0;
                                    end
                                    
                                    code[x_, y_, z_] := 1.0
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    1
                                    \end{array}
                                    
                                    Derivation
                                    1. Initial program 100.0%

                                      \[e^{\left(x + y \cdot \log y\right) - z} \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in x around inf

                                      \[\leadsto e^{\color{blue}{x}} \]
                                    4. Step-by-step derivation
                                      1. Simplified52.3%

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

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

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

                                        Developer Target 1: 100.0% accurate, 1.0× speedup?

                                        \[\begin{array}{l} \\ e^{\left(x - z\right) + \log y \cdot y} \end{array} \]
                                        (FPCore (x y z) :precision binary64 (exp (+ (- x z) (* (log y) y))))
                                        double code(double x, double y, double z) {
                                        	return exp(((x - z) + (log(y) * y)));
                                        }
                                        
                                        real(8) function code(x, y, z)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            real(8), intent (in) :: z
                                            code = exp(((x - z) + (log(y) * y)))
                                        end function
                                        
                                        public static double code(double x, double y, double z) {
                                        	return Math.exp(((x - z) + (Math.log(y) * y)));
                                        }
                                        
                                        def code(x, y, z):
                                        	return math.exp(((x - z) + (math.log(y) * y)))
                                        
                                        function code(x, y, z)
                                        	return exp(Float64(Float64(x - z) + Float64(log(y) * y)))
                                        end
                                        
                                        function tmp = code(x, y, z)
                                        	tmp = exp(((x - z) + (log(y) * y)));
                                        end
                                        
                                        code[x_, y_, z_] := N[Exp[N[(N[(x - z), $MachinePrecision] + N[(N[Log[y], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        e^{\left(x - z\right) + \log y \cdot y}
                                        \end{array}
                                        

                                        Reproduce

                                        ?
                                        herbie shell --seed 2024196 
                                        (FPCore (x y z)
                                          :name "Statistics.Distribution.Poisson.Internal:probability from math-functions-0.1.5.2"
                                          :precision binary64
                                        
                                          :alt
                                          (! :herbie-platform default (exp (+ (- x z) (* (log y) y))))
                                        
                                          (exp (- (+ x (* y (log y))) z)))