Data.Number.Erf:$cinvnormcdf from erf-2.0.0.0, A

Percentage Accurate: 99.4% → 99.8%
Time: 43.7s
Alternatives: 19
Speedup: 1.1×

Specification

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

\\
\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}
\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 19 alternatives:

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

Initial Program: 99.4% accurate, 1.0× speedup?

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

\\
\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}}
\end{array}

Alternative 1: 99.8% accurate, 0.6× speedup?

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

\\
\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot {\left(e^{t}\right)}^{t}}
\end{array}
Derivation
  1. Initial program 99.1%

    \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
  2. Add Preprocessing
  3. Step-by-step derivation
    1. associate-*l*N/A

      \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
    2. *-lowering-*.f64N/A

      \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
    3. --lowering--.f64N/A

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

      \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
    5. exp-sqrtN/A

      \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
    6. sqrt-unprodN/A

      \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
    7. sqrt-lowering-sqrt.f64N/A

      \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
    8. *-lowering-*.f64N/A

      \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
    9. *-lowering-*.f64N/A

      \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
    10. exp-lowering-exp.f64N/A

      \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
    11. *-lowering-*.f6499.8

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
  4. Applied egg-rr99.8%

    \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
  5. Step-by-step derivation
    1. exp-prodN/A

      \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{{\left(e^{t}\right)}^{t}}} \]
    2. pow-lowering-pow.f64N/A

      \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{{\left(e^{t}\right)}^{t}}} \]
    3. exp-lowering-exp.f6499.9

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot {\color{blue}{\left(e^{t}\right)}}^{t}} \]
  6. Applied egg-rr99.9%

    \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{{\left(e^{t}\right)}^{t}}} \]
  7. Add Preprocessing

Alternative 2: 96.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(t \cdot t, 0.020833333333333332, 0.125\right)\\ t_2 := \mathsf{fma}\left(0.5, x, 0 - y\right) \cdot \sqrt{2}\\ \mathbf{if}\;t \cdot t \leq 10:\\ \;\;\;\;\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, t\_1, 0.5\right), 1\right)\\ \mathbf{elif}\;t \cdot t \leq 5 \cdot 10^{+79}:\\ \;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}} \cdot \left(0 - y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\sqrt{z} \cdot \left(t\_1 \cdot t\_2\right), \left(t \cdot t\right) \cdot \left(t \cdot t\right), \sqrt{z} \cdot \left(t\_2 \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right)\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (fma (* t t) 0.020833333333333332 0.125))
        (t_2 (* (fma 0.5 x (- 0.0 y)) (sqrt 2.0))))
   (if (<= (* t t) 10.0)
     (*
      (* (- (* x 0.5) y) (sqrt (* z 2.0)))
      (fma (* t t) (fma (* t t) t_1 0.5) 1.0))
     (if (<= (* t t) 5e+79)
       (* (sqrt (* (* z 2.0) (exp (* t t)))) (- 0.0 y))
       (fma
        (* (sqrt z) (* t_1 t_2))
        (* (* t t) (* t t))
        (* (sqrt z) (* t_2 (fma 0.5 (* t t) 1.0))))))))
double code(double x, double y, double z, double t) {
	double t_1 = fma((t * t), 0.020833333333333332, 0.125);
	double t_2 = fma(0.5, x, (0.0 - y)) * sqrt(2.0);
	double tmp;
	if ((t * t) <= 10.0) {
		tmp = (((x * 0.5) - y) * sqrt((z * 2.0))) * fma((t * t), fma((t * t), t_1, 0.5), 1.0);
	} else if ((t * t) <= 5e+79) {
		tmp = sqrt(((z * 2.0) * exp((t * t)))) * (0.0 - y);
	} else {
		tmp = fma((sqrt(z) * (t_1 * t_2)), ((t * t) * (t * t)), (sqrt(z) * (t_2 * fma(0.5, (t * t), 1.0))));
	}
	return tmp;
}
function code(x, y, z, t)
	t_1 = fma(Float64(t * t), 0.020833333333333332, 0.125)
	t_2 = Float64(fma(0.5, x, Float64(0.0 - y)) * sqrt(2.0))
	tmp = 0.0
	if (Float64(t * t) <= 10.0)
		tmp = Float64(Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * 2.0))) * fma(Float64(t * t), fma(Float64(t * t), t_1, 0.5), 1.0));
	elseif (Float64(t * t) <= 5e+79)
		tmp = Float64(sqrt(Float64(Float64(z * 2.0) * exp(Float64(t * t)))) * Float64(0.0 - y));
	else
		tmp = fma(Float64(sqrt(z) * Float64(t_1 * t_2)), Float64(Float64(t * t) * Float64(t * t)), Float64(sqrt(z) * Float64(t_2 * fma(0.5, Float64(t * t), 1.0))));
	end
	return tmp
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t * t), $MachinePrecision] * 0.020833333333333332 + 0.125), $MachinePrecision]}, Block[{t$95$2 = N[(N[(0.5 * x + N[(0.0 - y), $MachinePrecision]), $MachinePrecision] * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 10.0], N[(N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * t$95$1 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(t * t), $MachinePrecision], 5e+79], N[(N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[Exp[N[(t * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(0.0 - y), $MachinePrecision]), $MachinePrecision], N[(N[(N[Sqrt[z], $MachinePrecision] * N[(t$95$1 * t$95$2), $MachinePrecision]), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(t * t), $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[z], $MachinePrecision] * N[(t$95$2 * N[(0.5 * N[(t * t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t \cdot t, 0.020833333333333332, 0.125\right)\\
t_2 := \mathsf{fma}\left(0.5, x, 0 - y\right) \cdot \sqrt{2}\\
\mathbf{if}\;t \cdot t \leq 10:\\
\;\;\;\;\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, t\_1, 0.5\right), 1\right)\\

\mathbf{elif}\;t \cdot t \leq 5 \cdot 10^{+79}:\\
\;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}} \cdot \left(0 - y\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\sqrt{z} \cdot \left(t\_1 \cdot t\_2\right), \left(t \cdot t\right) \cdot \left(t \cdot t\right), \sqrt{z} \cdot \left(t\_2 \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right)\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (*.f64 t t) < 10

    1. Initial program 99.7%

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

      \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left(1 + {t}^{2} \cdot \left(\frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right)\right)\right)} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left({t}^{2} \cdot \left(\frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right)\right) + 1\right)} \]
      2. accelerator-lowering-fma.f64N/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right), 1\right)} \]
      3. unpow2N/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right), 1\right) \]
      4. *-lowering-*.f64N/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right), 1\right) \]
      5. +-commutativeN/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \color{blue}{{t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right) + \frac{1}{2}}, 1\right) \]
      6. accelerator-lowering-fma.f64N/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, \frac{1}{2}\right)}, 1\right) \]
      7. unpow2N/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, \frac{1}{2}\right), 1\right) \]
      8. *-lowering-*.f64N/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, \frac{1}{2}\right), 1\right) \]
      9. +-commutativeN/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{\frac{1}{48} \cdot {t}^{2} + \frac{1}{8}}, \frac{1}{2}\right), 1\right) \]
      10. *-commutativeN/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{{t}^{2} \cdot \frac{1}{48}} + \frac{1}{8}, \frac{1}{2}\right), 1\right) \]
      11. accelerator-lowering-fma.f64N/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{48}, \frac{1}{8}\right)}, \frac{1}{2}\right), 1\right) \]
      12. unpow2N/A

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{48}, \frac{1}{8}\right), \frac{1}{2}\right), 1\right) \]
      13. *-lowering-*.f6498.9

        \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, 0.020833333333333332, 0.125\right), 0.5\right), 1\right) \]
    5. Simplified98.9%

      \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.020833333333333332, 0.125\right), 0.5\right), 1\right)} \]

    if 10 < (*.f64 t t) < 5e79

    1. Initial program 99.7%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. associate-*l*N/A

        \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
      2. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
      3. --lowering--.f64N/A

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

        \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
      5. exp-sqrtN/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
      6. sqrt-unprodN/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
      7. sqrt-lowering-sqrt.f64N/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
      8. *-lowering-*.f64N/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
      9. *-lowering-*.f64N/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
      10. exp-lowering-exp.f64N/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
      11. *-lowering-*.f6499.7

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
    4. Applied egg-rr99.7%

      \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
    5. Taylor expanded in x around 0

      \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}} \]
    6. Step-by-step derivation
      1. mul-1-negN/A

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

        \[\leadsto \color{blue}{\left(0 - y\right)} \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}} \]
      3. --lowering--.f6489.7

        \[\leadsto \color{blue}{\left(0 - y\right)} \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}} \]
    7. Simplified89.7%

      \[\leadsto \color{blue}{\left(0 - y\right)} \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}} \]

    if 5e79 < (*.f64 t t)

    1. Initial program 98.4%

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

      \[\leadsto \color{blue}{\sqrt{z} \cdot \left(\sqrt{2} \cdot \left(\frac{1}{2} \cdot x - y\right)\right) + {t}^{2} \cdot \left(\frac{1}{2} \cdot \left(\sqrt{z} \cdot \left(\sqrt{2} \cdot \left(\frac{1}{2} \cdot x - y\right)\right)\right) + {t}^{2} \cdot \left(\frac{1}{48} \cdot \left(\left({t}^{2} \cdot \left(\sqrt{2} \cdot \left(\frac{1}{2} \cdot x - y\right)\right)\right) \cdot \sqrt{z}\right) + \frac{1}{8} \cdot \left(\sqrt{z} \cdot \left(\sqrt{2} \cdot \left(\frac{1}{2} \cdot x - y\right)\right)\right)\right)\right)} \]
    4. Simplified98.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\sqrt{z} \cdot \left(\left(\mathsf{fma}\left(0.5, x, 0 - y\right) \cdot \sqrt{2}\right) \cdot \mathsf{fma}\left(t \cdot t, 0.020833333333333332, 0.125\right)\right), \left(t \cdot t\right) \cdot \left(t \cdot t\right), \sqrt{z} \cdot \left(\mathsf{fma}\left(0.5, t \cdot t, 1\right) \cdot \left(\mathsf{fma}\left(0.5, x, 0 - y\right) \cdot \sqrt{2}\right)\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification98.0%

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

Alternative 3: 85.1% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot 0.5 - y\\ \mathbf{if}\;e^{\frac{t \cdot t}{2}} \leq 2:\\ \;\;\;\;t\_1 \cdot \sqrt{z \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;t\_1 \cdot \left(t \cdot \left(t \cdot \sqrt{z}\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (- (* x 0.5) y)))
   (if (<= (exp (/ (* t t) 2.0)) 2.0)
     (* t_1 (sqrt (* z 2.0)))
     (* t_1 (* t (* t (sqrt z)))))))
