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

Percentage Accurate: 99.3% → 99.3%
Time: 23.8s
Alternatives: 15
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 15 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.3% 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.3% accurate, 0.7× speedup?

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

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

    \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
  2. Add Preprocessing
  3. Step-by-step derivation
    1. exp-sqrt99.4%

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

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

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

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

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

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

Alternative 2: 61.0% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot 0.5 - y\\ t_2 := \sqrt{\left(z \cdot 2\right) \cdot \left(t\_1 \cdot t\_1\right)}\\ t_3 := \sqrt{z \cdot 2}\\ \mathbf{if}\;t \leq 0.095:\\ \;\;\;\;t\_1 \cdot t\_3\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{+34}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{+86}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \sqrt[3]{{\left(z \cdot 2\right)}^{1.5}}\right)\\ \mathbf{elif}\;t \leq 9.5 \cdot 10^{+123}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 7.4 \cdot 10^{+163}:\\ \;\;\;\;\left(t \cdot \left(y \cdot \sqrt{2}\right)\right) \cdot \left(-\sqrt{z}\right)\\ \mathbf{else}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \left(t \cdot t\_3\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (- (* x 0.5) y))
        (t_2 (sqrt (* (* z 2.0) (* t_1 t_1))))
        (t_3 (sqrt (* z 2.0))))
   (if (<= t 0.095)
     (* t_1 t_3)
     (if (<= t 2.8e+34)
       t_2
       (if (<= t 4.5e+86)
         (* 0.5 (* x (cbrt (pow (* z 2.0) 1.5))))
         (if (<= t 9.5e+123)
           t_2
           (if (<= t 7.4e+163)
             (* (* t (* y (sqrt 2.0))) (- (sqrt z)))
             (* 0.5 (* x (* t t_3))))))))))
double code(double x, double y, double z, double t) {
	double t_1 = (x * 0.5) - y;
	double t_2 = sqrt(((z * 2.0) * (t_1 * t_1)));
	double t_3 = sqrt((z * 2.0));
	double tmp;
	if (t <= 0.095) {
		tmp = t_1 * t_3;
	} else if (t <= 2.8e+34) {
		tmp = t_2;
	} else if (t <= 4.5e+86) {
		tmp = 0.5 * (x * cbrt(pow((z * 2.0), 1.5)));
	} else if (t <= 9.5e+123) {
		tmp = t_2;
	} else if (t <= 7.4e+163) {
		tmp = (t * (y * sqrt(2.0))) * -sqrt(z);
	} else {
		tmp = 0.5 * (x * (t * t_3));
	}
	return tmp;
}
public static double code(double x, double y, double z, double t) {
	double t_1 = (x * 0.5) - y;
	double t_2 = Math.sqrt(((z * 2.0) * (t_1 * t_1)));
	double t_3 = Math.sqrt((z * 2.0));
	double tmp;
	if (t <= 0.095) {
		tmp = t_1 * t_3;
	} else if (t <= 2.8e+34) {
		tmp = t_2;
	} else if (t <= 4.5e+86) {
		tmp = 0.5 * (x * Math.cbrt(Math.pow((z * 2.0), 1.5)));
	} else if (t <= 9.5e+123) {
		tmp = t_2;
	} else if (t <= 7.4e+163) {
		tmp = (t * (y * Math.sqrt(2.0))) * -Math.sqrt(z);
	} else {
		tmp = 0.5 * (x * (t * t_3));
	}
	return tmp;
}
function code(x, y, z, t)
	t_1 = Float64(Float64(x * 0.5) - y)
	t_2 = sqrt(Float64(Float64(z * 2.0) * Float64(t_1 * t_1)))
	t_3 = sqrt(Float64(z * 2.0))
	tmp = 0.0
	if (t <= 0.095)
		tmp = Float64(t_1 * t_3);
	elseif (t <= 2.8e+34)
		tmp = t_2;
	elseif (t <= 4.5e+86)
		tmp = Float64(0.5 * Float64(x * cbrt((Float64(z * 2.0) ^ 1.5))));
	elseif (t <= 9.5e+123)
		tmp = t_2;
	elseif (t <= 7.4e+163)
		tmp = Float64(Float64(t * Float64(y * sqrt(2.0))) * Float64(-sqrt(z)));
	else
		tmp = Float64(0.5 * Float64(x * Float64(t * t_3)));
	end
	return tmp
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t, 0.095], N[(t$95$1 * t$95$3), $MachinePrecision], If[LessEqual[t, 2.8e+34], t$95$2, If[LessEqual[t, 4.5e+86], N[(0.5 * N[(x * N[Power[N[Power[N[(z * 2.0), $MachinePrecision], 1.5], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.5e+123], t$95$2, If[LessEqual[t, 7.4e+163], N[(N[(t * N[(y * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * (-N[Sqrt[z], $MachinePrecision])), $MachinePrecision], N[(0.5 * N[(x * N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot 0.5 - y\\
t_2 := \sqrt{\left(z \cdot 2\right) \cdot \left(t\_1 \cdot t\_1\right)}\\
t_3 := \sqrt{z \cdot 2}\\
\mathbf{if}\;t \leq 0.095:\\
\;\;\;\;t\_1 \cdot t\_3\\

\mathbf{elif}\;t \leq 2.8 \cdot 10^{+34}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 4.5 \cdot 10^{+86}:\\
\;\;\;\;0.5 \cdot \left(x \cdot \sqrt[3]{{\left(z \cdot 2\right)}^{1.5}}\right)\\

\mathbf{elif}\;t \leq 9.5 \cdot 10^{+123}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 7.4 \cdot 10^{+163}:\\
\;\;\;\;\left(t \cdot \left(y \cdot \sqrt{2}\right)\right) \cdot \left(-\sqrt{z}\right)\\

\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(x \cdot \left(t \cdot t\_3\right)\right)\\


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

    1. Initial program 99.7%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt99.7%

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{z \cdot 2} \cdot \color{blue}{\left(0.5 \cdot x + \left(-y\right)\right)} \]
      4. distribute-rgt-in70.4%

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

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

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

      \[\leadsto \color{blue}{\left(0.5 \cdot x\right) \cdot \sqrt{2 \cdot z} + \left(-y\right) \cdot \sqrt{2 \cdot z}} \]
    8. Step-by-step derivation
      1. distribute-rgt-out72.0%

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

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

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

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

    if 0.095000000000000001 < t < 2.80000000000000008e34 or 4.49999999999999993e86 < t < 9.4999999999999996e123

    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. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt94.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right)} \]
      10. sub-neg39.8%

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

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

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

        \[\leadsto \sqrt{\left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(0.5 \cdot x - y\right)\right)} \]
      14. sub-neg39.8%

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

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

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

    if 2.80000000000000008e34 < t < 4.49999999999999993e86

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto 0.5 \cdot {\left(x \cdot \sqrt{\color{blue}{2 \cdot z}}\right)}^{1} \]
    10. Applied egg-rr14.5%

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

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

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

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

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

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

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

        \[\leadsto 0.5 \cdot \left(x \cdot \sqrt{\color{blue}{z \cdot 2}}\right) \]
      3. pow1/214.5%

        \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{{\left(z \cdot 2\right)}^{0.5}}\right) \]
      4. metadata-eval14.5%

        \[\leadsto 0.5 \cdot \left(x \cdot {\left(z \cdot 2\right)}^{\color{blue}{\left(0.25 + 0.25\right)}}\right) \]
      5. pow-prod-up14.5%

        \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{\left({\left(z \cdot 2\right)}^{0.25} \cdot {\left(z \cdot 2\right)}^{0.25}\right)}\right) \]
      6. pow214.5%

        \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{{\left({\left(z \cdot 2\right)}^{0.25}\right)}^{2}}\right) \]
    17. Applied egg-rr14.5%

      \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{{\left({\left(z \cdot 2\right)}^{0.25}\right)}^{2}}\right) \]
    18. Step-by-step derivation
      1. pow-pow14.5%

        \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{{\left(z \cdot 2\right)}^{\left(0.25 \cdot 2\right)}}\right) \]
      2. metadata-eval14.5%

        \[\leadsto 0.5 \cdot \left(x \cdot {\left(z \cdot 2\right)}^{\color{blue}{0.5}}\right) \]
      3. pow1/214.5%

        \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{\sqrt{z \cdot 2}}\right) \]
      4. add-cbrt-cube45.7%

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

        \[\leadsto 0.5 \cdot \left(x \cdot \sqrt[3]{\color{blue}{\left(z \cdot 2\right)} \cdot \sqrt{z \cdot 2}}\right) \]
      6. pow145.7%

        \[\leadsto 0.5 \cdot \left(x \cdot \sqrt[3]{\color{blue}{{\left(z \cdot 2\right)}^{1}} \cdot \sqrt{z \cdot 2}}\right) \]
      7. pow1/245.7%

        \[\leadsto 0.5 \cdot \left(x \cdot \sqrt[3]{{\left(z \cdot 2\right)}^{1} \cdot \color{blue}{{\left(z \cdot 2\right)}^{0.5}}}\right) \]
      8. pow-prod-up45.7%

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

        \[\leadsto 0.5 \cdot \left(x \cdot \sqrt[3]{{\color{blue}{\left(2 \cdot z\right)}}^{\left(1 + 0.5\right)}}\right) \]
      10. metadata-eval45.7%

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

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

    if 9.4999999999999996e123 < t < 7.39999999999999986e163

    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. Step-by-step derivation
      1. associate-*l*100.0%

        \[\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-sqrt100.0%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left(1 + {t}^{2}\right)}\right)} \]
    10. Step-by-step derivation
      1. +-commutative85.1%

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left({t}^{2} + 1\right)}\right)} \]
      2. unpow285.1%

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

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

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

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

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

    if 7.39999999999999986e163 < 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. Step-by-step derivation
      1. associate-*l*100.0%

        \[\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-sqrt100.0%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left(1 + {t}^{2}\right)}\right)} \]
    10. Step-by-step derivation
      1. +-commutative100.0%

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left({t}^{2} + 1\right)}\right)} \]
      2. unpow2100.0%

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

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

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

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

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

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

        \[\leadsto 0.5 \cdot \left(t \cdot \left(\color{blue}{\left(\sqrt{2} \cdot x\right)} \cdot \sqrt{z}\right)\right) \]
    15. Simplified54.6%

      \[\leadsto \color{blue}{0.5 \cdot \left(t \cdot \left(\left(\sqrt{2} \cdot x\right) \cdot \sqrt{z}\right)\right)} \]
    16. Step-by-step derivation
      1. pow154.6%

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

        \[\leadsto 0.5 \cdot {\color{blue}{\left(\left(\left(\sqrt{2} \cdot x\right) \cdot \sqrt{z}\right) \cdot t\right)}}^{1} \]
      3. *-commutative54.6%

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

        \[\leadsto 0.5 \cdot {\left(\color{blue}{\left(x \cdot \left(\sqrt{2} \cdot \sqrt{z}\right)\right)} \cdot t\right)}^{1} \]
      5. *-commutative54.6%

        \[\leadsto 0.5 \cdot {\left(\color{blue}{\left(\left(\sqrt{2} \cdot \sqrt{z}\right) \cdot x\right)} \cdot t\right)}^{1} \]
      6. associate-*l*54.6%

        \[\leadsto 0.5 \cdot {\color{blue}{\left(\left(\sqrt{2} \cdot \sqrt{z}\right) \cdot \left(x \cdot t\right)\right)}}^{1} \]
      7. sqrt-unprod54.6%

        \[\leadsto 0.5 \cdot {\left(\color{blue}{\sqrt{2 \cdot z}} \cdot \left(x \cdot t\right)\right)}^{1} \]
      8. *-commutative54.6%

        \[\leadsto 0.5 \cdot {\left(\sqrt{\color{blue}{z \cdot 2}} \cdot \left(x \cdot t\right)\right)}^{1} \]
    17. Applied egg-rr54.6%

      \[\leadsto 0.5 \cdot \color{blue}{{\left(\sqrt{z \cdot 2} \cdot \left(x \cdot t\right)\right)}^{1}} \]
    18. Step-by-step derivation
      1. unpow154.6%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 0.095:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{+34}:\\ \;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \left(x \cdot 0.5 - y\right)\right)}\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{+86}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \sqrt[3]{{\left(z \cdot 2\right)}^{1.5}}\right)\\ \mathbf{elif}\;t \leq 9.5 \cdot 10^{+123}:\\ \;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \left(x \cdot 0.5 - y\right)\right)}\\ \mathbf{elif}\;t \leq 7.4 \cdot 10^{+163}:\\ \;\;\;\;\left(t \cdot \left(y \cdot \sqrt{2}\right)\right) \cdot \left(-\sqrt{z}\right)\\ \mathbf{else}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \left(t \cdot \sqrt{z \cdot 2}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 78.4% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot 0.5 - y\\ \mathbf{if}\;t \leq 0.095:\\ \;\;\;\;t\_1 \cdot \left(\mathsf{hypot}\left(1, t\right) \cdot \sqrt{z \cdot 2}\right)\\ \mathbf{elif}\;t \leq 9.4 \cdot 10^{+33} \lor \neg \left(t \leq 7.4 \cdot 10^{+89}\right) \land t \leq 1.5 \cdot 10^{+111}:\\ \;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(t\_1 \cdot t\_1\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1 \cdot \sqrt{2 \cdot \left(z \cdot {t}^{2}\right)}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (- (* x 0.5) y)))
   (if (<= t 0.095)
     (* t_1 (* (hypot 1.0 t) (sqrt (* z 2.0))))
     (if (or (<= t 9.4e+33) (and (not (<= t 7.4e+89)) (<= t 1.5e+111)))
       (sqrt (* (* z 2.0) (* t_1 t_1)))
       (* t_1 (sqrt (* 2.0 (* z (pow t 2.0)))))))))
