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

Percentage Accurate: 99.4% → 99.2%
Time: 6.5s
Alternatives: 20
Speedup: 1.0×

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

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

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

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 20 alternatives:

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

Initial Program: 99.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));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

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

\[\begin{array}{l} \\ \left(\left(x \cdot 0.5 - y\right) \cdot \left(\sqrt{z} \cdot \sqrt{2}\right)\right) \cdot e^{\frac{t \cdot t}{2}} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (* (* (- (* x 0.5) y) (* (sqrt z) (sqrt 2.0))) (exp (/ (* t t) 2.0))))
double code(double x, double y, double z, double t) {
	return (((x * 0.5) - y) * (sqrt(z) * sqrt(2.0))) * exp(((t * t) / 2.0));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t)
use fmin_fmax_functions
    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) * sqrt(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) * Math.sqrt(2.0))) * Math.exp(((t * t) / 2.0));
}
def code(x, y, z, t):
	return (((x * 0.5) - y) * (math.sqrt(z) * math.sqrt(2.0))) * math.exp(((t * t) / 2.0))
function code(x, y, z, t)
	return Float64(Float64(Float64(Float64(x * 0.5) - y) * Float64(sqrt(z) * sqrt(2.0))) * exp(Float64(Float64(t * t) / 2.0)))
end
function tmp = code(x, y, z, t)
	tmp = (((x * 0.5) - y) * (sqrt(z) * sqrt(2.0))) * exp(((t * t) / 2.0));
