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

Percentage Accurate: 99.4% → 99.8%
Time: 13.5s
Alternatives: 8
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));
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = (((x * 0.5d0) - y) * sqrt((z * 2.0d0))) * exp(((t * t) / 2.0d0))
end function
public static double code(double x, double y, double z, double t) {
	return (((x * 0.5) - y) * Math.sqrt((z * 2.0))) * Math.exp(((t * t) / 2.0));
}
def code(x, y, z, t):
	return (((x * 0.5) - y) * math.sqrt((z * 2.0))) * math.exp(((t * t) / 2.0))
function code(x, y, z, t)
	return Float64(Float64(Float64(Float64(x * 0.5) - y) * sqrt(Float64(z * 2.0))) * exp(Float64(Float64(t * t) / 2.0)))
end
function tmp = code(x, y, z, t)
	tmp = (((x * 0.5) - y) * sqrt((z * 2.0))) * exp(((t * t) / 2.0));
end
code[x_, y_, z_, t_] := N[(N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Exp[N[(N[(t * t), $MachinePrecision] / 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 8 alternatives:

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

Initial Program: 99.4% accurate, 1.0× speedup?

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

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

Alternative 1: 99.8% accurate, 1.0× speedup?

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

\\
\left(x \cdot 0.5 - y\right) \cdot \sqrt{2 \cdot \left(z \cdot e^{t \cdot t}\right)}
\end{array}
Derivation
  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. associate-*l*99.8%

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

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

    \[\leadsto \color{blue}{\left(x \cdot 0.5 - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \sqrt{e^{t \cdot t}}\right)} \]
  4. Step-by-step derivation
    1. expm1-log1p-u98.5%

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\sqrt{z \cdot 2} \cdot \sqrt{e^{t \cdot t}}\right)\right)} \]
    2. expm1-udef73.6%

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \color{blue}{\left(e^{\mathsf{log1p}\left(\sqrt{z \cdot 2} \cdot \sqrt{e^{t \cdot t}}\right)} - 1\right)} \]
    3. sqrt-unprod73.6%

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \left(e^{\mathsf{log1p}\left(\color{blue}{\sqrt{\left(z \cdot 2\right) \cdot e^{t \cdot t}}}\right)} - 1\right) \]
    4. associate-*l*73.6%

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \left(e^{\mathsf{log1p}\left(\sqrt{\color{blue}{z \cdot \left(2 \cdot e^{t \cdot t}\right)}}\right)} - 1\right) \]
    5. exp-prod73.6%

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

    \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \color{blue}{\left(e^{\mathsf{log1p}\left(\sqrt{z \cdot \left(2 \cdot {\left(e^{t}\right)}^{t}\right)}\right)} - 1\right)} \]
  6. Step-by-step derivation
    1. expm1-def98.5%

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\sqrt{z \cdot \left(2 \cdot {\left(e^{t}\right)}^{t}\right)}\right)\right)} \]
    2. expm1-log1p99.9%

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

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{\color{blue}{\left(2 \cdot {\left(e^{t}\right)}^{t}\right) \cdot z}} \]
    4. associate-*l*99.9%

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

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

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

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

    \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{2 \cdot \left(z \cdot e^{t \cdot t}\right)} \]

Alternative 2: 85.4% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
t_1 := \sqrt{2 \cdot z}\\
\mathbf{if}\;t \cdot t \leq 4.4 \cdot 10^{-5}:\\
\;\;\;\;\left(x \cdot 0.5 - y\right) \cdot t_1\\