double code(double x, double y, double z, double t) {
	double t_1 = (x * 0.5) - y;
	double tmp;
	if (t <= 0.095) {
		tmp = t_1 * (hypot(1.0, t) * sqrt((z * 2.0)));
	} else if ((t <= 9.4e+33) || (!(t <= 7.4e+89) && (t <= 1.5e+111))) {
		tmp = sqrt(((z * 2.0) * (t_1 * t_1)));
	} else {
		tmp = t_1 * sqrt((2.0 * (z * pow(t, 2.0))));
	}
	return tmp;
}
public static double code(double x, double y, double z, double t) {
	double t_1 = (x * 0.5) - y;
	double tmp;
	if (t <= 0.095) {
		tmp = t_1 * (Math.hypot(1.0, t) * Math.sqrt((z * 2.0)));
	} else if ((t <= 9.4e+33) || (!(t <= 7.4e+89) && (t <= 1.5e+111))) {
		tmp = Math.sqrt(((z * 2.0) * (t_1 * t_1)));
	} else {
		tmp = t_1 * Math.sqrt((2.0 * (z * Math.pow(t, 2.0))));
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = (x * 0.5) - y
	tmp = 0
	if t <= 0.095:
		tmp = t_1 * (math.hypot(1.0, t) * math.sqrt((z * 2.0)))
	elif (t <= 9.4e+33) or (not (t <= 7.4e+89) and (t <= 1.5e+111)):
		tmp = math.sqrt(((z * 2.0) * (t_1 * t_1)))
	else:
		tmp = t_1 * math.sqrt((2.0 * (z * math.pow(t, 2.0))))
	return tmp
function code(x, y, z, t)
	t_1 = Float64(Float64(x * 0.5) - y)
	tmp = 0.0
	if (t <= 0.095)
		tmp = Float64(t_1 * Float64(hypot(1.0, t) * sqrt(Float64(z * 2.0))));
	elseif ((t <= 9.4e+33) || (!(t <= 7.4e+89) && (t <= 1.5e+111)))
		tmp = sqrt(Float64(Float64(z * 2.0) * Float64(t_1 * t_1)));
	else
		tmp = Float64(t_1 * sqrt(Float64(2.0 * Float64(z * (t ^ 2.0)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = (x * 0.5) - y;
	tmp = 0.0;
	if (t <= 0.095)
		tmp = t_1 * (hypot(1.0, t) * sqrt((z * 2.0)));
	elseif ((t <= 9.4e+33) || (~((t <= 7.4e+89)) && (t <= 1.5e+111)))
		tmp = sqrt(((z * 2.0) * (t_1 * t_1)));
	else
		tmp = t_1 * sqrt((2.0 * (z * (t ^ 2.0))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[t, 0.095], N[(t$95$1 * N[(N[Sqrt[1.0 ^ 2 + t ^ 2], $MachinePrecision] * N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 9.4e+33], And[N[Not[LessEqual[t, 7.4e+89]], $MachinePrecision], LessEqual[t, 1.5e+111]]], N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(t$95$1 * N[Sqrt[N[(2.0 * N[(z * N[Power[t, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot 0.5 - y\\
\mathbf{if}\;t \leq 0.095:\\
\;\;\;\;t\_1 \cdot \left(\mathsf{hypot}\left(1, t\right) \cdot \sqrt{z \cdot 2}\right)\\

\mathbf{elif}\;t \leq 9.4 \cdot 10^{+33} \lor \neg \left(t \leq 7.4 \cdot 10^{+89}\right) \land t \leq 1.5 \cdot 10^{+111}:\\
\;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(t\_1 \cdot t\_1\right)}\\

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


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

    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. exp-prod99.7%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left({t}^{2} + 1\right)}\right)} \]
      2. unpow289.5%

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

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

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\mathsf{fma}\left(t, t, 1\right)}\right)} \]
    12. Step-by-step derivation
      1. associate-*r*89.5%

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

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

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

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

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \color{blue}{\left(\sqrt{z \cdot 2} \cdot \sqrt{\mathsf{fma}\left(t, t, 1\right)}\right)} \]
    14. Step-by-step derivation
      1. fma-undefine86.1%

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

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

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

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \left(\sqrt{z \cdot 2} \cdot \sqrt{1 + \color{blue}{t \cdot t}}\right) \]
      5. hypot-1-def79.3%

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

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

    if 0.095000000000000001 < t < 9.3999999999999996e33 or 7.3999999999999996e89 < t < 1.5e111

    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. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt94.0%

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\color{blue}{x \cdot 0.5} - y\right) \cdot \sqrt{z \cdot 2} \]
      5. add-sqr-sqrt10.8%

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

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

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

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

        \[\leadsto \sqrt{\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right)} \]
      10. sub-neg34.6%

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

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

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

        \[\leadsto \sqrt{\left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(0.5 \cdot x - y\right)\right)} \]
      14. sub-neg34.6%

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

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

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

    if 9.3999999999999996e33 < t < 7.3999999999999996e89 or 1.5e111 < 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. Step-by-step derivation
      1. associate-*l*100.0%

        \[\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-sqrt100.0%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left({t}^{2} + 1\right)}\right)} \]
      2. unpow285.5%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 0.095:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \left(\mathsf{hypot}\left(1, t\right) \cdot \sqrt{z \cdot 2}\right)\\ \mathbf{elif}\;t \leq 9.4 \cdot 10^{+33} \lor \neg \left(t \leq 7.4 \cdot 10^{+89}\right) \land t \leq 1.5 \cdot 10^{+111}:\\ \;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \left(x \cdot 0.5 - y\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{2 \cdot \left(z \cdot {t}^{2}\right)}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 61.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot 0.5 - y\\ t_2 := \sqrt{\left(z \cdot 2\right) \cdot \left(t\_1 \cdot t\_1\right)}\\ t_3 := \sqrt{z \cdot 2}\\ \mathbf{if}\;t \leq 0.095:\\ \;\;\;\;t\_1 \cdot t\_3\\ \mathbf{elif}\;t \leq 1.35 \cdot 10^{+34}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 1.1 \cdot 10^{+87}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \sqrt[3]{{\left(z \cdot 2\right)}^{1.5}}\right)\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{+181}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \left(t \cdot t\_3\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (- (* x 0.5) y))
        (t_2 (sqrt (* (* z 2.0) (* t_1 t_1))))
        (t_3 (sqrt (* z 2.0))))
   (if (<= t 0.095)
     (* t_1 t_3)
     (if (<= t 1.35e+34)
       t_2
       (if (<= t 1.1e+87)
         (* 0.5 (* x (cbrt (pow (* z 2.0) 1.5))))
         (if (<= t 1.8e+181) t_2 (* 0.5 (* x (* t t_3)))))))))