end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[(N[Sqrt[z], $MachinePrecision] * N[Sqrt[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 \left(\sqrt{z} \cdot \sqrt{2}\right)\right) \cdot e^{\frac{t \cdot t}{2}}
\end{array}
Derivation
  1. Initial program 99.4%

    \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
  2. Step-by-step derivation
    1. lift-*.f64N/A

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

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

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

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

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

      \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \left(\sqrt{z} \cdot \color{blue}{\sqrt{2}}\right)\right) \cdot e^{\frac{t \cdot t}{2}} \]
  3. Applied rewrites99.2%

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

Alternative 2: 85.7% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot 0.5 - y\\ \mathbf{if}\;e^{\frac{t \cdot t}{2}} \leq 2:\\ \;\;\;\;\left(t\_1 \cdot \left(\sqrt{z} \cdot \sqrt{2}\right)\right) \cdot 1\\ \mathbf{else}:\\ \;\;\;\;\left(t\_1 \cdot \sqrt{z \cdot 2}\right) \cdot \left(\left(t \cdot t\right) \cdot 0.5\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) (sqrt 2.0))) 1.0)
     (* (* t_1 (sqrt (* z 2.0))) (* (* t t) 0.5)))))
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) * sqrt(2.0))) * 1.0;
	} else {
		tmp = (t_1 * sqrt((z * 2.0))) * ((t * t) * 0.5);
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

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

real(8) function code(x, y, z, t)
use fmin_fmax_functions
    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) * sqrt(2.0d0))) * 1.0d0
    else
        tmp = (t_1 * sqrt((z * 2.0d0))) * ((t * t) * 0.5d0)
    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) * Math.sqrt(2.0))) * 1.0;
	} else {
		tmp = (t_1 * Math.sqrt((z * 2.0))) * ((t * t) * 0.5);
	}
	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) * math.sqrt(2.0))) * 1.0
	else:
		tmp = (t_1 * math.sqrt((z * 2.0))) * ((t * t) * 0.5)
	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(Float64(t_1 * Float64(sqrt(z) * sqrt(2.0))) * 1.0);
	else
		tmp = Float64(Float64(t_1 * sqrt(Float64(z * 2.0))) * Float64(Float64(t * t) * 0.5));
	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) * sqrt(2.0))) * 1.0;
	else
		tmp = (t_1 * sqrt((z * 2.0))) * ((t * t) * 0.5);
	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[(N[(t$95$1 * N[(N[Sqrt[z], $MachinePrecision] * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 1.0), $MachinePrecision], N[(N[(t$95$1 * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * 0.5), $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:\\
\;\;\;\;\left(t\_1 \cdot \left(\sqrt{z} \cdot \sqrt{2}\right)\right) \cdot 1\\

\mathbf{else}:\\
\;\;\;\;\left(t\_1 \cdot \sqrt{z \cdot 2}\right) \cdot \left(\left(t \cdot t\right) \cdot 0.5\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.6%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Step-by-step derivation
      1. lift-*.f64N/A

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

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

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

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

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

        \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \left(\sqrt{z} \cdot \color{blue}{\sqrt{2}}\right)\right) \cdot e^{\frac{t \cdot t}{2}} \]
    3. Applied rewrites99.3%

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

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

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

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

      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. 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)} \]
      3. Step-by-step derivation
        1. +-commutativeN/A

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

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

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

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \frac{1}{2}, 1\right) \]
        5. lift-*.f6472.4

          \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, 0.5, 1\right) \]
      4. Applied rewrites72.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, 0.5, 1\right)} \]
      5. Taylor expanded in t around inf

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

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

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

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\left(t \cdot t\right) \cdot \frac{1}{2}\right) \]
        4. lift-*.f6472.4

          \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\left(t \cdot t\right) \cdot 0.5\right) \]
      7. Applied rewrites72.4%

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

    Alternative 3: 85.7% accurate, 0.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;e^{\frac{t \cdot t}{2}} \leq 2:\\ \;\;\;\;\left(\left(\mathsf{fma}\left(0.5, x, -y\right) \cdot \sqrt{z}\right) \cdot \sqrt{2}\right) \cdot 1\\ \mathbf{else}:\\ \;\;\;\;\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\left(t \cdot t\right) \cdot 0.5\right)\\ \end{array} \end{array} \]
    (FPCore (x y z t)
     :precision binary64
     (if (<= (exp (/ (* t t) 2.0)) 2.0)
       (* (* (* (fma 0.5 x (- y)) (sqrt z)) (sqrt 2.0)) 1.0)
       (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (* (* t t) 0.5))))
    double code(double x, double y, double z, double t) {
    	double tmp;
    	if (exp(((t * t) / 2.0)) <= 2.0) {
    		tmp = ((fma(0.5, x, -y) * sqrt(z)) * sqrt(2.0)) * 1.0;
    	} else {
    		tmp = (((x * 0.5) - y) * sqrt((z * 2.0))) * ((t * t) * 0.5);
    	}
    	return tmp;
    }
    
    function code(x, y, z, t)
    	tmp = 0.0
    	if (exp(Float64(Float64(t * t) / 2.0)) <= 2.0)
    		tmp = Float64(Float64(Float64(fma(0.5, x, Float64(-y)) * sqrt(z)) * sqrt(2.0)) * 1.0);
    	else
    		tmp = Float64(Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * 2.0))) * Float64(Float64(t * t) * 0.5));
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_] := If[LessEqual[N[Exp[N[(N[(t * t), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision], 2.0], N[(N[(N[(N[(0.5 * x + (-y)), $MachinePrecision] * N[Sqrt[z], $MachinePrecision]), $MachinePrecision] * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * 1.0), $MachinePrecision], N[(N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(t * t), $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;e^{\frac{t \cdot t}{2}} \leq 2:\\
    \;\;\;\;\left(\left(\mathsf{fma}\left(0.5, x, -y\right) \cdot \sqrt{z}\right) \cdot \sqrt{2}\right) \cdot 1\\
    
    \mathbf{else}:\\
    \;\;\;\;\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\left(t \cdot t\right) \cdot 0.5\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.6%

        \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(\left(\left(\frac{1}{2} \cdot x - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot y\right) \cdot \sqrt{z}\right) \cdot \sqrt{2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        13. fp-cancel-sign-sub-invN/A

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

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

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

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

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

          \[\leadsto \left(\left(\mathsf{fma}\left(0.5, x, -y\right) \cdot \sqrt{z}\right) \cdot \color{blue}{\sqrt{2}}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      3. Applied rewrites99.3%

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

        \[\leadsto \left(\left(\mathsf{fma}\left(\frac{1}{2}, x, -y\right) \cdot \sqrt{z}\right) \cdot \sqrt{2}\right) \cdot \color{blue}{1} \]
      5. Step-by-step derivation
        1. Applied rewrites98.5%

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

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

        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. 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)} \]
        3. Step-by-step derivation
          1. +-commutativeN/A

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

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

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

            \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \frac{1}{2}, 1\right) \]
          5. lift-*.f6472.4

            \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, 0.5, 1\right) \]
        4. Applied rewrites72.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, 0.5, 1\right)} \]
        5. Taylor expanded in t around inf

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

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

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

            \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\left(t \cdot t\right) \cdot \frac{1}{2}\right) \]
          4. lift-*.f6472.4

            \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\left(t \cdot t\right) \cdot 0.5\right) \]
        7. Applied rewrites72.4%

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

      Alternative 4: 99.2% accurate, 0.9× speedup?

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

        \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(\left(\left(\frac{1}{2} \cdot x - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot y\right) \cdot \sqrt{z}\right) \cdot \sqrt{2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        13. fp-cancel-sign-sub-invN/A

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

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

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

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

          \[\leadsto \left(\left(\mathsf{fma}\left(\frac{1}{2}, x, -y\right) \cdot \color{blue}{\sqrt{z}}\right) \cdot \sqrt{2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        18. lower-sqrt.f6499.2

          \[\leadsto \left(\left(\mathsf{fma}\left(0.5, x, -y\right) \cdot \sqrt{z}\right) \cdot \color{blue}{\sqrt{2}}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      3. Applied rewrites99.2%

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

      Alternative 5: 99.8% accurate, 1.0× speedup?

      \[\begin{array}{l} \\ \left(0.5 \cdot x - y\right) \cdot \left(\sqrt{2 \cdot z} \cdot e^{\left(t \cdot t\right) \cdot 0.5}\right) \end{array} \]
      (FPCore (x y z t)
       :precision binary64
       (* (- (* 0.5 x) y) (* (sqrt (* 2.0 z)) (exp (* (* t t) 0.5)))))
      double code(double x, double y, double z, double t) {
      	return ((0.5 * x) - y) * (sqrt((2.0 * z)) * exp(((t * t) * 0.5)));
      }
      
      module fmin_fmax_functions
          implicit none
          private
          public fmax
          public fmin
      
          interface fmax
              module procedure fmax88
              module procedure fmax44
              module procedure fmax84
              module procedure fmax48
          end interface
          interface fmin
              module procedure fmin88
              module procedure fmin44
              module procedure fmin84
              module procedure fmin48
          end interface
      contains
          real(8) function fmax88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(4) function fmax44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(8) function fmax84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmax48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
          end function
          real(8) function fmin88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(4) function fmin44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(8) function fmin84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmin48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
          end function
      end module
      
      real(8) function code(x, y, z, t)
      use fmin_fmax_functions
          real(8), intent (in) :: x
          real(8), intent (in) :: y
          real(8), intent (in) :: z
          real(8), intent (in) :: t
          code = ((0.5d0 * x) - y) * (sqrt((2.0d0 * z)) * exp(((t * t) * 0.5d0)))
      end function
      
      public static double code(double x, double y, double z, double t) {
      	return ((0.5 * x) - y) * (Math.sqrt((2.0 * z)) * Math.exp(((t * t) * 0.5)));
      }
      
      def code(x, y, z, t):
      	return ((0.5 * x) - y) * (math.sqrt((2.0 * z)) * math.exp(((t * t) * 0.5)))
      
      function code(x, y, z, t)
      	return Float64(Float64(Float64(0.5 * x) - y) * Float64(sqrt(Float64(2.0 * z)) * exp(Float64(Float64(t * t) * 0.5))))
      end
      
      function tmp = code(x, y, z, t)
      	tmp = ((0.5 * x) - y) * (sqrt((2.0 * z)) * exp(((t * t) * 0.5)));
      end
      
      code[x_, y_, z_, t_] := N[(N[(N[(0.5 * x), $MachinePrecision] - y), $MachinePrecision] * N[(N[Sqrt[N[(2.0 * z), $MachinePrecision]], $MachinePrecision] * N[Exp[N[(N[(t * t), $MachinePrecision] * 0.5), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
      
      \begin{array}{l}
      
      \\
      \left(0.5 \cdot x - y\right) \cdot \left(\sqrt{2 \cdot z} \cdot e^{\left(t \cdot t\right) \cdot 0.5}\right)
      \end{array}
      
      Derivation
      1. Initial program 99.4%

        \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

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

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

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

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

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

          \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \left(\sqrt{z} \cdot \color{blue}{\sqrt{2}}\right)\right) \cdot e^{\frac{t \cdot t}{2}} \]
      3. Applied rewrites99.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(\frac{1}{2} \cdot x - y\right) \cdot \color{blue}{\left(\left(\sqrt{z} \cdot \sqrt{2}\right) \cdot e^{\frac{t \cdot t}{2}}\right)} \]
      5. Applied rewrites99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 6: 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^{\left(t \cdot t\right) \cdot 0.5} \end{array} \]
      (FPCore (x y z t)
       :precision binary64
       (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (exp (* (* t t) 0.5))))
      double code(double x, double y, double z, double t) {
      	return (((x * 0.5) - y) * sqrt((z * 2.0))) * exp(((t * t) * 0.5));
      }
      
      module fmin_fmax_functions
          implicit none
          private
          public fmax
          public fmin
      
          interface fmax
              module procedure fmax88
              module procedure fmax44
              module procedure fmax84
              module procedure fmax48
          end interface
          interface fmin
              module procedure fmin88
              module procedure fmin44
              module procedure fmin84
              module procedure fmin48
          end interface
      contains
          real(8) function fmax88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(4) function fmax44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(8) function fmax84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmax48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
          end function
          real(8) function fmin88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(4) function fmin44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(8) function fmin84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmin48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
          end function
      end module
      
      real(8) function code(x, y, z, t)
      use fmin_fmax_functions
          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) * 0.5d0))
      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) * 0.5));
      }
      
      def code(x, y, z, t):
      	return (((x * 0.5) - y) * math.sqrt((z * 2.0))) * math.exp(((t * t) * 0.5))
      
      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) * 0.5)))
      end
      
      function tmp = code(x, y, z, t)
      	tmp = (((x * 0.5) - y) * sqrt((z * 2.0))) * exp(((t * t) * 0.5));
      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] * 0.5), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
      
      \begin{array}{l}
      
      \\
      \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\left(t \cdot t\right) \cdot 0.5}
      \end{array}
      
      Derivation
      1. Initial program 99.4%

        \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      2. Step-by-step derivation
        1. lift-exp.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 7: 95.7% accurate, 2.2× speedup?

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

        \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      2. 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)} \]
      3. Step-by-step derivation
        1. +-commutativeN/A

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

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

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

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left({t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right) + \frac{1}{2}, {\color{blue}{t}}^{2}, 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(\left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right) \cdot {t}^{2} + \frac{1}{2}, {t}^{2}, 1\right) \]
        6. lower-fma.f64N/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, {t}^{2}, \frac{1}{2}\right), {\color{blue}{t}}^{2}, 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(\mathsf{fma}\left(\frac{1}{48} \cdot {t}^{2} + \frac{1}{8}, {t}^{2}, \frac{1}{2}\right), {t}^{2}, 1\right) \]
        8. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 8: 95.2% 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(\mathsf{fma}\left(\mathsf{fma}\left(0.020833333333333332, t \cdot t, 0.125\right), t \cdot t, 0.5\right), t \cdot t, 1\right) \end{array} \]
      (FPCore (x y z t)
       :precision binary64
       (*
        (* (- (* x 0.5) y) (sqrt (* z 2.0)))
        (fma
         (fma (fma 0.020833333333333332 (* t t) 0.125) (* t t) 0.5)
         (* t t)
         1.0)))
      double code(double x, double y, double z, double t) {
      	return (((x * 0.5) - y) * sqrt((z * 2.0))) * fma(fma(fma(0.020833333333333332, (t * t), 0.125), (t * t), 0.5), (t * t), 1.0);
      }
      
      function code(x, y, z, t)
      	return Float64(Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * 2.0))) * fma(fma(fma(0.020833333333333332, Float64(t * t), 0.125), Float64(t * t), 0.5), Float64(t * t), 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[(N[(0.020833333333333332 * N[(t * t), $MachinePrecision] + 0.125), $MachinePrecision] * N[(t * t), $MachinePrecision] + 0.5), $MachinePrecision] * N[(t * t), $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(\mathsf{fma}\left(\mathsf{fma}\left(0.020833333333333332, t \cdot t, 0.125\right), t \cdot t, 0.5\right), t \cdot t, 1\right)
      \end{array}
      
      Derivation
      1. Initial program 99.4%

        \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      2. 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)} \]
      3. Step-by-step derivation
        1. +-commutativeN/A

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

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

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

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left({t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right) + \frac{1}{2}, {\color{blue}{t}}^{2}, 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(\left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right) \cdot {t}^{2} + \frac{1}{2}, {t}^{2}, 1\right) \]
        6. lower-fma.f64N/A

          \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, {t}^{2}, \frac{1}{2}\right), {\color{blue}{t}}^{2}, 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(\mathsf{fma}\left(\frac{1}{48} \cdot {t}^{2} + \frac{1}{8}, {t}^{2}, \frac{1}{2}\right), {t}^{2}, 1\right) \]
        8. lower-fma.f64N/A

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

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

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

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

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

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

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

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

      Alternative 9: 87.0% accurate, 2.4× speedup?

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

        1. Initial program 99.5%

          \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        2. Step-by-step derivation
          1. lift-*.f64N/A

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

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

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

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

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

            \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \left(\sqrt{z} \cdot \color{blue}{\sqrt{2}}\right)\right) \cdot e^{\frac{t \cdot t}{2}} \]
        3. Applied rewrites99.3%

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

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

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

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

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

            \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \left(\sqrt{z} \cdot \sqrt{2}\right)\right) \cdot \mathsf{fma}\left(t \cdot t, \frac{1}{2}, 1\right) \]
          5. lift-*.f6486.6

            \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \left(\sqrt{z} \cdot \sqrt{2}\right)\right) \cdot \mathsf{fma}\left(t \cdot t, 0.5, 1\right) \]
        6. Applied rewrites86.6%

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

        if 1.18000000000000008e60 < t < 1.35e134

        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. 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)} \]
        3. Step-by-step derivation
          1. +-commutativeN/A

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

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

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

            \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left({t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right) + \frac{1}{2}, {\color{blue}{t}}^{2}, 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(\left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right) \cdot {t}^{2} + \frac{1}{2}, {t}^{2}, 1\right) \]
          6. lower-fma.f64N/A

            \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, {t}^{2}, \frac{1}{2}\right), {\color{blue}{t}}^{2}, 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(\mathsf{fma}\left(\frac{1}{48} \cdot {t}^{2} + \frac{1}{8}, {t}^{2}, \frac{1}{2}\right), {t}^{2}, 1\right) \]
          8. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(\left(\mathsf{neg}\left(y\right)\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\frac{1}{48}, t \cdot t, \frac{1}{8}\right), t \cdot t, \frac{1}{2}\right), t \cdot t, 1\right) \]
          2. lift-neg.f6471.5

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

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

          \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\frac{1}{8}, t \cdot t, \frac{1}{2}\right), t \cdot t, 1\right) \]
        9. Step-by-step derivation
          1. *-commutative63.3

            \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.125, t \cdot t, 0.5\right), t \cdot t, 1\right) \]
        10. Applied rewrites63.3%

          \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(0.125, t \cdot t, 0.5\right), t \cdot t, 1\right) \]
        11. Step-by-step derivation
          1. lift-*.f64N/A

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

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

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

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

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

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

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

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

            \[\leadsto \left(-y\right) \cdot \mathsf{Rewrite=>}\left(lower-*.f64, \left(\left(\sqrt{z} \cdot \sqrt{2}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\frac{1}{8}, t \cdot t, \frac{1}{2}\right), t \cdot t, 1\right)\right)\right) \]
        12. Applied rewrites68.5%

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

        if 1.35e134 < t

        1. Initial program 98.9%

          \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        2. 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)} \]
        3. Step-by-step derivation
          1. +-commutativeN/A

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

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

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

            \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \frac{1}{2}, 1\right) \]
          5. lift-*.f6496.5

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(\color{blue}{x \cdot \frac{1}{2}} - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \mathsf{fma}\left(t \cdot t, \frac{1}{2}, 1\right)\right) \]
          11. lower-*.f6497.9

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

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

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

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

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

      Alternative 10: 93.5% accurate, 2.7× speedup?

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

        \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

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

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

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

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

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

          \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \left(\sqrt{z} \cdot \color{blue}{\sqrt{2}}\right)\right) \cdot e^{\frac{t \cdot t}{2}} \]
      3. Applied rewrites99.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(\frac{1}{2} \cdot x - y\right) \cdot \color{blue}{\left(\left(\sqrt{z} \cdot \sqrt{2}\right) \cdot e^{\frac{t \cdot t}{2}}\right)} \]
      5. Applied rewrites99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 11: 92.9% 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(\mathsf{fma}\left(0.125, t \cdot t, 0.5\right), t \cdot t, 1\right) \end{array} \]
      (FPCore (x y z t)
       :precision binary64
       (*
        (* (- (* x 0.5) y) (sqrt (* z 2.0)))
        (fma (fma 0.125 (* t t) 0.5) (* t t) 1.0)))
      double code(double x, double y, double z, double t) {
      	return (((x * 0.5) - y) * sqrt((z * 2.0))) * fma(fma(0.125, (t * t), 0.5), (t * t), 1.0);
      }
      
      function code(x, y, z, t)
      	return Float64(Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * 2.0))) * fma(fma(0.125, Float64(t * t), 0.5), Float64(t * t), 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[(0.125 * N[(t * t), $MachinePrecision] + 0.5), $MachinePrecision] * N[(t * t), $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(\mathsf{fma}\left(0.125, t \cdot t, 0.5\right), t \cdot t, 1\right)
      \end{array}
      
      Derivation
      1. Initial program 99.4%

        \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      2. 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)} \]
      3. Step-by-step derivation
        1. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

      Alternative 12: 66.9% accurate, 3.0× speedup?

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

        1. Initial program 99.5%

          \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        2. Step-by-step derivation
          1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(\left(\left(\frac{1}{2} \cdot x - \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot y\right) \cdot \sqrt{z}\right) \cdot \sqrt{2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          13. fp-cancel-sign-sub-invN/A

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

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

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

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

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

            \[\leadsto \left(\left(\mathsf{fma}\left(0.5, x, -y\right) \cdot \sqrt{z}\right) \cdot \color{blue}{\sqrt{2}}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        3. Applied rewrites99.3%

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

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

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

          if 1.12e21 < t

          1. Initial program 99.0%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. 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)} \]
          3. Step-by-step derivation
            1. +-commutativeN/A

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

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

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

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \frac{1}{2}, 1\right) \]
            5. lift-*.f6476.4

              \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, 0.5, 1\right) \]
          4. Applied rewrites76.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, 0.5, 1\right)} \]
          5. Taylor expanded in x around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\left(\frac{1}{2} \cdot x\right) \cdot \left(\left(\sqrt{z} \cdot \sqrt{2}\right) \cdot \mathsf{fma}\left(t \cdot t, \frac{1}{2}, 1\right)\right)} \]
          9. Applied rewrites55.1%

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

        Alternative 13: 67.0% accurate, 3.1× speedup?

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

          1. Initial program 99.5%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. 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)} \]
          3. Step-by-step derivation
            1. associate-*r*N/A

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

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

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

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

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

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

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

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - y\right) \]
            11. *-lft-identityN/A

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - \left(\mathsf{neg}\left(-1\right)\right) \cdot y\right) \]
            13. fp-cancel-sign-sub-invN/A

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, \mathsf{neg}\left(y\right)\right) \]
            16. lower-neg.f6470.6

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
          4. Applied rewrites70.6%

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, -y\right) \]
            2. count-2-revN/A

              \[\leadsto \sqrt{z + z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, -y\right) \]
            3. lower-+.f6470.6

              \[\leadsto \sqrt{z + z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
          6. Applied rewrites70.6%

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

          if 1.12e21 < t

          1. Initial program 99.0%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. 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)} \]
          3. Step-by-step derivation
            1. +-commutativeN/A

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

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

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

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \frac{1}{2}, 1\right) \]
            5. lift-*.f6476.4

              \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, 0.5, 1\right) \]
          4. Applied rewrites76.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, 0.5, 1\right)} \]
          5. Taylor expanded in x around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \color{blue}{\left(\frac{1}{2} \cdot x\right) \cdot \left(\left(\sqrt{z} \cdot \sqrt{2}\right) \cdot \mathsf{fma}\left(t \cdot t, \frac{1}{2}, 1\right)\right)} \]
          9. Applied rewrites55.1%

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

        Alternative 14: 66.2% accurate, 3.2× speedup?

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

          1. Initial program 99.5%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. 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)} \]
          3. Step-by-step derivation
            1. associate-*r*N/A

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

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

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

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

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

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

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

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - y\right) \]
            11. *-lft-identityN/A

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - \left(\mathsf{neg}\left(-1\right)\right) \cdot y\right) \]
            13. fp-cancel-sign-sub-invN/A

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, \mathsf{neg}\left(y\right)\right) \]
            16. lower-neg.f6470.6

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
          4. Applied rewrites70.6%

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, -y\right) \]
            2. count-2-revN/A

              \[\leadsto \sqrt{z + z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, -y\right) \]
            3. lower-+.f6470.6

              \[\leadsto \sqrt{z + z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
          6. Applied rewrites70.6%

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

          if 1.12e21 < t

          1. Initial program 99.0%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. 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)} \]
          3. Step-by-step derivation
            1. +-commutativeN/A

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

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

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

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, \frac{1}{2}, 1\right) \]
            5. lift-*.f6476.4

              \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, 0.5, 1\right) \]
          4. Applied rewrites76.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, 0.5, 1\right)} \]
          5. Taylor expanded in x around inf

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

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

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

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

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

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

              \[\leadsto \left(\left(x \cdot \frac{1}{2}\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left({t}^{2} \cdot \frac{1}{2}\right) \]
            3. pow2N/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2}\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\left(t \cdot t\right) \cdot \frac{1}{2}\right) \]
            4. lift-*.f6451.8

              \[\leadsto \left(\left(x \cdot 0.5\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\left(t \cdot t\right) \cdot 0.5\right) \]
          10. Applied rewrites51.8%

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

        Alternative 15: 65.7% accurate, 3.3× speedup?

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

          1. Initial program 99.5%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. 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)} \]
          3. Step-by-step derivation
            1. associate-*r*N/A

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

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

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

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

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

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

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

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - y\right) \]
            11. *-lft-identityN/A

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - \left(\mathsf{neg}\left(-1\right)\right) \cdot y\right) \]
            13. fp-cancel-sign-sub-invN/A

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, \mathsf{neg}\left(y\right)\right) \]
            16. lower-neg.f6466.6

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
          4. Applied rewrites66.6%

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, -y\right) \]
            2. count-2-revN/A

              \[\leadsto \sqrt{z + z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, -y\right) \]
            3. lower-+.f6466.6

              \[\leadsto \sqrt{z + z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
          6. Applied rewrites66.6%

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

          if 1.84999999999999996e96 < t

          1. Initial program 99.0%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. 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)} \]
          3. Step-by-step derivation
            1. +-commutativeN/A

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

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

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

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left({t}^{2} \cdot \left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right) + \frac{1}{2}, {\color{blue}{t}}^{2}, 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(\left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}\right) \cdot {t}^{2} + \frac{1}{2}, {t}^{2}, 1\right) \]
            6. lower-fma.f64N/A

              \[\leadsto \left(\left(x \cdot \frac{1}{2} - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\frac{1}{8} + \frac{1}{48} \cdot {t}^{2}, {t}^{2}, \frac{1}{2}\right), {\color{blue}{t}}^{2}, 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(\mathsf{fma}\left(\frac{1}{48} \cdot {t}^{2} + \frac{1}{8}, {t}^{2}, \frac{1}{2}\right), {t}^{2}, 1\right) \]
            8. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(\left(\mathsf{neg}\left(y\right)\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\frac{1}{48}, t \cdot t, \frac{1}{8}\right), t \cdot t, \frac{1}{2}\right), t \cdot t, 1\right) \]
            2. lift-neg.f6470.4

              \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(0.020833333333333332, t \cdot t, 0.125\right), t \cdot t, 0.5\right), t \cdot t, 1\right) \]
          7. Applied rewrites70.4%

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

            \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(\frac{1}{2}, \color{blue}{t} \cdot t, 1\right) \]
          9. Step-by-step derivation
            1. flip-+61.4

              \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right) \]
            2. *-commutative61.4

              \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right) \]
            3. associate-*l*61.4

              \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right) \]
            4. *-commutative61.4

              \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right) \]
            5. associate-*l*61.4

              \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right) \]
            6. metadata-eval61.4

              \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right) \]
            7. *-commutative61.4

              \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right) \]
            8. associate-*l*61.4

              \[\leadsto \left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(0.5, t \cdot t, 1\right) \]
          10. Applied rewrites61.4%

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

        Alternative 16: 86.9% accurate, 3.3× speedup?

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

          \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        2. 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)} \]
        3. Step-by-step derivation
          1. +-commutativeN/A

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

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

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

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

            \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, 0.5, 1\right) \]
        4. Applied rewrites86.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 17: 86.0% accurate, 3.3× 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, 0.5, 1\right) \end{array} \]
        (FPCore (x y z t)
         :precision binary64
         (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (fma (* t t) 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), 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), 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] * 0.5 + 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, 0.5, 1\right)
        \end{array}
        
        Derivation
        1. Initial program 99.4%

          \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        2. 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)} \]
        3. Step-by-step derivation
          1. +-commutativeN/A

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

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

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

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

            \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \mathsf{fma}\left(t \cdot t, 0.5, 1\right) \]
        4. Applied rewrites86.0%

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

        Alternative 18: 44.4% accurate, 4.2× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \sqrt{z + z}\\ t_2 := t\_1 \cdot \left(x \cdot 0.5\right)\\ \mathbf{if}\;x \leq -0.0265:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x \leq 7.2 \cdot 10^{+60}:\\ \;\;\;\;t\_1 \cdot \left(-y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
        (FPCore (x y z t)
         :precision binary64
         (let* ((t_1 (sqrt (+ z z))) (t_2 (* t_1 (* x 0.5))))
           (if (<= x -0.0265) t_2 (if (<= x 7.2e+60) (* t_1 (- y)) t_2))))
        double code(double x, double y, double z, double t) {
        	double t_1 = sqrt((z + z));
        	double t_2 = t_1 * (x * 0.5);
        	double tmp;
        	if (x <= -0.0265) {
        		tmp = t_2;
        	} else if (x <= 7.2e+60) {
        		tmp = t_1 * -y;
        	} else {
        		tmp = t_2;
        	}
        	return tmp;
        }
        
        module fmin_fmax_functions
            implicit none
            private
            public fmax
            public fmin
        
            interface fmax
                module procedure fmax88
                module procedure fmax44
                module procedure fmax84
                module procedure fmax48
            end interface
            interface fmin
                module procedure fmin88
                module procedure fmin44
                module procedure fmin84
                module procedure fmin48
            end interface
        contains
            real(8) function fmax88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(4) function fmax44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(8) function fmax84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmax48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
            end function
            real(8) function fmin88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(4) function fmin44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(8) function fmin84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmin48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
            end function
        end module
        
        real(8) function code(x, y, z, t)
        use fmin_fmax_functions
            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 = sqrt((z + z))
            t_2 = t_1 * (x * 0.5d0)
            if (x <= (-0.0265d0)) then
                tmp = t_2
            else if (x <= 7.2d+60) then
                tmp = t_1 * -y
            else
                tmp = t_2
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z, double t) {
        	double t_1 = Math.sqrt((z + z));
        	double t_2 = t_1 * (x * 0.5);
        	double tmp;
        	if (x <= -0.0265) {
        		tmp = t_2;
        	} else if (x <= 7.2e+60) {
        		tmp = t_1 * -y;
        	} else {
        		tmp = t_2;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t):
        	t_1 = math.sqrt((z + z))
        	t_2 = t_1 * (x * 0.5)
        	tmp = 0
        	if x <= -0.0265:
        		tmp = t_2
        	elif x <= 7.2e+60:
        		tmp = t_1 * -y
        	else:
        		tmp = t_2
        	return tmp
        
        function code(x, y, z, t)
        	t_1 = sqrt(Float64(z + z))
        	t_2 = Float64(t_1 * Float64(x * 0.5))
        	tmp = 0.0
        	if (x <= -0.0265)
        		tmp = t_2;
        	elseif (x <= 7.2e+60)
        		tmp = Float64(t_1 * Float64(-y));
        	else
        		tmp = t_2;
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t)
        	t_1 = sqrt((z + z));
        	t_2 = t_1 * (x * 0.5);
        	tmp = 0.0;
        	if (x <= -0.0265)
        		tmp = t_2;
        	elseif (x <= 7.2e+60)
        		tmp = t_1 * -y;
        	else
        		tmp = t_2;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z + z), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * N[(x * 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.0265], t$95$2, If[LessEqual[x, 7.2e+60], N[(t$95$1 * (-y)), $MachinePrecision], t$95$2]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \sqrt{z + z}\\
        t_2 := t\_1 \cdot \left(x \cdot 0.5\right)\\
        \mathbf{if}\;x \leq -0.0265:\\
        \;\;\;\;t\_2\\
        
        \mathbf{elif}\;x \leq 7.2 \cdot 10^{+60}:\\
        \;\;\;\;t\_1 \cdot \left(-y\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_2\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if x < -0.0264999999999999993 or 7.19999999999999935e60 < x

          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. 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)} \]
          3. Step-by-step derivation
            1. associate-*r*N/A

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

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

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

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

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

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

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

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - y\right) \]
            11. *-lft-identityN/A

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - \left(\mathsf{neg}\left(-1\right)\right) \cdot y\right) \]
            13. fp-cancel-sign-sub-invN/A

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, \mathsf{neg}\left(y\right)\right) \]
            16. lower-neg.f6461.8

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
          4. Applied rewrites61.8%

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\mathsf{neg}\left(y\right)\right) \]
            2. lift-neg.f6416.3

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(-y\right) \]
          7. Applied rewrites16.3%

            \[\leadsto \sqrt{2 \cdot z} \cdot \left(-y\right) \]
          8. Step-by-step derivation
            1. lift-*.f64N/A

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(-y\right) \]
            2. count-2-revN/A

              \[\leadsto \sqrt{z + z} \cdot \left(-y\right) \]
            3. lower-+.f6416.3

              \[\leadsto \sqrt{z + z} \cdot \left(-y\right) \]
          9. Applied rewrites16.3%

            \[\leadsto \sqrt{z + z} \cdot \left(-y\right) \]
          10. Taylor expanded in x around inf

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

              \[\leadsto \sqrt{z + z} \cdot \left(x \cdot \frac{1}{2}\right) \]
            2. lift-*.f6448.4

              \[\leadsto \sqrt{z + z} \cdot \left(x \cdot 0.5\right) \]
          12. Applied rewrites48.4%

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

          if -0.0264999999999999993 < x < 7.19999999999999935e60

          1. Initial program 99.0%

            \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
          2. 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)} \]
          3. Step-by-step derivation
            1. associate-*r*N/A

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

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

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

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

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

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

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

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - y\right) \]
            11. *-lft-identityN/A

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - \left(\mathsf{neg}\left(-1\right)\right) \cdot y\right) \]
            13. fp-cancel-sign-sub-invN/A

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, \mathsf{neg}\left(y\right)\right) \]
            16. lower-neg.f6454.4

              \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
          4. Applied rewrites54.4%

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

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

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(\mathsf{neg}\left(y\right)\right) \]
            2. lift-neg.f6441.1

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(-y\right) \]
          7. Applied rewrites41.1%

            \[\leadsto \sqrt{2 \cdot z} \cdot \left(-y\right) \]
          8. Step-by-step derivation
            1. lift-*.f64N/A

              \[\leadsto \sqrt{2 \cdot z} \cdot \left(-y\right) \]
            2. count-2-revN/A

              \[\leadsto \sqrt{z + z} \cdot \left(-y\right) \]
            3. lower-+.f6441.1

              \[\leadsto \sqrt{z + z} \cdot \left(-y\right) \]
          9. Applied rewrites41.1%

            \[\leadsto \sqrt{z + z} \cdot \left(-y\right) \]
        3. Recombined 2 regimes into one program.
        4. Add Preprocessing

        Alternative 19: 57.8% accurate, 5.6× speedup?

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

          \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        2. 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)} \]
        3. Step-by-step derivation
          1. associate-*r*N/A

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

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

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

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

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

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

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

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

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

            \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - y\right) \]
          11. *-lft-identityN/A

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

            \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - \left(\mathsf{neg}\left(-1\right)\right) \cdot y\right) \]
          13. fp-cancel-sign-sub-invN/A

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

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

            \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, \mathsf{neg}\left(y\right)\right) \]
          16. lower-neg.f6457.8

            \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
        4. Applied rewrites57.8%

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

            \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, -y\right) \]
          2. count-2-revN/A

            \[\leadsto \sqrt{z + z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, -y\right) \]
          3. lower-+.f6457.8

            \[\leadsto \sqrt{z + z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
        6. Applied rewrites57.8%

          \[\leadsto \sqrt{z + z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
        7. Add Preprocessing

        Alternative 20: 29.8% accurate, 7.1× speedup?

        \[\begin{array}{l} \\ \sqrt{z + z} \cdot \left(-y\right) \end{array} \]
        (FPCore (x y z t) :precision binary64 (* (sqrt (+ z z)) (- y)))
        double code(double x, double y, double z, double t) {
        	return sqrt((z + z)) * -y;
        }
        
        module fmin_fmax_functions
            implicit none
            private
            public fmax
            public fmin
        
            interface fmax
                module procedure fmax88
                module procedure fmax44
                module procedure fmax84
                module procedure fmax48
            end interface
            interface fmin
                module procedure fmin88
                module procedure fmin44
                module procedure fmin84
                module procedure fmin48
            end interface
        contains
            real(8) function fmax88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(4) function fmax44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(8) function fmax84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmax48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
            end function
            real(8) function fmin88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(4) function fmin44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(8) function fmin84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmin48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
            end function
        end module
        
        real(8) function code(x, y, z, t)
        use fmin_fmax_functions
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            real(8), intent (in) :: z
            real(8), intent (in) :: t
            code = sqrt((z + z)) * -y
        end function
        
        public static double code(double x, double y, double z, double t) {
        	return Math.sqrt((z + z)) * -y;
        }
        
        def code(x, y, z, t):
        	return math.sqrt((z + z)) * -y
        
        function code(x, y, z, t)
        	return Float64(sqrt(Float64(z + z)) * Float64(-y))
        end
        
        function tmp = code(x, y, z, t)
        	tmp = sqrt((z + z)) * -y;
        end
        
        code[x_, y_, z_, t_] := N[(N[Sqrt[N[(z + z), $MachinePrecision]], $MachinePrecision] * (-y)), $MachinePrecision]
        
        \begin{array}{l}
        
        \\
        \sqrt{z + z} \cdot \left(-y\right)
        \end{array}
        
        Derivation
        1. Initial program 99.4%

          \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
        2. 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)} \]
        3. Step-by-step derivation
          1. associate-*r*N/A

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

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

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

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

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

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

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

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

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

            \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - y\right) \]
          11. *-lft-identityN/A

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

            \[\leadsto \sqrt{2 \cdot z} \cdot \left(\frac{1}{2} \cdot x - \left(\mathsf{neg}\left(-1\right)\right) \cdot y\right) \]
          13. fp-cancel-sign-sub-invN/A

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

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

            \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(\frac{1}{2}, x, \mathsf{neg}\left(y\right)\right) \]
          16. lower-neg.f6457.8

            \[\leadsto \sqrt{2 \cdot z} \cdot \mathsf{fma}\left(0.5, x, -y\right) \]
        4. Applied rewrites57.8%

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

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

            \[\leadsto \sqrt{2 \cdot z} \cdot \left(\mathsf{neg}\left(y\right)\right) \]
          2. lift-neg.f6429.8

            \[\leadsto \sqrt{2 \cdot z} \cdot \left(-y\right) \]
        7. Applied rewrites29.8%

          \[\leadsto \sqrt{2 \cdot z} \cdot \left(-y\right) \]
        8. Step-by-step derivation
          1. lift-*.f64N/A

            \[\leadsto \sqrt{2 \cdot z} \cdot \left(-y\right) \]
          2. count-2-revN/A

            \[\leadsto \sqrt{z + z} \cdot \left(-y\right) \]
          3. lower-+.f6429.8

            \[\leadsto \sqrt{z + z} \cdot \left(-y\right) \]
        9. Applied rewrites29.8%

          \[\leadsto \sqrt{z + z} \cdot \left(-y\right) \]
        10. 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));
        }
        
        module fmin_fmax_functions
            implicit none
            private
            public fmax
            public fmin
        
            interface fmax
                module procedure fmax88
                module procedure fmax44
                module procedure fmax84
                module procedure fmax48
            end interface
            interface fmin
                module procedure fmin88
                module procedure fmin44
                module procedure fmin84
                module procedure fmin48
            end interface
        contains
            real(8) function fmax88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(4) function fmax44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, max(x, y), y /= y), x /= x)
            end function
            real(8) function fmax84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmax48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
            end function
            real(8) function fmin88(x, y) result (res)
                real(8), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(4) function fmin44(x, y) result (res)
                real(4), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(y, merge(x, min(x, y), y /= y), x /= x)
            end function
            real(8) function fmin84(x, y) result(res)
                real(8), intent (in) :: x
                real(4), intent (in) :: y
                res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
            end function
            real(8) function fmin48(x, y) result(res)
                real(4), intent (in) :: x
                real(8), intent (in) :: y
                res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
            end function
        end module
        
        real(8) function code(x, y, z, t)
        use fmin_fmax_functions
            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 2025093 
        (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))))