double code(double x, double y, double z, double t) {
	double t_1 = (x * 0.5) - y;
	double tmp;
	if (exp(((t * t) / 2.0)) <= 2.0) {
		tmp = t_1 * sqrt((z * 2.0));
	} else {
		tmp = t_1 * (t * (t * sqrt(z)));
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (x * 0.5d0) - y
    if (exp(((t * t) / 2.0d0)) <= 2.0d0) then
        tmp = t_1 * sqrt((z * 2.0d0))
    else
        tmp = t_1 * (t * (t * sqrt(z)))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double t_1 = (x * 0.5) - y;
	double tmp;
	if (Math.exp(((t * t) / 2.0)) <= 2.0) {
		tmp = t_1 * Math.sqrt((z * 2.0));
	} else {
		tmp = t_1 * (t * (t * Math.sqrt(z)));
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = (x * 0.5) - y
	tmp = 0
	if math.exp(((t * t) / 2.0)) <= 2.0:
		tmp = t_1 * math.sqrt((z * 2.0))
	else:
		tmp = t_1 * (t * (t * math.sqrt(z)))
	return tmp
function code(x, y, z, t)
	t_1 = Float64(Float64(x * 0.5) - y)
	tmp = 0.0
	if (exp(Float64(Float64(t * t) / 2.0)) <= 2.0)
		tmp = Float64(t_1 * sqrt(Float64(z * 2.0)));
	else
		tmp = Float64(t_1 * Float64(t * Float64(t * sqrt(z))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = (x * 0.5) - y;
	tmp = 0.0;
	if (exp(((t * t) / 2.0)) <= 2.0)
		tmp = t_1 * sqrt((z * 2.0));
	else
		tmp = t_1 * (t * (t * sqrt(z)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[N[Exp[N[(N[(t * t), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision], 2.0], N[(t$95$1 * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[(t * N[(t * N[Sqrt[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot 0.5 - y\\
\mathbf{if}\;e^{\frac{t \cdot t}{2}} \leq 2:\\
\;\;\;\;t\_1 \cdot \sqrt{z \cdot 2}\\

\mathbf{else}:\\
\;\;\;\;t\_1 \cdot \left(t \cdot \left(t \cdot \sqrt{z}\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (exp.f64 (/.f64 (*.f64 t t) #s(literal 2 binary64))) < 2

    1. Initial program 99.7%

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

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

        \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{1} \]
      2. Step-by-step derivation
        1. *-rgt-identityN/A

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

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

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

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

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

          \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot 2}} \]
      3. Applied egg-rr99.1%

        \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}} \]

      if 2 < (exp.f64 (/.f64 (*.f64 t t) #s(literal 2 binary64)))

      1. Initial program 98.6%

        \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. associate-*l*N/A

          \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
        2. *-lowering-*.f64N/A

          \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
        3. --lowering--.f64N/A

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

          \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
        5. exp-sqrtN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
        6. sqrt-unprodN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
        7. sqrt-lowering-sqrt.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
        8. *-lowering-*.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
        9. *-lowering-*.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
        10. exp-lowering-exp.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
        11. *-lowering-*.f64100.0

          \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
      4. Applied egg-rr100.0%

        \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
      5. Taylor expanded in t around 0

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

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{{t}^{2} \cdot \left(2 \cdot z + {t}^{2} \cdot z\right) + 2 \cdot z}} \]
        2. *-commutativeN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(2 \cdot z + {t}^{2} \cdot z\right) \cdot {t}^{2}} + 2 \cdot z} \]
        3. distribute-rgt-outN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot \left(2 + {t}^{2}\right)\right)} \cdot {t}^{2} + 2 \cdot z} \]
        4. associate-*l*N/A

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

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2}\right) + \color{blue}{z \cdot 2}} \]
        6. distribute-lft-outN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2} + 2\right)}} \]
        7. *-lowering-*.f64N/A

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

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \color{blue}{\mathsf{fma}\left(2 + {t}^{2}, {t}^{2}, 2\right)}} \]
        9. +-commutativeN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{{t}^{2} + 2}, {t}^{2}, 2\right)} \]
        10. unpow2N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{t \cdot t} + 2, {t}^{2}, 2\right)} \]
        11. accelerator-lowering-fma.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(t, t, 2\right)}, {t}^{2}, 2\right)} \]
        12. unpow2N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
        13. *-lowering-*.f6479.5

          \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
      7. Simplified79.5%

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}} \]
      8. Taylor expanded in t around inf

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\left({t}^{2} \cdot \sqrt{z}\right)} \]
      9. Step-by-step derivation
        1. unpow2N/A

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

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

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

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(t \cdot \color{blue}{\left(t \cdot \sqrt{z}\right)}\right) \]
        5. sqrt-lowering-sqrt.f6464.8

          \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \left(t \cdot \left(t \cdot \color{blue}{\sqrt{z}}\right)\right) \]
      10. Simplified64.8%

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \color{blue}{\left(t \cdot \left(t \cdot \sqrt{z}\right)\right)} \]
    5. Recombined 2 regimes into one program.
    6. Add Preprocessing

    Alternative 4: 99.8% accurate, 1.1× speedup?

    \[\begin{array}{l} \\ \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}} \end{array} \]
    (FPCore (x y z t)
     :precision binary64
     (* (- (* x 0.5) y) (sqrt (* (* z 2.0) (exp (* t t))))))
    double code(double x, double y, double z, double t) {
    	return ((x * 0.5) - y) * sqrt(((z * 2.0) * exp((t * t))));
    }
    
    real(8) function code(x, y, z, t)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        real(8), intent (in) :: z
        real(8), intent (in) :: t
        code = ((x * 0.5d0) - y) * sqrt(((z * 2.0d0) * exp((t * t))))
    end function
    
    public static double code(double x, double y, double z, double t) {
    	return ((x * 0.5) - y) * Math.sqrt(((z * 2.0) * Math.exp((t * t))));
    }
    
    def code(x, y, z, t):
    	return ((x * 0.5) - y) * math.sqrt(((z * 2.0) * math.exp((t * t))))
    
    function code(x, y, z, t)
    	return Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(Float64(z * 2.0) * exp(Float64(t * t)))))
    end
    
    function tmp = code(x, y, z, t)
    	tmp = ((x * 0.5) - y) * sqrt(((z * 2.0) * exp((t * t))));
    end
    
    code[x_, y_, z_, t_] := N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[Exp[N[(t * t), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
    
    \begin{array}{l}
    
    \\
    \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}
    \end{array}
    
    Derivation
    1. Initial program 99.1%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. associate-*l*N/A

        \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
      2. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
      3. --lowering--.f64N/A

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

        \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
      5. exp-sqrtN/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
      6. sqrt-unprodN/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
      7. sqrt-lowering-sqrt.f64N/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
      8. *-lowering-*.f64N/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
      9. *-lowering-*.f64N/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
      10. exp-lowering-exp.f64N/A

        \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
      11. *-lowering-*.f6499.8

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
    4. Applied egg-rr99.8%

      \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
    5. Add Preprocessing

    Alternative 5: 95.7% accurate, 1.4× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \mathsf{fma}\left(t, t, 2\right)\\ t_2 := x \cdot 0.5 - y\\ \mathbf{if}\;t \cdot t \leq 5 \cdot 10^{+146}:\\ \;\;\;\;t\_2 \cdot \sqrt{\frac{z \cdot \mathsf{fma}\left(t \cdot t, t\_1 \cdot t\_1, -4\right)}{\mathsf{fma}\left(t, t\_1, -2\right)}}\\ \mathbf{else}:\\ \;\;\;\;t\_2 \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\ \end{array} \end{array} \]
    (FPCore (x y z t)
     :precision binary64
     (let* ((t_1 (* t (fma t t 2.0))) (t_2 (- (* x 0.5) y)))
       (if (<= (* t t) 5e+146)
         (* t_2 (sqrt (/ (* z (fma (* t t) (* t_1 t_1) -4.0)) (fma t t_1 -2.0))))
         (* t_2 (sqrt (* z (fma (fma t t 2.0) (* t t) 2.0)))))))
    double code(double x, double y, double z, double t) {
    	double t_1 = t * fma(t, t, 2.0);
    	double t_2 = (x * 0.5) - y;
    	double tmp;
    	if ((t * t) <= 5e+146) {
    		tmp = t_2 * sqrt(((z * fma((t * t), (t_1 * t_1), -4.0)) / fma(t, t_1, -2.0)));
    	} else {
    		tmp = t_2 * sqrt((z * fma(fma(t, t, 2.0), (t * t), 2.0)));
    	}
    	return tmp;
    }
    
    function code(x, y, z, t)
    	t_1 = Float64(t * fma(t, t, 2.0))
    	t_2 = Float64(Float64(x * 0.5) - y)
    	tmp = 0.0
    	if (Float64(t * t) <= 5e+146)
    		tmp = Float64(t_2 * sqrt(Float64(Float64(z * fma(Float64(t * t), Float64(t_1 * t_1), -4.0)) / fma(t, t_1, -2.0))));
    	else
    		tmp = Float64(t_2 * sqrt(Float64(z * fma(fma(t, t, 2.0), Float64(t * t), 2.0))));
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_] := Block[{t$95$1 = N[(t * N[(t * t + 2.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 5e+146], N[(t$95$2 * N[Sqrt[N[(N[(z * N[(N[(t * t), $MachinePrecision] * N[(t$95$1 * t$95$1), $MachinePrecision] + -4.0), $MachinePrecision]), $MachinePrecision] / N[(t * t$95$1 + -2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$2 * N[Sqrt[N[(z * N[(N[(t * t + 2.0), $MachinePrecision] * N[(t * t), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := t \cdot \mathsf{fma}\left(t, t, 2\right)\\
    t_2 := x \cdot 0.5 - y\\
    \mathbf{if}\;t \cdot t \leq 5 \cdot 10^{+146}:\\
    \;\;\;\;t\_2 \cdot \sqrt{\frac{z \cdot \mathsf{fma}\left(t \cdot t, t\_1 \cdot t\_1, -4\right)}{\mathsf{fma}\left(t, t\_1, -2\right)}}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_2 \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if (*.f64 t t) < 4.9999999999999999e146

      1. Initial program 99.7%

        \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. associate-*l*N/A

          \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
        2. *-lowering-*.f64N/A

          \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
        3. --lowering--.f64N/A

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

          \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
        5. exp-sqrtN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
        6. sqrt-unprodN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
        7. sqrt-lowering-sqrt.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
        8. *-lowering-*.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
        9. *-lowering-*.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
        10. exp-lowering-exp.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
        11. *-lowering-*.f6499.7

          \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
      4. Applied egg-rr99.7%

        \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
      5. Taylor expanded in t around 0

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

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{{t}^{2} \cdot \left(2 \cdot z + {t}^{2} \cdot z\right) + 2 \cdot z}} \]
        2. *-commutativeN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(2 \cdot z + {t}^{2} \cdot z\right) \cdot {t}^{2}} + 2 \cdot z} \]
        3. distribute-rgt-outN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot \left(2 + {t}^{2}\right)\right)} \cdot {t}^{2} + 2 \cdot z} \]
        4. associate-*l*N/A

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

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2}\right) + \color{blue}{z \cdot 2}} \]
        6. distribute-lft-outN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2} + 2\right)}} \]
        7. *-lowering-*.f64N/A

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

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \color{blue}{\mathsf{fma}\left(2 + {t}^{2}, {t}^{2}, 2\right)}} \]
        9. +-commutativeN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{{t}^{2} + 2}, {t}^{2}, 2\right)} \]
        10. unpow2N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{t \cdot t} + 2, {t}^{2}, 2\right)} \]
        11. accelerator-lowering-fma.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(t, t, 2\right)}, {t}^{2}, 2\right)} \]
        12. unpow2N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
        13. *-lowering-*.f6479.4

          \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
      7. Simplified79.4%

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}} \]
      8. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(\left(t \cdot t + 2\right) \cdot \left(t \cdot t\right) + 2\right) \cdot z}} \]
        2. flip-+N/A

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

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\frac{\left(\left(\left(t \cdot t + 2\right) \cdot \left(t \cdot t\right)\right) \cdot \left(\left(t \cdot t + 2\right) \cdot \left(t \cdot t\right)\right) - 2 \cdot 2\right) \cdot z}{\left(t \cdot t + 2\right) \cdot \left(t \cdot t\right) - 2}}} \]
        4. /-lowering-/.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\frac{\left(\left(\left(t \cdot t + 2\right) \cdot \left(t \cdot t\right)\right) \cdot \left(\left(t \cdot t + 2\right) \cdot \left(t \cdot t\right)\right) - 2 \cdot 2\right) \cdot z}{\left(t \cdot t + 2\right) \cdot \left(t \cdot t\right) - 2}}} \]
      9. Applied egg-rr90.2%

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{\frac{\mathsf{fma}\left(t \cdot t, \left(t \cdot \mathsf{fma}\left(t, t, 2\right)\right) \cdot \left(t \cdot \mathsf{fma}\left(t, t, 2\right)\right), -4\right) \cdot z}{\mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(t, t, 2\right), -2\right)}}} \]

      if 4.9999999999999999e146 < (*.f64 t t)

      1. Initial program 98.1%

        \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. associate-*l*N/A

          \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
        2. *-lowering-*.f64N/A

          \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
        3. --lowering--.f64N/A

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

          \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
        5. exp-sqrtN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
        6. sqrt-unprodN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
        7. sqrt-lowering-sqrt.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
        8. *-lowering-*.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
        9. *-lowering-*.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
        10. exp-lowering-exp.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
        11. *-lowering-*.f64100.0

          \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
      4. Applied egg-rr100.0%

        \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
      5. Taylor expanded in t around 0

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

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{{t}^{2} \cdot \left(2 \cdot z + {t}^{2} \cdot z\right) + 2 \cdot z}} \]
        2. *-commutativeN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(2 \cdot z + {t}^{2} \cdot z\right) \cdot {t}^{2}} + 2 \cdot z} \]
        3. distribute-rgt-outN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot \left(2 + {t}^{2}\right)\right)} \cdot {t}^{2} + 2 \cdot z} \]
        4. associate-*l*N/A

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

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2}\right) + \color{blue}{z \cdot 2}} \]
        6. distribute-lft-outN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2} + 2\right)}} \]
        7. *-lowering-*.f64N/A

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

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \color{blue}{\mathsf{fma}\left(2 + {t}^{2}, {t}^{2}, 2\right)}} \]
        9. +-commutativeN/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{{t}^{2} + 2}, {t}^{2}, 2\right)} \]
        10. unpow2N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{t \cdot t} + 2, {t}^{2}, 2\right)} \]
        11. accelerator-lowering-fma.f64N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(t, t, 2\right)}, {t}^{2}, 2\right)} \]
        12. unpow2N/A

          \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
        13. *-lowering-*.f64100.0

          \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
      7. Simplified100.0%

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}} \]
    3. Recombined 2 regimes into one program.
    4. Final simplification94.3%

      \[\leadsto \begin{array}{l} \mathbf{if}\;t \cdot t \leq 5 \cdot 10^{+146}:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{\frac{z \cdot \mathsf{fma}\left(t \cdot t, \left(t \cdot \mathsf{fma}\left(t, t, 2\right)\right) \cdot \left(t \cdot \mathsf{fma}\left(t, t, 2\right)\right), -4\right)}{\mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(t, t, 2\right), -2\right)}}\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 6: 96.6% accurate, 1.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \sqrt{z \cdot 2}\\ t_2 := x \cdot 0.5 - y\\ \mathbf{if}\;t \cdot t \leq 10000:\\ \;\;\;\;\left(t\_2 \cdot t\_1\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.020833333333333332, 0.125\right), 0.5\right), 1\right)\\ \mathbf{elif}\;t \cdot t \leq 2 \cdot 10^{+101}:\\ \;\;\;\;\frac{t\_1 \cdot \left(x \cdot \left(x \cdot \mathsf{fma}\left(0 - y, \frac{y}{x \cdot x}, 0.25\right)\right)\right)}{\mathsf{fma}\left(x, 0.5, y\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_2 \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t, t \cdot 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \end{array} \]
    (FPCore (x y z t)
     :precision binary64
     (let* ((t_1 (sqrt (* z 2.0))) (t_2 (- (* x 0.5) y)))
       (if (<= (* t t) 10000.0)
         (*
          (* t_2 t_1)
          (fma
           (* t t)
           (fma (* t t) (fma (* t t) 0.020833333333333332 0.125) 0.5)
           1.0))
         (if (<= (* t t) 2e+101)
           (/ (* t_1 (* x (* x (fma (- 0.0 y) (/ y (* x x)) 0.25)))) (fma x 0.5 y))
           (*
            t_2
            (sqrt
             (*
              (* z 2.0)
              (fma
               (* t t)
               (fma (* t t) (fma t (* t 0.16666666666666666) 0.5) 1.0)
               1.0))))))))
    double code(double x, double y, double z, double t) {
    	double t_1 = sqrt((z * 2.0));
    	double t_2 = (x * 0.5) - y;
    	double tmp;
    	if ((t * t) <= 10000.0) {
    		tmp = (t_2 * t_1) * fma((t * t), fma((t * t), fma((t * t), 0.020833333333333332, 0.125), 0.5), 1.0);
    	} else if ((t * t) <= 2e+101) {
    		tmp = (t_1 * (x * (x * fma((0.0 - y), (y / (x * x)), 0.25)))) / fma(x, 0.5, y);
    	} else {
    		tmp = t_2 * sqrt(((z * 2.0) * fma((t * t), fma((t * t), fma(t, (t * 0.16666666666666666), 0.5), 1.0), 1.0)));
    	}
    	return tmp;
    }
    
    function code(x, y, z, t)
    	t_1 = sqrt(Float64(z * 2.0))
    	t_2 = Float64(Float64(x * 0.5) - y)
    	tmp = 0.0
    	if (Float64(t * t) <= 10000.0)
    		tmp = Float64(Float64(t_2 * t_1) * fma(Float64(t * t), fma(Float64(t * t), fma(Float64(t * t), 0.020833333333333332, 0.125), 0.5), 1.0));
    	elseif (Float64(t * t) <= 2e+101)
    		tmp = Float64(Float64(t_1 * Float64(x * Float64(x * fma(Float64(0.0 - y), Float64(y / Float64(x * x)), 0.25)))) / fma(x, 0.5, y));
    	else
    		tmp = Float64(t_2 * sqrt(Float64(Float64(z * 2.0) * fma(Float64(t * t), fma(Float64(t * t), fma(t, Float64(t * 0.16666666666666666), 0.5), 1.0), 1.0))));
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 10000.0], N[(N[(t$95$2 * t$95$1), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * 0.020833333333333332 + 0.125), $MachinePrecision] + 0.5), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(t * t), $MachinePrecision], 2e+101], N[(N[(t$95$1 * N[(x * N[(x * N[(N[(0.0 - y), $MachinePrecision] * N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + 0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * 0.5 + y), $MachinePrecision]), $MachinePrecision], N[(t$95$2 * N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(t * N[(t * 0.16666666666666666), $MachinePrecision] + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \sqrt{z \cdot 2}\\
    t_2 := x \cdot 0.5 - y\\
    \mathbf{if}\;t \cdot t \leq 10000:\\
    \;\;\;\;\left(t\_2 \cdot t\_1\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.020833333333333332, 0.125\right), 0.5\right), 1\right)\\
    
    \mathbf{elif}\;t \cdot t \leq 2 \cdot 10^{+101}:\\
    \;\;\;\;\frac{t\_1 \cdot \left(x \cdot \left(x \cdot \mathsf{fma}\left(0 - y, \frac{y}{x \cdot x}, 0.25\right)\right)\right)}{\mathsf{fma}\left(x, 0.5, y\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_2 \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t, t \cdot 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (*.f64 t t) < 1e4

      1. Initial program 99.6%

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

        \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left(1 + {t}^{2} \cdot \left(\frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right)\right)\right)} \]
      4. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left({t}^{2} \cdot \left(\frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right)\right) + 1\right)} \]
        2. accelerator-lowering-fma.f64N/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right), 1\right)} \]
        3. unpow2N/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right), 1\right) \]
        4. *-lowering-*.f64N/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right), 1\right) \]
        5. +-commutativeN/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \color{blue}{{t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right) + \frac{1}{2}}, 1\right) \]
        6. accelerator-lowering-fma.f64N/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, \frac{1}{2}\right)}, 1\right) \]
        7. unpow2N/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, \frac{1}{2}\right), 1\right) \]
        8. *-lowering-*.f64N/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, \frac{1}{2}\right), 1\right) \]
        9. +-commutativeN/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{\frac{1}{48} \cdot {t}^{2} + \frac{1}{8}}, \frac{1}{2}\right), 1\right) \]
        10. *-commutativeN/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{{t}^{2} \cdot \frac{1}{48}} + \frac{1}{8}, \frac{1}{2}\right), 1\right) \]
        11. accelerator-lowering-fma.f64N/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{48}, \frac{1}{8}\right)}, \frac{1}{2}\right), 1\right) \]
        12. unpow2N/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{48}, \frac{1}{8}\right), \frac{1}{2}\right), 1\right) \]
        13. *-lowering-*.f6496.4

          \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, 0.020833333333333332, 0.125\right), 0.5\right), 1\right) \]
      5. Simplified96.4%

        \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.020833333333333332, 0.125\right), 0.5\right), 1\right)} \]

      if 1e4 < (*.f64 t t) < 2e101

      1. Initial program 100.0%

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

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

          \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{1} \]
        2. Step-by-step derivation
          1. *-rgt-identityN/A

            \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}} \]
          2. flip--N/A

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

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

            \[\leadsto \color{blue}{\frac{\left(\left(x \cdot \frac{1}{2}\right) \cdot \left(x \cdot \frac{1}{2}\right) - y \cdot y\right) \cdot \sqrt{z \cdot 2}}{x \cdot \frac{1}{2} + y}} \]
          5. *-lowering-*.f64N/A

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

            \[\leadsto \frac{\color{blue}{\left(\left(x \cdot \frac{1}{2}\right) \cdot \left(x \cdot \frac{1}{2}\right) - y \cdot y\right)} \cdot \sqrt{z \cdot 2}}{x \cdot \frac{1}{2} + y} \]
          7. swap-sqrN/A

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

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

            \[\leadsto \frac{\left(\color{blue}{x \cdot \left(x \cdot \frac{1}{4}\right)} - y \cdot y\right) \cdot \sqrt{z \cdot 2}}{x \cdot \frac{1}{2} + y} \]
          10. *-lowering-*.f64N/A

            \[\leadsto \frac{\left(\color{blue}{x \cdot \left(x \cdot \frac{1}{4}\right)} - y \cdot y\right) \cdot \sqrt{z \cdot 2}}{x \cdot \frac{1}{2} + y} \]
          11. *-lowering-*.f64N/A

            \[\leadsto \frac{\left(x \cdot \color{blue}{\left(x \cdot \frac{1}{4}\right)} - y \cdot y\right) \cdot \sqrt{z \cdot 2}}{x \cdot \frac{1}{2} + y} \]
          12. *-lowering-*.f64N/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \frac{1}{4}\right) - \color{blue}{y \cdot y}\right) \cdot \sqrt{z \cdot 2}}{x \cdot \frac{1}{2} + y} \]
          13. sqrt-lowering-sqrt.f64N/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \frac{1}{4}\right) - y \cdot y\right) \cdot \color{blue}{\sqrt{z \cdot 2}}}{x \cdot \frac{1}{2} + y} \]
          14. *-lowering-*.f64N/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \frac{1}{4}\right) - y \cdot y\right) \cdot \sqrt{\color{blue}{z \cdot 2}}}{x \cdot \frac{1}{2} + y} \]
          15. accelerator-lowering-fma.f6440.6

            \[\leadsto \frac{\left(x \cdot \left(x \cdot 0.25\right) - y \cdot y\right) \cdot \sqrt{z \cdot 2}}{\color{blue}{\mathsf{fma}\left(x, 0.5, y\right)}} \]
        3. Applied egg-rr40.6%

          \[\leadsto \color{blue}{\frac{\left(x \cdot \left(x \cdot 0.25\right) - y \cdot y\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, 0.5, y\right)}} \]
        4. Taylor expanded in x around inf

          \[\leadsto \frac{\color{blue}{\left({x}^{2} \cdot \left(\frac{1}{4} + -1 \cdot \frac{{y}^{2}}{{x}^{2}}\right)\right)} \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
        5. Step-by-step derivation
          1. unpow2N/A

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

            \[\leadsto \frac{\color{blue}{\left(x \cdot \left(x \cdot \left(\frac{1}{4} + -1 \cdot \frac{{y}^{2}}{{x}^{2}}\right)\right)\right)} \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          3. *-lowering-*.f64N/A

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

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

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \color{blue}{\left(-1 \cdot \frac{{y}^{2}}{{x}^{2}} + \frac{1}{4}\right)}\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          6. mul-1-negN/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{{y}^{2}}{{x}^{2}}\right)\right)} + \frac{1}{4}\right)\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          7. unpow2N/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \left(\left(\mathsf{neg}\left(\frac{\color{blue}{y \cdot y}}{{x}^{2}}\right)\right) + \frac{1}{4}\right)\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          8. associate-/l*N/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \left(\left(\mathsf{neg}\left(\color{blue}{y \cdot \frac{y}{{x}^{2}}}\right)\right) + \frac{1}{4}\right)\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          9. distribute-lft-neg-inN/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot \frac{y}{{x}^{2}}} + \frac{1}{4}\right)\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          10. mul-1-negN/A

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

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \color{blue}{\mathsf{fma}\left(-1 \cdot y, \frac{y}{{x}^{2}}, \frac{1}{4}\right)}\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          12. mul-1-negN/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, \frac{y}{{x}^{2}}, \frac{1}{4}\right)\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          13. neg-sub0N/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \mathsf{fma}\left(\color{blue}{0 - y}, \frac{y}{{x}^{2}}, \frac{1}{4}\right)\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          14. --lowering--.f64N/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \mathsf{fma}\left(\color{blue}{0 - y}, \frac{y}{{x}^{2}}, \frac{1}{4}\right)\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          15. /-lowering-/.f64N/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \mathsf{fma}\left(0 - y, \color{blue}{\frac{y}{{x}^{2}}}, \frac{1}{4}\right)\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          16. unpow2N/A

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \mathsf{fma}\left(0 - y, \frac{y}{\color{blue}{x \cdot x}}, \frac{1}{4}\right)\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, \frac{1}{2}, y\right)} \]
          17. *-lowering-*.f6466.6

            \[\leadsto \frac{\left(x \cdot \left(x \cdot \mathsf{fma}\left(0 - y, \frac{y}{\color{blue}{x \cdot x}}, 0.25\right)\right)\right) \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, 0.5, y\right)} \]
        6. Simplified66.6%

          \[\leadsto \frac{\color{blue}{\left(x \cdot \left(x \cdot \mathsf{fma}\left(0 - y, \frac{y}{x \cdot x}, 0.25\right)\right)\right)} \cdot \sqrt{z \cdot 2}}{\mathsf{fma}\left(x, 0.5, y\right)} \]

        if 2e101 < (*.f64 t t)

        1. Initial program 98.3%

          \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. associate-*l*N/A

            \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
          2. *-lowering-*.f64N/A

            \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
          3. --lowering--.f64N/A

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

            \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
          5. exp-sqrtN/A

            \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
          6. sqrt-unprodN/A

            \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
          7. sqrt-lowering-sqrt.f64N/A

            \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
          8. *-lowering-*.f64N/A

            \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
          9. *-lowering-*.f64N/A

            \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
          10. exp-lowering-exp.f64N/A

            \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
          11. *-lowering-*.f64100.0

            \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
        4. Applied egg-rr100.0%

          \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
        5. Taylor expanded in t around 0

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

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

            \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\mathsf{fma}\left({t}^{2}, 1 + {t}^{2} \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot {t}^{2}\right), 1\right)}} \]
          3. unpow2N/A

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

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

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

            \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{2} + \frac{1}{6} \cdot {t}^{2}, 1\right)}, 1\right)} \]
          7. unpow2N/A

            \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{2} + \frac{1}{6} \cdot {t}^{2}, 1\right), 1\right)} \]
          8. *-lowering-*.f64N/A

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

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

            \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{{t}^{2} \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right)} \]
          11. unpow2N/A

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

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

            \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{\mathsf{fma}\left(t, t \cdot \frac{1}{6}, \frac{1}{2}\right)}, 1\right), 1\right)} \]
          14. *-lowering-*.f64100.0

            \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t, \color{blue}{t \cdot 0.16666666666666666}, 0.5\right), 1\right), 1\right)} \]
        7. Simplified100.0%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \cdot t \leq 10000:\\ \;\;\;\;\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.020833333333333332, 0.125\right), 0.5\right), 1\right)\\ \mathbf{elif}\;t \cdot t \leq 2 \cdot 10^{+101}:\\ \;\;\;\;\frac{\sqrt{z \cdot 2} \cdot \left(x \cdot \left(x \cdot \mathsf{fma}\left(0 - y, \frac{y}{x \cdot x}, 0.25\right)\right)\right)}{\mathsf{fma}\left(x, 0.5, y\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t, t \cdot 0.16666666666666666, 0.5\right), 1\right), 1\right)}\\ \end{array} \]
      7. Add Preprocessing

      Alternative 7: 87.9% accurate, 2.0× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \sqrt{z \cdot 2}\\ t_2 := x \cdot 0.5 - y\\ \mathbf{if}\;t \cdot t \leq 400:\\ \;\;\;\;\left(t\_2 \cdot t\_1\right) \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right)\\ \mathbf{elif}\;t \cdot t \leq 2 \cdot 10^{+92}:\\ \;\;\;\;\frac{t\_1 \cdot \left(0 - \mathsf{fma}\left(y, y, 0\right)\right)}{y}\\ \mathbf{elif}\;t \cdot t \leq 10^{+300}:\\ \;\;\;\;\left(0 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_2 \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t, t, 1\right)}\\ \end{array} \end{array} \]
      (FPCore (x y z t)
       :precision binary64
       (let* ((t_1 (sqrt (* z 2.0))) (t_2 (- (* x 0.5) y)))
         (if (<= (* t t) 400.0)
           (* (* t_2 t_1) (fma 0.5 (* t t) 1.0))
           (if (<= (* t t) 2e+92)
             (/ (* t_1 (- 0.0 (fma y y 0.0))) y)
             (if (<= (* t t) 1e+300)
               (* (- 0.0 y) (sqrt (* z (fma (fma t t 2.0) (* t t) 2.0))))
               (* t_2 (sqrt (* (* z 2.0) (fma t t 1.0)))))))))
      double code(double x, double y, double z, double t) {
      	double t_1 = sqrt((z * 2.0));
      	double t_2 = (x * 0.5) - y;
      	double tmp;
      	if ((t * t) <= 400.0) {
      		tmp = (t_2 * t_1) * fma(0.5, (t * t), 1.0);
      	} else if ((t * t) <= 2e+92) {
      		tmp = (t_1 * (0.0 - fma(y, y, 0.0))) / y;
      	} else if ((t * t) <= 1e+300) {
      		tmp = (0.0 - y) * sqrt((z * fma(fma(t, t, 2.0), (t * t), 2.0)));
      	} else {
      		tmp = t_2 * sqrt(((z * 2.0) * fma(t, t, 1.0)));
      	}
      	return tmp;
      }
      
      function code(x, y, z, t)
      	t_1 = sqrt(Float64(z * 2.0))
      	t_2 = Float64(Float64(x * 0.5) - y)
      	tmp = 0.0
      	if (Float64(t * t) <= 400.0)
      		tmp = Float64(Float64(t_2 * t_1) * fma(0.5, Float64(t * t), 1.0));
      	elseif (Float64(t * t) <= 2e+92)
      		tmp = Float64(Float64(t_1 * Float64(0.0 - fma(y, y, 0.0))) / y);
      	elseif (Float64(t * t) <= 1e+300)
      		tmp = Float64(Float64(0.0 - y) * sqrt(Float64(z * fma(fma(t, t, 2.0), Float64(t * t), 2.0))));
      	else
      		tmp = Float64(t_2 * sqrt(Float64(Float64(z * 2.0) * fma(t, t, 1.0))));
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 400.0], N[(N[(t$95$2 * t$95$1), $MachinePrecision] * N[(0.5 * N[(t * t), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(t * t), $MachinePrecision], 2e+92], N[(N[(t$95$1 * N[(0.0 - N[(y * y + 0.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[N[(t * t), $MachinePrecision], 1e+300], N[(N[(0.0 - y), $MachinePrecision] * N[Sqrt[N[(z * N[(N[(t * t + 2.0), $MachinePrecision] * N[(t * t), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$2 * N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[(t * t + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \sqrt{z \cdot 2}\\
      t_2 := x \cdot 0.5 - y\\
      \mathbf{if}\;t \cdot t \leq 400:\\
      \;\;\;\;\left(t\_2 \cdot t\_1\right) \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right)\\
      
      \mathbf{elif}\;t \cdot t \leq 2 \cdot 10^{+92}:\\
      \;\;\;\;\frac{t\_1 \cdot \left(0 - \mathsf{fma}\left(y, y, 0\right)\right)}{y}\\
      
      \mathbf{elif}\;t \cdot t \leq 10^{+300}:\\
      \;\;\;\;\left(0 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_2 \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t, t, 1\right)}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if (*.f64 t t) < 400

        1. Initial program 99.6%

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

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left(1 + \frac{1}{2} \cdot {t}^{2}\right)} \]
        4. Step-by-step derivation
          1. +-commutativeN/A

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

            \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{1}{2}, {t}^{2}, 1\right)} \]
          3. unpow2N/A

            \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\frac{1}{2}, \color{blue}{t \cdot t}, 1\right) \]
          4. *-lowering-*.f6498.1

            \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(0.5, \color{blue}{t \cdot t}, 1\right) \]
        5. Simplified98.1%

          \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left(0.5, t \cdot t, 1\right)} \]

        if 400 < (*.f64 t t) < 2.0000000000000001e92

        1. Initial program 100.0%

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

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

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

            \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
          3. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
            2. neg-sub0N/A

              \[\leadsto \left(\color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
            3. --lowering--.f643.6

              \[\leadsto \left(\color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
          4. Simplified3.6%

            \[\leadsto \left(\color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
          5. Step-by-step derivation
            1. *-rgt-identityN/A

              \[\leadsto \color{blue}{\left(0 - y\right) \cdot \sqrt{z \cdot 2}} \]
            2. flip--N/A

              \[\leadsto \color{blue}{\frac{0 \cdot 0 - y \cdot y}{0 + y}} \cdot \sqrt{z \cdot 2} \]
            3. +-lft-identityN/A

              \[\leadsto \frac{0 \cdot 0 - y \cdot y}{\color{blue}{y}} \cdot \sqrt{z \cdot 2} \]
            4. associate-*l/N/A

              \[\leadsto \color{blue}{\frac{\left(0 \cdot 0 - y \cdot y\right) \cdot \sqrt{z \cdot 2}}{y}} \]
            5. /-lowering-/.f64N/A

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

              \[\leadsto \frac{\color{blue}{\left(0 \cdot 0 - y \cdot y\right) \cdot \sqrt{z \cdot 2}}}{y} \]
            7. metadata-evalN/A

              \[\leadsto \frac{\left(\color{blue}{0} - y \cdot y\right) \cdot \sqrt{z \cdot 2}}{y} \]
            8. --lowering--.f64N/A

              \[\leadsto \frac{\color{blue}{\left(0 - y \cdot y\right)} \cdot \sqrt{z \cdot 2}}{y} \]
            9. +-rgt-identityN/A

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

              \[\leadsto \frac{\left(0 - \color{blue}{\mathsf{fma}\left(y, y, 0\right)}\right) \cdot \sqrt{z \cdot 2}}{y} \]
            11. sqrt-lowering-sqrt.f64N/A

              \[\leadsto \frac{\left(0 - \mathsf{fma}\left(y, y, 0\right)\right) \cdot \color{blue}{\sqrt{z \cdot 2}}}{y} \]
            12. *-lowering-*.f6429.9

              \[\leadsto \frac{\left(0 - \mathsf{fma}\left(y, y, 0\right)\right) \cdot \sqrt{\color{blue}{z \cdot 2}}}{y} \]
          6. Applied egg-rr29.9%

            \[\leadsto \color{blue}{\frac{\left(0 - \mathsf{fma}\left(y, y, 0\right)\right) \cdot \sqrt{z \cdot 2}}{y}} \]

          if 2.0000000000000001e92 < (*.f64 t t) < 1.0000000000000001e300

          1. Initial program 98.1%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. associate-*l*N/A

              \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
            3. --lowering--.f64N/A

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

              \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
            5. exp-sqrtN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
            6. sqrt-unprodN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            7. sqrt-lowering-sqrt.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            8. *-lowering-*.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            9. *-lowering-*.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
            10. exp-lowering-exp.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
            11. *-lowering-*.f64100.0

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
          4. Applied egg-rr100.0%

            \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
          5. Taylor expanded in t around 0

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

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{{t}^{2} \cdot \left(2 \cdot z + {t}^{2} \cdot z\right) + 2 \cdot z}} \]
            2. *-commutativeN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(2 \cdot z + {t}^{2} \cdot z\right) \cdot {t}^{2}} + 2 \cdot z} \]
            3. distribute-rgt-outN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot \left(2 + {t}^{2}\right)\right)} \cdot {t}^{2} + 2 \cdot z} \]
            4. associate-*l*N/A

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

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2}\right) + \color{blue}{z \cdot 2}} \]
            6. distribute-lft-outN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2} + 2\right)}} \]
            7. *-lowering-*.f64N/A

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

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \color{blue}{\mathsf{fma}\left(2 + {t}^{2}, {t}^{2}, 2\right)}} \]
            9. +-commutativeN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{{t}^{2} + 2}, {t}^{2}, 2\right)} \]
            10. unpow2N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{t \cdot t} + 2, {t}^{2}, 2\right)} \]
            11. accelerator-lowering-fma.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(t, t, 2\right)}, {t}^{2}, 2\right)} \]
            12. unpow2N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
            13. *-lowering-*.f6486.0

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
          7. Simplified86.0%

            \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}} \]
          8. Taylor expanded in x around 0

            \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
          9. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
            2. neg-sub0N/A

              \[\leadsto \color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
            3. --lowering--.f6467.1

              \[\leadsto \color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
          10. Simplified67.1%

            \[\leadsto \color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]

          if 1.0000000000000001e300 < (*.f64 t t)

          1. Initial program 98.5%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. associate-*l*N/A

              \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
            3. --lowering--.f64N/A

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

              \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
            5. exp-sqrtN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
            6. sqrt-unprodN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            7. sqrt-lowering-sqrt.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            8. *-lowering-*.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            9. *-lowering-*.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
            10. exp-lowering-exp.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
            11. *-lowering-*.f64100.0

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
          4. Applied egg-rr100.0%

            \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
          5. Taylor expanded in t around 0

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

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\left({t}^{2} + 1\right)}} \]
            2. unpow2N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \left(\color{blue}{t \cdot t} + 1\right)} \]
            3. accelerator-lowering-fma.f64100.0

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\mathsf{fma}\left(t, t, 1\right)}} \]
          7. Simplified100.0%

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;t \cdot t \leq 400:\\ \;\;\;\;\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right)\\ \mathbf{elif}\;t \cdot t \leq 2 \cdot 10^{+92}:\\ \;\;\;\;\frac{\sqrt{z \cdot 2} \cdot \left(0 - \mathsf{fma}\left(y, y, 0\right)\right)}{y}\\ \mathbf{elif}\;t \cdot t \leq 10^{+300}:\\ \;\;\;\;\left(0 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t, t, 1\right)}\\ \end{array} \]
        7. Add Preprocessing

        Alternative 8: 87.9% accurate, 2.0× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t, t, 1\right)}\\ \mathbf{if}\;t \cdot t \leq 400:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \cdot t \leq 2 \cdot 10^{+92}:\\ \;\;\;\;\frac{\sqrt{z \cdot 2} \cdot \left(0 - \mathsf{fma}\left(y, y, 0\right)\right)}{y}\\ \mathbf{elif}\;t \cdot t \leq 10^{+300}:\\ \;\;\;\;\left(0 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t)
         :precision binary64
         (let* ((t_1 (* (- (* x 0.5) y) (sqrt (* (* z 2.0) (fma t t 1.0))))))
           (if (<= (* t t) 400.0)
             t_1
             (if (<= (* t t) 2e+92)
               (/ (* (sqrt (* z 2.0)) (- 0.0 (fma y y 0.0))) y)
               (if (<= (* t t) 1e+300)
                 (* (- 0.0 y) (sqrt (* z (fma (fma t t 2.0) (* t t) 2.0))))
                 t_1)))))
        double code(double x, double y, double z, double t) {
        	double t_1 = ((x * 0.5) - y) * sqrt(((z * 2.0) * fma(t, t, 1.0)));
        	double tmp;
        	if ((t * t) <= 400.0) {
        		tmp = t_1;
        	} else if ((t * t) <= 2e+92) {
        		tmp = (sqrt((z * 2.0)) * (0.0 - fma(y, y, 0.0))) / y;
        	} else if ((t * t) <= 1e+300) {
        		tmp = (0.0 - y) * sqrt((z * fma(fma(t, t, 2.0), (t * t), 2.0)));
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t)
        	t_1 = Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(Float64(z * 2.0) * fma(t, t, 1.0))))
        	tmp = 0.0
        	if (Float64(t * t) <= 400.0)
        		tmp = t_1;
        	elseif (Float64(t * t) <= 2e+92)
        		tmp = Float64(Float64(sqrt(Float64(z * 2.0)) * Float64(0.0 - fma(y, y, 0.0))) / y);
        	elseif (Float64(t * t) <= 1e+300)
        		tmp = Float64(Float64(0.0 - y) * sqrt(Float64(z * fma(fma(t, t, 2.0), Float64(t * t), 2.0))));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[(t * t + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 400.0], t$95$1, If[LessEqual[N[(t * t), $MachinePrecision], 2e+92], N[(N[(N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision] * N[(0.0 - N[(y * y + 0.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[N[(t * t), $MachinePrecision], 1e+300], N[(N[(0.0 - y), $MachinePrecision] * N[Sqrt[N[(z * N[(N[(t * t + 2.0), $MachinePrecision] * N[(t * t), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t, t, 1\right)}\\
        \mathbf{if}\;t \cdot t \leq 400:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;t \cdot t \leq 2 \cdot 10^{+92}:\\
        \;\;\;\;\frac{\sqrt{z \cdot 2} \cdot \left(0 - \mathsf{fma}\left(y, y, 0\right)\right)}{y}\\
        
        \mathbf{elif}\;t \cdot t \leq 10^{+300}:\\
        \;\;\;\;\left(0 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if (*.f64 t t) < 400 or 1.0000000000000001e300 < (*.f64 t t)

          1. Initial program 99.2%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. associate-*l*N/A

              \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
            3. --lowering--.f64N/A

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

              \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
            5. exp-sqrtN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
            6. sqrt-unprodN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            7. sqrt-lowering-sqrt.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            8. *-lowering-*.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            9. *-lowering-*.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
            10. exp-lowering-exp.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
            11. *-lowering-*.f6499.8

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
          4. Applied egg-rr99.8%

            \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
          5. Taylor expanded in t around 0

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

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\left({t}^{2} + 1\right)}} \]
            2. unpow2N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \left(\color{blue}{t \cdot t} + 1\right)} \]
            3. accelerator-lowering-fma.f6498.8

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\mathsf{fma}\left(t, t, 1\right)}} \]
          7. Simplified98.8%

            \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\mathsf{fma}\left(t, t, 1\right)}} \]

          if 400 < (*.f64 t t) < 2.0000000000000001e92

          1. Initial program 100.0%

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

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

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

              \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
            3. Step-by-step derivation
              1. mul-1-negN/A

                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
              2. neg-sub0N/A

                \[\leadsto \left(\color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
              3. --lowering--.f643.6

                \[\leadsto \left(\color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
            4. Simplified3.6%

              \[\leadsto \left(\color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
            5. Step-by-step derivation
              1. *-rgt-identityN/A

                \[\leadsto \color{blue}{\left(0 - y\right) \cdot \sqrt{z \cdot 2}} \]
              2. flip--N/A

                \[\leadsto \color{blue}{\frac{0 \cdot 0 - y \cdot y}{0 + y}} \cdot \sqrt{z \cdot 2} \]
              3. +-lft-identityN/A

                \[\leadsto \frac{0 \cdot 0 - y \cdot y}{\color{blue}{y}} \cdot \sqrt{z \cdot 2} \]
              4. associate-*l/N/A

                \[\leadsto \color{blue}{\frac{\left(0 \cdot 0 - y \cdot y\right) \cdot \sqrt{z \cdot 2}}{y}} \]
              5. /-lowering-/.f64N/A

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

                \[\leadsto \frac{\color{blue}{\left(0 \cdot 0 - y \cdot y\right) \cdot \sqrt{z \cdot 2}}}{y} \]
              7. metadata-evalN/A

                \[\leadsto \frac{\left(\color{blue}{0} - y \cdot y\right) \cdot \sqrt{z \cdot 2}}{y} \]
              8. --lowering--.f64N/A

                \[\leadsto \frac{\color{blue}{\left(0 - y \cdot y\right)} \cdot \sqrt{z \cdot 2}}{y} \]
              9. +-rgt-identityN/A

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

                \[\leadsto \frac{\left(0 - \color{blue}{\mathsf{fma}\left(y, y, 0\right)}\right) \cdot \sqrt{z \cdot 2}}{y} \]
              11. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \frac{\left(0 - \mathsf{fma}\left(y, y, 0\right)\right) \cdot \color{blue}{\sqrt{z \cdot 2}}}{y} \]
              12. *-lowering-*.f6429.9

                \[\leadsto \frac{\left(0 - \mathsf{fma}\left(y, y, 0\right)\right) \cdot \sqrt{\color{blue}{z \cdot 2}}}{y} \]
            6. Applied egg-rr29.9%

              \[\leadsto \color{blue}{\frac{\left(0 - \mathsf{fma}\left(y, y, 0\right)\right) \cdot \sqrt{z \cdot 2}}{y}} \]

            if 2.0000000000000001e92 < (*.f64 t t) < 1.0000000000000001e300

            1. Initial program 98.1%

              \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. associate-*l*N/A

                \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
              2. *-lowering-*.f64N/A

                \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
              3. --lowering--.f64N/A

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

                \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
              5. exp-sqrtN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
              6. sqrt-unprodN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              7. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              8. *-lowering-*.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              9. *-lowering-*.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
              10. exp-lowering-exp.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
              11. *-lowering-*.f64100.0

                \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
            4. Applied egg-rr100.0%

              \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            5. Taylor expanded in t around 0

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

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{{t}^{2} \cdot \left(2 \cdot z + {t}^{2} \cdot z\right) + 2 \cdot z}} \]
              2. *-commutativeN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(2 \cdot z + {t}^{2} \cdot z\right) \cdot {t}^{2}} + 2 \cdot z} \]
              3. distribute-rgt-outN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot \left(2 + {t}^{2}\right)\right)} \cdot {t}^{2} + 2 \cdot z} \]
              4. associate-*l*N/A

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

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2}\right) + \color{blue}{z \cdot 2}} \]
              6. distribute-lft-outN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2} + 2\right)}} \]
              7. *-lowering-*.f64N/A

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

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \color{blue}{\mathsf{fma}\left(2 + {t}^{2}, {t}^{2}, 2\right)}} \]
              9. +-commutativeN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{{t}^{2} + 2}, {t}^{2}, 2\right)} \]
              10. unpow2N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{t \cdot t} + 2, {t}^{2}, 2\right)} \]
              11. accelerator-lowering-fma.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(t, t, 2\right)}, {t}^{2}, 2\right)} \]
              12. unpow2N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
              13. *-lowering-*.f6486.0

                \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
            7. Simplified86.0%

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}} \]
            8. Taylor expanded in x around 0

              \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
            9. Step-by-step derivation
              1. mul-1-negN/A

                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
              2. neg-sub0N/A

                \[\leadsto \color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
              3. --lowering--.f6467.1

                \[\leadsto \color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
            10. Simplified67.1%

              \[\leadsto \color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
          5. Recombined 3 regimes into one program.
          6. Final simplification85.4%

            \[\leadsto \begin{array}{l} \mathbf{if}\;t \cdot t \leq 400:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t, t, 1\right)}\\ \mathbf{elif}\;t \cdot t \leq 2 \cdot 10^{+92}:\\ \;\;\;\;\frac{\sqrt{z \cdot 2} \cdot \left(0 - \mathsf{fma}\left(y, y, 0\right)\right)}{y}\\ \mathbf{elif}\;t \cdot t \leq 10^{+300}:\\ \;\;\;\;\left(0 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t, t, 1\right)}\\ \end{array} \]
          7. Add Preprocessing

          Alternative 9: 92.8% accurate, 2.2× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot 0.5 - y\\ \mathbf{if}\;t\_1 \leq 1.848 \cdot 10^{+73}:\\ \;\;\;\;t\_1 \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(t\_1 \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \left(\left(t \cdot t\right) \cdot 0.125\right), 1\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t)
           :precision binary64
           (let* ((t_1 (- (* x 0.5) y)))
             (if (<= t_1 1.848e+73)
               (* t_1 (sqrt (* z (fma (fma t t 2.0) (* t t) 2.0))))
               (* (* t_1 (sqrt (* z 2.0))) (fma t (* t (* (* t t) 0.125)) 1.0)))))
          double code(double x, double y, double z, double t) {
          	double t_1 = (x * 0.5) - y;
          	double tmp;
          	if (t_1 <= 1.848e+73) {
          		tmp = t_1 * sqrt((z * fma(fma(t, t, 2.0), (t * t), 2.0)));
          	} else {
          		tmp = (t_1 * sqrt((z * 2.0))) * fma(t, (t * ((t * t) * 0.125)), 1.0);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t)
          	t_1 = Float64(Float64(x * 0.5) - y)
          	tmp = 0.0
          	if (t_1 <= 1.848e+73)
          		tmp = Float64(t_1 * sqrt(Float64(z * fma(fma(t, t, 2.0), Float64(t * t), 2.0))));
          	else
          		tmp = Float64(Float64(t_1 * sqrt(Float64(z * 2.0))) * fma(t, Float64(t * Float64(Float64(t * t) * 0.125)), 1.0));
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[t$95$1, 1.848e+73], N[(t$95$1 * N[Sqrt[N[(z * N[(N[(t * t + 2.0), $MachinePrecision] * N[(t * t), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(N[(t$95$1 * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(t * N[(t * N[(N[(t * t), $MachinePrecision] * 0.125), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := x \cdot 0.5 - y\\
          \mathbf{if}\;t\_1 \leq 1.848 \cdot 10^{+73}:\\
          \;\;\;\;t\_1 \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\
          
          \mathbf{else}:\\
          \;\;\;\;\left(t\_1 \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \left(\left(t \cdot t\right) \cdot 0.125\right), 1\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if (-.f64 (*.f64 x #s(literal 1/2 binary64)) y) < 1.8480000000000001e73

            1. Initial program 98.7%

              \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. associate-*l*N/A

                \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
              2. *-lowering-*.f64N/A

                \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
              3. --lowering--.f64N/A

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

                \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
              5. exp-sqrtN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
              6. sqrt-unprodN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              7. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              8. *-lowering-*.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              9. *-lowering-*.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
              10. exp-lowering-exp.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
              11. *-lowering-*.f6499.8

                \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
            4. Applied egg-rr99.8%

              \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            5. Taylor expanded in t around 0

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

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{{t}^{2} \cdot \left(2 \cdot z + {t}^{2} \cdot z\right) + 2 \cdot z}} \]
              2. *-commutativeN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(2 \cdot z + {t}^{2} \cdot z\right) \cdot {t}^{2}} + 2 \cdot z} \]
              3. distribute-rgt-outN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot \left(2 + {t}^{2}\right)\right)} \cdot {t}^{2} + 2 \cdot z} \]
              4. associate-*l*N/A

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

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2}\right) + \color{blue}{z \cdot 2}} \]
              6. distribute-lft-outN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2} + 2\right)}} \]
              7. *-lowering-*.f64N/A

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

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \color{blue}{\mathsf{fma}\left(2 + {t}^{2}, {t}^{2}, 2\right)}} \]
              9. +-commutativeN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{{t}^{2} + 2}, {t}^{2}, 2\right)} \]
              10. unpow2N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{t \cdot t} + 2, {t}^{2}, 2\right)} \]
              11. accelerator-lowering-fma.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(t, t, 2\right)}, {t}^{2}, 2\right)} \]
              12. unpow2N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
              13. *-lowering-*.f6490.2

                \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
            7. Simplified90.2%

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}} \]

            if 1.8480000000000001e73 < (-.f64 (*.f64 x #s(literal 1/2 binary64)) y)

            1. Initial program 99.8%

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

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left(1 + {t}^{2} \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right)\right)} \]
            4. Step-by-step derivation
              1. +-commutativeN/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left({t}^{2} \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right) + 1\right)} \]
              2. unpow2N/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\color{blue}{\left(t \cdot t\right)} \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right) + 1\right) \]
              3. associate-*l*N/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\color{blue}{t \cdot \left(t \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right)\right)} + 1\right) \]
              4. accelerator-lowering-fma.f64N/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left(t, t \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right), 1\right)} \]
              5. *-lowering-*.f64N/A

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

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

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \left(\color{blue}{{t}^{2} \cdot \frac{1}{8}} + \frac{1}{2}\right), 1\right) \]
              8. accelerator-lowering-fma.f64N/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{8}, \frac{1}{2}\right)}, 1\right) \]
              9. unpow2N/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{8}, \frac{1}{2}\right), 1\right) \]
              10. *-lowering-*.f6491.6

                \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, 0.125, 0.5\right), 1\right) \]
            5. Simplified91.6%

              \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(t \cdot t, 0.125, 0.5\right), 1\right)} \]
            6. Taylor expanded in t around inf

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, \color{blue}{\frac{1}{8} \cdot {t}^{3}}, 1\right) \]
            7. Step-by-step derivation
              1. *-commutativeN/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, \color{blue}{{t}^{3} \cdot \frac{1}{8}}, 1\right) \]
              2. cube-multN/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, \color{blue}{\left(t \cdot \left(t \cdot t\right)\right)} \cdot \frac{1}{8}, 1\right) \]
              3. unpow2N/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, \left(t \cdot \color{blue}{{t}^{2}}\right) \cdot \frac{1}{8}, 1\right) \]
              4. associate-*r*N/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, \color{blue}{t \cdot \left({t}^{2} \cdot \frac{1}{8}\right)}, 1\right) \]
              5. *-commutativeN/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \color{blue}{\left(\frac{1}{8} \cdot {t}^{2}\right)}, 1\right) \]
              6. *-lowering-*.f64N/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, \color{blue}{t \cdot \left(\frac{1}{8} \cdot {t}^{2}\right)}, 1\right) \]
              7. *-commutativeN/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \color{blue}{\left({t}^{2} \cdot \frac{1}{8}\right)}, 1\right) \]
              8. *-lowering-*.f64N/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \color{blue}{\left({t}^{2} \cdot \frac{1}{8}\right)}, 1\right) \]
              9. unpow2N/A

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \left(\color{blue}{\left(t \cdot t\right)} \cdot \frac{1}{8}\right), 1\right) \]
              10. *-lowering-*.f6491.3

                \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \left(\color{blue}{\left(t \cdot t\right)} \cdot 0.125\right), 1\right) \]
            8. Simplified91.3%

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

          Alternative 10: 95.0% accurate, 2.2× speedup?

          \[\begin{array}{l} \\ \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t, t \cdot 0.16666666666666666, 0.5\right), 1\right), 1\right)} \end{array} \]
          (FPCore (x y z t)
           :precision binary64
           (*
            (- (* x 0.5) y)
            (sqrt
             (*
              (* z 2.0)
              (fma
               (* t t)
               (fma (* t t) (fma t (* t 0.16666666666666666) 0.5) 1.0)
               1.0)))))
          double code(double x, double y, double z, double t) {
          	return ((x * 0.5) - y) * sqrt(((z * 2.0) * fma((t * t), fma((t * t), fma(t, (t * 0.16666666666666666), 0.5), 1.0), 1.0)));
          }
          
          function code(x, y, z, t)
          	return Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(Float64(z * 2.0) * fma(Float64(t * t), fma(Float64(t * t), fma(t, Float64(t * 0.16666666666666666), 0.5), 1.0), 1.0))))
          end
          
          code[x_, y_, z_, t_] := N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(t * N[(t * 0.16666666666666666), $MachinePrecision] + 0.5), $MachinePrecision] + 1.0), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
          
          \begin{array}{l}
          
          \\
          \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t, t \cdot 0.16666666666666666, 0.5\right), 1\right), 1\right)}
          \end{array}
          
          Derivation
          1. Initial program 99.1%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. Add Preprocessing
          3. Step-by-step derivation
            1. associate-*l*N/A

              \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
            2. *-lowering-*.f64N/A

              \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
            3. --lowering--.f64N/A

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

              \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
            5. exp-sqrtN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
            6. sqrt-unprodN/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            7. sqrt-lowering-sqrt.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            8. *-lowering-*.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            9. *-lowering-*.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
            10. exp-lowering-exp.f64N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
            11. *-lowering-*.f6499.8

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
          4. Applied egg-rr99.8%

            \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
          5. Taylor expanded in t around 0

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

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

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\mathsf{fma}\left({t}^{2}, 1 + {t}^{2} \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot {t}^{2}\right), 1\right)}} \]
            3. unpow2N/A

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

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

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

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{2} + \frac{1}{6} \cdot {t}^{2}, 1\right)}, 1\right)} \]
            7. unpow2N/A

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{2} + \frac{1}{6} \cdot {t}^{2}, 1\right), 1\right)} \]
            8. *-lowering-*.f64N/A

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

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

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{{t}^{2} \cdot \frac{1}{6}} + \frac{1}{2}, 1\right), 1\right)} \]
            11. unpow2N/A

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

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

              \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{\mathsf{fma}\left(t, t \cdot \frac{1}{6}, \frac{1}{2}\right)}, 1\right), 1\right)} \]
            14. *-lowering-*.f6491.8

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t, \color{blue}{t \cdot 0.16666666666666666}, 0.5\right), 1\right), 1\right)} \]
          7. Simplified91.8%

            \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t, t \cdot 0.16666666666666666, 0.5\right), 1\right), 1\right)}} \]
          8. Add Preprocessing

          Alternative 11: 94.9% accurate, 2.2× speedup?

          \[\begin{array}{l} \\ \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.020833333333333332, 0.125\right), 0.5\right), 1\right) \end{array} \]
          (FPCore (x y z t)
           :precision binary64
           (*
            (* (- (* x 0.5) y) (sqrt (* z 2.0)))
            (fma
             (* t t)
             (fma (* t t) (fma (* t t) 0.020833333333333332 0.125) 0.5)
             1.0)))
          double code(double x, double y, double z, double t) {
          	return (((x * 0.5) - y) * sqrt((z * 2.0))) * fma((t * t), fma((t * t), fma((t * t), 0.020833333333333332, 0.125), 0.5), 1.0);
          }
          
          function code(x, y, z, t)
          	return Float64(Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * 2.0))) * fma(Float64(t * t), fma(Float64(t * t), fma(Float64(t * t), 0.020833333333333332, 0.125), 0.5), 1.0))
          end
          
          code[x_, y_, z_, t_] := N[(N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * 0.020833333333333332 + 0.125), $MachinePrecision] + 0.5), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]
          
          \begin{array}{l}
          
          \\
          \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.020833333333333332, 0.125\right), 0.5\right), 1\right)
          \end{array}
          
          Derivation
          1. Initial program 99.1%

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

            \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left(1 + {t}^{2} \cdot \left(\frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right)\right)\right)} \]
          4. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left({t}^{2} \cdot \left(\frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right)\right) + 1\right)} \]
            2. accelerator-lowering-fma.f64N/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right), 1\right)} \]
            3. unpow2N/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right), 1\right) \]
            4. *-lowering-*.f64N/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{2} + {t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right), 1\right) \]
            5. +-commutativeN/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \color{blue}{{t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right) + \frac{1}{2}}, 1\right) \]
            6. accelerator-lowering-fma.f64N/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, \frac{1}{2}\right)}, 1\right) \]
            7. unpow2N/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, \frac{1}{2}\right), 1\right) \]
            8. *-lowering-*.f64N/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, \frac{1}{2}\right), 1\right) \]
            9. +-commutativeN/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{\frac{1}{48} \cdot {t}^{2} + \frac{1}{8}}, \frac{1}{2}\right), 1\right) \]
            10. *-commutativeN/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{{t}^{2} \cdot \frac{1}{48}} + \frac{1}{8}, \frac{1}{2}\right), 1\right) \]
            11. accelerator-lowering-fma.f64N/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{48}, \frac{1}{8}\right)}, \frac{1}{2}\right), 1\right) \]
            12. unpow2N/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{48}, \frac{1}{8}\right), \frac{1}{2}\right), 1\right) \]
            13. *-lowering-*.f6491.7

              \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, 0.020833333333333332, 0.125\right), 0.5\right), 1\right) \]
          5. Simplified91.7%

            \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.020833333333333332, 0.125\right), 0.5\right), 1\right)} \]
          6. Add Preprocessing

          Alternative 12: 87.5% accurate, 2.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t, t, 1\right)}\\ \mathbf{if}\;t \cdot t \leq 10^{+26}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \cdot t \leq 10^{+300}:\\ \;\;\;\;\left(0 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t)
           :precision binary64
           (let* ((t_1 (* (- (* x 0.5) y) (sqrt (* (* z 2.0) (fma t t 1.0))))))
             (if (<= (* t t) 1e+26)
               t_1
               (if (<= (* t t) 1e+300)
                 (* (- 0.0 y) (sqrt (* z (fma (fma t t 2.0) (* t t) 2.0))))
                 t_1))))
          double code(double x, double y, double z, double t) {
          	double t_1 = ((x * 0.5) - y) * sqrt(((z * 2.0) * fma(t, t, 1.0)));
          	double tmp;
          	if ((t * t) <= 1e+26) {
          		tmp = t_1;
          	} else if ((t * t) <= 1e+300) {
          		tmp = (0.0 - y) * sqrt((z * fma(fma(t, t, 2.0), (t * t), 2.0)));
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t)
          	t_1 = Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(Float64(z * 2.0) * fma(t, t, 1.0))))
          	tmp = 0.0
          	if (Float64(t * t) <= 1e+26)
          		tmp = t_1;
          	elseif (Float64(t * t) <= 1e+300)
          		tmp = Float64(Float64(0.0 - y) * sqrt(Float64(z * fma(fma(t, t, 2.0), Float64(t * t), 2.0))));
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[(t * t + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 1e+26], t$95$1, If[LessEqual[N[(t * t), $MachinePrecision], 1e+300], N[(N[(0.0 - y), $MachinePrecision] * N[Sqrt[N[(z * N[(N[(t * t + 2.0), $MachinePrecision] * N[(t * t), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$1]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t, t, 1\right)}\\
          \mathbf{if}\;t \cdot t \leq 10^{+26}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;t \cdot t \leq 10^{+300}:\\
          \;\;\;\;\left(0 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if (*.f64 t t) < 1.00000000000000005e26 or 1.0000000000000001e300 < (*.f64 t t)

            1. Initial program 99.2%

              \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. associate-*l*N/A

                \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
              2. *-lowering-*.f64N/A

                \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
              3. --lowering--.f64N/A

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

                \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
              5. exp-sqrtN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
              6. sqrt-unprodN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              7. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              8. *-lowering-*.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              9. *-lowering-*.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
              10. exp-lowering-exp.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
              11. *-lowering-*.f6499.8

                \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
            4. Applied egg-rr99.8%

              \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            5. Taylor expanded in t around 0

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

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\left({t}^{2} + 1\right)}} \]
              2. unpow2N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \left(\color{blue}{t \cdot t} + 1\right)} \]
              3. accelerator-lowering-fma.f6492.8

                \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\mathsf{fma}\left(t, t, 1\right)}} \]
            7. Simplified92.8%

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\mathsf{fma}\left(t, t, 1\right)}} \]

            if 1.00000000000000005e26 < (*.f64 t t) < 1.0000000000000001e300

            1. Initial program 98.5%

              \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
            2. Add Preprocessing
            3. Step-by-step derivation
              1. associate-*l*N/A

                \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
              2. *-lowering-*.f64N/A

                \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
              3. --lowering--.f64N/A

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

                \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
              5. exp-sqrtN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
              6. sqrt-unprodN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              7. sqrt-lowering-sqrt.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              8. *-lowering-*.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              9. *-lowering-*.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
              10. exp-lowering-exp.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
              11. *-lowering-*.f64100.0

                \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
            4. Applied egg-rr100.0%

              \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
            5. Taylor expanded in t around 0

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

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{{t}^{2} \cdot \left(2 \cdot z + {t}^{2} \cdot z\right) + 2 \cdot z}} \]
              2. *-commutativeN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(2 \cdot z + {t}^{2} \cdot z\right) \cdot {t}^{2}} + 2 \cdot z} \]
              3. distribute-rgt-outN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot \left(2 + {t}^{2}\right)\right)} \cdot {t}^{2} + 2 \cdot z} \]
              4. associate-*l*N/A

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

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2}\right) + \color{blue}{z \cdot 2}} \]
              6. distribute-lft-outN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2} + 2\right)}} \]
              7. *-lowering-*.f64N/A

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

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \color{blue}{\mathsf{fma}\left(2 + {t}^{2}, {t}^{2}, 2\right)}} \]
              9. +-commutativeN/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{{t}^{2} + 2}, {t}^{2}, 2\right)} \]
              10. unpow2N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{t \cdot t} + 2, {t}^{2}, 2\right)} \]
              11. accelerator-lowering-fma.f64N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(t, t, 2\right)}, {t}^{2}, 2\right)} \]
              12. unpow2N/A

                \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
              13. *-lowering-*.f6474.5

                \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
            7. Simplified74.5%

              \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}} \]
            8. Taylor expanded in x around 0

              \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
            9. Step-by-step derivation
              1. mul-1-negN/A

                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
              2. neg-sub0N/A

                \[\leadsto \color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
              3. --lowering--.f6457.8

                \[\leadsto \color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \]
            10. Simplified57.8%

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

          Alternative 13: 85.3% accurate, 2.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot 0.5 - y\\ t_2 := \sqrt{z \cdot 2}\\ \mathbf{if}\;t \cdot t \leq 5000:\\ \;\;\;\;t\_1 \cdot t\_2\\ \mathbf{elif}\;t \cdot t \leq 10^{+94}:\\ \;\;\;\;x \cdot \left(t\_2 \cdot \left(0.5 - \frac{y}{x}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1 \cdot \left(t \cdot \left(t \cdot \sqrt{z}\right)\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t)
           :precision binary64
           (let* ((t_1 (- (* x 0.5) y)) (t_2 (sqrt (* z 2.0))))
             (if (<= (* t t) 5000.0)
               (* t_1 t_2)
               (if (<= (* t t) 1e+94)
                 (* x (* t_2 (- 0.5 (/ y x))))
                 (* t_1 (* t (* t (sqrt z))))))))
          double code(double x, double y, double z, double t) {
          	double t_1 = (x * 0.5) - y;
          	double t_2 = sqrt((z * 2.0));
          	double tmp;
          	if ((t * t) <= 5000.0) {
          		tmp = t_1 * t_2;
          	} else if ((t * t) <= 1e+94) {
          		tmp = x * (t_2 * (0.5 - (y / x)));
          	} else {
          		tmp = t_1 * (t * (t * sqrt(z)));
          	}
          	return tmp;
          }
          
          real(8) function code(x, y, z, t)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              real(8), intent (in) :: z
              real(8), intent (in) :: t
              real(8) :: t_1
              real(8) :: t_2
              real(8) :: tmp
              t_1 = (x * 0.5d0) - y
              t_2 = sqrt((z * 2.0d0))
              if ((t * t) <= 5000.0d0) then
                  tmp = t_1 * t_2
              else if ((t * t) <= 1d+94) then
                  tmp = x * (t_2 * (0.5d0 - (y / x)))
              else
                  tmp = t_1 * (t * (t * sqrt(z)))
              end if
              code = tmp
          end function
          
          public static double code(double x, double y, double z, double t) {
          	double t_1 = (x * 0.5) - y;
          	double t_2 = Math.sqrt((z * 2.0));
          	double tmp;
          	if ((t * t) <= 5000.0) {
          		tmp = t_1 * t_2;
          	} else if ((t * t) <= 1e+94) {
          		tmp = x * (t_2 * (0.5 - (y / x)));
          	} else {
          		tmp = t_1 * (t * (t * Math.sqrt(z)));
          	}
          	return tmp;
          }
          
          def code(x, y, z, t):
          	t_1 = (x * 0.5) - y
          	t_2 = math.sqrt((z * 2.0))
          	tmp = 0
          	if (t * t) <= 5000.0:
          		tmp = t_1 * t_2
          	elif (t * t) <= 1e+94:
          		tmp = x * (t_2 * (0.5 - (y / x)))
          	else:
          		tmp = t_1 * (t * (t * math.sqrt(z)))
          	return tmp
          
          function code(x, y, z, t)
          	t_1 = Float64(Float64(x * 0.5) - y)
          	t_2 = sqrt(Float64(z * 2.0))
          	tmp = 0.0
          	if (Float64(t * t) <= 5000.0)
          		tmp = Float64(t_1 * t_2);
          	elseif (Float64(t * t) <= 1e+94)
          		tmp = Float64(x * Float64(t_2 * Float64(0.5 - Float64(y / x))));
          	else
          		tmp = Float64(t_1 * Float64(t * Float64(t * sqrt(z))));
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t)
          	t_1 = (x * 0.5) - y;
          	t_2 = sqrt((z * 2.0));
          	tmp = 0.0;
          	if ((t * t) <= 5000.0)
          		tmp = t_1 * t_2;
          	elseif ((t * t) <= 1e+94)
          		tmp = x * (t_2 * (0.5 - (y / x)));
          	else
          		tmp = t_1 * (t * (t * sqrt(z)));
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(t * t), $MachinePrecision], 5000.0], N[(t$95$1 * t$95$2), $MachinePrecision], If[LessEqual[N[(t * t), $MachinePrecision], 1e+94], N[(x * N[(t$95$2 * N[(0.5 - N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 * N[(t * N[(t * N[Sqrt[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := x \cdot 0.5 - y\\
          t_2 := \sqrt{z \cdot 2}\\
          \mathbf{if}\;t \cdot t \leq 5000:\\
          \;\;\;\;t\_1 \cdot t\_2\\
          
          \mathbf{elif}\;t \cdot t \leq 10^{+94}:\\
          \;\;\;\;x \cdot \left(t\_2 \cdot \left(0.5 - \frac{y}{x}\right)\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1 \cdot \left(t \cdot \left(t \cdot \sqrt{z}\right)\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if (*.f64 t t) < 5e3

            1. Initial program 99.6%

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

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{1} \]
            4. Step-by-step derivation
              1. Simplified96.7%

                \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{1} \]
              2. Step-by-step derivation
                1. *-rgt-identityN/A

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

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

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

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

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{z \cdot 2}} \]
                6. *-lowering-*.f6496.7

                  \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot 2}} \]
              3. Applied egg-rr96.7%

                \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}} \]

              if 5e3 < (*.f64 t t) < 1e94

              1. Initial program 100.0%

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

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

                  \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{1} \]
                2. Taylor expanded in x around inf

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

                    \[\leadsto \left(\left(x \cdot \left(\color{blue}{\left(\mathsf{neg}\left(\frac{-1}{2}\right)\right)} + -1 \cdot \frac{y}{x}\right)\right) \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                  2. mul-1-negN/A

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

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

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

                    \[\leadsto \left(\left(x \cdot \left(\mathsf{neg}\left(\left(\frac{y}{x} + \color{blue}{\left(\mathsf{neg}\left(\frac{1}{2}\right)\right)}\right)\right)\right)\right) \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                  6. sub-negN/A

                    \[\leadsto \left(\left(x \cdot \left(\mathsf{neg}\left(\color{blue}{\left(\frac{y}{x} - \frac{1}{2}\right)}\right)\right)\right) \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                  7. *-lowering-*.f64N/A

                    \[\leadsto \left(\color{blue}{\left(x \cdot \left(\mathsf{neg}\left(\left(\frac{y}{x} - \frac{1}{2}\right)\right)\right)\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                  8. sub-negN/A

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

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

                    \[\leadsto \left(\left(x \cdot \left(\mathsf{neg}\left(\color{blue}{\left(\frac{-1}{2} + \frac{y}{x}\right)}\right)\right)\right) \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                  11. distribute-neg-inN/A

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

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

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

                    \[\leadsto \left(\left(x \cdot \color{blue}{\left(\frac{1}{2} - \frac{y}{x}\right)}\right) \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                  15. /-lowering-/.f6423.2

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

                  \[\leadsto \left(\color{blue}{\left(x \cdot \left(0.5 - \frac{y}{x}\right)\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                5. Step-by-step derivation
                  1. *-rgt-identityN/A

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

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

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

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

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

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

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

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

                    \[\leadsto \left(\sqrt{z \cdot 2} \cdot \color{blue}{\left(\frac{1}{2} - \frac{y}{x}\right)}\right) \cdot x \]
                  10. /-lowering-/.f6430.9

                    \[\leadsto \left(\sqrt{z \cdot 2} \cdot \left(0.5 - \color{blue}{\frac{y}{x}}\right)\right) \cdot x \]
                6. Applied egg-rr30.9%

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

                if 1e94 < (*.f64 t t)

                1. Initial program 98.3%

                  \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
                2. Add Preprocessing
                3. Step-by-step derivation
                  1. associate-*l*N/A

                    \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
                  2. *-lowering-*.f64N/A

                    \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
                  3. --lowering--.f64N/A

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

                    \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
                  5. exp-sqrtN/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
                  6. sqrt-unprodN/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
                  7. sqrt-lowering-sqrt.f64N/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
                  8. *-lowering-*.f64N/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
                  9. *-lowering-*.f64N/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
                  10. exp-lowering-exp.f64N/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
                  11. *-lowering-*.f64100.0

                    \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
                4. Applied egg-rr100.0%

                  \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
                5. Taylor expanded in t around 0

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

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{{t}^{2} \cdot \left(2 \cdot z + {t}^{2} \cdot z\right) + 2 \cdot z}} \]
                  2. *-commutativeN/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(2 \cdot z + {t}^{2} \cdot z\right) \cdot {t}^{2}} + 2 \cdot z} \]
                  3. distribute-rgt-outN/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot \left(2 + {t}^{2}\right)\right)} \cdot {t}^{2} + 2 \cdot z} \]
                  4. associate-*l*N/A

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

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2}\right) + \color{blue}{z \cdot 2}} \]
                  6. distribute-lft-outN/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2} + 2\right)}} \]
                  7. *-lowering-*.f64N/A

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

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \color{blue}{\mathsf{fma}\left(2 + {t}^{2}, {t}^{2}, 2\right)}} \]
                  9. +-commutativeN/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{{t}^{2} + 2}, {t}^{2}, 2\right)} \]
                  10. unpow2N/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{t \cdot t} + 2, {t}^{2}, 2\right)} \]
                  11. accelerator-lowering-fma.f64N/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(t, t, 2\right)}, {t}^{2}, 2\right)} \]
                  12. unpow2N/A

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
                  13. *-lowering-*.f6493.7

                    \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
                7. Simplified93.7%

                  \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}} \]
                8. Taylor expanded in t around inf

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\left({t}^{2} \cdot \sqrt{z}\right)} \]
                9. Step-by-step derivation
                  1. unpow2N/A

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

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

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

                    \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(t \cdot \color{blue}{\left(t \cdot \sqrt{z}\right)}\right) \]
                  5. sqrt-lowering-sqrt.f6477.1

                    \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \left(t \cdot \left(t \cdot \color{blue}{\sqrt{z}}\right)\right) \]
                10. Simplified77.1%

                  \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \color{blue}{\left(t \cdot \left(t \cdot \sqrt{z}\right)\right)} \]
              5. Recombined 3 regimes into one program.
              6. Final simplification81.1%

                \[\leadsto \begin{array}{l} \mathbf{if}\;t \cdot t \leq 5000:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\\ \mathbf{elif}\;t \cdot t \leq 10^{+94}:\\ \;\;\;\;x \cdot \left(\sqrt{z \cdot 2} \cdot \left(0.5 - \frac{y}{x}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \left(t \cdot \left(t \cdot \sqrt{z}\right)\right)\\ \end{array} \]
              7. Add Preprocessing

              Alternative 14: 93.9% accurate, 2.7× speedup?

              \[\begin{array}{l} \\ \sqrt{z \cdot 2} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.125, 0.5\right), 1\right)\right) \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (*
                (sqrt (* z 2.0))
                (* (- (* x 0.5) y) (fma (* t t) (fma (* t t) 0.125 0.5) 1.0))))
              double code(double x, double y, double z, double t) {
              	return sqrt((z * 2.0)) * (((x * 0.5) - y) * fma((t * t), fma((t * t), 0.125, 0.5), 1.0));
              }
              
              function code(x, y, z, t)
              	return Float64(sqrt(Float64(z * 2.0)) * Float64(Float64(Float64(x * 0.5) - y) * fma(Float64(t * t), fma(Float64(t * t), 0.125, 0.5), 1.0)))
              end
              
              code[x_, y_, z_, t_] := N[(N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision] * N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * 0.125 + 0.5), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
              
              \begin{array}{l}
              
              \\
              \sqrt{z \cdot 2} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.125, 0.5\right), 1\right)\right)
              \end{array}
              
              Derivation
              1. Initial program 99.1%

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

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left(1 + {t}^{2} \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right)\right)} \]
              4. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left({t}^{2} \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right) + 1\right)} \]
                2. unpow2N/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\color{blue}{\left(t \cdot t\right)} \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right) + 1\right) \]
                3. associate-*l*N/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\color{blue}{t \cdot \left(t \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right)\right)} + 1\right) \]
                4. accelerator-lowering-fma.f64N/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left(t, t \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right), 1\right)} \]
                5. *-lowering-*.f64N/A

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

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

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \left(\color{blue}{{t}^{2} \cdot \frac{1}{8}} + \frac{1}{2}\right), 1\right) \]
                8. accelerator-lowering-fma.f64N/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{8}, \frac{1}{2}\right)}, 1\right) \]
                9. unpow2N/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{8}, \frac{1}{2}\right), 1\right) \]
                10. *-lowering-*.f6489.2

                  \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, 0.125, 0.5\right), 1\right) \]
              5. Simplified89.2%

                \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(t \cdot t, 0.125, 0.5\right), 1\right)} \]
              6. Step-by-step derivation
                1. *-commutativeN/A

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

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

                  \[\leadsto \color{blue}{\left(\left(t \cdot \left(t \cdot \left(\left(t \cdot t\right) \cdot \frac{1}{8} + \frac{1}{2}\right)\right) + 1\right) \cdot \left(x \cdot \frac{1}{2} - y\right)\right) \cdot \sqrt{z \cdot 2}} \]
                4. *-lowering-*.f64N/A

                  \[\leadsto \color{blue}{\left(\left(t \cdot \left(t \cdot \left(\left(t \cdot t\right) \cdot \frac{1}{8} + \frac{1}{2}\right)\right) + 1\right) \cdot \left(x \cdot \frac{1}{2} - y\right)\right)} \cdot \sqrt{z \cdot 2} \]
                5. associate-*r*N/A

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

                  \[\leadsto \left(\color{blue}{\mathsf{fma}\left(t \cdot t, \left(t \cdot t\right) \cdot \frac{1}{8} + \frac{1}{2}, 1\right)} \cdot \left(x \cdot \frac{1}{2} - y\right)\right) \cdot \sqrt{z \cdot 2} \]
                7. *-lowering-*.f64N/A

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

                  \[\leadsto \left(\mathsf{fma}\left(t \cdot t, \color{blue}{\mathsf{fma}\left(t \cdot t, \frac{1}{8}, \frac{1}{2}\right)}, 1\right) \cdot \left(x \cdot \frac{1}{2} - y\right)\right) \cdot \sqrt{z \cdot 2} \]
                9. *-lowering-*.f64N/A

                  \[\leadsto \left(\mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{8}, \frac{1}{2}\right), 1\right) \cdot \left(x \cdot \frac{1}{2} - y\right)\right) \cdot \sqrt{z \cdot 2} \]
                10. --lowering--.f64N/A

                  \[\leadsto \left(\mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \frac{1}{8}, \frac{1}{2}\right), 1\right) \cdot \color{blue}{\left(x \cdot \frac{1}{2} - y\right)}\right) \cdot \sqrt{z \cdot 2} \]
                11. *-lowering-*.f64N/A

                  \[\leadsto \left(\mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \frac{1}{8}, \frac{1}{2}\right), 1\right) \cdot \left(\color{blue}{x \cdot \frac{1}{2}} - y\right)\right) \cdot \sqrt{z \cdot 2} \]
                12. sqrt-lowering-sqrt.f64N/A

                  \[\leadsto \left(\mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, \frac{1}{8}, \frac{1}{2}\right), 1\right) \cdot \left(x \cdot \frac{1}{2} - y\right)\right) \cdot \color{blue}{\sqrt{z \cdot 2}} \]
                13. *-lowering-*.f6490.3

                  \[\leadsto \left(\mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.125, 0.5\right), 1\right) \cdot \left(x \cdot 0.5 - y\right)\right) \cdot \sqrt{\color{blue}{z \cdot 2}} \]
              7. Applied egg-rr90.3%

                \[\leadsto \color{blue}{\left(\mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.125, 0.5\right), 1\right) \cdot \left(x \cdot 0.5 - y\right)\right) \cdot \sqrt{z \cdot 2}} \]
              8. Final simplification90.3%

                \[\leadsto \sqrt{z \cdot 2} \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \mathsf{fma}\left(t \cdot t, \mathsf{fma}\left(t \cdot t, 0.125, 0.5\right), 1\right)\right) \]
              9. Add Preprocessing

              Alternative 15: 92.7% accurate, 2.7× speedup?

              \[\begin{array}{l} \\ \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(t \cdot t, 0.125, 0.5\right), 1\right) \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (*
                (* (- (* x 0.5) y) (sqrt (* z 2.0)))
                (fma t (* t (fma (* t t) 0.125 0.5)) 1.0)))
              double code(double x, double y, double z, double t) {
              	return (((x * 0.5) - y) * sqrt((z * 2.0))) * fma(t, (t * fma((t * t), 0.125, 0.5)), 1.0);
              }
              
              function code(x, y, z, t)
              	return Float64(Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * 2.0))) * fma(t, Float64(t * fma(Float64(t * t), 0.125, 0.5)), 1.0))
              end
              
              code[x_, y_, z_, t_] := N[(N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(t * N[(t * N[(N[(t * t), $MachinePrecision] * 0.125 + 0.5), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]
              
              \begin{array}{l}
              
              \\
              \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(t \cdot t, 0.125, 0.5\right), 1\right)
              \end{array}
              
              Derivation
              1. Initial program 99.1%

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

                \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left(1 + {t}^{2} \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right)\right)} \]
              4. Step-by-step derivation
                1. +-commutativeN/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\left({t}^{2} \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right) + 1\right)} \]
                2. unpow2N/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\color{blue}{\left(t \cdot t\right)} \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right) + 1\right) \]
                3. associate-*l*N/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\color{blue}{t \cdot \left(t \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right)\right)} + 1\right) \]
                4. accelerator-lowering-fma.f64N/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left(t, t \cdot \left(\frac{1}{2} + \frac{1}{8} \cdot {t}^{2}\right), 1\right)} \]
                5. *-lowering-*.f64N/A

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

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

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \left(\color{blue}{{t}^{2} \cdot \frac{1}{8}} + \frac{1}{2}\right), 1\right) \]
                8. accelerator-lowering-fma.f64N/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \color{blue}{\mathsf{fma}\left({t}^{2}, \frac{1}{8}, \frac{1}{2}\right)}, 1\right) \]
                9. unpow2N/A

                  \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, \frac{1}{8}, \frac{1}{2}\right), 1\right) \]
                10. *-lowering-*.f6489.2

                  \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(\color{blue}{t \cdot t}, 0.125, 0.5\right), 1\right) \]
              5. Simplified89.2%

                \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{\mathsf{fma}\left(t, t \cdot \mathsf{fma}\left(t \cdot t, 0.125, 0.5\right), 1\right)} \]
              6. Add Preprocessing

              Alternative 16: 92.4% accurate, 3.3× speedup?

              \[\begin{array}{l} \\ \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)} \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (* (- (* x 0.5) y) (sqrt (* z (fma (fma t t 2.0) (* t t) 2.0)))))
              double code(double x, double y, double z, double t) {
              	return ((x * 0.5) - y) * sqrt((z * fma(fma(t, t, 2.0), (t * t), 2.0)));
              }
              
              function code(x, y, z, t)
              	return Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * fma(fma(t, t, 2.0), Float64(t * t), 2.0))))
              end
              
              code[x_, y_, z_, t_] := N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(z * N[(N[(t * t + 2.0), $MachinePrecision] * N[(t * t), $MachinePrecision] + 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
              
              \begin{array}{l}
              
              \\
              \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}
              \end{array}
              
              Derivation
              1. Initial program 99.1%

                \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
              2. Add Preprocessing
              3. Step-by-step derivation
                1. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
                2. *-lowering-*.f64N/A

                  \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
                3. --lowering--.f64N/A

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

                  \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
                5. exp-sqrtN/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
                6. sqrt-unprodN/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
                7. sqrt-lowering-sqrt.f64N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
                8. *-lowering-*.f64N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
                9. *-lowering-*.f64N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
                10. exp-lowering-exp.f64N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
                11. *-lowering-*.f6499.8

                  \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
              4. Applied egg-rr99.8%

                \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              5. Taylor expanded in t around 0

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

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{{t}^{2} \cdot \left(2 \cdot z + {t}^{2} \cdot z\right) + 2 \cdot z}} \]
                2. *-commutativeN/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(2 \cdot z + {t}^{2} \cdot z\right) \cdot {t}^{2}} + 2 \cdot z} \]
                3. distribute-rgt-outN/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot \left(2 + {t}^{2}\right)\right)} \cdot {t}^{2} + 2 \cdot z} \]
                4. associate-*l*N/A

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

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2}\right) + \color{blue}{z \cdot 2}} \]
                6. distribute-lft-outN/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{z \cdot \left(\left(2 + {t}^{2}\right) \cdot {t}^{2} + 2\right)}} \]
                7. *-lowering-*.f64N/A

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

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \color{blue}{\mathsf{fma}\left(2 + {t}^{2}, {t}^{2}, 2\right)}} \]
                9. +-commutativeN/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{{t}^{2} + 2}, {t}^{2}, 2\right)} \]
                10. unpow2N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{t \cdot t} + 2, {t}^{2}, 2\right)} \]
                11. accelerator-lowering-fma.f64N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(t, t, 2\right)}, {t}^{2}, 2\right)} \]
                12. unpow2N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
                13. *-lowering-*.f6488.0

                  \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), \color{blue}{t \cdot t}, 2\right)} \]
              7. Simplified88.0%

                \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot \mathsf{fma}\left(\mathsf{fma}\left(t, t, 2\right), t \cdot t, 2\right)}} \]
              8. Add Preprocessing

              Alternative 17: 84.7% accurate, 3.8× speedup?

              \[\begin{array}{l} \\ \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t, t, 1\right)} \end{array} \]
              (FPCore (x y z t)
               :precision binary64
               (* (- (* x 0.5) y) (sqrt (* (* z 2.0) (fma t t 1.0)))))
              double code(double x, double y, double z, double t) {
              	return ((x * 0.5) - y) * sqrt(((z * 2.0) * fma(t, t, 1.0)));
              }
              
              function code(x, y, z, t)
              	return Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(Float64(z * 2.0) * fma(t, t, 1.0))))
              end
              
              code[x_, y_, z_, t_] := N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[(t * t + 1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
              
              \begin{array}{l}
              
              \\
              \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \mathsf{fma}\left(t, t, 1\right)}
              \end{array}
              
              Derivation
              1. Initial program 99.1%

                \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
              2. Add Preprocessing
              3. Step-by-step derivation
                1. associate-*l*N/A

                  \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
                2. *-lowering-*.f64N/A

                  \[\leadsto \color{blue}{\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right)} \]
                3. --lowering--.f64N/A

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

                  \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot e^{\frac{t \cdot t}{2}}\right) \]
                5. exp-sqrtN/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \color{blue}{\sqrt{e^{t \cdot t}}}\right) \]
                6. sqrt-unprodN/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
                7. sqrt-lowering-sqrt.f64N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
                8. *-lowering-*.f64N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
                9. *-lowering-*.f64N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\color{blue}{\left(z \cdot 2\right)} \cdot e^{t \cdot t}} \]
                10. exp-lowering-exp.f64N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{e^{t \cdot t}}} \]
                11. *-lowering-*.f6499.8

                  \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{\color{blue}{t \cdot t}}} \]
              4. Applied egg-rr99.8%

                \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}} \]
              5. Taylor expanded in t around 0

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

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\left({t}^{2} + 1\right)}} \]
                2. unpow2N/A

                  \[\leadsto \left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \left(\color{blue}{t \cdot t} + 1\right)} \]
                3. accelerator-lowering-fma.f6479.8

                  \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\mathsf{fma}\left(t, t, 1\right)}} \]
              7. Simplified79.8%

                \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\left(z \cdot 2\right) \cdot \color{blue}{\mathsf{fma}\left(t, t, 1\right)}} \]
              8. Add Preprocessing

              Alternative 18: 57.0% accurate, 5.2× speedup?

              \[\begin{array}{l} \\ \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2} \end{array} \]
              (FPCore (x y z t) :precision binary64 (* (- (* x 0.5) y) (sqrt (* z 2.0))))
              double code(double x, double y, double z, double t) {
              	return ((x * 0.5) - y) * sqrt((z * 2.0));
              }
              
              real(8) function code(x, y, z, t)
                  real(8), intent (in) :: x
                  real(8), intent (in) :: y
                  real(8), intent (in) :: z
                  real(8), intent (in) :: t
                  code = ((x * 0.5d0) - y) * sqrt((z * 2.0d0))
              end function
              
              public static double code(double x, double y, double z, double t) {
              	return ((x * 0.5) - y) * Math.sqrt((z * 2.0));
              }
              
              def code(x, y, z, t):
              	return ((x * 0.5) - y) * math.sqrt((z * 2.0))
              
              function code(x, y, z, t)
              	return Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * 2.0)))
              end
              
              function tmp = code(x, y, z, t)
              	tmp = ((x * 0.5) - y) * sqrt((z * 2.0));
              end
              
              code[x_, y_, z_, t_] := N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
              
              \begin{array}{l}
              
              \\
              \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}
              \end{array}
              
              Derivation
              1. Initial program 99.1%

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

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

                  \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \color{blue}{1} \]
                2. Step-by-step derivation
                  1. *-rgt-identityN/A

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

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

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

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

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

                    \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{z \cdot 2}} \]
                3. Applied egg-rr49.6%

                  \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}} \]
                4. Add Preprocessing

                Alternative 19: 30.3% accurate, 6.3× speedup?

                \[\begin{array}{l} \\ \sqrt{z \cdot 2} \cdot \left(0 - y\right) \end{array} \]
                (FPCore (x y z t) :precision binary64 (* (sqrt (* z 2.0)) (- 0.0 y)))
                double code(double x, double y, double z, double t) {
                	return sqrt((z * 2.0)) * (0.0 - y);
                }
                
                real(8) function code(x, y, z, t)
                    real(8), intent (in) :: x
                    real(8), intent (in) :: y
                    real(8), intent (in) :: z
                    real(8), intent (in) :: t
                    code = sqrt((z * 2.0d0)) * (0.0d0 - y)
                end function
                
                public static double code(double x, double y, double z, double t) {
                	return Math.sqrt((z * 2.0)) * (0.0 - y);
                }
                
                def code(x, y, z, t):
                	return math.sqrt((z * 2.0)) * (0.0 - y)
                
                function code(x, y, z, t)
                	return Float64(sqrt(Float64(z * 2.0)) * Float64(0.0 - y))
                end
                
                function tmp = code(x, y, z, t)
                	tmp = sqrt((z * 2.0)) * (0.0 - y);
                end
                
                code[x_, y_, z_, t_] := N[(N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision] * N[(0.0 - y), $MachinePrecision]), $MachinePrecision]
                
                \begin{array}{l}
                
                \\
                \sqrt{z \cdot 2} \cdot \left(0 - y\right)
                \end{array}
                
                Derivation
                1. Initial program 99.1%

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

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

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

                    \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                  3. Step-by-step derivation
                    1. mul-1-negN/A

                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                    2. neg-sub0N/A

                      \[\leadsto \left(\color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                    3. --lowering--.f6427.2

                      \[\leadsto \left(\color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                  4. Simplified27.2%

                    \[\leadsto \left(\color{blue}{\left(0 - y\right)} \cdot \sqrt{z \cdot 2}\right) \cdot 1 \]
                  5. Step-by-step derivation
                    1. *-rgt-identityN/A

                      \[\leadsto \color{blue}{\left(0 - y\right) \cdot \sqrt{z \cdot 2}} \]
                    2. sub0-negN/A

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot \sqrt{z \cdot 2} \]
                    3. sqrt-prodN/A

                      \[\leadsto \left(\mathsf{neg}\left(y\right)\right) \cdot \color{blue}{\left(\sqrt{z} \cdot \sqrt{2}\right)} \]
                    4. associate-*r*N/A

                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(y\right)\right) \cdot \sqrt{z}\right) \cdot \sqrt{2}} \]
                    5. distribute-lft-neg-inN/A

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y \cdot \sqrt{z}\right)\right)} \cdot \sqrt{2} \]
                    6. *-commutativeN/A

                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\sqrt{z} \cdot y}\right)\right) \cdot \sqrt{2} \]
                    7. *-commutativeN/A

                      \[\leadsto \color{blue}{\sqrt{2} \cdot \left(\mathsf{neg}\left(\sqrt{z} \cdot y\right)\right)} \]
                    8. distribute-rgt-neg-outN/A

                      \[\leadsto \color{blue}{\mathsf{neg}\left(\sqrt{2} \cdot \left(\sqrt{z} \cdot y\right)\right)} \]
                    9. neg-lowering-neg.f64N/A

                      \[\leadsto \color{blue}{\mathsf{neg}\left(\sqrt{2} \cdot \left(\sqrt{z} \cdot y\right)\right)} \]
                    10. associate-*r*N/A

                      \[\leadsto \mathsf{neg}\left(\color{blue}{\left(\sqrt{2} \cdot \sqrt{z}\right) \cdot y}\right) \]
                    11. sqrt-prodN/A

                      \[\leadsto \mathsf{neg}\left(\color{blue}{\sqrt{2 \cdot z}} \cdot y\right) \]
                    12. *-commutativeN/A

                      \[\leadsto \mathsf{neg}\left(\sqrt{\color{blue}{z \cdot 2}} \cdot y\right) \]
                    13. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{neg}\left(\color{blue}{\sqrt{z \cdot 2} \cdot y}\right) \]
                    14. sqrt-lowering-sqrt.f64N/A

                      \[\leadsto \mathsf{neg}\left(\color{blue}{\sqrt{z \cdot 2}} \cdot y\right) \]
                    15. *-lowering-*.f6427.2

                      \[\leadsto -\sqrt{\color{blue}{z \cdot 2}} \cdot y \]
                  6. Applied egg-rr27.2%

                    \[\leadsto \color{blue}{-\sqrt{z \cdot 2} \cdot y} \]
                  7. Final simplification27.2%

                    \[\leadsto \sqrt{z \cdot 2} \cdot \left(0 - y\right) \]
                  8. Add Preprocessing

                  Developer Target 1: 99.4% accurate, 0.6× speedup?

                  \[\begin{array}{l} \\ \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot {\left(e^{1}\right)}^{\left(\frac{t \cdot t}{2}\right)} \end{array} \]
                  (FPCore (x y z t)
                   :precision binary64
                   (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (pow (exp 1.0) (/ (* t t) 2.0))))
                  double code(double x, double y, double z, double t) {
                  	return (((x * 0.5) - y) * sqrt((z * 2.0))) * pow(exp(1.0), ((t * t) / 2.0));
                  }
                  
                  real(8) function code(x, y, z, t)
                      real(8), intent (in) :: x
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z
                      real(8), intent (in) :: t
                      code = (((x * 0.5d0) - y) * sqrt((z * 2.0d0))) * (exp(1.0d0) ** ((t * t) / 2.0d0))
                  end function
                  
                  public static double code(double x, double y, double z, double t) {
                  	return (((x * 0.5) - y) * Math.sqrt((z * 2.0))) * Math.pow(Math.exp(1.0), ((t * t) / 2.0));
                  }
                  
                  def code(x, y, z, t):
                  	return (((x * 0.5) - y) * math.sqrt((z * 2.0))) * math.pow(math.exp(1.0), ((t * t) / 2.0))
                  
                  function code(x, y, z, t)
                  	return Float64(Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * 2.0))) * (exp(1.0) ^ Float64(Float64(t * t) / 2.0)))
                  end
                  
                  function tmp = code(x, y, z, t)
                  	tmp = (((x * 0.5) - y) * sqrt((z * 2.0))) * (exp(1.0) ^ ((t * t) / 2.0));
                  end
                  
                  code[x_, y_, z_, t_] := N[(N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Power[N[Exp[1.0], $MachinePrecision], N[(N[(t * t), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
                  
                  \begin{array}{l}
                  
                  \\
                  \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot {\left(e^{1}\right)}^{\left(\frac{t \cdot t}{2}\right)}
                  \end{array}
                  

                  Reproduce

                  ?
                  herbie shell --seed 2024196 
                  (FPCore (x y z t)
                    :name "Data.Number.Erf:$cinvnormcdf from erf-2.0.0.0, A"
                    :precision binary64
                  
                    :alt
                    (! :herbie-platform default (* (* (- (* x 1/2) y) (sqrt (* z 2))) (pow (exp 1) (/ (* t t) 2))))
                  
                    (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (exp (/ (* t t) 2.0))))