double code(double x, double y, double z, double t) {
	double t_1 = (x * 0.5) - y;
	double t_2 = sqrt(((z * 2.0) * (t_1 * t_1)));
	double t_3 = sqrt((z * 2.0));
	double tmp;
	if (t <= 0.095) {
		tmp = t_1 * t_3;
	} else if (t <= 1.35e+34) {
		tmp = t_2;
	} else if (t <= 1.1e+87) {
		tmp = 0.5 * (x * cbrt(pow((z * 2.0), 1.5)));
	} else if (t <= 1.8e+181) {
		tmp = t_2;
	} else {
		tmp = 0.5 * (x * (t * t_3));
	}
	return tmp;
}
public static double code(double x, double y, double z, double t) {
	double t_1 = (x * 0.5) - y;
	double t_2 = Math.sqrt(((z * 2.0) * (t_1 * t_1)));
	double t_3 = Math.sqrt((z * 2.0));
	double tmp;
	if (t <= 0.095) {
		tmp = t_1 * t_3;
	} else if (t <= 1.35e+34) {
		tmp = t_2;
	} else if (t <= 1.1e+87) {
		tmp = 0.5 * (x * Math.cbrt(Math.pow((z * 2.0), 1.5)));
	} else if (t <= 1.8e+181) {
		tmp = t_2;
	} else {
		tmp = 0.5 * (x * (t * t_3));
	}
	return tmp;
}
function code(x, y, z, t)
	t_1 = Float64(Float64(x * 0.5) - y)
	t_2 = sqrt(Float64(Float64(z * 2.0) * Float64(t_1 * t_1)))
	t_3 = sqrt(Float64(z * 2.0))
	tmp = 0.0
	if (t <= 0.095)
		tmp = Float64(t_1 * t_3);
	elseif (t <= 1.35e+34)
		tmp = t_2;
	elseif (t <= 1.1e+87)
		tmp = Float64(0.5 * Float64(x * cbrt((Float64(z * 2.0) ^ 1.5))));
	elseif (t <= 1.8e+181)
		tmp = t_2;
	else
		tmp = Float64(0.5 * Float64(x * Float64(t * t_3)));
	end
	return tmp
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[(t$95$1 * t$95$1), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t, 0.095], N[(t$95$1 * t$95$3), $MachinePrecision], If[LessEqual[t, 1.35e+34], t$95$2, If[LessEqual[t, 1.1e+87], N[(0.5 * N[(x * N[Power[N[Power[N[(z * 2.0), $MachinePrecision], 1.5], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e+181], t$95$2, N[(0.5 * N[(x * N[(t * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot 0.5 - y\\
t_2 := \sqrt{\left(z \cdot 2\right) \cdot \left(t\_1 \cdot t\_1\right)}\\
t_3 := \sqrt{z \cdot 2}\\
\mathbf{if}\;t \leq 0.095:\\
\;\;\;\;t\_1 \cdot t\_3\\

\mathbf{elif}\;t \leq 1.35 \cdot 10^{+34}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 1.1 \cdot 10^{+87}:\\
\;\;\;\;0.5 \cdot \left(x \cdot \sqrt[3]{{\left(z \cdot 2\right)}^{1.5}}\right)\\

\mathbf{elif}\;t \leq 1.8 \cdot 10^{+181}:\\
\;\;\;\;t\_2\\

\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(x \cdot \left(t \cdot t\_3\right)\right)\\


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

    1. Initial program 99.7%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt99.7%

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{z \cdot 2} \cdot \color{blue}{\left(0.5 \cdot x + \left(-y\right)\right)} \]
      4. distribute-rgt-in70.4%

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

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

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

      \[\leadsto \color{blue}{\left(0.5 \cdot x\right) \cdot \sqrt{2 \cdot z} + \left(-y\right) \cdot \sqrt{2 \cdot z}} \]
    8. Step-by-step derivation
      1. distribute-rgt-out72.0%

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

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

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

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

    if 0.095000000000000001 < t < 1.35e34 or 1.1e87 < t < 1.79999999999999992e181

    1. Initial program 99.6%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt96.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right)} \]
      10. sub-neg42.0%

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

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

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

        \[\leadsto \sqrt{\left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(0.5 \cdot x - y\right)\right)} \]
      14. sub-neg42.0%

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

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

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

    if 1.35e34 < t < 1.1e87

    1. Initial program 100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto 0.5 \cdot {\left(x \cdot \sqrt{\color{blue}{2 \cdot z}}\right)}^{1} \]
    10. Applied egg-rr14.5%

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

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

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

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

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

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

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

        \[\leadsto 0.5 \cdot \left(x \cdot \sqrt{\color{blue}{z \cdot 2}}\right) \]
      3. pow1/214.5%

        \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{{\left(z \cdot 2\right)}^{0.5}}\right) \]
      4. metadata-eval14.5%

        \[\leadsto 0.5 \cdot \left(x \cdot {\left(z \cdot 2\right)}^{\color{blue}{\left(0.25 + 0.25\right)}}\right) \]
      5. pow-prod-up14.5%

        \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{\left({\left(z \cdot 2\right)}^{0.25} \cdot {\left(z \cdot 2\right)}^{0.25}\right)}\right) \]
      6. pow214.5%

        \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{{\left({\left(z \cdot 2\right)}^{0.25}\right)}^{2}}\right) \]
    17. Applied egg-rr14.5%

      \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{{\left({\left(z \cdot 2\right)}^{0.25}\right)}^{2}}\right) \]
    18. Step-by-step derivation
      1. pow-pow14.5%

        \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{{\left(z \cdot 2\right)}^{\left(0.25 \cdot 2\right)}}\right) \]
      2. metadata-eval14.5%

        \[\leadsto 0.5 \cdot \left(x \cdot {\left(z \cdot 2\right)}^{\color{blue}{0.5}}\right) \]
      3. pow1/214.5%

        \[\leadsto 0.5 \cdot \left(x \cdot \color{blue}{\sqrt{z \cdot 2}}\right) \]
      4. add-cbrt-cube45.7%

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

        \[\leadsto 0.5 \cdot \left(x \cdot \sqrt[3]{\color{blue}{\left(z \cdot 2\right)} \cdot \sqrt{z \cdot 2}}\right) \]
      6. pow145.7%

        \[\leadsto 0.5 \cdot \left(x \cdot \sqrt[3]{\color{blue}{{\left(z \cdot 2\right)}^{1}} \cdot \sqrt{z \cdot 2}}\right) \]
      7. pow1/245.7%

        \[\leadsto 0.5 \cdot \left(x \cdot \sqrt[3]{{\left(z \cdot 2\right)}^{1} \cdot \color{blue}{{\left(z \cdot 2\right)}^{0.5}}}\right) \]
      8. pow-prod-up45.7%

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

        \[\leadsto 0.5 \cdot \left(x \cdot \sqrt[3]{{\color{blue}{\left(2 \cdot z\right)}}^{\left(1 + 0.5\right)}}\right) \]
      10. metadata-eval45.7%

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

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

    if 1.79999999999999992e181 < 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. Step-by-step derivation
      1. associate-*l*100.0%

        \[\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-sqrt100.0%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left(1 + {t}^{2}\right)}\right)} \]
    10. Step-by-step derivation
      1. +-commutative100.0%

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left({t}^{2} + 1\right)}\right)} \]
      2. unpow2100.0%

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

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

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

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

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

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

        \[\leadsto 0.5 \cdot \left(t \cdot \left(\color{blue}{\left(\sqrt{2} \cdot x\right)} \cdot \sqrt{z}\right)\right) \]
    15. Simplified57.6%

      \[\leadsto \color{blue}{0.5 \cdot \left(t \cdot \left(\left(\sqrt{2} \cdot x\right) \cdot \sqrt{z}\right)\right)} \]
    16. Step-by-step derivation
      1. pow157.6%

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

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

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

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

        \[\leadsto 0.5 \cdot {\left(\color{blue}{\left(\left(\sqrt{2} \cdot \sqrt{z}\right) \cdot x\right)} \cdot t\right)}^{1} \]
      6. associate-*l*57.6%

        \[\leadsto 0.5 \cdot {\color{blue}{\left(\left(\sqrt{2} \cdot \sqrt{z}\right) \cdot \left(x \cdot t\right)\right)}}^{1} \]
      7. sqrt-unprod57.6%

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

        \[\leadsto 0.5 \cdot {\left(\sqrt{\color{blue}{z \cdot 2}} \cdot \left(x \cdot t\right)\right)}^{1} \]
    17. Applied egg-rr57.6%

      \[\leadsto 0.5 \cdot \color{blue}{{\left(\sqrt{z \cdot 2} \cdot \left(x \cdot t\right)\right)}^{1}} \]
    18. Step-by-step derivation
      1. unpow157.6%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 0.095:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\\ \mathbf{elif}\;t \leq 1.35 \cdot 10^{+34}:\\ \;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \left(x \cdot 0.5 - y\right)\right)}\\ \mathbf{elif}\;t \leq 1.1 \cdot 10^{+87}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \sqrt[3]{{\left(z \cdot 2\right)}^{1.5}}\right)\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{+181}:\\ \;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(\left(x \cdot 0.5 - y\right) \cdot \left(x \cdot 0.5 - y\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \left(t \cdot \sqrt{z \cdot 2}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 70.7% accurate, 1.0× speedup?

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

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

\mathbf{elif}\;t \leq 6.4 \cdot 10^{+33}:\\
\;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(t\_1 \cdot t\_1\right)}\\

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


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

    1. Initial program 99.7%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt99.7%

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{z \cdot 2} \cdot \color{blue}{\left(0.5 \cdot x + \left(-y\right)\right)} \]
      4. distribute-rgt-in70.4%

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

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

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

      \[\leadsto \color{blue}{\left(0.5 \cdot x\right) \cdot \sqrt{2 \cdot z} + \left(-y\right) \cdot \sqrt{2 \cdot z}} \]
    8. Step-by-step derivation
      1. distribute-rgt-out72.0%

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

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

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

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

    if 0.095000000000000001 < t < 6.40000000000000034e33

    1. Initial program 98.7%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt89.3%

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\color{blue}{x \cdot 0.5} - y\right) \cdot \sqrt{z \cdot 2} \]
      5. add-sqr-sqrt17.1%

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

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

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

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

        \[\leadsto \sqrt{\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right)} \]
      10. sub-neg38.1%

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

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

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

        \[\leadsto \sqrt{\left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(0.5 \cdot x - y\right)\right)} \]
      14. sub-neg38.1%

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

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

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

    if 6.40000000000000034e33 < 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. Step-by-step derivation
      1. associate-*l*100.0%

        \[\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-sqrt100.0%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left(1 + {t}^{2}\right)}\right)} \]
    10. Step-by-step derivation
      1. +-commutative76.8%

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

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

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

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

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

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