\mathbf{else}:\\
\;\;\;\;e^{\frac{t \cdot t}{2}} \cdot \left(y \cdot \left(-t_1\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (*.f64 t t) < 4.3999999999999999e-5

    1. Initial program 99.7%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Step-by-step derivation
      1. associate-*l*99.7%

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

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

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

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

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

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

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

    if 4.3999999999999999e-5 < (*.f64 t t)

    1. Initial program 99.2%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Step-by-step derivation
      1. add-cube-cbrt99.2%

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

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

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

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

        \[\leadsto \color{blue}{\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right)} \cdot e^{\frac{t \cdot t}{2}} \]
      3. sqrt-prod99.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. *-commutative99.2%

        \[\leadsto \left(\left(x \cdot 0.5 - y\right) \cdot \color{blue}{\left(\sqrt{2} \cdot \sqrt{z}\right)}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      5. associate-*r*99.2%

        \[\leadsto \color{blue}{\left(\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{2}\right) \cdot \sqrt{z}\right)} \cdot e^{\frac{t \cdot t}{2}} \]
      6. add-cbrt-cube82.9%

        \[\leadsto \left(\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{2}\right) \cdot \color{blue}{\sqrt[3]{\left(\sqrt{z} \cdot \sqrt{z}\right) \cdot \sqrt{z}}}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      7. add-sqr-sqrt82.9%

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

        \[\leadsto \left(\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{2}\right) \cdot \color{blue}{\left(\sqrt[3]{z} \cdot \sqrt[3]{\sqrt{z}}\right)}\right) \cdot e^{\frac{t \cdot t}{2}} \]
      9. associate-*r*99.2%

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

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

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

      \[\leadsto \color{blue}{\left(\left(-y\right) \cdot \sqrt{z \cdot 2}\right)} \cdot e^{\frac{t \cdot t}{2}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification87.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \cdot t \leq 4.4 \cdot 10^{-5}:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{2 \cdot z}\\ \mathbf{else}:\\ \;\;\;\;e^{\frac{t \cdot t}{2}} \cdot \left(y \cdot \left(-\sqrt{2 \cdot z}\right)\right)\\ \end{array} \]

Alternative 3: 43.1% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
t_1 := \sqrt{2 \cdot z}\\
\mathbf{if}\;y \leq -8.6 \cdot 10^{-33}:\\
\;\;\;\;\sqrt{2 \cdot \left(z \cdot \left(y \cdot y\right)\right)}\\

\mathbf{elif}\;y \leq 1.85 \cdot 10^{+42}:\\
\;\;\;\;x \cdot \left(0.5 \cdot t_1\right)\\

\mathbf{else}:\\
\;\;\;\;y \cdot \left(-t_1\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -8.60000000000000062e-33

    1. Initial program 99.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 55.9%

      \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(0.5 \cdot x - y\right)\right) \cdot \sqrt{z}} \]
    3. Step-by-step derivation
      1. associate-*l*56.0%

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

        \[\leadsto \sqrt{2} \cdot \color{blue}{\left(\sqrt{z} \cdot \left(0.5 \cdot x - y\right)\right)} \]
      3. fma-neg56.0%

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

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

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

        \[\leadsto \sqrt{2} \cdot \color{blue}{\left(-y \cdot \sqrt{z}\right)} \]
      2. distribute-rgt-neg-in43.4%

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

      \[\leadsto \sqrt{2} \cdot \color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right)} \]
    8. Step-by-step derivation
      1. add-sqr-sqrt43.2%

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

        \[\leadsto \color{blue}{\sqrt{\left(\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right) \cdot \left(\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)}} \]
      3. swap-sqr58.3%

        \[\leadsto \sqrt{\color{blue}{\left(\sqrt{2} \cdot \sqrt{2}\right) \cdot \left(\left(y \cdot \left(-\sqrt{z}\right)\right) \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)}} \]
      4. add-sqr-sqrt58.4%

        \[\leadsto \sqrt{\color{blue}{2} \cdot \left(\left(y \cdot \left(-\sqrt{z}\right)\right) \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)} \]
      5. *-commutative58.4%

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

        \[\leadsto \sqrt{2 \cdot \left(\left(\left(-\sqrt{z}\right) \cdot y\right) \cdot \color{blue}{\left(\left(-\sqrt{z}\right) \cdot y\right)}\right)} \]
      7. swap-sqr56.9%

        \[\leadsto \sqrt{2 \cdot \color{blue}{\left(\left(\left(-\sqrt{z}\right) \cdot \left(-\sqrt{z}\right)\right) \cdot \left(y \cdot y\right)\right)}} \]
      8. sqr-neg56.9%

        \[\leadsto \sqrt{2 \cdot \left(\color{blue}{\left(\sqrt{z} \cdot \sqrt{z}\right)} \cdot \left(y \cdot y\right)\right)} \]
      9. add-sqr-sqrt56.9%

        \[\leadsto \sqrt{2 \cdot \left(\color{blue}{z} \cdot \left(y \cdot y\right)\right)} \]
    9. Applied egg-rr56.9%

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

    if -8.60000000000000062e-33 < y < 1.84999999999999998e42

    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 55.3%

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

      \[\leadsto \color{blue}{\left(0.5 \cdot \left(\sqrt{2} \cdot x\right)\right)} \cdot \sqrt{z} \]
    4. Step-by-step derivation
      1. *-commutative46.0%

        \[\leadsto \color{blue}{\left(\left(\sqrt{2} \cdot x\right) \cdot 0.5\right)} \cdot \sqrt{z} \]
      2. associate-*r*46.0%

        \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(x \cdot 0.5\right)\right)} \cdot \sqrt{z} \]
      3. *-commutative46.0%

        \[\leadsto \left(\sqrt{2} \cdot \color{blue}{\left(0.5 \cdot x\right)}\right) \cdot \sqrt{z} \]
    5. Simplified46.0%

      \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right)} \cdot \sqrt{z} \]
    6. Step-by-step derivation
      1. expm1-log1p-u29.7%

        \[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right) \cdot \sqrt{z}\right)\right)} \]
      2. expm1-udef15.1%

        \[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right) \cdot \sqrt{z}\right)} - 1} \]
      3. *-commutative15.1%

        \[\leadsto e^{\mathsf{log1p}\left(\left(\sqrt{2} \cdot \color{blue}{\left(x \cdot 0.5\right)}\right) \cdot \sqrt{z}\right)} - 1 \]
      4. *-commutative15.1%

        \[\leadsto e^{\mathsf{log1p}\left(\color{blue}{\left(\left(x \cdot 0.5\right) \cdot \sqrt{2}\right)} \cdot \sqrt{z}\right)} - 1 \]
      5. associate-*l*15.1%

        \[\leadsto e^{\mathsf{log1p}\left(\color{blue}{\left(x \cdot 0.5\right) \cdot \left(\sqrt{2} \cdot \sqrt{z}\right)}\right)} - 1 \]
      6. *-commutative15.1%

        \[\leadsto e^{\mathsf{log1p}\left(\left(x \cdot 0.5\right) \cdot \color{blue}{\left(\sqrt{z} \cdot \sqrt{2}\right)}\right)} - 1 \]
      7. sqrt-prod15.1%

        \[\leadsto e^{\mathsf{log1p}\left(\left(x \cdot 0.5\right) \cdot \color{blue}{\sqrt{z \cdot 2}}\right)} - 1 \]
    7. Applied egg-rr15.1%

      \[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\left(x \cdot 0.5\right) \cdot \sqrt{z \cdot 2}\right)} - 1} \]
    8. Step-by-step derivation
      1. expm1-def29.7%

        \[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\left(x \cdot 0.5\right) \cdot \sqrt{z \cdot 2}\right)\right)} \]
      2. expm1-log1p46.1%

        \[\leadsto \color{blue}{\left(x \cdot 0.5\right) \cdot \sqrt{z \cdot 2}} \]
      3. associate-*l*46.1%

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

        \[\leadsto x \cdot \left(0.5 \cdot \sqrt{\color{blue}{2 \cdot z}}\right) \]
    9. Simplified46.1%

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

    if 1.84999999999999998e42 < y

    1. Initial program 99.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 57.2%

      \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(0.5 \cdot x - y\right)\right) \cdot \sqrt{z}} \]
    3. Step-by-step derivation
      1. associate-*l*57.1%

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

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

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

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

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

        \[\leadsto \sqrt{2} \cdot \color{blue}{\left(-y \cdot \sqrt{z}\right)} \]
      2. distribute-rgt-neg-in46.3%

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

      \[\leadsto \sqrt{2} \cdot \color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right)} \]
    8. Step-by-step derivation
      1. associate-*r*46.3%

        \[\leadsto \color{blue}{\left(\sqrt{2} \cdot y\right) \cdot \left(-\sqrt{z}\right)} \]
      2. distribute-rgt-neg-out46.3%

        \[\leadsto \color{blue}{-\left(\sqrt{2} \cdot y\right) \cdot \sqrt{z}} \]
      3. add-sqr-sqrt46.3%

        \[\leadsto -\left(\sqrt{2} \cdot y\right) \cdot \sqrt{\color{blue}{\sqrt{z} \cdot \sqrt{z}}} \]
      4. sqr-neg46.3%

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

        \[\leadsto -\left(\sqrt{2} \cdot y\right) \cdot \color{blue}{\left(\sqrt{-\sqrt{z}} \cdot \sqrt{-\sqrt{z}}\right)} \]
      6. add-sqr-sqrt1.1%

        \[\leadsto -\left(\sqrt{2} \cdot y\right) \cdot \color{blue}{\left(-\sqrt{z}\right)} \]
      7. associate-*r*1.1%

        \[\leadsto -\color{blue}{\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)} \]
      8. *-commutative1.1%

        \[\leadsto -\color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right) \cdot \sqrt{2}} \]
      9. associate-*l*1.1%

        \[\leadsto -\color{blue}{y \cdot \left(\left(-\sqrt{z}\right) \cdot \sqrt{2}\right)} \]
      10. add-sqr-sqrt0.0%

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

        \[\leadsto -y \cdot \left(\color{blue}{\sqrt{\left(-\sqrt{z}\right) \cdot \left(-\sqrt{z}\right)}} \cdot \sqrt{2}\right) \]
      12. sqr-neg46.4%

        \[\leadsto -y \cdot \left(\sqrt{\color{blue}{\sqrt{z} \cdot \sqrt{z}}} \cdot \sqrt{2}\right) \]
      13. add-sqr-sqrt46.4%

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

        \[\leadsto -y \cdot \color{blue}{\sqrt{z \cdot 2}} \]
    9. Applied egg-rr46.4%

      \[\leadsto \color{blue}{-y \cdot \sqrt{z \cdot 2}} \]
    10. Step-by-step derivation
      1. distribute-lft-neg-in46.4%

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

        \[\leadsto \color{blue}{\sqrt{z \cdot 2} \cdot \left(-y\right)} \]
      3. *-commutative46.4%

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

      \[\leadsto \color{blue}{\sqrt{2 \cdot z} \cdot \left(-y\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification49.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8.6 \cdot 10^{-33}:\\ \;\;\;\;\sqrt{2 \cdot \left(z \cdot \left(y \cdot y\right)\right)}\\ \mathbf{elif}\;y \leq 1.85 \cdot 10^{+42}:\\ \;\;\;\;x \cdot \left(0.5 \cdot \sqrt{2 \cdot z}\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(-\sqrt{2 \cdot z}\right)\\ \end{array} \]

Alternative 4: 56.4% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.05 \cdot 10^{+30}:\\
\;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{2 \cdot z}\\

\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(z \cdot \left(y \cdot y\right)\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < 2.05000000000000003e30

    1. Initial program 99.3%

      \[\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. associate-*l*99.8%

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

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

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

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \color{blue}{\left(\sqrt{2} \cdot \sqrt{z}\right)} \]
    5. Step-by-step derivation
      1. *-commutative68.6%

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

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

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

    if 2.05000000000000003e30 < t

    1. Initial program 100.0%

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

      \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(0.5 \cdot x - y\right)\right) \cdot \sqrt{z}} \]
    3. Step-by-step derivation
      1. associate-*l*8.3%

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

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

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

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

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

        \[\leadsto \sqrt{2} \cdot \color{blue}{\left(-y \cdot \sqrt{z}\right)} \]
      2. distribute-rgt-neg-in6.8%

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

      \[\leadsto \sqrt{2} \cdot \color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right)} \]
    8. Step-by-step derivation
      1. add-sqr-sqrt5.6%

        \[\leadsto \color{blue}{\sqrt{\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)} \cdot \sqrt{\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)}} \]
      2. sqrt-unprod21.8%

        \[\leadsto \color{blue}{\sqrt{\left(\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right) \cdot \left(\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)}} \]
      3. swap-sqr21.8%

        \[\leadsto \sqrt{\color{blue}{\left(\sqrt{2} \cdot \sqrt{2}\right) \cdot \left(\left(y \cdot \left(-\sqrt{z}\right)\right) \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)}} \]
      4. add-sqr-sqrt21.8%

        \[\leadsto \sqrt{\color{blue}{2} \cdot \left(\left(y \cdot \left(-\sqrt{z}\right)\right) \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)} \]
      5. *-commutative21.8%

        \[\leadsto \sqrt{2 \cdot \left(\color{blue}{\left(\left(-\sqrt{z}\right) \cdot y\right)} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)} \]
      6. *-commutative21.8%

        \[\leadsto \sqrt{2 \cdot \left(\left(\left(-\sqrt{z}\right) \cdot y\right) \cdot \color{blue}{\left(\left(-\sqrt{z}\right) \cdot y\right)}\right)} \]
      7. swap-sqr27.2%

        \[\leadsto \sqrt{2 \cdot \color{blue}{\left(\left(\left(-\sqrt{z}\right) \cdot \left(-\sqrt{z}\right)\right) \cdot \left(y \cdot y\right)\right)}} \]
      8. sqr-neg27.2%

        \[\leadsto \sqrt{2 \cdot \left(\color{blue}{\left(\sqrt{z} \cdot \sqrt{z}\right)} \cdot \left(y \cdot y\right)\right)} \]
      9. add-sqr-sqrt27.2%

        \[\leadsto \sqrt{2 \cdot \left(\color{blue}{z} \cdot \left(y \cdot y\right)\right)} \]
    9. Applied egg-rr27.2%

      \[\leadsto \color{blue}{\sqrt{2 \cdot \left(z \cdot \left(y \cdot y\right)\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification60.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.05 \cdot 10^{+30}:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{2 \cdot z}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot \left(z \cdot \left(y \cdot y\right)\right)}\\ \end{array} \]

Alternative 5: 30.5% accurate, 2.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.2 \cdot 10^{+30}:\\
\;\;\;\;y \cdot \left(-\sqrt{2 \cdot z}\right)\\

\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(z \cdot \left(y \cdot y\right)\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < 2.2e30

    1. Initial program 99.3%

      \[\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 68.6%

      \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(0.5 \cdot x - y\right)\right) \cdot \sqrt{z}} \]
    3. Step-by-step derivation
      1. associate-*l*68.6%

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

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

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

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

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

        \[\leadsto \sqrt{2} \cdot \color{blue}{\left(-y \cdot \sqrt{z}\right)} \]
      2. distribute-rgt-neg-in34.1%

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

      \[\leadsto \sqrt{2} \cdot \color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right)} \]
    8. Step-by-step derivation
      1. associate-*r*34.0%

        \[\leadsto \color{blue}{\left(\sqrt{2} \cdot y\right) \cdot \left(-\sqrt{z}\right)} \]
      2. distribute-rgt-neg-out34.0%

        \[\leadsto \color{blue}{-\left(\sqrt{2} \cdot y\right) \cdot \sqrt{z}} \]
      3. add-sqr-sqrt34.0%

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

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

        \[\leadsto -\left(\sqrt{2} \cdot y\right) \cdot \color{blue}{\left(\sqrt{-\sqrt{z}} \cdot \sqrt{-\sqrt{z}}\right)} \]
      6. add-sqr-sqrt2.4%

        \[\leadsto -\left(\sqrt{2} \cdot y\right) \cdot \color{blue}{\left(-\sqrt{z}\right)} \]
      7. associate-*r*2.4%

        \[\leadsto -\color{blue}{\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)} \]
      8. *-commutative2.4%

        \[\leadsto -\color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right) \cdot \sqrt{2}} \]
      9. associate-*l*2.4%

        \[\leadsto -\color{blue}{y \cdot \left(\left(-\sqrt{z}\right) \cdot \sqrt{2}\right)} \]
      10. add-sqr-sqrt0.0%

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

        \[\leadsto -y \cdot \left(\color{blue}{\sqrt{\left(-\sqrt{z}\right) \cdot \left(-\sqrt{z}\right)}} \cdot \sqrt{2}\right) \]
      12. sqr-neg34.1%

        \[\leadsto -y \cdot \left(\sqrt{\color{blue}{\sqrt{z} \cdot \sqrt{z}}} \cdot \sqrt{2}\right) \]
      13. add-sqr-sqrt34.1%

        \[\leadsto -y \cdot \left(\sqrt{\color{blue}{z}} \cdot \sqrt{2}\right) \]
      14. sqrt-prod34.2%

        \[\leadsto -y \cdot \color{blue}{\sqrt{z \cdot 2}} \]
    9. Applied egg-rr34.2%

      \[\leadsto \color{blue}{-y \cdot \sqrt{z \cdot 2}} \]
    10. Step-by-step derivation
      1. distribute-lft-neg-in34.2%

        \[\leadsto \color{blue}{\left(-y\right) \cdot \sqrt{z \cdot 2}} \]
      2. *-commutative34.2%

        \[\leadsto \color{blue}{\sqrt{z \cdot 2} \cdot \left(-y\right)} \]
      3. *-commutative34.2%

        \[\leadsto \sqrt{\color{blue}{2 \cdot z}} \cdot \left(-y\right) \]
    11. Simplified34.2%

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

    if 2.2e30 < t

    1. Initial program 100.0%

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

      \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(0.5 \cdot x - y\right)\right) \cdot \sqrt{z}} \]
    3. Step-by-step derivation
      1. associate-*l*8.3%

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

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

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

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

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

        \[\leadsto \sqrt{2} \cdot \color{blue}{\left(-y \cdot \sqrt{z}\right)} \]
      2. distribute-rgt-neg-in6.8%

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

      \[\leadsto \sqrt{2} \cdot \color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right)} \]
    8. Step-by-step derivation
      1. add-sqr-sqrt5.6%

        \[\leadsto \color{blue}{\sqrt{\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)} \cdot \sqrt{\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)}} \]
      2. sqrt-unprod21.8%

        \[\leadsto \color{blue}{\sqrt{\left(\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right) \cdot \left(\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)}} \]
      3. swap-sqr21.8%

        \[\leadsto \sqrt{\color{blue}{\left(\sqrt{2} \cdot \sqrt{2}\right) \cdot \left(\left(y \cdot \left(-\sqrt{z}\right)\right) \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)}} \]
      4. add-sqr-sqrt21.8%

        \[\leadsto \sqrt{\color{blue}{2} \cdot \left(\left(y \cdot \left(-\sqrt{z}\right)\right) \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)} \]
      5. *-commutative21.8%

        \[\leadsto \sqrt{2 \cdot \left(\color{blue}{\left(\left(-\sqrt{z}\right) \cdot y\right)} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)} \]
      6. *-commutative21.8%

        \[\leadsto \sqrt{2 \cdot \left(\left(\left(-\sqrt{z}\right) \cdot y\right) \cdot \color{blue}{\left(\left(-\sqrt{z}\right) \cdot y\right)}\right)} \]
      7. swap-sqr27.2%

        \[\leadsto \sqrt{2 \cdot \color{blue}{\left(\left(\left(-\sqrt{z}\right) \cdot \left(-\sqrt{z}\right)\right) \cdot \left(y \cdot y\right)\right)}} \]
      8. sqr-neg27.2%

        \[\leadsto \sqrt{2 \cdot \left(\color{blue}{\left(\sqrt{z} \cdot \sqrt{z}\right)} \cdot \left(y \cdot y\right)\right)} \]
      9. add-sqr-sqrt27.2%

        \[\leadsto \sqrt{2 \cdot \left(\color{blue}{z} \cdot \left(y \cdot y\right)\right)} \]
    9. Applied egg-rr27.2%

      \[\leadsto \color{blue}{\sqrt{2 \cdot \left(z \cdot \left(y \cdot y\right)\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification32.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 2.2 \cdot 10^{+30}:\\ \;\;\;\;y \cdot \left(-\sqrt{2 \cdot z}\right)\\ \mathbf{else}:\\ \;\;\;\;\sqrt{2 \cdot \left(z \cdot \left(y \cdot y\right)\right)}\\ \end{array} \]

Alternative 6: 36.1% accurate, 2.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq 6.5 \cdot 10^{-100}:\\
\;\;\;\;y \cdot \left(-\sqrt{2 \cdot z}\right)\\

\mathbf{else}:\\
\;\;\;\;\sqrt{\left(0.5 \cdot z\right) \cdot \left(x \cdot x\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < 6.50000000000000013e-100

    1. Initial program 99.3%

      \[\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 55.7%

      \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(0.5 \cdot x - y\right)\right) \cdot \sqrt{z}} \]
    3. Step-by-step derivation
      1. associate-*l*55.8%

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

        \[\leadsto \sqrt{2} \cdot \color{blue}{\left(\sqrt{z} \cdot \left(0.5 \cdot x - y\right)\right)} \]
      3. fma-neg55.8%

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

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

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

        \[\leadsto \sqrt{2} \cdot \color{blue}{\left(-y \cdot \sqrt{z}\right)} \]
      2. distribute-rgt-neg-in33.7%

        \[\leadsto \sqrt{2} \cdot \color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right)} \]
    7. Simplified33.7%

      \[\leadsto \sqrt{2} \cdot \color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right)} \]
    8. Step-by-step derivation
      1. associate-*r*33.7%

        \[\leadsto \color{blue}{\left(\sqrt{2} \cdot y\right) \cdot \left(-\sqrt{z}\right)} \]
      2. distribute-rgt-neg-out33.7%

        \[\leadsto \color{blue}{-\left(\sqrt{2} \cdot y\right) \cdot \sqrt{z}} \]
      3. add-sqr-sqrt33.7%

        \[\leadsto -\left(\sqrt{2} \cdot y\right) \cdot \sqrt{\color{blue}{\sqrt{z} \cdot \sqrt{z}}} \]
      4. sqr-neg33.7%

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

        \[\leadsto -\left(\sqrt{2} \cdot y\right) \cdot \color{blue}{\left(\sqrt{-\sqrt{z}} \cdot \sqrt{-\sqrt{z}}\right)} \]
      6. add-sqr-sqrt2.2%

        \[\leadsto -\left(\sqrt{2} \cdot y\right) \cdot \color{blue}{\left(-\sqrt{z}\right)} \]
      7. associate-*r*2.2%

        \[\leadsto -\color{blue}{\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)} \]
      8. *-commutative2.2%

        \[\leadsto -\color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right) \cdot \sqrt{2}} \]
      9. associate-*l*2.2%

        \[\leadsto -\color{blue}{y \cdot \left(\left(-\sqrt{z}\right) \cdot \sqrt{2}\right)} \]
      10. add-sqr-sqrt0.0%

        \[\leadsto -y \cdot \left(\color{blue}{\left(\sqrt{-\sqrt{z}} \cdot \sqrt{-\sqrt{z}}\right)} \cdot \sqrt{2}\right) \]
      11. sqrt-unprod33.7%

        \[\leadsto -y \cdot \left(\color{blue}{\sqrt{\left(-\sqrt{z}\right) \cdot \left(-\sqrt{z}\right)}} \cdot \sqrt{2}\right) \]
      12. sqr-neg33.7%

        \[\leadsto -y \cdot \left(\sqrt{\color{blue}{\sqrt{z} \cdot \sqrt{z}}} \cdot \sqrt{2}\right) \]
      13. add-sqr-sqrt33.7%

        \[\leadsto -y \cdot \left(\sqrt{\color{blue}{z}} \cdot \sqrt{2}\right) \]
      14. sqrt-prod33.8%

        \[\leadsto -y \cdot \color{blue}{\sqrt{z \cdot 2}} \]
    9. Applied egg-rr33.8%

      \[\leadsto \color{blue}{-y \cdot \sqrt{z \cdot 2}} \]
    10. Step-by-step derivation
      1. distribute-lft-neg-in33.8%

        \[\leadsto \color{blue}{\left(-y\right) \cdot \sqrt{z \cdot 2}} \]
      2. *-commutative33.8%

        \[\leadsto \color{blue}{\sqrt{z \cdot 2} \cdot \left(-y\right)} \]
      3. *-commutative33.8%

        \[\leadsto \sqrt{\color{blue}{2 \cdot z}} \cdot \left(-y\right) \]
    11. Simplified33.8%

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

    if 6.50000000000000013e-100 < 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 56.1%

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

      \[\leadsto \color{blue}{\left(0.5 \cdot \left(\sqrt{2} \cdot x\right)\right)} \cdot \sqrt{z} \]
    4. Step-by-step derivation
      1. *-commutative39.5%

        \[\leadsto \color{blue}{\left(\left(\sqrt{2} \cdot x\right) \cdot 0.5\right)} \cdot \sqrt{z} \]
      2. associate-*r*39.5%

        \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(x \cdot 0.5\right)\right)} \cdot \sqrt{z} \]
      3. *-commutative39.5%

        \[\leadsto \left(\sqrt{2} \cdot \color{blue}{\left(0.5 \cdot x\right)}\right) \cdot \sqrt{z} \]
    5. Simplified39.5%

      \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right)} \cdot \sqrt{z} \]
    6. Step-by-step derivation
      1. add-sqr-sqrt39.4%

        \[\leadsto \color{blue}{\sqrt{\left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right) \cdot \sqrt{z}} \cdot \sqrt{\left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right) \cdot \sqrt{z}}} \]
      2. sqrt-unprod44.8%

        \[\leadsto \color{blue}{\sqrt{\left(\left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right) \cdot \sqrt{z}\right) \cdot \left(\left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right) \cdot \sqrt{z}\right)}} \]
      3. *-commutative44.8%

        \[\leadsto \sqrt{\color{blue}{\left(\sqrt{z} \cdot \left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right)\right)} \cdot \left(\left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right) \cdot \sqrt{z}\right)} \]
      4. *-commutative44.8%

        \[\leadsto \sqrt{\left(\sqrt{z} \cdot \left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right)\right) \cdot \color{blue}{\left(\sqrt{z} \cdot \left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right)\right)}} \]
      5. swap-sqr45.9%

        \[\leadsto \sqrt{\color{blue}{\left(\sqrt{z} \cdot \sqrt{z}\right) \cdot \left(\left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right) \cdot \left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right)\right)}} \]
      6. add-sqr-sqrt45.9%

        \[\leadsto \sqrt{\color{blue}{z} \cdot \left(\left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right) \cdot \left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right)\right)} \]
      7. *-commutative45.9%

        \[\leadsto \sqrt{z \cdot \left(\left(\sqrt{2} \cdot \color{blue}{\left(x \cdot 0.5\right)}\right) \cdot \left(\sqrt{2} \cdot \left(0.5 \cdot x\right)\right)\right)} \]
      8. *-commutative45.9%

        \[\leadsto \sqrt{z \cdot \left(\left(\sqrt{2} \cdot \left(x \cdot 0.5\right)\right) \cdot \left(\sqrt{2} \cdot \color{blue}{\left(x \cdot 0.5\right)}\right)\right)} \]
      9. swap-sqr45.9%

        \[\leadsto \sqrt{z \cdot \color{blue}{\left(\left(\sqrt{2} \cdot \sqrt{2}\right) \cdot \left(\left(x \cdot 0.5\right) \cdot \left(x \cdot 0.5\right)\right)\right)}} \]
      10. add-sqr-sqrt46.0%

        \[\leadsto \sqrt{z \cdot \left(\color{blue}{2} \cdot \left(\left(x \cdot 0.5\right) \cdot \left(x \cdot 0.5\right)\right)\right)} \]
      11. pow246.0%

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

      \[\leadsto \color{blue}{\sqrt{z \cdot \left(2 \cdot {\left(x \cdot 0.5\right)}^{2}\right)}} \]
    8. Step-by-step derivation
      1. associate-*r*46.0%

        \[\leadsto \sqrt{\color{blue}{\left(z \cdot 2\right) \cdot {\left(x \cdot 0.5\right)}^{2}}} \]
      2. *-commutative46.0%

        \[\leadsto \sqrt{\color{blue}{\left(2 \cdot z\right)} \cdot {\left(x \cdot 0.5\right)}^{2}} \]
      3. unpow246.0%

        \[\leadsto \sqrt{\left(2 \cdot z\right) \cdot \color{blue}{\left(\left(x \cdot 0.5\right) \cdot \left(x \cdot 0.5\right)\right)}} \]
      4. swap-sqr46.0%

        \[\leadsto \sqrt{\left(2 \cdot z\right) \cdot \color{blue}{\left(\left(x \cdot x\right) \cdot \left(0.5 \cdot 0.5\right)\right)}} \]
      5. metadata-eval46.0%

        \[\leadsto \sqrt{\left(2 \cdot z\right) \cdot \left(\left(x \cdot x\right) \cdot \color{blue}{0.25}\right)} \]
    9. Simplified46.0%

      \[\leadsto \color{blue}{\sqrt{\left(2 \cdot z\right) \cdot \left(\left(x \cdot x\right) \cdot 0.25\right)}} \]
    10. Taylor expanded in z around 0 46.0%

      \[\leadsto \sqrt{\color{blue}{0.5 \cdot \left(z \cdot {x}^{2}\right)}} \]
    11. Step-by-step derivation
      1. associate-*r*46.0%

        \[\leadsto \sqrt{\color{blue}{\left(0.5 \cdot z\right) \cdot {x}^{2}}} \]
      2. unpow246.0%

        \[\leadsto \sqrt{\left(0.5 \cdot z\right) \cdot \color{blue}{\left(x \cdot x\right)}} \]
    12. Simplified46.0%

      \[\leadsto \sqrt{\color{blue}{\left(0.5 \cdot z\right) \cdot \left(x \cdot x\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification37.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 6.5 \cdot 10^{-100}:\\ \;\;\;\;y \cdot \left(-\sqrt{2 \cdot z}\right)\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\left(0.5 \cdot z\right) \cdot \left(x \cdot x\right)}\\ \end{array} \]

Alternative 7: 29.0% accurate, 2.0× speedup?

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

\\
y \cdot \left(-\sqrt{2 \cdot z}\right)
\end{array}
Derivation
  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 55.8%

    \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(0.5 \cdot x - y\right)\right) \cdot \sqrt{z}} \]
  3. Step-by-step derivation
    1. associate-*l*55.9%

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

      \[\leadsto \sqrt{2} \cdot \color{blue}{\left(\sqrt{z} \cdot \left(0.5 \cdot x - y\right)\right)} \]
    3. fma-neg55.9%

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

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

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

      \[\leadsto \sqrt{2} \cdot \color{blue}{\left(-y \cdot \sqrt{z}\right)} \]
    2. distribute-rgt-neg-in28.3%

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

    \[\leadsto \sqrt{2} \cdot \color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right)} \]
  8. Step-by-step derivation
    1. associate-*r*28.3%

      \[\leadsto \color{blue}{\left(\sqrt{2} \cdot y\right) \cdot \left(-\sqrt{z}\right)} \]
    2. distribute-rgt-neg-out28.3%

      \[\leadsto \color{blue}{-\left(\sqrt{2} \cdot y\right) \cdot \sqrt{z}} \]
    3. add-sqr-sqrt28.3%

      \[\leadsto -\left(\sqrt{2} \cdot y\right) \cdot \sqrt{\color{blue}{\sqrt{z} \cdot \sqrt{z}}} \]
    4. sqr-neg28.3%

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

      \[\leadsto -\left(\sqrt{2} \cdot y\right) \cdot \color{blue}{\left(\sqrt{-\sqrt{z}} \cdot \sqrt{-\sqrt{z}}\right)} \]
    6. add-sqr-sqrt2.2%

      \[\leadsto -\left(\sqrt{2} \cdot y\right) \cdot \color{blue}{\left(-\sqrt{z}\right)} \]
    7. associate-*r*2.2%

      \[\leadsto -\color{blue}{\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)} \]
    8. *-commutative2.2%

      \[\leadsto -\color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right) \cdot \sqrt{2}} \]
    9. associate-*l*2.2%

      \[\leadsto -\color{blue}{y \cdot \left(\left(-\sqrt{z}\right) \cdot \sqrt{2}\right)} \]
    10. add-sqr-sqrt0.0%

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

      \[\leadsto -y \cdot \left(\color{blue}{\sqrt{\left(-\sqrt{z}\right) \cdot \left(-\sqrt{z}\right)}} \cdot \sqrt{2}\right) \]
    12. sqr-neg28.4%

      \[\leadsto -y \cdot \left(\sqrt{\color{blue}{\sqrt{z} \cdot \sqrt{z}}} \cdot \sqrt{2}\right) \]
    13. add-sqr-sqrt28.4%

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

      \[\leadsto -y \cdot \color{blue}{\sqrt{z \cdot 2}} \]
  9. Applied egg-rr28.4%

    \[\leadsto \color{blue}{-y \cdot \sqrt{z \cdot 2}} \]
  10. Step-by-step derivation
    1. distribute-lft-neg-in28.4%

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

      \[\leadsto \color{blue}{\sqrt{z \cdot 2} \cdot \left(-y\right)} \]
    3. *-commutative28.4%

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

    \[\leadsto \color{blue}{\sqrt{2 \cdot z} \cdot \left(-y\right)} \]
  12. Final simplification28.4%

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