Alternative 6: 66.3% accurate, 1.0× speedup?

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

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

\mathbf{elif}\;t \leq 1.75 \cdot 10^{+34}:\\
\;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(t\_1 \cdot t\_1\right)}\\

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


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

    1. Initial program 99.7%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt99.7%

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{z \cdot 2} \cdot \color{blue}{\left(0.5 \cdot x + \left(-y\right)\right)} \]
      4. distribute-rgt-in70.4%

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

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

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

      \[\leadsto \color{blue}{\left(0.5 \cdot x\right) \cdot \sqrt{2 \cdot z} + \left(-y\right) \cdot \sqrt{2 \cdot z}} \]
    8. Step-by-step derivation
      1. distribute-rgt-out72.0%

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

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

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

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

    if 0.095000000000000001 < t < 1.74999999999999999e34

    1. Initial program 98.7%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt89.3%

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\color{blue}{x \cdot 0.5} - y\right) \cdot \sqrt{z \cdot 2} \]
      5. add-sqr-sqrt17.1%

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

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

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

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

        \[\leadsto \sqrt{\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right)} \]
      10. sub-neg38.1%

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

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

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

        \[\leadsto \sqrt{\left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(0.5 \cdot x - y\right)\right)} \]
      14. sub-neg38.1%

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

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

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

    if 1.74999999999999999e34 < 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. Step-by-step derivation
      1. associate-*l*100.0%

        \[\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-sqrt100.0%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left(1 + {t}^{2}\right)}\right)} \]
    10. Step-by-step derivation
      1. +-commutative76.8%

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

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

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

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

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

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

Alternative 7: 99.3% accurate, 1.0× speedup?

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

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

    \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
  2. Add Preprocessing
  3. Final simplification99.8%

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

Alternative 8: 84.5% accurate, 1.0× speedup?

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

\\
\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \mathsf{fma}\left(t, t, 1\right)\right)}
\end{array}
Derivation
  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. 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.4%

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left(1 + {t}^{2}\right)}\right)} \]
  10. Step-by-step derivation
    1. +-commutative84.8%

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

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

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

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

Alternative 9: 42.6% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \sqrt{z \cdot 2}\\ \mathbf{if}\;y \leq -1.55 \cdot 10^{-50} \lor \neg \left(y \leq -3.1 \cdot 10^{-131} \lor \neg \left(y \leq -2.05 \cdot 10^{-140}\right) \land y \leq 1.15 \cdot 10^{-81}\right):\\ \;\;\;\;t\_1 \cdot \left(-y\right)\\ \mathbf{else}:\\ \;\;\;\;0.5 \cdot \left(x \cdot t\_1\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (sqrt (* z 2.0))))
   (if (or (<= y -1.55e-50)
           (not
            (or (<= y -3.1e-131)
                (and (not (<= y -2.05e-140)) (<= y 1.15e-81)))))
     (* t_1 (- y))
     (* 0.5 (* x t_1)))))