Alternative 8: 2.5% accurate, 2.0× speedup?

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

\\
y \cdot \sqrt{2 \cdot z}
\end{array}
Derivation
  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 55.8%

    \[\leadsto \color{blue}{\left(\sqrt{2} \cdot \left(0.5 \cdot x - y\right)\right) \cdot \sqrt{z}} \]
  3. Step-by-step derivation
    1. associate-*l*55.9%

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

      \[\leadsto \sqrt{2} \cdot \color{blue}{\left(\sqrt{z} \cdot \left(0.5 \cdot x - y\right)\right)} \]
    3. fma-neg55.9%

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

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

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

      \[\leadsto \sqrt{2} \cdot \color{blue}{\left(-y \cdot \sqrt{z}\right)} \]
    2. distribute-rgt-neg-in28.3%

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

    \[\leadsto \sqrt{2} \cdot \color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right)} \]
  8. Step-by-step derivation
    1. expm1-log1p-u18.0%

      \[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)\right)} \]
    2. expm1-udef12.3%

      \[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\sqrt{2} \cdot \left(y \cdot \left(-\sqrt{z}\right)\right)\right)} - 1} \]
    3. *-commutative12.3%

      \[\leadsto e^{\mathsf{log1p}\left(\color{blue}{\left(y \cdot \left(-\sqrt{z}\right)\right) \cdot \sqrt{2}}\right)} - 1 \]
    4. associate-*l*12.3%

      \[\leadsto e^{\mathsf{log1p}\left(\color{blue}{y \cdot \left(\left(-\sqrt{z}\right) \cdot \sqrt{2}\right)}\right)} - 1 \]
    5. add-sqr-sqrt0.0%

      \[\leadsto e^{\mathsf{log1p}\left(y \cdot \left(\color{blue}{\left(\sqrt{-\sqrt{z}} \cdot \sqrt{-\sqrt{z}}\right)} \cdot \sqrt{2}\right)\right)} - 1 \]
    6. sqrt-unprod1.9%

      \[\leadsto e^{\mathsf{log1p}\left(y \cdot \left(\color{blue}{\sqrt{\left(-\sqrt{z}\right) \cdot \left(-\sqrt{z}\right)}} \cdot \sqrt{2}\right)\right)} - 1 \]
    7. sqr-neg1.9%

      \[\leadsto e^{\mathsf{log1p}\left(y \cdot \left(\sqrt{\color{blue}{\sqrt{z} \cdot \sqrt{z}}} \cdot \sqrt{2}\right)\right)} - 1 \]
    8. add-sqr-sqrt1.9%

      \[\leadsto e^{\mathsf{log1p}\left(y \cdot \left(\sqrt{\color{blue}{z}} \cdot \sqrt{2}\right)\right)} - 1 \]
    9. sqrt-prod1.9%

      \[\leadsto e^{\mathsf{log1p}\left(y \cdot \color{blue}{\sqrt{z \cdot 2}}\right)} - 1 \]
  9. Applied egg-rr1.9%

    \[\leadsto \color{blue}{e^{\mathsf{log1p}\left(y \cdot \sqrt{z \cdot 2}\right)} - 1} \]
  10. Step-by-step derivation
    1. expm1-def1.9%

      \[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(y \cdot \sqrt{z \cdot 2}\right)\right)} \]
    2. expm1-log1p2.2%

      \[\leadsto \color{blue}{y \cdot \sqrt{z \cdot 2}} \]
    3. *-commutative2.2%

      \[\leadsto y \cdot \sqrt{\color{blue}{2 \cdot z}} \]
  11. Simplified2.2%

    \[\leadsto \color{blue}{y \cdot \sqrt{2 \cdot z}} \]
  12. Final simplification2.2%

    \[\leadsto y \cdot \sqrt{2 \cdot z} \]

Developer target: 99.4% accurate, 0.7× speedup?

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

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

Reproduce

?
herbie shell --seed 2023202 
(FPCore (x y z t)
  :name "Data.Number.Erf:$cinvnormcdf from erf-2.0.0.0, A"
  :precision binary64

  :herbie-target
  (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (pow (exp 1.0) (/ (* t t) 2.0)))

  (* (* (- (* x 0.5) y) (sqrt (* z 2.0))) (exp (/ (* t t) 2.0))))