double code(double x, double y, double z, double t) {
	double t_1 = sqrt((z * 2.0));
	double tmp;
	if ((y <= -1.55e-50) || !((y <= -3.1e-131) || (!(y <= -2.05e-140) && (y <= 1.15e-81)))) {
		tmp = t_1 * -y;
	} else {
		tmp = 0.5 * (x * 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((z * 2.0d0))
    if ((y <= (-1.55d-50)) .or. (.not. (y <= (-3.1d-131)) .or. (.not. (y <= (-2.05d-140))) .and. (y <= 1.15d-81))) then
        tmp = t_1 * -y
    else
        tmp = 0.5d0 * (x * 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((z * 2.0));
	double tmp;
	if ((y <= -1.55e-50) || !((y <= -3.1e-131) || (!(y <= -2.05e-140) && (y <= 1.15e-81)))) {
		tmp = t_1 * -y;
	} else {
		tmp = 0.5 * (x * t_1);
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = math.sqrt((z * 2.0))
	tmp = 0
	if (y <= -1.55e-50) or not ((y <= -3.1e-131) or (not (y <= -2.05e-140) and (y <= 1.15e-81))):
		tmp = t_1 * -y
	else:
		tmp = 0.5 * (x * t_1)
	return tmp
function code(x, y, z, t)
	t_1 = sqrt(Float64(z * 2.0))
	tmp = 0.0
	if ((y <= -1.55e-50) || !((y <= -3.1e-131) || (!(y <= -2.05e-140) && (y <= 1.15e-81))))
		tmp = Float64(t_1 * Float64(-y));
	else
		tmp = Float64(0.5 * Float64(x * t_1));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = sqrt((z * 2.0));
	tmp = 0.0;
	if ((y <= -1.55e-50) || ~(((y <= -3.1e-131) || (~((y <= -2.05e-140)) && (y <= 1.15e-81)))))
		tmp = t_1 * -y;
	else
		tmp = 0.5 * (x * t_1);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, If[Or[LessEqual[y, -1.55e-50], N[Not[Or[LessEqual[y, -3.1e-131], And[N[Not[LessEqual[y, -2.05e-140]], $MachinePrecision], LessEqual[y, 1.15e-81]]]], $MachinePrecision]], N[(t$95$1 * (-y)), $MachinePrecision], N[(0.5 * N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \sqrt{z \cdot 2}\\
\mathbf{if}\;y \leq -1.55 \cdot 10^{-50} \lor \neg \left(y \leq -3.1 \cdot 10^{-131} \lor \neg \left(y \leq -2.05 \cdot 10^{-140}\right) \land y \leq 1.15 \cdot 10^{-81}\right):\\
\;\;\;\;t\_1 \cdot \left(-y\right)\\

\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(x \cdot t\_1\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.5500000000000001e-50 or -3.10000000000000021e-131 < y < -2.0500000000000001e-140 or 1.14999999999999996e-81 < y

    1. Initial program 99.8%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.5500000000000001e-50 < y < -3.10000000000000021e-131 or -2.0500000000000001e-140 < y < 1.14999999999999996e-81

    1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto 0.5 \cdot {\left(x \cdot \sqrt{\color{blue}{2 \cdot z}}\right)}^{1} \]
    10. Applied egg-rr52.8%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.55 \cdot 10^{-50} \lor \neg \left(y \leq -3.1 \cdot 10^{-131} \lor \neg \left(y \leq -2.05 \cdot 10^{-140}\right) \land y \leq 1.15 \cdot 10^{-81}\right):\\ \;\;\;\;\sqrt{z \cdot 2} \cdot \left(-y\right)\\ \mathbf{else}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \sqrt{z \cdot 2}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 44.8% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \sqrt{z \cdot 2}\\ \mathbf{if}\;y \leq -1.3 \cdot 10^{-50}:\\ \;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(y \cdot \left(y - x\right)\right)}\\ \mathbf{elif}\;y \leq -5.2 \cdot 10^{-135}:\\ \;\;\;\;0.5 \cdot \left(x \cdot t\_1\right)\\ \mathbf{elif}\;y \leq -2.05 \cdot 10^{-140} \lor \neg \left(y \leq 3.1 \cdot 10^{-44}\right):\\ \;\;\;\;t\_1 \cdot \left(-y\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 0.5\right) \cdot t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (sqrt (* z 2.0))))
   (if (<= y -1.3e-50)
     (sqrt (* (* z 2.0) (* y (- y x))))
     (if (<= y -5.2e-135)
       (* 0.5 (* x t_1))
       (if (or (<= y -2.05e-140) (not (<= y 3.1e-44)))
         (* t_1 (- y))
         (* (* x 0.5) t_1))))))
double code(double x, double y, double z, double t) {
	double t_1 = sqrt((z * 2.0));
	double tmp;
	if (y <= -1.3e-50) {
		tmp = sqrt(((z * 2.0) * (y * (y - x))));
	} else if (y <= -5.2e-135) {
		tmp = 0.5 * (x * t_1);
	} else if ((y <= -2.05e-140) || !(y <= 3.1e-44)) {
		tmp = t_1 * -y;
	} else {
		tmp = (x * 0.5) * 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((z * 2.0d0))
    if (y <= (-1.3d-50)) then
        tmp = sqrt(((z * 2.0d0) * (y * (y - x))))
    else if (y <= (-5.2d-135)) then
        tmp = 0.5d0 * (x * t_1)
    else if ((y <= (-2.05d-140)) .or. (.not. (y <= 3.1d-44))) then
        tmp = t_1 * -y
    else
        tmp = (x * 0.5d0) * 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((z * 2.0));
	double tmp;
	if (y <= -1.3e-50) {
		tmp = Math.sqrt(((z * 2.0) * (y * (y - x))));
	} else if (y <= -5.2e-135) {
		tmp = 0.5 * (x * t_1);
	} else if ((y <= -2.05e-140) || !(y <= 3.1e-44)) {
		tmp = t_1 * -y;
	} else {
		tmp = (x * 0.5) * t_1;
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = math.sqrt((z * 2.0))
	tmp = 0
	if y <= -1.3e-50:
		tmp = math.sqrt(((z * 2.0) * (y * (y - x))))
	elif y <= -5.2e-135:
		tmp = 0.5 * (x * t_1)
	elif (y <= -2.05e-140) or not (y <= 3.1e-44):
		tmp = t_1 * -y
	else:
		tmp = (x * 0.5) * t_1
	return tmp
function code(x, y, z, t)
	t_1 = sqrt(Float64(z * 2.0))
	tmp = 0.0
	if (y <= -1.3e-50)
		tmp = sqrt(Float64(Float64(z * 2.0) * Float64(y * Float64(y - x))));
	elseif (y <= -5.2e-135)
		tmp = Float64(0.5 * Float64(x * t_1));
	elseif ((y <= -2.05e-140) || !(y <= 3.1e-44))
		tmp = Float64(t_1 * Float64(-y));
	else
		tmp = Float64(Float64(x * 0.5) * t_1);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = sqrt((z * 2.0));
	tmp = 0.0;
	if (y <= -1.3e-50)
		tmp = sqrt(((z * 2.0) * (y * (y - x))));
	elseif (y <= -5.2e-135)
		tmp = 0.5 * (x * t_1);
	elseif ((y <= -2.05e-140) || ~((y <= 3.1e-44)))
		tmp = t_1 * -y;
	else
		tmp = (x * 0.5) * t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[y, -1.3e-50], N[Sqrt[N[(N[(z * 2.0), $MachinePrecision] * N[(y * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[y, -5.2e-135], N[(0.5 * N[(x * t$95$1), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -2.05e-140], N[Not[LessEqual[y, 3.1e-44]], $MachinePrecision]], N[(t$95$1 * (-y)), $MachinePrecision], N[(N[(x * 0.5), $MachinePrecision] * t$95$1), $MachinePrecision]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -5.2 \cdot 10^{-135}:\\
\;\;\;\;0.5 \cdot \left(x \cdot t\_1\right)\\

\mathbf{elif}\;y \leq -2.05 \cdot 10^{-140} \lor \neg \left(y \leq 3.1 \cdot 10^{-44}\right):\\
\;\;\;\;t\_1 \cdot \left(-y\right)\\

\mathbf{else}:\\
\;\;\;\;\left(x \cdot 0.5\right) \cdot t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -1.3000000000000001e-50

    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. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right)} \]
      10. sub-neg64.6%

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

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

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

        \[\leadsto \sqrt{\left(\sqrt{z \cdot 2} \cdot \left(\color{blue}{0.5 \cdot x} + \left(-y\right)\right)\right) \cdot \left(\sqrt{z \cdot 2} \cdot \left(0.5 \cdot x - y\right)\right)} \]
      14. sub-neg64.6%

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

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

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

        \[\leadsto \sqrt{\left(2 \cdot z\right) \cdot \color{blue}{\left({y}^{2} + -1 \cdot \left(x \cdot y\right)\right)}} \]
      2. mul-1-neg59.4%

        \[\leadsto \sqrt{\left(2 \cdot z\right) \cdot \left({y}^{2} + \color{blue}{\left(-x \cdot y\right)}\right)} \]
      3. unsub-neg59.4%

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

        \[\leadsto \sqrt{\left(2 \cdot z\right) \cdot \left(\color{blue}{y \cdot y} - x \cdot y\right)} \]
      5. distribute-rgt-out--64.7%

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

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

    if -1.3000000000000001e-50 < y < -5.20000000000000008e-135

    1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto 0.5 \cdot {\left(x \cdot \sqrt{\color{blue}{2 \cdot z}}\right)}^{1} \]
    10. Applied egg-rr35.5%

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

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

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

    if -5.20000000000000008e-135 < y < -2.0500000000000001e-140 or 3.09999999999999984e-44 < y

    1. Initial program 99.7%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.0500000000000001e-140 < y < 3.09999999999999984e-44

    1. Initial program 99.7%

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

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

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

        \[\leadsto \left(0.5 \cdot \color{blue}{\left(\sqrt{2} \cdot \left(x \cdot \sqrt{z}\right)\right)}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    5. Simplified88.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{{\left(\sqrt{z \cdot 2} \cdot \left(x \cdot 0.5\right)\right)}^{1}} \]
    14. Step-by-step derivation
      1. unpow151.7%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.3 \cdot 10^{-50}:\\ \;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(y \cdot \left(y - x\right)\right)}\\ \mathbf{elif}\;y \leq -5.2 \cdot 10^{-135}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \sqrt{z \cdot 2}\right)\\ \mathbf{elif}\;y \leq -2.05 \cdot 10^{-140} \lor \neg \left(y \leq 3.1 \cdot 10^{-44}\right):\\ \;\;\;\;\sqrt{z \cdot 2} \cdot \left(-y\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 0.5\right) \cdot \sqrt{z \cdot 2}\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 42.5% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \sqrt{z \cdot 2}\\ t_2 := t\_1 \cdot \left(-y\right)\\ \mathbf{if}\;y \leq -3.9 \cdot 10^{-50}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -4.5 \cdot 10^{-132}:\\ \;\;\;\;0.5 \cdot \left(x \cdot t\_1\right)\\ \mathbf{elif}\;y \leq -1.96 \cdot 10^{-140} \lor \neg \left(y \leq 1.05 \cdot 10^{-81}\right):\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 0.5\right) \cdot t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (sqrt (* z 2.0))) (t_2 (* t_1 (- y))))
   (if (<= y -3.9e-50)
     t_2
     (if (<= y -4.5e-132)
       (* 0.5 (* x t_1))
       (if (or (<= y -1.96e-140) (not (<= y 1.05e-81)))
         t_2
         (* (* x 0.5) t_1))))))
double code(double x, double y, double z, double t) {
	double t_1 = sqrt((z * 2.0));
	double t_2 = t_1 * -y;
	double tmp;
	if (y <= -3.9e-50) {
		tmp = t_2;
	} else if (y <= -4.5e-132) {
		tmp = 0.5 * (x * t_1);
	} else if ((y <= -1.96e-140) || !(y <= 1.05e-81)) {
		tmp = t_2;
	} else {
		tmp = (x * 0.5) * 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) :: t_2
    real(8) :: tmp
    t_1 = sqrt((z * 2.0d0))
    t_2 = t_1 * -y
    if (y <= (-3.9d-50)) then
        tmp = t_2
    else if (y <= (-4.5d-132)) then
        tmp = 0.5d0 * (x * t_1)
    else if ((y <= (-1.96d-140)) .or. (.not. (y <= 1.05d-81))) then
        tmp = t_2
    else
        tmp = (x * 0.5d0) * 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((z * 2.0));
	double t_2 = t_1 * -y;
	double tmp;
	if (y <= -3.9e-50) {
		tmp = t_2;
	} else if (y <= -4.5e-132) {
		tmp = 0.5 * (x * t_1);
	} else if ((y <= -1.96e-140) || !(y <= 1.05e-81)) {
		tmp = t_2;
	} else {
		tmp = (x * 0.5) * t_1;
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = math.sqrt((z * 2.0))
	t_2 = t_1 * -y
	tmp = 0
	if y <= -3.9e-50:
		tmp = t_2
	elif y <= -4.5e-132:
		tmp = 0.5 * (x * t_1)
	elif (y <= -1.96e-140) or not (y <= 1.05e-81):
		tmp = t_2
	else:
		tmp = (x * 0.5) * t_1
	return tmp
function code(x, y, z, t)
	t_1 = sqrt(Float64(z * 2.0))
	t_2 = Float64(t_1 * Float64(-y))
	tmp = 0.0
	if (y <= -3.9e-50)
		tmp = t_2;
	elseif (y <= -4.5e-132)
		tmp = Float64(0.5 * Float64(x * t_1));
	elseif ((y <= -1.96e-140) || !(y <= 1.05e-81))
		tmp = t_2;
	else
		tmp = Float64(Float64(x * 0.5) * t_1);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = sqrt((z * 2.0));
	t_2 = t_1 * -y;
	tmp = 0.0;
	if (y <= -3.9e-50)
		tmp = t_2;
	elseif (y <= -4.5e-132)
		tmp = 0.5 * (x * t_1);
	elseif ((y <= -1.96e-140) || ~((y <= 1.05e-81)))
		tmp = t_2;
	else
		tmp = (x * 0.5) * t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * (-y)), $MachinePrecision]}, If[LessEqual[y, -3.9e-50], t$95$2, If[LessEqual[y, -4.5e-132], N[(0.5 * N[(x * t$95$1), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -1.96e-140], N[Not[LessEqual[y, 1.05e-81]], $MachinePrecision]], t$95$2, N[(N[(x * 0.5), $MachinePrecision] * t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \sqrt{z \cdot 2}\\
t_2 := t\_1 \cdot \left(-y\right)\\
\mathbf{if}\;y \leq -3.9 \cdot 10^{-50}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y \leq -4.5 \cdot 10^{-132}:\\
\;\;\;\;0.5 \cdot \left(x \cdot t\_1\right)\\

\mathbf{elif}\;y \leq -1.96 \cdot 10^{-140} \lor \neg \left(y \leq 1.05 \cdot 10^{-81}\right):\\
\;\;\;\;t\_2\\

\mathbf{else}:\\
\;\;\;\;\left(x \cdot 0.5\right) \cdot t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -3.90000000000000021e-50 or -4.4999999999999999e-132 < y < -1.96000000000000002e-140 or 1.05e-81 < y

    1. Initial program 99.8%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt99.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.90000000000000021e-50 < y < -4.4999999999999999e-132

    1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto 0.5 \cdot {\left(x \cdot \sqrt{\color{blue}{2 \cdot z}}\right)}^{1} \]
    10. Applied egg-rr37.8%

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

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

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

    if -1.96000000000000002e-140 < y < 1.05e-81

    1. Initial program 99.7%

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

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

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

        \[\leadsto \left(0.5 \cdot \color{blue}{\left(\sqrt{2} \cdot \left(x \cdot \sqrt{z}\right)\right)}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    5. Simplified89.4%

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

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

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

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

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

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

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

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

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

        \[\leadsto 0.5 \cdot {\color{blue}{\left(x \cdot \left(\sqrt{z} \cdot \sqrt{2}\right)\right)}}^{1} \]
      5. sqrt-prod55.6%

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

        \[\leadsto 0.5 \cdot {\left(x \cdot \sqrt{\color{blue}{2 \cdot z}}\right)}^{1} \]
    10. Applied egg-rr55.6%

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

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

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

      \[\leadsto \color{blue}{{\left(\sqrt{z \cdot 2} \cdot \left(x \cdot 0.5\right)\right)}^{1}} \]
    14. Step-by-step derivation
      1. unpow155.6%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.9 \cdot 10^{-50}:\\ \;\;\;\;\sqrt{z \cdot 2} \cdot \left(-y\right)\\ \mathbf{elif}\;y \leq -4.5 \cdot 10^{-132}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \sqrt{z \cdot 2}\right)\\ \mathbf{elif}\;y \leq -1.96 \cdot 10^{-140} \lor \neg \left(y \leq 1.05 \cdot 10^{-81}\right):\\ \;\;\;\;\sqrt{z \cdot 2} \cdot \left(-y\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 0.5\right) \cdot \sqrt{z \cdot 2}\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 61.7% accurate, 1.7× speedup?

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

\\
\begin{array}{l}
t_1 := x \cdot 0.5 - y\\
t_2 := \sqrt{z \cdot 2}\\
\mathbf{if}\;t \leq 0.095:\\
\;\;\;\;t\_1 \cdot t\_2\\

\mathbf{elif}\;t \leq 3.5 \cdot 10^{+150}:\\
\;\;\;\;\sqrt{\left(z \cdot 2\right) \cdot \left(t\_1 \cdot t\_1\right)}\\

\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(x \cdot \left(t \cdot t\_2\right)\right)\\


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

    1. Initial program 99.7%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt99.7%

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{z \cdot 2} \cdot \color{blue}{\left(0.5 \cdot x + \left(-y\right)\right)} \]
      4. distribute-rgt-in70.4%

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

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

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

      \[\leadsto \color{blue}{\left(0.5 \cdot x\right) \cdot \sqrt{2 \cdot z} + \left(-y\right) \cdot \sqrt{2 \cdot z}} \]
    8. Step-by-step derivation
      1. distribute-rgt-out72.0%

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

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

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

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

    if 0.095000000000000001 < t < 3.49999999999999984e150

    1. Initial program 99.6%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt96.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 3.49999999999999984e150 < 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. Step-by-step derivation
      1. associate-*l*100.0%

        \[\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-sqrt100.0%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left(1 + {t}^{2}\right)}\right)} \]
    10. Step-by-step derivation
      1. +-commutative97.1%

        \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left({t}^{2} + 1\right)}\right)} \]
      2. unpow297.1%

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{0.5 \cdot \left(t \cdot \left(\left(\sqrt{2} \cdot x\right) \cdot \sqrt{z}\right)\right)} \]
    16. Step-by-step derivation
      1. pow152.8%

        \[\leadsto 0.5 \cdot \color{blue}{{\left(t \cdot \left(\left(\sqrt{2} \cdot x\right) \cdot \sqrt{z}\right)\right)}^{1}} \]
      2. *-commutative52.8%

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

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

        \[\leadsto 0.5 \cdot {\left(\color{blue}{\left(x \cdot \left(\sqrt{2} \cdot \sqrt{z}\right)\right)} \cdot t\right)}^{1} \]
      5. *-commutative52.8%

        \[\leadsto 0.5 \cdot {\left(\color{blue}{\left(\left(\sqrt{2} \cdot \sqrt{z}\right) \cdot x\right)} \cdot t\right)}^{1} \]
      6. associate-*l*52.8%

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

        \[\leadsto 0.5 \cdot {\left(\color{blue}{\sqrt{2 \cdot z}} \cdot \left(x \cdot t\right)\right)}^{1} \]
      8. *-commutative52.8%

        \[\leadsto 0.5 \cdot {\left(\sqrt{\color{blue}{z \cdot 2}} \cdot \left(x \cdot t\right)\right)}^{1} \]
    17. Applied egg-rr52.8%

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

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

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

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

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

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

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

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

Alternative 13: 60.7% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \sqrt{z \cdot 2}\\ t_2 := \left(x \cdot 0.5 - y\right) \cdot t\_1\\ \mathbf{if}\;t \leq 8 \cdot 10^{+45}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq 3.25 \cdot 10^{+122}:\\ \;\;\;\;\left(0.5 \cdot t\_1\right) \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;t \leq 5.4 \cdot 10^{+141}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \left(t \cdot t\_1\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (sqrt (* z 2.0))) (t_2 (* (- (* x 0.5) y) t_1)))
   (if (<= t 8e+45)
     t_2
     (if (<= t 3.25e+122)
       (* (* 0.5 t_1) (* x t))
       (if (<= t 5.4e+141) t_2 (* 0.5 (* x (* t t_1))))))))
double code(double x, double y, double z, double t) {
	double t_1 = sqrt((z * 2.0));
	double t_2 = ((x * 0.5) - y) * t_1;
	double tmp;
	if (t <= 8e+45) {
		tmp = t_2;
	} else if (t <= 3.25e+122) {
		tmp = (0.5 * t_1) * (x * t);
	} else if (t <= 5.4e+141) {
		tmp = t_2;
	} else {
		tmp = 0.5 * (x * (t * 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) :: t_2
    real(8) :: tmp
    t_1 = sqrt((z * 2.0d0))
    t_2 = ((x * 0.5d0) - y) * t_1
    if (t <= 8d+45) then
        tmp = t_2
    else if (t <= 3.25d+122) then
        tmp = (0.5d0 * t_1) * (x * t)
    else if (t <= 5.4d+141) then
        tmp = t_2
    else
        tmp = 0.5d0 * (x * (t * 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((z * 2.0));
	double t_2 = ((x * 0.5) - y) * t_1;
	double tmp;
	if (t <= 8e+45) {
		tmp = t_2;
	} else if (t <= 3.25e+122) {
		tmp = (0.5 * t_1) * (x * t);
	} else if (t <= 5.4e+141) {
		tmp = t_2;
	} else {
		tmp = 0.5 * (x * (t * t_1));
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = math.sqrt((z * 2.0))
	t_2 = ((x * 0.5) - y) * t_1
	tmp = 0
	if t <= 8e+45:
		tmp = t_2
	elif t <= 3.25e+122:
		tmp = (0.5 * t_1) * (x * t)
	elif t <= 5.4e+141:
		tmp = t_2
	else:
		tmp = 0.5 * (x * (t * t_1))
	return tmp
function code(x, y, z, t)
	t_1 = sqrt(Float64(z * 2.0))
	t_2 = Float64(Float64(Float64(x * 0.5) - y) * t_1)
	tmp = 0.0
	if (t <= 8e+45)
		tmp = t_2;
	elseif (t <= 3.25e+122)
		tmp = Float64(Float64(0.5 * t_1) * Float64(x * t));
	elseif (t <= 5.4e+141)
		tmp = t_2;
	else
		tmp = Float64(0.5 * Float64(x * Float64(t * t_1)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = sqrt((z * 2.0));
	t_2 = ((x * 0.5) - y) * t_1;
	tmp = 0.0;
	if (t <= 8e+45)
		tmp = t_2;
	elseif (t <= 3.25e+122)
		tmp = (0.5 * t_1) * (x * t);
	elseif (t <= 5.4e+141)
		tmp = t_2;
	else
		tmp = 0.5 * (x * (t * t_1));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[Sqrt[N[(z * 2.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * 0.5), $MachinePrecision] - y), $MachinePrecision] * t$95$1), $MachinePrecision]}, If[LessEqual[t, 8e+45], t$95$2, If[LessEqual[t, 3.25e+122], N[(N[(0.5 * t$95$1), $MachinePrecision] * N[(x * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.4e+141], t$95$2, N[(0.5 * N[(x * N[(t * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \sqrt{z \cdot 2}\\
t_2 := \left(x \cdot 0.5 - y\right) \cdot t\_1\\
\mathbf{if}\;t \leq 8 \cdot 10^{+45}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq 3.25 \cdot 10^{+122}:\\
\;\;\;\;\left(0.5 \cdot t\_1\right) \cdot \left(x \cdot t\right)\\

\mathbf{elif}\;t \leq 5.4 \cdot 10^{+141}:\\
\;\;\;\;t\_2\\

\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(x \cdot \left(t \cdot t\_1\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < 7.9999999999999994e45 or 3.24999999999999982e122 < t < 5.4000000000000002e141

    1. Initial program 99.7%

      \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. exp-sqrt99.3%

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

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

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

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

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

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

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

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

        \[\leadsto \sqrt{z \cdot 2} \cdot \color{blue}{\left(0.5 \cdot x + \left(-y\right)\right)} \]
      4. distribute-rgt-in67.3%

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

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

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

      \[\leadsto \color{blue}{\left(0.5 \cdot x\right) \cdot \sqrt{2 \cdot z} + \left(-y\right) \cdot \sqrt{2 \cdot z}} \]
    8. Step-by-step derivation
      1. distribute-rgt-out68.8%

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

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

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

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

    if 7.9999999999999994e45 < t < 3.24999999999999982e122

    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. Step-by-step derivation
      1. associate-*l*100.0%

        \[\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-sqrt100.0%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot \left(2 \cdot \color{blue}{\left(1 + {t}^{2}\right)}\right)} \]
    10. Step-by-step derivation
      1. +-commutative40.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto {\left(0.5 \cdot \left(\color{blue}{\left(\left(\sqrt{2} \cdot \sqrt{z}\right) \cdot x\right)} \cdot t\right)\right)}^{1} \]
      6. associate-*l*33.4%

        \[\leadsto {\left(0.5 \cdot \color{blue}{\left(\left(\sqrt{2} \cdot \sqrt{z}\right) \cdot \left(x \cdot t\right)\right)}\right)}^{1} \]
      7. sqrt-unprod33.4%

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

        \[\leadsto {\left(0.5 \cdot \left(\sqrt{\color{blue}{z \cdot 2}} \cdot \left(x \cdot t\right)\right)\right)}^{1} \]
    17. Applied egg-rr33.4%

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

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

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

        \[\leadsto \left(0.5 \cdot \sqrt{\color{blue}{2 \cdot z}}\right) \cdot \left(x \cdot t\right) \]
    19. Simplified33.4%

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

    if 5.4000000000000002e141 < 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. Step-by-step derivation
      1. associate-*l*100.0%

        \[\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-sqrt100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto 0.5 \cdot \left(t \cdot \left(\color{blue}{\left(\sqrt{2} \cdot x\right)} \cdot \sqrt{z}\right)\right) \]
    15. Simplified49.6%

      \[\leadsto \color{blue}{0.5 \cdot \left(t \cdot \left(\left(\sqrt{2} \cdot x\right) \cdot \sqrt{z}\right)\right)} \]
    16. Step-by-step derivation
      1. pow149.6%

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

        \[\leadsto 0.5 \cdot {\color{blue}{\left(\left(\left(\sqrt{2} \cdot x\right) \cdot \sqrt{z}\right) \cdot t\right)}}^{1} \]
      3. *-commutative49.6%

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

        \[\leadsto 0.5 \cdot {\left(\color{blue}{\left(x \cdot \left(\sqrt{2} \cdot \sqrt{z}\right)\right)} \cdot t\right)}^{1} \]
      5. *-commutative49.6%

        \[\leadsto 0.5 \cdot {\left(\color{blue}{\left(\left(\sqrt{2} \cdot \sqrt{z}\right) \cdot x\right)} \cdot t\right)}^{1} \]
      6. associate-*l*49.6%

        \[\leadsto 0.5 \cdot {\color{blue}{\left(\left(\sqrt{2} \cdot \sqrt{z}\right) \cdot \left(x \cdot t\right)\right)}}^{1} \]
      7. sqrt-unprod49.6%

        \[\leadsto 0.5 \cdot {\left(\color{blue}{\sqrt{2 \cdot z}} \cdot \left(x \cdot t\right)\right)}^{1} \]
      8. *-commutative49.6%

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

      \[\leadsto 0.5 \cdot \color{blue}{{\left(\sqrt{z \cdot 2} \cdot \left(x \cdot t\right)\right)}^{1}} \]
    18. Step-by-step derivation
      1. unpow149.6%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 8 \cdot 10^{+45}:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\\ \mathbf{elif}\;t \leq 3.25 \cdot 10^{+122}:\\ \;\;\;\;\left(0.5 \cdot \sqrt{z \cdot 2}\right) \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;t \leq 5.4 \cdot 10^{+141}:\\ \;\;\;\;\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;0.5 \cdot \left(x \cdot \left(t \cdot \sqrt{z \cdot 2}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 30.0% accurate, 2.0× speedup?

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

\\
\sqrt{z \cdot 2} \cdot \left(-y\right)
\end{array}
Derivation
  1. Initial program 99.8%

    \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
  2. Add Preprocessing
  3. Step-by-step derivation
    1. exp-sqrt99.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 15: 2.6% accurate, 2.0× speedup?

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

\\
y \cdot \sqrt{z \cdot 2}
\end{array}
Derivation
  1. Initial program 99.8%

    \[\left(\left(x \cdot 0.5 - y\right) \cdot \sqrt{z \cdot 2}\right) \cdot e^{\frac{t \cdot t}{2}} \]
  2. Add Preprocessing
  3. Step-by-step derivation
    1. exp-sqrt99.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto y \cdot \color{blue}{\sqrt{z \cdot 2}} \]
  10. Add Preprocessing

Developer target: 99.3% 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 2024107 
(FPCore (x y z t)
  :name "Data.Number.Erf:$cinvnormcdf from erf-2.0.0.0, A"
  :precision binary64

  :alt
  (* (* (- (* 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))))