Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, H

Percentage Accurate: 95.3% → 95.5%
Time: 9.0s
Alternatives: 13
Speedup: 1.4×

Specification

?
\[\begin{array}{l} \\ \left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
	return (x - (y / (z * 3.0))) + (t / ((z * 3.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 = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
	return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t):
	return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t)
	return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y)))
end
function tmp = code(x, y, z, t)
	tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\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 13 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: 95.3% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
	return (x - (y / (z * 3.0))) + (t / ((z * 3.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 = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
	return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t):
	return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t)
	return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y)))
end
function tmp = code(x, y, z, t)
	tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}

Alternative 1: 95.5% accurate, 1.4× speedup?

\[\begin{array}{l} \\ x + \frac{y - \frac{t}{y}}{z \cdot -3} \end{array} \]
(FPCore (x y z t) :precision binary64 (+ x (/ (- y (/ t y)) (* z -3.0))))
double code(double x, double y, double z, double t) {
	return x + ((y - (t / y)) / (z * -3.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 + ((y - (t / y)) / (z * (-3.0d0)))
end function
public static double code(double x, double y, double z, double t) {
	return x + ((y - (t / y)) / (z * -3.0));
}
def code(x, y, z, t):
	return x + ((y - (t / y)) / (z * -3.0))
function code(x, y, z, t)
	return Float64(x + Float64(Float64(y - Float64(t / y)) / Float64(z * -3.0)))
end
function tmp = code(x, y, z, t)
	tmp = x + ((y - (t / y)) / (z * -3.0));
end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / N[(z * -3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \frac{y - \frac{t}{y}}{z \cdot -3}
\end{array}
Derivation
  1. Initial program 95.5%

    \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
  2. Step-by-step derivation
    1. associate-+l-95.5%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
    2. sub-neg95.5%

      \[\leadsto \color{blue}{x + \left(-\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
    3. sub-neg95.5%

      \[\leadsto x + \left(-\color{blue}{\left(\frac{y}{z \cdot 3} + \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right) \]
    4. distribute-neg-in95.5%

      \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) + \left(-\left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)} \]
    5. unsub-neg95.5%

      \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
    6. neg-mul-195.5%

      \[\leadsto x + \left(\color{blue}{-1 \cdot \frac{y}{z \cdot 3}} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
    7. associate-*r/95.5%

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

      \[\leadsto x + \left(\color{blue}{\frac{-1}{z \cdot 3} \cdot y} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
    9. distribute-neg-frac95.4%

      \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-t}{\left(z \cdot 3\right) \cdot y}}\right) \]
    10. neg-mul-195.4%

      \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\color{blue}{-1 \cdot t}}{\left(z \cdot 3\right) \cdot y}\right) \]
    11. times-frac97.5%

      \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-1}{z \cdot 3} \cdot \frac{t}{y}}\right) \]
    12. distribute-lft-out--97.9%

      \[\leadsto x + \color{blue}{\frac{-1}{z \cdot 3} \cdot \left(y - \frac{t}{y}\right)} \]
    13. *-commutative97.9%

      \[\leadsto x + \frac{-1}{\color{blue}{3 \cdot z}} \cdot \left(y - \frac{t}{y}\right) \]
    14. associate-/r*97.9%

      \[\leadsto x + \color{blue}{\frac{\frac{-1}{3}}{z}} \cdot \left(y - \frac{t}{y}\right) \]
    15. metadata-eval97.9%

      \[\leadsto x + \frac{\color{blue}{-0.3333333333333333}}{z} \cdot \left(y - \frac{t}{y}\right) \]
  3. Simplified97.9%

    \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
  4. Step-by-step derivation
    1. *-commutative97.9%

      \[\leadsto x + \color{blue}{\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}} \]
    2. clear-num97.9%

      \[\leadsto x + \left(y - \frac{t}{y}\right) \cdot \color{blue}{\frac{1}{\frac{z}{-0.3333333333333333}}} \]
    3. un-div-inv98.0%

      \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{\frac{z}{-0.3333333333333333}}} \]
    4. div-inv98.0%

      \[\leadsto x + \frac{y - \frac{t}{y}}{\color{blue}{z \cdot \frac{1}{-0.3333333333333333}}} \]
    5. metadata-eval98.0%

      \[\leadsto x + \frac{y - \frac{t}{y}}{z \cdot \color{blue}{-3}} \]
  5. Applied egg-rr98.0%

    \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{z \cdot -3}} \]
  6. Final simplification98.0%

    \[\leadsto x + \frac{y - \frac{t}{y}}{z \cdot -3} \]

Alternative 2: 61.0% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ t_2 := x + 0.3333333333333333 \cdot \frac{y}{z}\\ t_3 := \frac{0.3333333333333333}{\frac{-z}{y}}\\ \mathbf{if}\;y \leq -1.06 \cdot 10^{-27}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;y \leq 1.95 \cdot 10^{-26}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 2.1 \cdot 10^{+19}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 7 \cdot 10^{+29}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 4.1 \cdot 10^{+66}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 7.4 \cdot 10^{+99}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (* 0.3333333333333333 (/ t (* y z))))
        (t_2 (+ x (* 0.3333333333333333 (/ y z))))
        (t_3 (/ 0.3333333333333333 (/ (- z) y))))
   (if (<= y -1.06e-27)
     t_3
     (if (<= y 1.95e-26)
       t_1
       (if (<= y 2.1e+19)
         t_2
         (if (<= y 7e+29)
           t_1
           (if (<= y 4.1e+66)
             (/ (* y -0.3333333333333333) z)
             (if (<= y 7.4e+99) t_2 t_3))))))))
double code(double x, double y, double z, double t) {
	double t_1 = 0.3333333333333333 * (t / (y * z));
	double t_2 = x + (0.3333333333333333 * (y / z));
	double t_3 = 0.3333333333333333 / (-z / y);
	double tmp;
	if (y <= -1.06e-27) {
		tmp = t_3;
	} else if (y <= 1.95e-26) {
		tmp = t_1;
	} else if (y <= 2.1e+19) {
		tmp = t_2;
	} else if (y <= 7e+29) {
		tmp = t_1;
	} else if (y <= 4.1e+66) {
		tmp = (y * -0.3333333333333333) / z;
	} else if (y <= 7.4e+99) {
		tmp = t_2;
	} else {
		tmp = t_3;
	}
	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) :: t_3
    real(8) :: tmp
    t_1 = 0.3333333333333333d0 * (t / (y * z))
    t_2 = x + (0.3333333333333333d0 * (y / z))
    t_3 = 0.3333333333333333d0 / (-z / y)
    if (y <= (-1.06d-27)) then
        tmp = t_3
    else if (y <= 1.95d-26) then
        tmp = t_1
    else if (y <= 2.1d+19) then
        tmp = t_2
    else if (y <= 7d+29) then
        tmp = t_1
    else if (y <= 4.1d+66) then
        tmp = (y * (-0.3333333333333333d0)) / z
    else if (y <= 7.4d+99) then
        tmp = t_2
    else
        tmp = t_3
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double t_1 = 0.3333333333333333 * (t / (y * z));
	double t_2 = x + (0.3333333333333333 * (y / z));
	double t_3 = 0.3333333333333333 / (-z / y);
	double tmp;
	if (y <= -1.06e-27) {
		tmp = t_3;
	} else if (y <= 1.95e-26) {
		tmp = t_1;
	} else if (y <= 2.1e+19) {
		tmp = t_2;
	} else if (y <= 7e+29) {
		tmp = t_1;
	} else if (y <= 4.1e+66) {
		tmp = (y * -0.3333333333333333) / z;
	} else if (y <= 7.4e+99) {
		tmp = t_2;
	} else {
		tmp = t_3;
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = 0.3333333333333333 * (t / (y * z))
	t_2 = x + (0.3333333333333333 * (y / z))
	t_3 = 0.3333333333333333 / (-z / y)
	tmp = 0
	if y <= -1.06e-27:
		tmp = t_3
	elif y <= 1.95e-26:
		tmp = t_1
	elif y <= 2.1e+19:
		tmp = t_2
	elif y <= 7e+29:
		tmp = t_1
	elif y <= 4.1e+66:
		tmp = (y * -0.3333333333333333) / z
	elif y <= 7.4e+99:
		tmp = t_2
	else:
		tmp = t_3
	return tmp
function code(x, y, z, t)
	t_1 = Float64(0.3333333333333333 * Float64(t / Float64(y * z)))
	t_2 = Float64(x + Float64(0.3333333333333333 * Float64(y / z)))
	t_3 = Float64(0.3333333333333333 / Float64(Float64(-z) / y))
	tmp = 0.0
	if (y <= -1.06e-27)
		tmp = t_3;
	elseif (y <= 1.95e-26)
		tmp = t_1;
	elseif (y <= 2.1e+19)
		tmp = t_2;
	elseif (y <= 7e+29)
		tmp = t_1;
	elseif (y <= 4.1e+66)
		tmp = Float64(Float64(y * -0.3333333333333333) / z);
	elseif (y <= 7.4e+99)
		tmp = t_2;
	else
		tmp = t_3;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = 0.3333333333333333 * (t / (y * z));
	t_2 = x + (0.3333333333333333 * (y / z));
	t_3 = 0.3333333333333333 / (-z / y);
	tmp = 0.0;
	if (y <= -1.06e-27)
		tmp = t_3;
	elseif (y <= 1.95e-26)
		tmp = t_1;
	elseif (y <= 2.1e+19)
		tmp = t_2;
	elseif (y <= 7e+29)
		tmp = t_1;
	elseif (y <= 4.1e+66)
		tmp = (y * -0.3333333333333333) / z;
	elseif (y <= 7.4e+99)
		tmp = t_2;
	else
		tmp = t_3;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(0.3333333333333333 / N[((-z) / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.06e-27], t$95$3, If[LessEqual[y, 1.95e-26], t$95$1, If[LessEqual[y, 2.1e+19], t$95$2, If[LessEqual[y, 7e+29], t$95$1, If[LessEqual[y, 4.1e+66], N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 7.4e+99], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
t_2 := x + 0.3333333333333333 \cdot \frac{y}{z}\\
t_3 := \frac{0.3333333333333333}{\frac{-z}{y}}\\
\mathbf{if}\;y \leq -1.06 \cdot 10^{-27}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;y \leq 1.95 \cdot 10^{-26}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 2.1 \cdot 10^{+19}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;y \leq 7 \cdot 10^{+29}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 4.1 \cdot 10^{+66}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\

\mathbf{elif}\;y \leq 7.4 \cdot 10^{+99}:\\
\;\;\;\;t_2\\

\mathbf{else}:\\
\;\;\;\;t_3\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -1.05999999999999998e-27 or 7.4000000000000002e99 < y

    1. Initial program 99.8%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-/r*96.3%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{\frac{t}{z \cdot 3}}{y}} \]
    3. Simplified96.3%

      \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}} \]
    4. Step-by-step derivation
      1. clear-num96.3%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{\frac{z \cdot 3}{t}}}}{y} \]
      2. inv-pow96.3%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(\frac{z \cdot 3}{t}\right)}^{-1}}}{y} \]
      3. *-commutative96.3%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{\color{blue}{3 \cdot z}}{t}\right)}^{-1}}{y} \]
      4. *-un-lft-identity96.3%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{3 \cdot z}{\color{blue}{1 \cdot t}}\right)}^{-1}}{y} \]
      5. times-frac96.3%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\color{blue}{\left(\frac{3}{1} \cdot \frac{z}{t}\right)}}^{-1}}{y} \]
      6. metadata-eval96.3%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\color{blue}{3} \cdot \frac{z}{t}\right)}^{-1}}{y} \]
    5. Applied egg-rr96.3%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(3 \cdot \frac{z}{t}\right)}^{-1}}}{y} \]
    6. Step-by-step derivation
      1. unpow-196.3%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    7. Simplified96.3%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    8. Step-by-step derivation
      1. associate-+l-96.3%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{1}{3 \cdot \frac{z}{t}}}{y}\right)} \]
      2. associate-/r*96.3%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\color{blue}{\frac{\frac{1}{3}}{\frac{z}{t}}}}{y}\right) \]
      3. metadata-eval96.3%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\frac{\color{blue}{0.3333333333333333}}{\frac{z}{t}}}{y}\right) \]
    9. Applied egg-rr96.3%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}\right)} \]
    10. Step-by-step derivation
      1. associate--r-96.3%

        \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}} \]
      2. +-commutative96.3%

        \[\leadsto \color{blue}{\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + \left(x - \frac{y}{z \cdot 3}\right)} \]
      3. associate-+r-96.3%

        \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + x\right) - \frac{y}{z \cdot 3}} \]
      4. associate-/r/96.3%

        \[\leadsto \left(\frac{\color{blue}{\frac{0.3333333333333333}{z} \cdot t}}{y} + x\right) - \frac{y}{z \cdot 3} \]
      5. associate-/r*95.5%

        \[\leadsto \left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \color{blue}{\frac{\frac{y}{z}}{3}} \]
    11. Simplified95.5%

      \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \frac{\frac{y}{z}}{3}} \]
    12. Taylor expanded in z around 0 77.0%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} \]
    13. Step-by-step derivation
      1. distribute-lft-out--77.0%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} \]
      2. associate-/l*77.0%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    14. Simplified77.0%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    15. Taylor expanded in t around 0 73.4%

      \[\leadsto \frac{0.3333333333333333}{\color{blue}{-1 \cdot \frac{z}{y}}} \]
    16. Step-by-step derivation
      1. associate-*r/73.4%

        \[\leadsto \frac{0.3333333333333333}{\color{blue}{\frac{-1 \cdot z}{y}}} \]
      2. neg-mul-173.4%

        \[\leadsto \frac{0.3333333333333333}{\frac{\color{blue}{-z}}{y}} \]
    17. Simplified73.4%

      \[\leadsto \frac{0.3333333333333333}{\color{blue}{\frac{-z}{y}}} \]

    if -1.05999999999999998e-27 < y < 1.94999999999999993e-26 or 2.1e19 < y < 6.99999999999999958e29

    1. Initial program 91.5%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-/r*99.1%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{\frac{t}{z \cdot 3}}{y}} \]
    3. Simplified99.1%

      \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}} \]
    4. Step-by-step derivation
      1. clear-num99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{\frac{z \cdot 3}{t}}}}{y} \]
      2. inv-pow99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(\frac{z \cdot 3}{t}\right)}^{-1}}}{y} \]
      3. *-commutative99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{\color{blue}{3 \cdot z}}{t}\right)}^{-1}}{y} \]
      4. *-un-lft-identity99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{3 \cdot z}{\color{blue}{1 \cdot t}}\right)}^{-1}}{y} \]
      5. times-frac99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\color{blue}{\left(\frac{3}{1} \cdot \frac{z}{t}\right)}}^{-1}}{y} \]
      6. metadata-eval99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\color{blue}{3} \cdot \frac{z}{t}\right)}^{-1}}{y} \]
    5. Applied egg-rr99.0%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(3 \cdot \frac{z}{t}\right)}^{-1}}}{y} \]
    6. Step-by-step derivation
      1. unpow-199.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    7. Simplified99.0%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    8. Step-by-step derivation
      1. associate-+l-99.0%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{1}{3 \cdot \frac{z}{t}}}{y}\right)} \]
      2. associate-/r*99.0%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\color{blue}{\frac{\frac{1}{3}}{\frac{z}{t}}}}{y}\right) \]
      3. metadata-eval99.0%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\frac{\color{blue}{0.3333333333333333}}{\frac{z}{t}}}{y}\right) \]
    9. Applied egg-rr99.0%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}\right)} \]
    10. Step-by-step derivation
      1. associate--r-99.0%

        \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}} \]
      2. +-commutative99.0%

        \[\leadsto \color{blue}{\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + \left(x - \frac{y}{z \cdot 3}\right)} \]
      3. associate-+r-99.0%

        \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + x\right) - \frac{y}{z \cdot 3}} \]
      4. associate-/r/99.0%

        \[\leadsto \left(\frac{\color{blue}{\frac{0.3333333333333333}{z} \cdot t}}{y} + x\right) - \frac{y}{z \cdot 3} \]
      5. associate-/r*99.0%

        \[\leadsto \left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \color{blue}{\frac{\frac{y}{z}}{3}} \]
    11. Simplified99.0%

      \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \frac{\frac{y}{z}}{3}} \]
    12. Taylor expanded in z around 0 62.6%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} \]
    13. Step-by-step derivation
      1. distribute-lft-out--62.6%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} \]
      2. associate-/l*62.6%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    14. Simplified62.6%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    15. Taylor expanded in t around inf 57.2%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \frac{t}{y \cdot z}} \]

    if 1.94999999999999993e-26 < y < 2.1e19 or 4.09999999999999994e66 < y < 7.4000000000000002e99

    1. Initial program 93.5%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-+l-93.5%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      2. sub-neg93.5%

        \[\leadsto \color{blue}{x + \left(-\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      3. sub-neg93.5%

        \[\leadsto x + \left(-\color{blue}{\left(\frac{y}{z \cdot 3} + \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right) \]
      4. distribute-neg-in93.5%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) + \left(-\left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)} \]
      5. unsub-neg93.5%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      6. neg-mul-193.5%

        \[\leadsto x + \left(\color{blue}{-1 \cdot \frac{y}{z \cdot 3}} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      7. associate-*r/93.5%

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

        \[\leadsto x + \left(\color{blue}{\frac{-1}{z \cdot 3} \cdot y} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      9. distribute-neg-frac93.5%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-t}{\left(z \cdot 3\right) \cdot y}}\right) \]
      10. neg-mul-193.5%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\color{blue}{-1 \cdot t}}{\left(z \cdot 3\right) \cdot y}\right) \]
      11. times-frac93.6%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-1}{z \cdot 3} \cdot \frac{t}{y}}\right) \]
      12. distribute-lft-out--99.8%

        \[\leadsto x + \color{blue}{\frac{-1}{z \cdot 3} \cdot \left(y - \frac{t}{y}\right)} \]
      13. *-commutative99.8%

        \[\leadsto x + \frac{-1}{\color{blue}{3 \cdot z}} \cdot \left(y - \frac{t}{y}\right) \]
      14. associate-/r*99.8%

        \[\leadsto x + \color{blue}{\frac{\frac{-1}{3}}{z}} \cdot \left(y - \frac{t}{y}\right) \]
      15. metadata-eval99.8%

        \[\leadsto x + \frac{\color{blue}{-0.3333333333333333}}{z} \cdot \left(y - \frac{t}{y}\right) \]
    3. Simplified99.8%

      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
    4. Step-by-step derivation
      1. *-commutative99.8%

        \[\leadsto x + \color{blue}{\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}} \]
      2. clear-num99.8%

        \[\leadsto x + \left(y - \frac{t}{y}\right) \cdot \color{blue}{\frac{1}{\frac{z}{-0.3333333333333333}}} \]
      3. un-div-inv99.8%

        \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{\frac{z}{-0.3333333333333333}}} \]
      4. div-inv99.8%

        \[\leadsto x + \frac{y - \frac{t}{y}}{\color{blue}{z \cdot \frac{1}{-0.3333333333333333}}} \]
      5. metadata-eval99.8%

        \[\leadsto x + \frac{y - \frac{t}{y}}{z \cdot \color{blue}{-3}} \]
    5. Applied egg-rr99.8%

      \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{z \cdot -3}} \]
    6. Taylor expanded in y around inf 87.4%

      \[\leadsto x + \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
    7. Step-by-step derivation
      1. associate-*r/87.5%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
      2. associate-/l*87.3%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]
    8. Simplified87.3%

      \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]
    9. Step-by-step derivation
      1. add-sqr-sqrt50.0%

        \[\leadsto x + \color{blue}{\sqrt{\frac{-0.3333333333333333}{\frac{z}{y}}} \cdot \sqrt{\frac{-0.3333333333333333}{\frac{z}{y}}}} \]
      2. sqrt-unprod81.2%

        \[\leadsto x + \color{blue}{\sqrt{\frac{-0.3333333333333333}{\frac{z}{y}} \cdot \frac{-0.3333333333333333}{\frac{z}{y}}}} \]
      3. frac-times81.3%

        \[\leadsto x + \sqrt{\color{blue}{\frac{-0.3333333333333333 \cdot -0.3333333333333333}{\frac{z}{y} \cdot \frac{z}{y}}}} \]
      4. metadata-eval81.3%

        \[\leadsto x + \sqrt{\frac{\color{blue}{0.1111111111111111}}{\frac{z}{y} \cdot \frac{z}{y}}} \]
      5. metadata-eval81.3%

        \[\leadsto x + \sqrt{\frac{\color{blue}{0.3333333333333333 \cdot 0.3333333333333333}}{\frac{z}{y} \cdot \frac{z}{y}}} \]
      6. frac-times81.2%

        \[\leadsto x + \sqrt{\color{blue}{\frac{0.3333333333333333}{\frac{z}{y}} \cdot \frac{0.3333333333333333}{\frac{z}{y}}}} \]
      7. associate-/l*81.3%

        \[\leadsto x + \sqrt{\color{blue}{\frac{0.3333333333333333 \cdot y}{z}} \cdot \frac{0.3333333333333333}{\frac{z}{y}}} \]
      8. associate-/l*81.3%

        \[\leadsto x + \sqrt{\frac{0.3333333333333333 \cdot y}{z} \cdot \color{blue}{\frac{0.3333333333333333 \cdot y}{z}}} \]
      9. sqrt-unprod31.3%

        \[\leadsto x + \color{blue}{\sqrt{\frac{0.3333333333333333 \cdot y}{z}} \cdot \sqrt{\frac{0.3333333333333333 \cdot y}{z}}} \]
      10. add-sqr-sqrt75.6%

        \[\leadsto x + \color{blue}{\frac{0.3333333333333333 \cdot y}{z}} \]
      11. *-un-lft-identity75.6%

        \[\leadsto x + \frac{0.3333333333333333 \cdot y}{\color{blue}{1 \cdot z}} \]
      12. times-frac75.6%

        \[\leadsto x + \color{blue}{\frac{0.3333333333333333}{1} \cdot \frac{y}{z}} \]
      13. metadata-eval75.6%

        \[\leadsto x + \color{blue}{0.3333333333333333} \cdot \frac{y}{z} \]
      14. metadata-eval75.6%

        \[\leadsto x + \color{blue}{\frac{1}{3}} \cdot \frac{y}{z} \]
      15. times-frac75.6%

        \[\leadsto x + \color{blue}{\frac{1 \cdot y}{3 \cdot z}} \]
      16. *-un-lft-identity75.6%

        \[\leadsto x + \frac{\color{blue}{y}}{3 \cdot z} \]
      17. associate-/l/75.6%

        \[\leadsto x + \color{blue}{\frac{\frac{y}{z}}{3}} \]
      18. div-inv75.6%

        \[\leadsto x + \color{blue}{\frac{y}{z} \cdot \frac{1}{3}} \]
      19. metadata-eval75.6%

        \[\leadsto x + \frac{y}{z} \cdot \color{blue}{0.3333333333333333} \]
    10. Applied egg-rr75.6%

      \[\leadsto x + \color{blue}{\frac{y}{z} \cdot 0.3333333333333333} \]

    if 6.99999999999999958e29 < y < 4.09999999999999994e66

    1. Initial program 100.0%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-/r*86.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{\frac{t}{z \cdot 3}}{y}} \]
    3. Simplified86.9%

      \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}} \]
    4. Step-by-step derivation
      1. clear-num86.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{\frac{z \cdot 3}{t}}}}{y} \]
      2. inv-pow86.9%

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

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{\color{blue}{3 \cdot z}}{t}\right)}^{-1}}{y} \]
      4. *-un-lft-identity86.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{3 \cdot z}{\color{blue}{1 \cdot t}}\right)}^{-1}}{y} \]
      5. times-frac86.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\color{blue}{\left(\frac{3}{1} \cdot \frac{z}{t}\right)}}^{-1}}{y} \]
      6. metadata-eval86.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\color{blue}{3} \cdot \frac{z}{t}\right)}^{-1}}{y} \]
    5. Applied egg-rr86.9%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(3 \cdot \frac{z}{t}\right)}^{-1}}}{y} \]
    6. Step-by-step derivation
      1. unpow-186.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    7. Simplified86.9%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    8. Step-by-step derivation
      1. associate-+l-86.9%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{1}{3 \cdot \frac{z}{t}}}{y}\right)} \]
      2. associate-/r*86.9%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\color{blue}{\frac{\frac{1}{3}}{\frac{z}{t}}}}{y}\right) \]
      3. metadata-eval86.9%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\frac{\color{blue}{0.3333333333333333}}{\frac{z}{t}}}{y}\right) \]
    9. Applied egg-rr86.9%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}\right)} \]
    10. Step-by-step derivation
      1. associate--r-86.9%

        \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}} \]
      2. +-commutative86.9%

        \[\leadsto \color{blue}{\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + \left(x - \frac{y}{z \cdot 3}\right)} \]
      3. associate-+r-86.9%

        \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + x\right) - \frac{y}{z \cdot 3}} \]
      4. associate-/r/86.9%

        \[\leadsto \left(\frac{\color{blue}{\frac{0.3333333333333333}{z} \cdot t}}{y} + x\right) - \frac{y}{z \cdot 3} \]
      5. associate-/r*86.5%

        \[\leadsto \left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \color{blue}{\frac{\frac{y}{z}}{3}} \]
    11. Simplified86.5%

      \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \frac{\frac{y}{z}}{3}} \]
    12. Taylor expanded in z around 0 71.6%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} \]
    13. Step-by-step derivation
      1. distribute-lft-out--71.6%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} \]
      2. associate-/l*71.2%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    14. Simplified71.2%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    15. Taylor expanded in t around 0 56.9%

      \[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
    16. Step-by-step derivation
      1. *-commutative56.9%

        \[\leadsto \color{blue}{\frac{y}{z} \cdot -0.3333333333333333} \]
      2. associate-*l/57.4%

        \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
    17. Simplified57.4%

      \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification65.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.06 \cdot 10^{-27}:\\ \;\;\;\;\frac{0.3333333333333333}{\frac{-z}{y}}\\ \mathbf{elif}\;y \leq 1.95 \cdot 10^{-26}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \mathbf{elif}\;y \leq 2.1 \cdot 10^{+19}:\\ \;\;\;\;x + 0.3333333333333333 \cdot \frac{y}{z}\\ \mathbf{elif}\;y \leq 7 \cdot 10^{+29}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \mathbf{elif}\;y \leq 4.1 \cdot 10^{+66}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \mathbf{elif}\;y \leq 7.4 \cdot 10^{+99}:\\ \;\;\;\;x + 0.3333333333333333 \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.3333333333333333}{\frac{-z}{y}}\\ \end{array} \]

Alternative 3: 73.9% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{0.3333333333333333}{z \cdot \frac{y}{t}}\\ t_2 := x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{if}\;y \leq -6.8 \cdot 10^{-42}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq -4.8 \cdot 10^{-159}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq -3.7 \cdot 10^{-191}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 4.2 \cdot 10^{-131}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 1.15 \cdot 10^{-82}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 2 \cdot 10^{-26}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (/ 0.3333333333333333 (* z (/ y t))))
        (t_2 (+ x (/ -0.3333333333333333 (/ z y)))))
   (if (<= y -6.8e-42)
     t_2
     (if (<= y -4.8e-159)
       t_1
       (if (<= y -3.7e-191)
         t_2
         (if (<= y 4.2e-131)
           t_1
           (if (<= y 1.15e-82)
             t_2
             (if (<= y 2e-26) t_1 (- x (/ (* y 0.3333333333333333) z))))))))))
double code(double x, double y, double z, double t) {
	double t_1 = 0.3333333333333333 / (z * (y / t));
	double t_2 = x + (-0.3333333333333333 / (z / y));
	double tmp;
	if (y <= -6.8e-42) {
		tmp = t_2;
	} else if (y <= -4.8e-159) {
		tmp = t_1;
	} else if (y <= -3.7e-191) {
		tmp = t_2;
	} else if (y <= 4.2e-131) {
		tmp = t_1;
	} else if (y <= 1.15e-82) {
		tmp = t_2;
	} else if (y <= 2e-26) {
		tmp = t_1;
	} else {
		tmp = x - ((y * 0.3333333333333333) / z);
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = 0.3333333333333333d0 / (z * (y / t))
    t_2 = x + ((-0.3333333333333333d0) / (z / y))
    if (y <= (-6.8d-42)) then
        tmp = t_2
    else if (y <= (-4.8d-159)) then
        tmp = t_1
    else if (y <= (-3.7d-191)) then
        tmp = t_2
    else if (y <= 4.2d-131) then
        tmp = t_1
    else if (y <= 1.15d-82) then
        tmp = t_2
    else if (y <= 2d-26) then
        tmp = t_1
    else
        tmp = x - ((y * 0.3333333333333333d0) / z)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double t_1 = 0.3333333333333333 / (z * (y / t));
	double t_2 = x + (-0.3333333333333333 / (z / y));
	double tmp;
	if (y <= -6.8e-42) {
		tmp = t_2;
	} else if (y <= -4.8e-159) {
		tmp = t_1;
	} else if (y <= -3.7e-191) {
		tmp = t_2;
	} else if (y <= 4.2e-131) {
		tmp = t_1;
	} else if (y <= 1.15e-82) {
		tmp = t_2;
	} else if (y <= 2e-26) {
		tmp = t_1;
	} else {
		tmp = x - ((y * 0.3333333333333333) / z);
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = 0.3333333333333333 / (z * (y / t))
	t_2 = x + (-0.3333333333333333 / (z / y))
	tmp = 0
	if y <= -6.8e-42:
		tmp = t_2
	elif y <= -4.8e-159:
		tmp = t_1
	elif y <= -3.7e-191:
		tmp = t_2
	elif y <= 4.2e-131:
		tmp = t_1
	elif y <= 1.15e-82:
		tmp = t_2
	elif y <= 2e-26:
		tmp = t_1
	else:
		tmp = x - ((y * 0.3333333333333333) / z)
	return tmp
function code(x, y, z, t)
	t_1 = Float64(0.3333333333333333 / Float64(z * Float64(y / t)))
	t_2 = Float64(x + Float64(-0.3333333333333333 / Float64(z / y)))
	tmp = 0.0
	if (y <= -6.8e-42)
		tmp = t_2;
	elseif (y <= -4.8e-159)
		tmp = t_1;
	elseif (y <= -3.7e-191)
		tmp = t_2;
	elseif (y <= 4.2e-131)
		tmp = t_1;
	elseif (y <= 1.15e-82)
		tmp = t_2;
	elseif (y <= 2e-26)
		tmp = t_1;
	else
		tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = 0.3333333333333333 / (z * (y / t));
	t_2 = x + (-0.3333333333333333 / (z / y));
	tmp = 0.0;
	if (y <= -6.8e-42)
		tmp = t_2;
	elseif (y <= -4.8e-159)
		tmp = t_1;
	elseif (y <= -3.7e-191)
		tmp = t_2;
	elseif (y <= 4.2e-131)
		tmp = t_1;
	elseif (y <= 1.15e-82)
		tmp = t_2;
	elseif (y <= 2e-26)
		tmp = t_1;
	else
		tmp = x - ((y * 0.3333333333333333) / z);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(0.3333333333333333 / N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.8e-42], t$95$2, If[LessEqual[y, -4.8e-159], t$95$1, If[LessEqual[y, -3.7e-191], t$95$2, If[LessEqual[y, 4.2e-131], t$95$1, If[LessEqual[y, 1.15e-82], t$95$2, If[LessEqual[y, 2e-26], t$95$1, N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{0.3333333333333333}{z \cdot \frac{y}{t}}\\
t_2 := x + \frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{if}\;y \leq -6.8 \cdot 10^{-42}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;y \leq -4.8 \cdot 10^{-159}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq -3.7 \cdot 10^{-191}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;y \leq 4.2 \cdot 10^{-131}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 1.15 \cdot 10^{-82}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;y \leq 2 \cdot 10^{-26}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -6.80000000000000045e-42 or -4.79999999999999995e-159 < y < -3.6999999999999997e-191 or 4.19999999999999994e-131 < y < 1.14999999999999998e-82

    1. Initial program 98.1%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-+l-98.1%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      2. sub-neg98.1%

        \[\leadsto \color{blue}{x + \left(-\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      3. sub-neg98.1%

        \[\leadsto x + \left(-\color{blue}{\left(\frac{y}{z \cdot 3} + \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right) \]
      4. distribute-neg-in98.1%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) + \left(-\left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)} \]
      5. unsub-neg98.1%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      6. neg-mul-198.1%

        \[\leadsto x + \left(\color{blue}{-1 \cdot \frac{y}{z \cdot 3}} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      7. associate-*r/98.1%

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

        \[\leadsto x + \left(\color{blue}{\frac{-1}{z \cdot 3} \cdot y} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      9. distribute-neg-frac98.0%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-t}{\left(z \cdot 3\right) \cdot y}}\right) \]
      10. neg-mul-198.0%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\color{blue}{-1 \cdot t}}{\left(z \cdot 3\right) \cdot y}\right) \]
      11. times-frac97.8%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-1}{z \cdot 3} \cdot \frac{t}{y}}\right) \]
      12. distribute-lft-out--97.8%

        \[\leadsto x + \color{blue}{\frac{-1}{z \cdot 3} \cdot \left(y - \frac{t}{y}\right)} \]
      13. *-commutative97.8%

        \[\leadsto x + \frac{-1}{\color{blue}{3 \cdot z}} \cdot \left(y - \frac{t}{y}\right) \]
      14. associate-/r*97.8%

        \[\leadsto x + \color{blue}{\frac{\frac{-1}{3}}{z}} \cdot \left(y - \frac{t}{y}\right) \]
      15. metadata-eval97.8%

        \[\leadsto x + \frac{\color{blue}{-0.3333333333333333}}{z} \cdot \left(y - \frac{t}{y}\right) \]
    3. Simplified97.8%

      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
    4. Step-by-step derivation
      1. *-commutative97.8%

        \[\leadsto x + \color{blue}{\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}} \]
      2. clear-num97.8%

        \[\leadsto x + \left(y - \frac{t}{y}\right) \cdot \color{blue}{\frac{1}{\frac{z}{-0.3333333333333333}}} \]
      3. un-div-inv97.9%

        \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{\frac{z}{-0.3333333333333333}}} \]
      4. div-inv97.9%

        \[\leadsto x + \frac{y - \frac{t}{y}}{\color{blue}{z \cdot \frac{1}{-0.3333333333333333}}} \]
      5. metadata-eval97.9%

        \[\leadsto x + \frac{y - \frac{t}{y}}{z \cdot \color{blue}{-3}} \]
    5. Applied egg-rr97.9%

      \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{z \cdot -3}} \]
    6. Taylor expanded in y around inf 87.6%

      \[\leadsto x + \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
    7. Step-by-step derivation
      1. associate-*r/88.4%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
      2. associate-/l*88.5%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]
    8. Simplified88.5%

      \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]

    if -6.80000000000000045e-42 < y < -4.79999999999999995e-159 or -3.6999999999999997e-191 < y < 4.19999999999999994e-131 or 1.14999999999999998e-82 < y < 2.0000000000000001e-26

    1. Initial program 90.9%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-/r*98.8%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{\frac{t}{z \cdot 3}}{y}} \]
    3. Simplified98.8%

      \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}} \]
    4. Step-by-step derivation
      1. clear-num98.8%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{\frac{z \cdot 3}{t}}}}{y} \]
      2. inv-pow98.8%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(\frac{z \cdot 3}{t}\right)}^{-1}}}{y} \]
      3. *-commutative98.8%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{\color{blue}{3 \cdot z}}{t}\right)}^{-1}}{y} \]
      4. *-un-lft-identity98.8%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{3 \cdot z}{\color{blue}{1 \cdot t}}\right)}^{-1}}{y} \]
      5. times-frac98.8%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\color{blue}{\left(\frac{3}{1} \cdot \frac{z}{t}\right)}}^{-1}}{y} \]
      6. metadata-eval98.8%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\color{blue}{3} \cdot \frac{z}{t}\right)}^{-1}}{y} \]
    5. Applied egg-rr98.8%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(3 \cdot \frac{z}{t}\right)}^{-1}}}{y} \]
    6. Step-by-step derivation
      1. unpow-198.8%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    7. Simplified98.8%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    8. Step-by-step derivation
      1. associate-+l-98.8%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{1}{3 \cdot \frac{z}{t}}}{y}\right)} \]
      2. associate-/r*98.8%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\color{blue}{\frac{\frac{1}{3}}{\frac{z}{t}}}}{y}\right) \]
      3. metadata-eval98.8%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\frac{\color{blue}{0.3333333333333333}}{\frac{z}{t}}}{y}\right) \]
    9. Applied egg-rr98.8%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}\right)} \]
    10. Step-by-step derivation
      1. associate--r-98.8%

        \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}} \]
      2. +-commutative98.8%

        \[\leadsto \color{blue}{\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + \left(x - \frac{y}{z \cdot 3}\right)} \]
      3. associate-+r-98.8%

        \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + x\right) - \frac{y}{z \cdot 3}} \]
      4. associate-/r/98.8%

        \[\leadsto \left(\frac{\color{blue}{\frac{0.3333333333333333}{z} \cdot t}}{y} + x\right) - \frac{y}{z \cdot 3} \]
      5. associate-/r*98.8%

        \[\leadsto \left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \color{blue}{\frac{\frac{y}{z}}{3}} \]
    11. Simplified98.8%

      \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \frac{\frac{y}{z}}{3}} \]
    12. Taylor expanded in z around 0 70.0%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} \]
    13. Step-by-step derivation
      1. distribute-lft-out--70.0%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} \]
      2. associate-/l*69.9%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    14. Simplified69.9%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    15. Taylor expanded in t around inf 63.7%

      \[\leadsto \frac{0.3333333333333333}{\color{blue}{\frac{y \cdot z}{t}}} \]
    16. Step-by-step derivation
      1. *-commutative63.7%

        \[\leadsto \frac{0.3333333333333333}{\frac{\color{blue}{z \cdot y}}{t}} \]
      2. associate-*r/68.7%

        \[\leadsto \frac{0.3333333333333333}{\color{blue}{z \cdot \frac{y}{t}}} \]
    17. Simplified68.7%

      \[\leadsto \frac{0.3333333333333333}{\color{blue}{z \cdot \frac{y}{t}}} \]

    if 2.0000000000000001e-26 < y

    1. Initial program 98.3%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Taylor expanded in x around 0 98.2%

      \[\leadsto \color{blue}{\left(0.3333333333333333 \cdot \frac{t}{y \cdot z} + x\right) - 0.3333333333333333 \cdot \frac{y}{z}} \]
    3. Step-by-step derivation
      1. cancel-sign-sub-inv98.2%

        \[\leadsto \color{blue}{\left(0.3333333333333333 \cdot \frac{t}{y \cdot z} + x\right) + \left(-0.3333333333333333\right) \cdot \frac{y}{z}} \]
      2. metadata-eval98.2%

        \[\leadsto \left(0.3333333333333333 \cdot \frac{t}{y \cdot z} + x\right) + \color{blue}{-0.3333333333333333} \cdot \frac{y}{z} \]
      3. +-commutative98.2%

        \[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{y}{z} + \left(0.3333333333333333 \cdot \frac{t}{y \cdot z} + x\right)} \]
      4. associate-+r+98.2%

        \[\leadsto \color{blue}{\left(-0.3333333333333333 \cdot \frac{y}{z} + 0.3333333333333333 \cdot \frac{t}{y \cdot z}\right) + x} \]
      5. +-commutative98.2%

        \[\leadsto \color{blue}{\left(0.3333333333333333 \cdot \frac{t}{y \cdot z} + -0.3333333333333333 \cdot \frac{y}{z}\right)} + x \]
      6. associate-/r*98.2%

        \[\leadsto \left(0.3333333333333333 \cdot \color{blue}{\frac{\frac{t}{y}}{z}} + -0.3333333333333333 \cdot \frac{y}{z}\right) + x \]
      7. associate-*r/98.2%

        \[\leadsto \left(\color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y}}{z}} + -0.3333333333333333 \cdot \frac{y}{z}\right) + x \]
      8. metadata-eval98.2%

        \[\leadsto \left(\frac{0.3333333333333333 \cdot \frac{t}{y}}{z} + \color{blue}{\left(-0.3333333333333333\right)} \cdot \frac{y}{z}\right) + x \]
      9. cancel-sign-sub-inv98.2%

        \[\leadsto \color{blue}{\left(\frac{0.3333333333333333 \cdot \frac{t}{y}}{z} - 0.3333333333333333 \cdot \frac{y}{z}\right)} + x \]
      10. associate-*r/98.2%

        \[\leadsto \left(\frac{0.3333333333333333 \cdot \frac{t}{y}}{z} - \color{blue}{\frac{0.3333333333333333 \cdot y}{z}}\right) + x \]
      11. div-sub99.8%

        \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} + x \]
      12. distribute-lft-out--99.8%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} + x \]
      13. metadata-eval99.8%

        \[\leadsto \frac{\color{blue}{\left(-1 \cdot -0.3333333333333333\right)} \cdot \left(\frac{t}{y} - y\right)}{z} + x \]
      14. associate-*r*99.8%

        \[\leadsto \frac{\color{blue}{-1 \cdot \left(-0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)\right)}}{z} + x \]
      15. distribute-lft-out--99.8%

        \[\leadsto \frac{-1 \cdot \color{blue}{\left(-0.3333333333333333 \cdot \frac{t}{y} - -0.3333333333333333 \cdot y\right)}}{z} + x \]
      16. associate-*r/99.8%

        \[\leadsto \color{blue}{-1 \cdot \frac{-0.3333333333333333 \cdot \frac{t}{y} - -0.3333333333333333 \cdot y}{z}} + x \]
      17. +-commutative99.8%

        \[\leadsto \color{blue}{x + -1 \cdot \frac{-0.3333333333333333 \cdot \frac{t}{y} - -0.3333333333333333 \cdot y}{z}} \]
    4. Simplified99.8%

      \[\leadsto \color{blue}{x - \frac{-0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}{z}} \]
    5. Taylor expanded in t around 0 91.0%

      \[\leadsto x - \frac{\color{blue}{0.3333333333333333 \cdot y}}{z} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification81.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.8 \cdot 10^{-42}:\\ \;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{elif}\;y \leq -4.8 \cdot 10^{-159}:\\ \;\;\;\;\frac{0.3333333333333333}{z \cdot \frac{y}{t}}\\ \mathbf{elif}\;y \leq -3.7 \cdot 10^{-191}:\\ \;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{elif}\;y \leq 4.2 \cdot 10^{-131}:\\ \;\;\;\;\frac{0.3333333333333333}{z \cdot \frac{y}{t}}\\ \mathbf{elif}\;y \leq 1.15 \cdot 10^{-82}:\\ \;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{elif}\;y \leq 2 \cdot 10^{-26}:\\ \;\;\;\;\frac{0.3333333333333333}{z \cdot \frac{y}{t}}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\ \end{array} \]

Alternative 4: 74.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -4.3 \cdot 10^{-40} \lor \neg \left(y \leq 5.3 \cdot 10^{-133}\right) \land \left(y \leq 1.3 \cdot 10^{-83} \lor \neg \left(y \leq 1.35 \cdot 10^{-26}\right)\right):\\ \;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (or (<= y -4.3e-40)
         (and (not (<= y 5.3e-133)) (or (<= y 1.3e-83) (not (<= y 1.35e-26)))))
   (+ x (/ -0.3333333333333333 (/ z y)))
   (* 0.3333333333333333 (/ t (* y z)))))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((y <= -4.3e-40) || (!(y <= 5.3e-133) && ((y <= 1.3e-83) || !(y <= 1.35e-26)))) {
		tmp = x + (-0.3333333333333333 / (z / y));
	} else {
		tmp = 0.3333333333333333 * (t / (y * 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) :: tmp
    if ((y <= (-4.3d-40)) .or. (.not. (y <= 5.3d-133)) .and. (y <= 1.3d-83) .or. (.not. (y <= 1.35d-26))) then
        tmp = x + ((-0.3333333333333333d0) / (z / y))
    else
        tmp = 0.3333333333333333d0 * (t / (y * z))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if ((y <= -4.3e-40) || (!(y <= 5.3e-133) && ((y <= 1.3e-83) || !(y <= 1.35e-26)))) {
		tmp = x + (-0.3333333333333333 / (z / y));
	} else {
		tmp = 0.3333333333333333 * (t / (y * z));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if (y <= -4.3e-40) or (not (y <= 5.3e-133) and ((y <= 1.3e-83) or not (y <= 1.35e-26))):
		tmp = x + (-0.3333333333333333 / (z / y))
	else:
		tmp = 0.3333333333333333 * (t / (y * z))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if ((y <= -4.3e-40) || (!(y <= 5.3e-133) && ((y <= 1.3e-83) || !(y <= 1.35e-26))))
		tmp = Float64(x + Float64(-0.3333333333333333 / Float64(z / y)));
	else
		tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if ((y <= -4.3e-40) || (~((y <= 5.3e-133)) && ((y <= 1.3e-83) || ~((y <= 1.35e-26)))))
		tmp = x + (-0.3333333333333333 / (z / y));
	else
		tmp = 0.3333333333333333 * (t / (y * z));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -4.3e-40], And[N[Not[LessEqual[y, 5.3e-133]], $MachinePrecision], Or[LessEqual[y, 1.3e-83], N[Not[LessEqual[y, 1.35e-26]], $MachinePrecision]]]], N[(x + N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.3 \cdot 10^{-40} \lor \neg \left(y \leq 5.3 \cdot 10^{-133}\right) \land \left(y \leq 1.3 \cdot 10^{-83} \lor \neg \left(y \leq 1.35 \cdot 10^{-26}\right)\right):\\
\;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\

\mathbf{else}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -4.3000000000000003e-40 or 5.29999999999999983e-133 < y < 1.30000000000000004e-83 or 1.34999999999999991e-26 < y

    1. Initial program 98.0%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-+l-98.0%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      2. sub-neg98.0%

        \[\leadsto \color{blue}{x + \left(-\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      3. sub-neg98.0%

        \[\leadsto x + \left(-\color{blue}{\left(\frac{y}{z \cdot 3} + \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right) \]
      4. distribute-neg-in98.0%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) + \left(-\left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)} \]
      5. unsub-neg98.0%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      6. neg-mul-198.0%

        \[\leadsto x + \left(\color{blue}{-1 \cdot \frac{y}{z \cdot 3}} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      7. associate-*r/98.0%

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

        \[\leadsto x + \left(\color{blue}{\frac{-1}{z \cdot 3} \cdot y} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      9. distribute-neg-frac97.9%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-t}{\left(z \cdot 3\right) \cdot y}}\right) \]
      10. neg-mul-197.9%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\color{blue}{-1 \cdot t}}{\left(z \cdot 3\right) \cdot y}\right) \]
      11. times-frac98.4%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-1}{z \cdot 3} \cdot \frac{t}{y}}\right) \]
      12. distribute-lft-out--99.1%

        \[\leadsto x + \color{blue}{\frac{-1}{z \cdot 3} \cdot \left(y - \frac{t}{y}\right)} \]
      13. *-commutative99.1%

        \[\leadsto x + \frac{-1}{\color{blue}{3 \cdot z}} \cdot \left(y - \frac{t}{y}\right) \]
      14. associate-/r*99.1%

        \[\leadsto x + \color{blue}{\frac{\frac{-1}{3}}{z}} \cdot \left(y - \frac{t}{y}\right) \]
      15. metadata-eval99.1%

        \[\leadsto x + \frac{\color{blue}{-0.3333333333333333}}{z} \cdot \left(y - \frac{t}{y}\right) \]
    3. Simplified99.1%

      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
    4. Step-by-step derivation
      1. *-commutative99.1%

        \[\leadsto x + \color{blue}{\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}} \]
      2. clear-num99.1%

        \[\leadsto x + \left(y - \frac{t}{y}\right) \cdot \color{blue}{\frac{1}{\frac{z}{-0.3333333333333333}}} \]
      3. un-div-inv99.2%

        \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{\frac{z}{-0.3333333333333333}}} \]
      4. div-inv99.2%

        \[\leadsto x + \frac{y - \frac{t}{y}}{\color{blue}{z \cdot \frac{1}{-0.3333333333333333}}} \]
      5. metadata-eval99.2%

        \[\leadsto x + \frac{y - \frac{t}{y}}{z \cdot \color{blue}{-3}} \]
    5. Applied egg-rr99.2%

      \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{z \cdot -3}} \]
    6. Taylor expanded in y around inf 90.7%

      \[\leadsto x + \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
    7. Step-by-step derivation
      1. associate-*r/91.3%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
      2. associate-/l*91.3%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]
    8. Simplified91.3%

      \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]

    if -4.3000000000000003e-40 < y < 5.29999999999999983e-133 or 1.30000000000000004e-83 < y < 1.34999999999999991e-26

    1. Initial program 91.9%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-/r*99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{\frac{t}{z \cdot 3}}{y}} \]
    3. Simplified99.0%

      \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}} \]
    4. Step-by-step derivation
      1. clear-num98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{\frac{z \cdot 3}{t}}}}{y} \]
      2. inv-pow98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(\frac{z \cdot 3}{t}\right)}^{-1}}}{y} \]
      3. *-commutative98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{\color{blue}{3 \cdot z}}{t}\right)}^{-1}}{y} \]
      4. *-un-lft-identity98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{3 \cdot z}{\color{blue}{1 \cdot t}}\right)}^{-1}}{y} \]
      5. times-frac98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\color{blue}{\left(\frac{3}{1} \cdot \frac{z}{t}\right)}}^{-1}}{y} \]
      6. metadata-eval98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\color{blue}{3} \cdot \frac{z}{t}\right)}^{-1}}{y} \]
    5. Applied egg-rr98.9%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(3 \cdot \frac{z}{t}\right)}^{-1}}}{y} \]
    6. Step-by-step derivation
      1. unpow-198.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    7. Simplified98.9%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    8. Step-by-step derivation
      1. associate-+l-98.9%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{1}{3 \cdot \frac{z}{t}}}{y}\right)} \]
      2. associate-/r*98.9%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\color{blue}{\frac{\frac{1}{3}}{\frac{z}{t}}}}{y}\right) \]
      3. metadata-eval98.9%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\frac{\color{blue}{0.3333333333333333}}{\frac{z}{t}}}{y}\right) \]
    9. Applied egg-rr98.9%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}\right)} \]
    10. Step-by-step derivation
      1. associate--r-98.9%

        \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}} \]
      2. +-commutative98.9%

        \[\leadsto \color{blue}{\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + \left(x - \frac{y}{z \cdot 3}\right)} \]
      3. associate-+r-98.9%

        \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + x\right) - \frac{y}{z \cdot 3}} \]
      4. associate-/r/98.9%

        \[\leadsto \left(\frac{\color{blue}{\frac{0.3333333333333333}{z} \cdot t}}{y} + x\right) - \frac{y}{z \cdot 3} \]
      5. associate-/r*98.9%

        \[\leadsto \left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \color{blue}{\frac{\frac{y}{z}}{3}} \]
    11. Simplified98.9%

      \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \frac{\frac{y}{z}}{3}} \]
    12. Taylor expanded in z around 0 65.2%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} \]
    13. Step-by-step derivation
      1. distribute-lft-out--65.2%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} \]
      2. associate-/l*65.2%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    14. Simplified65.2%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    15. Taylor expanded in t around inf 60.5%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \frac{t}{y \cdot z}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification78.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.3 \cdot 10^{-40} \lor \neg \left(y \leq 5.3 \cdot 10^{-133}\right) \land \left(y \leq 1.3 \cdot 10^{-83} \lor \neg \left(y \leq 1.35 \cdot 10^{-26}\right)\right):\\ \;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \end{array} \]

Alternative 5: 74.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ t_2 := x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{if}\;y \leq -1.75 \cdot 10^{-42}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 3.6 \cdot 10^{-130}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 1.9 \cdot 10^{-83}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 3.9 \cdot 10^{-26}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (let* ((t_1 (* 0.3333333333333333 (/ t (* y z))))
        (t_2 (+ x (/ -0.3333333333333333 (/ z y)))))
   (if (<= y -1.75e-42)
     t_2
     (if (<= y 3.6e-130)
       t_1
       (if (<= y 1.9e-83)
         t_2
         (if (<= y 3.9e-26) t_1 (- x (/ (* y 0.3333333333333333) z))))))))
double code(double x, double y, double z, double t) {
	double t_1 = 0.3333333333333333 * (t / (y * z));
	double t_2 = x + (-0.3333333333333333 / (z / y));
	double tmp;
	if (y <= -1.75e-42) {
		tmp = t_2;
	} else if (y <= 3.6e-130) {
		tmp = t_1;
	} else if (y <= 1.9e-83) {
		tmp = t_2;
	} else if (y <= 3.9e-26) {
		tmp = t_1;
	} else {
		tmp = x - ((y * 0.3333333333333333) / z);
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = 0.3333333333333333d0 * (t / (y * z))
    t_2 = x + ((-0.3333333333333333d0) / (z / y))
    if (y <= (-1.75d-42)) then
        tmp = t_2
    else if (y <= 3.6d-130) then
        tmp = t_1
    else if (y <= 1.9d-83) then
        tmp = t_2
    else if (y <= 3.9d-26) then
        tmp = t_1
    else
        tmp = x - ((y * 0.3333333333333333d0) / z)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double t_1 = 0.3333333333333333 * (t / (y * z));
	double t_2 = x + (-0.3333333333333333 / (z / y));
	double tmp;
	if (y <= -1.75e-42) {
		tmp = t_2;
	} else if (y <= 3.6e-130) {
		tmp = t_1;
	} else if (y <= 1.9e-83) {
		tmp = t_2;
	} else if (y <= 3.9e-26) {
		tmp = t_1;
	} else {
		tmp = x - ((y * 0.3333333333333333) / z);
	}
	return tmp;
}
def code(x, y, z, t):
	t_1 = 0.3333333333333333 * (t / (y * z))
	t_2 = x + (-0.3333333333333333 / (z / y))
	tmp = 0
	if y <= -1.75e-42:
		tmp = t_2
	elif y <= 3.6e-130:
		tmp = t_1
	elif y <= 1.9e-83:
		tmp = t_2
	elif y <= 3.9e-26:
		tmp = t_1
	else:
		tmp = x - ((y * 0.3333333333333333) / z)
	return tmp
function code(x, y, z, t)
	t_1 = Float64(0.3333333333333333 * Float64(t / Float64(y * z)))
	t_2 = Float64(x + Float64(-0.3333333333333333 / Float64(z / y)))
	tmp = 0.0
	if (y <= -1.75e-42)
		tmp = t_2;
	elseif (y <= 3.6e-130)
		tmp = t_1;
	elseif (y <= 1.9e-83)
		tmp = t_2;
	elseif (y <= 3.9e-26)
		tmp = t_1;
	else
		tmp = Float64(x - Float64(Float64(y * 0.3333333333333333) / z));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	t_1 = 0.3333333333333333 * (t / (y * z));
	t_2 = x + (-0.3333333333333333 / (z / y));
	tmp = 0.0;
	if (y <= -1.75e-42)
		tmp = t_2;
	elseif (y <= 3.6e-130)
		tmp = t_1;
	elseif (y <= 1.9e-83)
		tmp = t_2;
	elseif (y <= 3.9e-26)
		tmp = t_1;
	else
		tmp = x - ((y * 0.3333333333333333) / z);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.75e-42], t$95$2, If[LessEqual[y, 3.6e-130], t$95$1, If[LessEqual[y, 1.9e-83], t$95$2, If[LessEqual[y, 3.9e-26], t$95$1, N[(x - N[(N[(y * 0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := 0.3333333333333333 \cdot \frac{t}{y \cdot z}\\
t_2 := x + \frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{if}\;y \leq -1.75 \cdot 10^{-42}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;y \leq 3.6 \cdot 10^{-130}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 1.9 \cdot 10^{-83}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;y \leq 3.9 \cdot 10^{-26}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -1.7500000000000001e-42 or 3.6000000000000001e-130 < y < 1.89999999999999988e-83

    1. Initial program 97.8%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-+l-97.8%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      2. sub-neg97.8%

        \[\leadsto \color{blue}{x + \left(-\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      3. sub-neg97.8%

        \[\leadsto x + \left(-\color{blue}{\left(\frac{y}{z \cdot 3} + \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right) \]
      4. distribute-neg-in97.8%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) + \left(-\left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)} \]
      5. unsub-neg97.8%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      6. neg-mul-197.8%

        \[\leadsto x + \left(\color{blue}{-1 \cdot \frac{y}{z \cdot 3}} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      7. associate-*r/97.8%

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

        \[\leadsto x + \left(\color{blue}{\frac{-1}{z \cdot 3} \cdot y} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      9. distribute-neg-frac97.7%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-t}{\left(z \cdot 3\right) \cdot y}}\right) \]
      10. neg-mul-197.7%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\color{blue}{-1 \cdot t}}{\left(z \cdot 3\right) \cdot y}\right) \]
      11. times-frac98.6%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-1}{z \cdot 3} \cdot \frac{t}{y}}\right) \]
      12. distribute-lft-out--98.6%

        \[\leadsto x + \color{blue}{\frac{-1}{z \cdot 3} \cdot \left(y - \frac{t}{y}\right)} \]
      13. *-commutative98.6%

        \[\leadsto x + \frac{-1}{\color{blue}{3 \cdot z}} \cdot \left(y - \frac{t}{y}\right) \]
      14. associate-/r*98.6%

        \[\leadsto x + \color{blue}{\frac{\frac{-1}{3}}{z}} \cdot \left(y - \frac{t}{y}\right) \]
      15. metadata-eval98.6%

        \[\leadsto x + \frac{\color{blue}{-0.3333333333333333}}{z} \cdot \left(y - \frac{t}{y}\right) \]
    3. Simplified98.6%

      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
    4. Step-by-step derivation
      1. *-commutative98.6%

        \[\leadsto x + \color{blue}{\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}} \]
      2. clear-num98.6%

        \[\leadsto x + \left(y - \frac{t}{y}\right) \cdot \color{blue}{\frac{1}{\frac{z}{-0.3333333333333333}}} \]
      3. un-div-inv98.7%

        \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{\frac{z}{-0.3333333333333333}}} \]
      4. div-inv98.7%

        \[\leadsto x + \frac{y - \frac{t}{y}}{\color{blue}{z \cdot \frac{1}{-0.3333333333333333}}} \]
      5. metadata-eval98.7%

        \[\leadsto x + \frac{y - \frac{t}{y}}{z \cdot \color{blue}{-3}} \]
    5. Applied egg-rr98.7%

      \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{z \cdot -3}} \]
    6. Taylor expanded in y around inf 90.5%

      \[\leadsto x + \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
    7. Step-by-step derivation
      1. associate-*r/91.5%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
      2. associate-/l*91.5%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]
    8. Simplified91.5%

      \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]

    if -1.7500000000000001e-42 < y < 3.6000000000000001e-130 or 1.89999999999999988e-83 < y < 3.89999999999999986e-26

    1. Initial program 91.9%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-/r*99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{\frac{t}{z \cdot 3}}{y}} \]
    3. Simplified99.0%

      \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}} \]
    4. Step-by-step derivation
      1. clear-num98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{\frac{z \cdot 3}{t}}}}{y} \]
      2. inv-pow98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(\frac{z \cdot 3}{t}\right)}^{-1}}}{y} \]
      3. *-commutative98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{\color{blue}{3 \cdot z}}{t}\right)}^{-1}}{y} \]
      4. *-un-lft-identity98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{3 \cdot z}{\color{blue}{1 \cdot t}}\right)}^{-1}}{y} \]
      5. times-frac98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\color{blue}{\left(\frac{3}{1} \cdot \frac{z}{t}\right)}}^{-1}}{y} \]
      6. metadata-eval98.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\color{blue}{3} \cdot \frac{z}{t}\right)}^{-1}}{y} \]
    5. Applied egg-rr98.9%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(3 \cdot \frac{z}{t}\right)}^{-1}}}{y} \]
    6. Step-by-step derivation
      1. unpow-198.9%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    7. Simplified98.9%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    8. Step-by-step derivation
      1. associate-+l-98.9%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{1}{3 \cdot \frac{z}{t}}}{y}\right)} \]
      2. associate-/r*98.9%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\color{blue}{\frac{\frac{1}{3}}{\frac{z}{t}}}}{y}\right) \]
      3. metadata-eval98.9%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\frac{\color{blue}{0.3333333333333333}}{\frac{z}{t}}}{y}\right) \]
    9. Applied egg-rr98.9%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}\right)} \]
    10. Step-by-step derivation
      1. associate--r-98.9%

        \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}} \]
      2. +-commutative98.9%

        \[\leadsto \color{blue}{\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + \left(x - \frac{y}{z \cdot 3}\right)} \]
      3. associate-+r-98.9%

        \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + x\right) - \frac{y}{z \cdot 3}} \]
      4. associate-/r/98.9%

        \[\leadsto \left(\frac{\color{blue}{\frac{0.3333333333333333}{z} \cdot t}}{y} + x\right) - \frac{y}{z \cdot 3} \]
      5. associate-/r*98.9%

        \[\leadsto \left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \color{blue}{\frac{\frac{y}{z}}{3}} \]
    11. Simplified98.9%

      \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \frac{\frac{y}{z}}{3}} \]
    12. Taylor expanded in z around 0 65.2%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} \]
    13. Step-by-step derivation
      1. distribute-lft-out--65.2%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} \]
      2. associate-/l*65.2%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    14. Simplified65.2%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    15. Taylor expanded in t around inf 60.5%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \frac{t}{y \cdot z}} \]

    if 3.89999999999999986e-26 < y

    1. Initial program 98.3%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Taylor expanded in x around 0 98.2%

      \[\leadsto \color{blue}{\left(0.3333333333333333 \cdot \frac{t}{y \cdot z} + x\right) - 0.3333333333333333 \cdot \frac{y}{z}} \]
    3. Step-by-step derivation
      1. cancel-sign-sub-inv98.2%

        \[\leadsto \color{blue}{\left(0.3333333333333333 \cdot \frac{t}{y \cdot z} + x\right) + \left(-0.3333333333333333\right) \cdot \frac{y}{z}} \]
      2. metadata-eval98.2%

        \[\leadsto \left(0.3333333333333333 \cdot \frac{t}{y \cdot z} + x\right) + \color{blue}{-0.3333333333333333} \cdot \frac{y}{z} \]
      3. +-commutative98.2%

        \[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{y}{z} + \left(0.3333333333333333 \cdot \frac{t}{y \cdot z} + x\right)} \]
      4. associate-+r+98.2%

        \[\leadsto \color{blue}{\left(-0.3333333333333333 \cdot \frac{y}{z} + 0.3333333333333333 \cdot \frac{t}{y \cdot z}\right) + x} \]
      5. +-commutative98.2%

        \[\leadsto \color{blue}{\left(0.3333333333333333 \cdot \frac{t}{y \cdot z} + -0.3333333333333333 \cdot \frac{y}{z}\right)} + x \]
      6. associate-/r*98.2%

        \[\leadsto \left(0.3333333333333333 \cdot \color{blue}{\frac{\frac{t}{y}}{z}} + -0.3333333333333333 \cdot \frac{y}{z}\right) + x \]
      7. associate-*r/98.2%

        \[\leadsto \left(\color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y}}{z}} + -0.3333333333333333 \cdot \frac{y}{z}\right) + x \]
      8. metadata-eval98.2%

        \[\leadsto \left(\frac{0.3333333333333333 \cdot \frac{t}{y}}{z} + \color{blue}{\left(-0.3333333333333333\right)} \cdot \frac{y}{z}\right) + x \]
      9. cancel-sign-sub-inv98.2%

        \[\leadsto \color{blue}{\left(\frac{0.3333333333333333 \cdot \frac{t}{y}}{z} - 0.3333333333333333 \cdot \frac{y}{z}\right)} + x \]
      10. associate-*r/98.2%

        \[\leadsto \left(\frac{0.3333333333333333 \cdot \frac{t}{y}}{z} - \color{blue}{\frac{0.3333333333333333 \cdot y}{z}}\right) + x \]
      11. div-sub99.8%

        \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} + x \]
      12. distribute-lft-out--99.8%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} + x \]
      13. metadata-eval99.8%

        \[\leadsto \frac{\color{blue}{\left(-1 \cdot -0.3333333333333333\right)} \cdot \left(\frac{t}{y} - y\right)}{z} + x \]
      14. associate-*r*99.8%

        \[\leadsto \frac{\color{blue}{-1 \cdot \left(-0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)\right)}}{z} + x \]
      15. distribute-lft-out--99.8%

        \[\leadsto \frac{-1 \cdot \color{blue}{\left(-0.3333333333333333 \cdot \frac{t}{y} - -0.3333333333333333 \cdot y\right)}}{z} + x \]
      16. associate-*r/99.8%

        \[\leadsto \color{blue}{-1 \cdot \frac{-0.3333333333333333 \cdot \frac{t}{y} - -0.3333333333333333 \cdot y}{z}} + x \]
      17. +-commutative99.8%

        \[\leadsto \color{blue}{x + -1 \cdot \frac{-0.3333333333333333 \cdot \frac{t}{y} - -0.3333333333333333 \cdot y}{z}} \]
    4. Simplified99.8%

      \[\leadsto \color{blue}{x - \frac{-0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}{z}} \]
    5. Taylor expanded in t around 0 91.0%

      \[\leadsto x - \frac{\color{blue}{0.3333333333333333 \cdot y}}{z} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification78.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.75 \cdot 10^{-42}:\\ \;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{elif}\;y \leq 3.6 \cdot 10^{-130}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \mathbf{elif}\;y \leq 1.9 \cdot 10^{-83}:\\ \;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{elif}\;y \leq 3.9 \cdot 10^{-26}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y \cdot 0.3333333333333333}{z}\\ \end{array} \]

Alternative 6: 88.4% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.06 \cdot 10^{-27} \lor \neg \left(y \leq 3.2 \cdot 10^{+36}\right):\\ \;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + t \cdot \frac{0.3333333333333333}{y \cdot z}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (or (<= y -1.06e-27) (not (<= y 3.2e+36)))
   (+ x (/ -0.3333333333333333 (/ z y)))
   (+ x (* t (/ 0.3333333333333333 (* y z))))))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((y <= -1.06e-27) || !(y <= 3.2e+36)) {
		tmp = x + (-0.3333333333333333 / (z / y));
	} else {
		tmp = x + (t * (0.3333333333333333 / (y * 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) :: tmp
    if ((y <= (-1.06d-27)) .or. (.not. (y <= 3.2d+36))) then
        tmp = x + ((-0.3333333333333333d0) / (z / y))
    else
        tmp = x + (t * (0.3333333333333333d0 / (y * z)))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if ((y <= -1.06e-27) || !(y <= 3.2e+36)) {
		tmp = x + (-0.3333333333333333 / (z / y));
	} else {
		tmp = x + (t * (0.3333333333333333 / (y * z)));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if (y <= -1.06e-27) or not (y <= 3.2e+36):
		tmp = x + (-0.3333333333333333 / (z / y))
	else:
		tmp = x + (t * (0.3333333333333333 / (y * z)))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if ((y <= -1.06e-27) || !(y <= 3.2e+36))
		tmp = Float64(x + Float64(-0.3333333333333333 / Float64(z / y)));
	else
		tmp = Float64(x + Float64(t * Float64(0.3333333333333333 / Float64(y * z))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if ((y <= -1.06e-27) || ~((y <= 3.2e+36)))
		tmp = x + (-0.3333333333333333 / (z / y));
	else
		tmp = x + (t * (0.3333333333333333 / (y * z)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.06e-27], N[Not[LessEqual[y, 3.2e+36]], $MachinePrecision]], N[(x + N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(0.3333333333333333 / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.06 \cdot 10^{-27} \lor \neg \left(y \leq 3.2 \cdot 10^{+36}\right):\\
\;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\

\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{0.3333333333333333}{y \cdot z}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.05999999999999998e-27 or 3.1999999999999999e36 < y

    1. Initial program 99.0%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-+l-99.0%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      2. sub-neg99.0%

        \[\leadsto \color{blue}{x + \left(-\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      3. sub-neg99.0%

        \[\leadsto x + \left(-\color{blue}{\left(\frac{y}{z \cdot 3} + \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right) \]
      4. distribute-neg-in99.0%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) + \left(-\left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)} \]
      5. unsub-neg99.0%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      6. neg-mul-199.0%

        \[\leadsto x + \left(\color{blue}{-1 \cdot \frac{y}{z \cdot 3}} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      7. associate-*r/99.0%

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

        \[\leadsto x + \left(\color{blue}{\frac{-1}{z \cdot 3} \cdot y} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      9. distribute-neg-frac98.9%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-t}{\left(z \cdot 3\right) \cdot y}}\right) \]
      10. neg-mul-198.9%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\color{blue}{-1 \cdot t}}{\left(z \cdot 3\right) \cdot y}\right) \]
      11. times-frac98.9%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-1}{z \cdot 3} \cdot \frac{t}{y}}\right) \]
      12. distribute-lft-out--99.7%

        \[\leadsto x + \color{blue}{\frac{-1}{z \cdot 3} \cdot \left(y - \frac{t}{y}\right)} \]
      13. *-commutative99.7%

        \[\leadsto x + \frac{-1}{\color{blue}{3 \cdot z}} \cdot \left(y - \frac{t}{y}\right) \]
      14. associate-/r*99.7%

        \[\leadsto x + \color{blue}{\frac{\frac{-1}{3}}{z}} \cdot \left(y - \frac{t}{y}\right) \]
      15. metadata-eval99.7%

        \[\leadsto x + \frac{\color{blue}{-0.3333333333333333}}{z} \cdot \left(y - \frac{t}{y}\right) \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
    4. Step-by-step derivation
      1. *-commutative99.7%

        \[\leadsto x + \color{blue}{\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}} \]
      2. clear-num99.7%

        \[\leadsto x + \left(y - \frac{t}{y}\right) \cdot \color{blue}{\frac{1}{\frac{z}{-0.3333333333333333}}} \]
      3. un-div-inv99.8%

        \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{\frac{z}{-0.3333333333333333}}} \]
      4. div-inv99.8%

        \[\leadsto x + \frac{y - \frac{t}{y}}{\color{blue}{z \cdot \frac{1}{-0.3333333333333333}}} \]
      5. metadata-eval99.8%

        \[\leadsto x + \frac{y - \frac{t}{y}}{z \cdot \color{blue}{-3}} \]
    5. Applied egg-rr99.8%

      \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{z \cdot -3}} \]
    6. Taylor expanded in y around inf 94.3%

      \[\leadsto x + \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
    7. Step-by-step derivation
      1. associate-*r/95.0%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
      2. associate-/l*95.0%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]
    8. Simplified95.0%

      \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]

    if -1.05999999999999998e-27 < y < 3.1999999999999999e36

    1. Initial program 92.1%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-+l-92.1%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      2. sub-neg92.1%

        \[\leadsto \color{blue}{x + \left(-\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      3. sub-neg92.1%

        \[\leadsto x + \left(-\color{blue}{\left(\frac{y}{z \cdot 3} + \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right) \]
      4. distribute-neg-in92.1%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) + \left(-\left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)} \]
      5. unsub-neg92.1%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      6. neg-mul-192.1%

        \[\leadsto x + \left(\color{blue}{-1 \cdot \frac{y}{z \cdot 3}} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      7. associate-*r/92.1%

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

        \[\leadsto x + \left(\color{blue}{\frac{-1}{z \cdot 3} \cdot y} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      9. distribute-neg-frac92.1%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-t}{\left(z \cdot 3\right) \cdot y}}\right) \]
      10. neg-mul-192.1%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\color{blue}{-1 \cdot t}}{\left(z \cdot 3\right) \cdot y}\right) \]
      11. times-frac96.2%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-1}{z \cdot 3} \cdot \frac{t}{y}}\right) \]
      12. distribute-lft-out--96.2%

        \[\leadsto x + \color{blue}{\frac{-1}{z \cdot 3} \cdot \left(y - \frac{t}{y}\right)} \]
      13. *-commutative96.2%

        \[\leadsto x + \frac{-1}{\color{blue}{3 \cdot z}} \cdot \left(y - \frac{t}{y}\right) \]
      14. associate-/r*96.2%

        \[\leadsto x + \color{blue}{\frac{\frac{-1}{3}}{z}} \cdot \left(y - \frac{t}{y}\right) \]
      15. metadata-eval96.2%

        \[\leadsto x + \frac{\color{blue}{-0.3333333333333333}}{z} \cdot \left(y - \frac{t}{y}\right) \]
    3. Simplified96.2%

      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
    4. Taylor expanded in y around 0 88.9%

      \[\leadsto x + \color{blue}{0.3333333333333333 \cdot \frac{t}{y \cdot z}} \]
    5. Step-by-step derivation
      1. metadata-eval88.9%

        \[\leadsto x + \color{blue}{\frac{1}{3}} \cdot \frac{t}{y \cdot z} \]
      2. times-frac89.0%

        \[\leadsto x + \color{blue}{\frac{1 \cdot t}{3 \cdot \left(y \cdot z\right)}} \]
      3. associate-*r*88.9%

        \[\leadsto x + \frac{1 \cdot t}{\color{blue}{\left(3 \cdot y\right) \cdot z}} \]
      4. *-commutative88.9%

        \[\leadsto x + \frac{1 \cdot t}{\color{blue}{z \cdot \left(3 \cdot y\right)}} \]
      5. *-lft-identity88.9%

        \[\leadsto x + \frac{\color{blue}{t}}{z \cdot \left(3 \cdot y\right)} \]
      6. associate-/r*95.9%

        \[\leadsto x + \color{blue}{\frac{\frac{t}{z}}{3 \cdot y}} \]
      7. *-commutative95.9%

        \[\leadsto x + \frac{\frac{t}{z}}{\color{blue}{y \cdot 3}} \]
    6. Simplified95.9%

      \[\leadsto x + \color{blue}{\frac{\frac{t}{z}}{y \cdot 3}} \]
    7. Taylor expanded in t around 0 88.9%

      \[\leadsto x + \color{blue}{0.3333333333333333 \cdot \frac{t}{y \cdot z}} \]
    8. Step-by-step derivation
      1. associate-*r/89.0%

        \[\leadsto x + \color{blue}{\frac{0.3333333333333333 \cdot t}{y \cdot z}} \]
      2. *-commutative89.0%

        \[\leadsto x + \frac{\color{blue}{t \cdot 0.3333333333333333}}{y \cdot z} \]
      3. associate-*r/87.9%

        \[\leadsto x + \color{blue}{t \cdot \frac{0.3333333333333333}{y \cdot z}} \]
    9. Simplified87.9%

      \[\leadsto x + \color{blue}{t \cdot \frac{0.3333333333333333}{y \cdot z}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification91.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.06 \cdot 10^{-27} \lor \neg \left(y \leq 3.2 \cdot 10^{+36}\right):\\ \;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + t \cdot \frac{0.3333333333333333}{y \cdot z}\\ \end{array} \]

Alternative 7: 91.2% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.6 \cdot 10^{-30} \lor \neg \left(y \leq 3.9 \cdot 10^{+36}\right):\\ \;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{\frac{t}{z}}{y \cdot 3}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (or (<= y -3.6e-30) (not (<= y 3.9e+36)))
   (+ x (/ -0.3333333333333333 (/ z y)))
   (+ x (/ (/ t z) (* y 3.0)))))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((y <= -3.6e-30) || !(y <= 3.9e+36)) {
		tmp = x + (-0.3333333333333333 / (z / y));
	} else {
		tmp = x + ((t / z) / (y * 3.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) :: tmp
    if ((y <= (-3.6d-30)) .or. (.not. (y <= 3.9d+36))) then
        tmp = x + ((-0.3333333333333333d0) / (z / y))
    else
        tmp = x + ((t / z) / (y * 3.0d0))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if ((y <= -3.6e-30) || !(y <= 3.9e+36)) {
		tmp = x + (-0.3333333333333333 / (z / y));
	} else {
		tmp = x + ((t / z) / (y * 3.0));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if (y <= -3.6e-30) or not (y <= 3.9e+36):
		tmp = x + (-0.3333333333333333 / (z / y))
	else:
		tmp = x + ((t / z) / (y * 3.0))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if ((y <= -3.6e-30) || !(y <= 3.9e+36))
		tmp = Float64(x + Float64(-0.3333333333333333 / Float64(z / y)));
	else
		tmp = Float64(x + Float64(Float64(t / z) / Float64(y * 3.0)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if ((y <= -3.6e-30) || ~((y <= 3.9e+36)))
		tmp = x + (-0.3333333333333333 / (z / y));
	else
		tmp = x + ((t / z) / (y * 3.0));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -3.6e-30], N[Not[LessEqual[y, 3.9e+36]], $MachinePrecision]], N[(x + N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t / z), $MachinePrecision] / N[(y * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.6 \cdot 10^{-30} \lor \neg \left(y \leq 3.9 \cdot 10^{+36}\right):\\
\;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{\frac{t}{z}}{y \cdot 3}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -3.6000000000000003e-30 or 3.90000000000000021e36 < y

    1. Initial program 99.0%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-+l-99.0%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      2. sub-neg99.0%

        \[\leadsto \color{blue}{x + \left(-\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      3. sub-neg99.0%

        \[\leadsto x + \left(-\color{blue}{\left(\frac{y}{z \cdot 3} + \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right) \]
      4. distribute-neg-in99.0%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) + \left(-\left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)} \]
      5. unsub-neg99.0%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      6. neg-mul-199.0%

        \[\leadsto x + \left(\color{blue}{-1 \cdot \frac{y}{z \cdot 3}} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      7. associate-*r/99.0%

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

        \[\leadsto x + \left(\color{blue}{\frac{-1}{z \cdot 3} \cdot y} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      9. distribute-neg-frac98.9%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-t}{\left(z \cdot 3\right) \cdot y}}\right) \]
      10. neg-mul-198.9%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\color{blue}{-1 \cdot t}}{\left(z \cdot 3\right) \cdot y}\right) \]
      11. times-frac98.9%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-1}{z \cdot 3} \cdot \frac{t}{y}}\right) \]
      12. distribute-lft-out--99.7%

        \[\leadsto x + \color{blue}{\frac{-1}{z \cdot 3} \cdot \left(y - \frac{t}{y}\right)} \]
      13. *-commutative99.7%

        \[\leadsto x + \frac{-1}{\color{blue}{3 \cdot z}} \cdot \left(y - \frac{t}{y}\right) \]
      14. associate-/r*99.7%

        \[\leadsto x + \color{blue}{\frac{\frac{-1}{3}}{z}} \cdot \left(y - \frac{t}{y}\right) \]
      15. metadata-eval99.7%

        \[\leadsto x + \frac{\color{blue}{-0.3333333333333333}}{z} \cdot \left(y - \frac{t}{y}\right) \]
    3. Simplified99.7%

      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
    4. Step-by-step derivation
      1. *-commutative99.7%

        \[\leadsto x + \color{blue}{\left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}} \]
      2. clear-num99.7%

        \[\leadsto x + \left(y - \frac{t}{y}\right) \cdot \color{blue}{\frac{1}{\frac{z}{-0.3333333333333333}}} \]
      3. un-div-inv99.8%

        \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{\frac{z}{-0.3333333333333333}}} \]
      4. div-inv99.8%

        \[\leadsto x + \frac{y - \frac{t}{y}}{\color{blue}{z \cdot \frac{1}{-0.3333333333333333}}} \]
      5. metadata-eval99.8%

        \[\leadsto x + \frac{y - \frac{t}{y}}{z \cdot \color{blue}{-3}} \]
    5. Applied egg-rr99.8%

      \[\leadsto x + \color{blue}{\frac{y - \frac{t}{y}}{z \cdot -3}} \]
    6. Taylor expanded in y around inf 94.3%

      \[\leadsto x + \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
    7. Step-by-step derivation
      1. associate-*r/95.0%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333 \cdot y}{z}} \]
      2. associate-/l*95.0%

        \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]
    8. Simplified95.0%

      \[\leadsto x + \color{blue}{\frac{-0.3333333333333333}{\frac{z}{y}}} \]

    if -3.6000000000000003e-30 < y < 3.90000000000000021e36

    1. Initial program 92.1%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-+l-92.1%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
      2. sub-neg92.1%

        \[\leadsto \color{blue}{x + \left(-\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      3. sub-neg92.1%

        \[\leadsto x + \left(-\color{blue}{\left(\frac{y}{z \cdot 3} + \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right) \]
      4. distribute-neg-in92.1%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) + \left(-\left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)} \]
      5. unsub-neg92.1%

        \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
      6. neg-mul-192.1%

        \[\leadsto x + \left(\color{blue}{-1 \cdot \frac{y}{z \cdot 3}} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      7. associate-*r/92.1%

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

        \[\leadsto x + \left(\color{blue}{\frac{-1}{z \cdot 3} \cdot y} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
      9. distribute-neg-frac92.1%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-t}{\left(z \cdot 3\right) \cdot y}}\right) \]
      10. neg-mul-192.1%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\color{blue}{-1 \cdot t}}{\left(z \cdot 3\right) \cdot y}\right) \]
      11. times-frac96.2%

        \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-1}{z \cdot 3} \cdot \frac{t}{y}}\right) \]
      12. distribute-lft-out--96.2%

        \[\leadsto x + \color{blue}{\frac{-1}{z \cdot 3} \cdot \left(y - \frac{t}{y}\right)} \]
      13. *-commutative96.2%

        \[\leadsto x + \frac{-1}{\color{blue}{3 \cdot z}} \cdot \left(y - \frac{t}{y}\right) \]
      14. associate-/r*96.2%

        \[\leadsto x + \color{blue}{\frac{\frac{-1}{3}}{z}} \cdot \left(y - \frac{t}{y}\right) \]
      15. metadata-eval96.2%

        \[\leadsto x + \frac{\color{blue}{-0.3333333333333333}}{z} \cdot \left(y - \frac{t}{y}\right) \]
    3. Simplified96.2%

      \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
    4. Taylor expanded in y around 0 88.9%

      \[\leadsto x + \color{blue}{0.3333333333333333 \cdot \frac{t}{y \cdot z}} \]
    5. Step-by-step derivation
      1. metadata-eval88.9%

        \[\leadsto x + \color{blue}{\frac{1}{3}} \cdot \frac{t}{y \cdot z} \]
      2. times-frac89.0%

        \[\leadsto x + \color{blue}{\frac{1 \cdot t}{3 \cdot \left(y \cdot z\right)}} \]
      3. associate-*r*88.9%

        \[\leadsto x + \frac{1 \cdot t}{\color{blue}{\left(3 \cdot y\right) \cdot z}} \]
      4. *-commutative88.9%

        \[\leadsto x + \frac{1 \cdot t}{\color{blue}{z \cdot \left(3 \cdot y\right)}} \]
      5. *-lft-identity88.9%

        \[\leadsto x + \frac{\color{blue}{t}}{z \cdot \left(3 \cdot y\right)} \]
      6. associate-/r*95.9%

        \[\leadsto x + \color{blue}{\frac{\frac{t}{z}}{3 \cdot y}} \]
      7. *-commutative95.9%

        \[\leadsto x + \frac{\frac{t}{z}}{\color{blue}{y \cdot 3}} \]
    6. Simplified95.9%

      \[\leadsto x + \color{blue}{\frac{\frac{t}{z}}{y \cdot 3}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification95.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.6 \cdot 10^{-30} \lor \neg \left(y \leq 3.9 \cdot 10^{+36}\right):\\ \;\;\;\;x + \frac{-0.3333333333333333}{\frac{z}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{\frac{t}{z}}{y \cdot 3}\\ \end{array} \]

Alternative 8: 60.9% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.7 \cdot 10^{-33}:\\ \;\;\;\;\frac{0.3333333333333333}{\frac{-z}{y}}\\ \mathbf{elif}\;y \leq 8 \cdot 10^{-27}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \mathbf{elif}\;y \leq 4 \cdot 10^{+44}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= y -2.7e-33)
   (/ 0.3333333333333333 (/ (- z) y))
   (if (<= y 8e-27)
     (* 0.3333333333333333 (/ t (* y z)))
     (if (<= y 4e+44) x (/ (* y -0.3333333333333333) z)))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -2.7e-33) {
		tmp = 0.3333333333333333 / (-z / y);
	} else if (y <= 8e-27) {
		tmp = 0.3333333333333333 * (t / (y * z));
	} else if (y <= 4e+44) {
		tmp = x;
	} else {
		tmp = (y * -0.3333333333333333) / 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) :: tmp
    if (y <= (-2.7d-33)) then
        tmp = 0.3333333333333333d0 / (-z / y)
    else if (y <= 8d-27) then
        tmp = 0.3333333333333333d0 * (t / (y * z))
    else if (y <= 4d+44) then
        tmp = x
    else
        tmp = (y * (-0.3333333333333333d0)) / z
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= -2.7e-33) {
		tmp = 0.3333333333333333 / (-z / y);
	} else if (y <= 8e-27) {
		tmp = 0.3333333333333333 * (t / (y * z));
	} else if (y <= 4e+44) {
		tmp = x;
	} else {
		tmp = (y * -0.3333333333333333) / z;
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= -2.7e-33:
		tmp = 0.3333333333333333 / (-z / y)
	elif y <= 8e-27:
		tmp = 0.3333333333333333 * (t / (y * z))
	elif y <= 4e+44:
		tmp = x
	else:
		tmp = (y * -0.3333333333333333) / z
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= -2.7e-33)
		tmp = Float64(0.3333333333333333 / Float64(Float64(-z) / y));
	elseif (y <= 8e-27)
		tmp = Float64(0.3333333333333333 * Float64(t / Float64(y * z)));
	elseif (y <= 4e+44)
		tmp = x;
	else
		tmp = Float64(Float64(y * -0.3333333333333333) / z);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= -2.7e-33)
		tmp = 0.3333333333333333 / (-z / y);
	elseif (y <= 8e-27)
		tmp = 0.3333333333333333 * (t / (y * z));
	elseif (y <= 4e+44)
		tmp = x;
	else
		tmp = (y * -0.3333333333333333) / z;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.7e-33], N[(0.3333333333333333 / N[((-z) / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e-27], N[(0.3333333333333333 * N[(t / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+44], x, N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{-33}:\\
\;\;\;\;\frac{0.3333333333333333}{\frac{-z}{y}}\\

\mathbf{elif}\;y \leq 8 \cdot 10^{-27}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\

\mathbf{elif}\;y \leq 4 \cdot 10^{+44}:\\
\;\;\;\;x\\

\mathbf{else}:\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\


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

    1. Initial program 99.8%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-/r*98.4%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{\frac{t}{z \cdot 3}}{y}} \]
    3. Simplified98.4%

      \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}} \]
    4. Step-by-step derivation
      1. clear-num98.4%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{\frac{z \cdot 3}{t}}}}{y} \]
      2. inv-pow98.4%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(\frac{z \cdot 3}{t}\right)}^{-1}}}{y} \]
      3. *-commutative98.4%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{\color{blue}{3 \cdot z}}{t}\right)}^{-1}}{y} \]
      4. *-un-lft-identity98.4%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{3 \cdot z}{\color{blue}{1 \cdot t}}\right)}^{-1}}{y} \]
      5. times-frac98.4%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\color{blue}{\left(\frac{3}{1} \cdot \frac{z}{t}\right)}}^{-1}}{y} \]
      6. metadata-eval98.4%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\color{blue}{3} \cdot \frac{z}{t}\right)}^{-1}}{y} \]
    5. Applied egg-rr98.4%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(3 \cdot \frac{z}{t}\right)}^{-1}}}{y} \]
    6. Step-by-step derivation
      1. unpow-198.4%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    7. Simplified98.4%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    8. Step-by-step derivation
      1. associate-+l-98.4%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{1}{3 \cdot \frac{z}{t}}}{y}\right)} \]
      2. associate-/r*98.4%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\color{blue}{\frac{\frac{1}{3}}{\frac{z}{t}}}}{y}\right) \]
      3. metadata-eval98.4%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\frac{\color{blue}{0.3333333333333333}}{\frac{z}{t}}}{y}\right) \]
    9. Applied egg-rr98.4%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}\right)} \]
    10. Step-by-step derivation
      1. associate--r-98.4%

        \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}} \]
      2. +-commutative98.4%

        \[\leadsto \color{blue}{\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + \left(x - \frac{y}{z \cdot 3}\right)} \]
      3. associate-+r-98.4%

        \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + x\right) - \frac{y}{z \cdot 3}} \]
      4. associate-/r/98.4%

        \[\leadsto \left(\frac{\color{blue}{\frac{0.3333333333333333}{z} \cdot t}}{y} + x\right) - \frac{y}{z \cdot 3} \]
      5. associate-/r*97.2%

        \[\leadsto \left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \color{blue}{\frac{\frac{y}{z}}{3}} \]
    11. Simplified97.2%

      \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \frac{\frac{y}{z}}{3}} \]
    12. Taylor expanded in z around 0 77.5%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} \]
    13. Step-by-step derivation
      1. distribute-lft-out--77.5%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} \]
      2. associate-/l*77.5%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    14. Simplified77.5%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    15. Taylor expanded in t around 0 71.9%

      \[\leadsto \frac{0.3333333333333333}{\color{blue}{-1 \cdot \frac{z}{y}}} \]
    16. Step-by-step derivation
      1. associate-*r/71.9%

        \[\leadsto \frac{0.3333333333333333}{\color{blue}{\frac{-1 \cdot z}{y}}} \]
      2. neg-mul-171.9%

        \[\leadsto \frac{0.3333333333333333}{\frac{\color{blue}{-z}}{y}} \]
    17. Simplified71.9%

      \[\leadsto \frac{0.3333333333333333}{\color{blue}{\frac{-z}{y}}} \]

    if -2.7000000000000001e-33 < y < 8.0000000000000003e-27

    1. Initial program 91.3%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-/r*99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{\frac{t}{z \cdot 3}}{y}} \]
    3. Simplified99.0%

      \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}} \]
    4. Step-by-step derivation
      1. clear-num99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{\frac{z \cdot 3}{t}}}}{y} \]
      2. inv-pow99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(\frac{z \cdot 3}{t}\right)}^{-1}}}{y} \]
      3. *-commutative99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{\color{blue}{3 \cdot z}}{t}\right)}^{-1}}{y} \]
      4. *-un-lft-identity99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{3 \cdot z}{\color{blue}{1 \cdot t}}\right)}^{-1}}{y} \]
      5. times-frac99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\color{blue}{\left(\frac{3}{1} \cdot \frac{z}{t}\right)}}^{-1}}{y} \]
      6. metadata-eval99.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\color{blue}{3} \cdot \frac{z}{t}\right)}^{-1}}{y} \]
    5. Applied egg-rr99.0%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(3 \cdot \frac{z}{t}\right)}^{-1}}}{y} \]
    6. Step-by-step derivation
      1. unpow-199.0%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    7. Simplified99.0%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    8. Step-by-step derivation
      1. associate-+l-99.0%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{1}{3 \cdot \frac{z}{t}}}{y}\right)} \]
      2. associate-/r*99.0%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\color{blue}{\frac{\frac{1}{3}}{\frac{z}{t}}}}{y}\right) \]
      3. metadata-eval99.0%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\frac{\color{blue}{0.3333333333333333}}{\frac{z}{t}}}{y}\right) \]
    9. Applied egg-rr99.0%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}\right)} \]
    10. Step-by-step derivation
      1. associate--r-99.0%

        \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}} \]
      2. +-commutative99.0%

        \[\leadsto \color{blue}{\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + \left(x - \frac{y}{z \cdot 3}\right)} \]
      3. associate-+r-99.0%

        \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + x\right) - \frac{y}{z \cdot 3}} \]
      4. associate-/r/99.0%

        \[\leadsto \left(\frac{\color{blue}{\frac{0.3333333333333333}{z} \cdot t}}{y} + x\right) - \frac{y}{z \cdot 3} \]
      5. associate-/r*99.0%

        \[\leadsto \left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \color{blue}{\frac{\frac{y}{z}}{3}} \]
    11. Simplified99.0%

      \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \frac{\frac{y}{z}}{3}} \]
    12. Taylor expanded in z around 0 62.2%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} \]
    13. Step-by-step derivation
      1. distribute-lft-out--62.2%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} \]
      2. associate-/l*62.1%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    14. Simplified62.1%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    15. Taylor expanded in t around inf 56.6%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \frac{t}{y \cdot z}} \]

    if 8.0000000000000003e-27 < y < 4.0000000000000004e44

    1. Initial program 99.8%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Taylor expanded in x around inf 63.1%

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

    if 4.0000000000000004e44 < y

    1. Initial program 97.9%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-/r*90.7%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{\frac{t}{z \cdot 3}}{y}} \]
    3. Simplified90.7%

      \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}} \]
    4. Step-by-step derivation
      1. clear-num90.7%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{\frac{z \cdot 3}{t}}}}{y} \]
      2. inv-pow90.7%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(\frac{z \cdot 3}{t}\right)}^{-1}}}{y} \]
      3. *-commutative90.7%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{\color{blue}{3 \cdot z}}{t}\right)}^{-1}}{y} \]
      4. *-un-lft-identity90.7%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{3 \cdot z}{\color{blue}{1 \cdot t}}\right)}^{-1}}{y} \]
      5. times-frac90.7%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\color{blue}{\left(\frac{3}{1} \cdot \frac{z}{t}\right)}}^{-1}}{y} \]
      6. metadata-eval90.7%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\color{blue}{3} \cdot \frac{z}{t}\right)}^{-1}}{y} \]
    5. Applied egg-rr90.7%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(3 \cdot \frac{z}{t}\right)}^{-1}}}{y} \]
    6. Step-by-step derivation
      1. unpow-190.7%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    7. Simplified90.7%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    8. Step-by-step derivation
      1. associate-+l-90.7%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{1}{3 \cdot \frac{z}{t}}}{y}\right)} \]
      2. associate-/r*90.7%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\color{blue}{\frac{\frac{1}{3}}{\frac{z}{t}}}}{y}\right) \]
      3. metadata-eval90.7%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\frac{\color{blue}{0.3333333333333333}}{\frac{z}{t}}}{y}\right) \]
    9. Applied egg-rr90.7%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}\right)} \]
    10. Step-by-step derivation
      1. associate--r-90.7%

        \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}} \]
      2. +-commutative90.7%

        \[\leadsto \color{blue}{\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + \left(x - \frac{y}{z \cdot 3}\right)} \]
      3. associate-+r-90.7%

        \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + x\right) - \frac{y}{z \cdot 3}} \]
      4. associate-/r/90.7%

        \[\leadsto \left(\frac{\color{blue}{\frac{0.3333333333333333}{z} \cdot t}}{y} + x\right) - \frac{y}{z \cdot 3} \]
      5. associate-/r*90.7%

        \[\leadsto \left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \color{blue}{\frac{\frac{y}{z}}{3}} \]
    11. Simplified90.7%

      \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \frac{\frac{y}{z}}{3}} \]
    12. Taylor expanded in z around 0 72.8%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} \]
    13. Step-by-step derivation
      1. distribute-lft-out--72.8%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} \]
      2. associate-/l*72.7%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    14. Simplified72.7%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    15. Taylor expanded in t around 0 68.9%

      \[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
    16. Step-by-step derivation
      1. *-commutative68.9%

        \[\leadsto \color{blue}{\frac{y}{z} \cdot -0.3333333333333333} \]
      2. associate-*l/69.0%

        \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
    17. Simplified69.0%

      \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification63.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.7 \cdot 10^{-33}:\\ \;\;\;\;\frac{0.3333333333333333}{\frac{-z}{y}}\\ \mathbf{elif}\;y \leq 8 \cdot 10^{-27}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{t}{y \cdot z}\\ \mathbf{elif}\;y \leq 4 \cdot 10^{+44}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \end{array} \]

Alternative 9: 95.5% accurate, 1.4× speedup?

\[\begin{array}{l} \\ x + -0.3333333333333333 \cdot \frac{y - \frac{t}{y}}{z} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (+ x (* -0.3333333333333333 (/ (- y (/ t y)) z))))
double code(double x, double y, double z, double t) {
	return x + (-0.3333333333333333 * ((y - (t / y)) / z));
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = x + ((-0.3333333333333333d0) * ((y - (t / y)) / z))
end function
public static double code(double x, double y, double z, double t) {
	return x + (-0.3333333333333333 * ((y - (t / y)) / z));
}
def code(x, y, z, t):
	return x + (-0.3333333333333333 * ((y - (t / y)) / z))
function code(x, y, z, t)
	return Float64(x + Float64(-0.3333333333333333 * Float64(Float64(y - Float64(t / y)) / z)))
end
function tmp = code(x, y, z, t)
	tmp = x + (-0.3333333333333333 * ((y - (t / y)) / z));
end
code[x_, y_, z_, t_] := N[(x + N[(-0.3333333333333333 * N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + -0.3333333333333333 \cdot \frac{y - \frac{t}{y}}{z}
\end{array}
Derivation
  1. Initial program 95.5%

    \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
  2. Step-by-step derivation
    1. associate-+l-95.5%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
    2. sub-neg95.5%

      \[\leadsto \color{blue}{x + \left(-\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
    3. sub-neg95.5%

      \[\leadsto x + \left(-\color{blue}{\left(\frac{y}{z \cdot 3} + \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right) \]
    4. distribute-neg-in95.5%

      \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) + \left(-\left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)} \]
    5. unsub-neg95.5%

      \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
    6. neg-mul-195.5%

      \[\leadsto x + \left(\color{blue}{-1 \cdot \frac{y}{z \cdot 3}} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
    7. associate-*r/95.5%

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

      \[\leadsto x + \left(\color{blue}{\frac{-1}{z \cdot 3} \cdot y} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
    9. distribute-neg-frac95.4%

      \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-t}{\left(z \cdot 3\right) \cdot y}}\right) \]
    10. neg-mul-195.4%

      \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\color{blue}{-1 \cdot t}}{\left(z \cdot 3\right) \cdot y}\right) \]
    11. times-frac97.5%

      \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-1}{z \cdot 3} \cdot \frac{t}{y}}\right) \]
    12. distribute-lft-out--97.9%

      \[\leadsto x + \color{blue}{\frac{-1}{z \cdot 3} \cdot \left(y - \frac{t}{y}\right)} \]
    13. *-commutative97.9%

      \[\leadsto x + \frac{-1}{\color{blue}{3 \cdot z}} \cdot \left(y - \frac{t}{y}\right) \]
    14. associate-/r*97.9%

      \[\leadsto x + \color{blue}{\frac{\frac{-1}{3}}{z}} \cdot \left(y - \frac{t}{y}\right) \]
    15. metadata-eval97.9%

      \[\leadsto x + \frac{\color{blue}{-0.3333333333333333}}{z} \cdot \left(y - \frac{t}{y}\right) \]
  3. Simplified97.9%

    \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
  4. Taylor expanded in z around 0 97.6%

    \[\leadsto x + \color{blue}{-0.3333333333333333 \cdot \frac{y - \frac{t}{y}}{z}} \]
  5. Final simplification97.6%

    \[\leadsto x + -0.3333333333333333 \cdot \frac{y - \frac{t}{y}}{z} \]

Alternative 10: 95.5% accurate, 1.4× speedup?

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

\\
x + \left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z}
\end{array}
Derivation
  1. Initial program 95.5%

    \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
  2. Step-by-step derivation
    1. associate-+l-95.5%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)} \]
    2. sub-neg95.5%

      \[\leadsto \color{blue}{x + \left(-\left(\frac{y}{z \cdot 3} - \frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
    3. sub-neg95.5%

      \[\leadsto x + \left(-\color{blue}{\left(\frac{y}{z \cdot 3} + \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)}\right) \]
    4. distribute-neg-in95.5%

      \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) + \left(-\left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)\right)} \]
    5. unsub-neg95.5%

      \[\leadsto x + \color{blue}{\left(\left(-\frac{y}{z \cdot 3}\right) - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right)} \]
    6. neg-mul-195.5%

      \[\leadsto x + \left(\color{blue}{-1 \cdot \frac{y}{z \cdot 3}} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
    7. associate-*r/95.5%

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

      \[\leadsto x + \left(\color{blue}{\frac{-1}{z \cdot 3} \cdot y} - \left(-\frac{t}{\left(z \cdot 3\right) \cdot y}\right)\right) \]
    9. distribute-neg-frac95.4%

      \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-t}{\left(z \cdot 3\right) \cdot y}}\right) \]
    10. neg-mul-195.4%

      \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \frac{\color{blue}{-1 \cdot t}}{\left(z \cdot 3\right) \cdot y}\right) \]
    11. times-frac97.5%

      \[\leadsto x + \left(\frac{-1}{z \cdot 3} \cdot y - \color{blue}{\frac{-1}{z \cdot 3} \cdot \frac{t}{y}}\right) \]
    12. distribute-lft-out--97.9%

      \[\leadsto x + \color{blue}{\frac{-1}{z \cdot 3} \cdot \left(y - \frac{t}{y}\right)} \]
    13. *-commutative97.9%

      \[\leadsto x + \frac{-1}{\color{blue}{3 \cdot z}} \cdot \left(y - \frac{t}{y}\right) \]
    14. associate-/r*97.9%

      \[\leadsto x + \color{blue}{\frac{\frac{-1}{3}}{z}} \cdot \left(y - \frac{t}{y}\right) \]
    15. metadata-eval97.9%

      \[\leadsto x + \frac{\color{blue}{-0.3333333333333333}}{z} \cdot \left(y - \frac{t}{y}\right) \]
  3. Simplified97.9%

    \[\leadsto \color{blue}{x + \frac{-0.3333333333333333}{z} \cdot \left(y - \frac{t}{y}\right)} \]
  4. Final simplification97.9%

    \[\leadsto x + \left(y - \frac{t}{y}\right) \cdot \frac{-0.3333333333333333}{z} \]

Alternative 11: 48.2% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.55 \cdot 10^{+59} \lor \neg \left(y \leq 8.4 \cdot 10^{+44}\right):\\ \;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (or (<= y -1.55e+59) (not (<= y 8.4e+44)))
   (* -0.3333333333333333 (/ y z))
   x))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((y <= -1.55e+59) || !(y <= 8.4e+44)) {
		tmp = -0.3333333333333333 * (y / z);
	} else {
		tmp = x;
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if ((y <= (-1.55d+59)) .or. (.not. (y <= 8.4d+44))) then
        tmp = (-0.3333333333333333d0) * (y / z)
    else
        tmp = x
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if ((y <= -1.55e+59) || !(y <= 8.4e+44)) {
		tmp = -0.3333333333333333 * (y / z);
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if (y <= -1.55e+59) or not (y <= 8.4e+44):
		tmp = -0.3333333333333333 * (y / z)
	else:
		tmp = x
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if ((y <= -1.55e+59) || !(y <= 8.4e+44))
		tmp = Float64(-0.3333333333333333 * Float64(y / z));
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if ((y <= -1.55e+59) || ~((y <= 8.4e+44)))
		tmp = -0.3333333333333333 * (y / z);
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.55e+59], N[Not[LessEqual[y, 8.4e+44]], $MachinePrecision]], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{+59} \lor \neg \left(y \leq 8.4 \cdot 10^{+44}\right):\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\

\mathbf{else}:\\
\;\;\;\;x\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.55000000000000007e59 or 8.39999999999999947e44 < y

    1. Initial program 98.9%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-/r*94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{\frac{t}{z \cdot 3}}{y}} \]
    3. Simplified94.5%

      \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}} \]
    4. Step-by-step derivation
      1. clear-num94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{\frac{z \cdot 3}{t}}}}{y} \]
      2. inv-pow94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(\frac{z \cdot 3}{t}\right)}^{-1}}}{y} \]
      3. *-commutative94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{\color{blue}{3 \cdot z}}{t}\right)}^{-1}}{y} \]
      4. *-un-lft-identity94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{3 \cdot z}{\color{blue}{1 \cdot t}}\right)}^{-1}}{y} \]
      5. times-frac94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\color{blue}{\left(\frac{3}{1} \cdot \frac{z}{t}\right)}}^{-1}}{y} \]
      6. metadata-eval94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\color{blue}{3} \cdot \frac{z}{t}\right)}^{-1}}{y} \]
    5. Applied egg-rr94.5%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(3 \cdot \frac{z}{t}\right)}^{-1}}}{y} \]
    6. Step-by-step derivation
      1. unpow-194.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    7. Simplified94.5%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    8. Step-by-step derivation
      1. associate-+l-94.5%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{1}{3 \cdot \frac{z}{t}}}{y}\right)} \]
      2. associate-/r*94.5%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\color{blue}{\frac{\frac{1}{3}}{\frac{z}{t}}}}{y}\right) \]
      3. metadata-eval94.5%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\frac{\color{blue}{0.3333333333333333}}{\frac{z}{t}}}{y}\right) \]
    9. Applied egg-rr94.5%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}\right)} \]
    10. Step-by-step derivation
      1. associate--r-94.5%

        \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}} \]
      2. +-commutative94.5%

        \[\leadsto \color{blue}{\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + \left(x - \frac{y}{z \cdot 3}\right)} \]
      3. associate-+r-94.5%

        \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + x\right) - \frac{y}{z \cdot 3}} \]
      4. associate-/r/94.5%

        \[\leadsto \left(\frac{\color{blue}{\frac{0.3333333333333333}{z} \cdot t}}{y} + x\right) - \frac{y}{z \cdot 3} \]
      5. associate-/r*93.8%

        \[\leadsto \left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \color{blue}{\frac{\frac{y}{z}}{3}} \]
    11. Simplified93.8%

      \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \frac{\frac{y}{z}}{3}} \]
    12. Taylor expanded in z around 0 77.0%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} \]
    13. Step-by-step derivation
      1. distribute-lft-out--77.0%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} \]
      2. associate-/l*77.0%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    14. Simplified77.0%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    15. Taylor expanded in t around 0 73.6%

      \[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]

    if -1.55000000000000007e59 < y < 8.39999999999999947e44

    1. Initial program 92.9%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Taylor expanded in x around inf 37.7%

      \[\leadsto \color{blue}{x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification53.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.55 \cdot 10^{+59} \lor \neg \left(y \leq 8.4 \cdot 10^{+44}\right):\\ \;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 12: 48.2% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.22 \cdot 10^{+57} \lor \neg \left(y \leq 7.1 \cdot 10^{+43}\right):\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (or (<= y -1.22e+57) (not (<= y 7.1e+43)))
   (/ (* y -0.3333333333333333) z)
   x))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((y <= -1.22e+57) || !(y <= 7.1e+43)) {
		tmp = (y * -0.3333333333333333) / z;
	} else {
		tmp = x;
	}
	return tmp;
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8) :: tmp
    if ((y <= (-1.22d+57)) .or. (.not. (y <= 7.1d+43))) then
        tmp = (y * (-0.3333333333333333d0)) / z
    else
        tmp = x
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if ((y <= -1.22e+57) || !(y <= 7.1e+43)) {
		tmp = (y * -0.3333333333333333) / z;
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if (y <= -1.22e+57) or not (y <= 7.1e+43):
		tmp = (y * -0.3333333333333333) / z
	else:
		tmp = x
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if ((y <= -1.22e+57) || !(y <= 7.1e+43))
		tmp = Float64(Float64(y * -0.3333333333333333) / z);
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if ((y <= -1.22e+57) || ~((y <= 7.1e+43)))
		tmp = (y * -0.3333333333333333) / z;
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.22e+57], N[Not[LessEqual[y, 7.1e+43]], $MachinePrecision]], N[(N[(y * -0.3333333333333333), $MachinePrecision] / z), $MachinePrecision], x]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.22 \cdot 10^{+57} \lor \neg \left(y \leq 7.1 \cdot 10^{+43}\right):\\
\;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\

\mathbf{else}:\\
\;\;\;\;x\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.22e57 or 7.09999999999999972e43 < y

    1. Initial program 98.9%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Step-by-step derivation
      1. associate-/r*94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \color{blue}{\frac{\frac{t}{z \cdot 3}}{y}} \]
    3. Simplified94.5%

      \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}} \]
    4. Step-by-step derivation
      1. clear-num94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{\frac{z \cdot 3}{t}}}}{y} \]
      2. inv-pow94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(\frac{z \cdot 3}{t}\right)}^{-1}}}{y} \]
      3. *-commutative94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{\color{blue}{3 \cdot z}}{t}\right)}^{-1}}{y} \]
      4. *-un-lft-identity94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\frac{3 \cdot z}{\color{blue}{1 \cdot t}}\right)}^{-1}}{y} \]
      5. times-frac94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\color{blue}{\left(\frac{3}{1} \cdot \frac{z}{t}\right)}}^{-1}}{y} \]
      6. metadata-eval94.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{{\left(\color{blue}{3} \cdot \frac{z}{t}\right)}^{-1}}{y} \]
    5. Applied egg-rr94.5%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{{\left(3 \cdot \frac{z}{t}\right)}^{-1}}}{y} \]
    6. Step-by-step derivation
      1. unpow-194.5%

        \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    7. Simplified94.5%

      \[\leadsto \left(x - \frac{y}{z \cdot 3}\right) + \frac{\color{blue}{\frac{1}{3 \cdot \frac{z}{t}}}}{y} \]
    8. Step-by-step derivation
      1. associate-+l-94.5%

        \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{1}{3 \cdot \frac{z}{t}}}{y}\right)} \]
      2. associate-/r*94.5%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\color{blue}{\frac{\frac{1}{3}}{\frac{z}{t}}}}{y}\right) \]
      3. metadata-eval94.5%

        \[\leadsto x - \left(\frac{y}{z \cdot 3} - \frac{\frac{\color{blue}{0.3333333333333333}}{\frac{z}{t}}}{y}\right) \]
    9. Applied egg-rr94.5%

      \[\leadsto \color{blue}{x - \left(\frac{y}{z \cdot 3} - \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}\right)} \]
    10. Step-by-step derivation
      1. associate--r-94.5%

        \[\leadsto \color{blue}{\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y}} \]
      2. +-commutative94.5%

        \[\leadsto \color{blue}{\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + \left(x - \frac{y}{z \cdot 3}\right)} \]
      3. associate-+r-94.5%

        \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{\frac{z}{t}}}{y} + x\right) - \frac{y}{z \cdot 3}} \]
      4. associate-/r/94.5%

        \[\leadsto \left(\frac{\color{blue}{\frac{0.3333333333333333}{z} \cdot t}}{y} + x\right) - \frac{y}{z \cdot 3} \]
      5. associate-/r*93.8%

        \[\leadsto \left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \color{blue}{\frac{\frac{y}{z}}{3}} \]
    11. Simplified93.8%

      \[\leadsto \color{blue}{\left(\frac{\frac{0.3333333333333333}{z} \cdot t}{y} + x\right) - \frac{\frac{y}{z}}{3}} \]
    12. Taylor expanded in z around 0 77.0%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \frac{t}{y} - 0.3333333333333333 \cdot y}{z}} \]
    13. Step-by-step derivation
      1. distribute-lft-out--77.0%

        \[\leadsto \frac{\color{blue}{0.3333333333333333 \cdot \left(\frac{t}{y} - y\right)}}{z} \]
      2. associate-/l*77.0%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    14. Simplified77.0%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{z}{\frac{t}{y} - y}}} \]
    15. Taylor expanded in t around 0 73.6%

      \[\leadsto \color{blue}{-0.3333333333333333 \cdot \frac{y}{z}} \]
    16. Step-by-step derivation
      1. *-commutative73.6%

        \[\leadsto \color{blue}{\frac{y}{z} \cdot -0.3333333333333333} \]
      2. associate-*l/74.3%

        \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]
    17. Simplified74.3%

      \[\leadsto \color{blue}{\frac{y \cdot -0.3333333333333333}{z}} \]

    if -1.22e57 < y < 7.09999999999999972e43

    1. Initial program 92.9%

      \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
    2. Taylor expanded in x around inf 37.7%

      \[\leadsto \color{blue}{x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification53.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.22 \cdot 10^{+57} \lor \neg \left(y \leq 7.1 \cdot 10^{+43}\right):\\ \;\;\;\;\frac{y \cdot -0.3333333333333333}{z}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 13: 30.3% accurate, 15.0× speedup?

\[\begin{array}{l} \\ x \end{array} \]
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
	return x;
}
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
end function
public static double code(double x, double y, double z, double t) {
	return x;
}
def code(x, y, z, t):
	return x
function code(x, y, z, t)
	return x
end
function tmp = code(x, y, z, t)
	tmp = x;
end
code[x_, y_, z_, t_] := x
\begin{array}{l}

\\
x
\end{array}
Derivation
  1. Initial program 95.5%

    \[\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y} \]
  2. Taylor expanded in x around inf 31.8%

    \[\leadsto \color{blue}{x} \]
  3. Final simplification31.8%

    \[\leadsto x \]

Developer target: 95.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y)))
double code(double x, double y, double z, double t) {
	return (x - (y / (z * 3.0))) + ((t / (z * 3.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 = (x - (y / (z * 3.0d0))) + ((t / (z * 3.0d0)) / y)
end function
public static double code(double x, double y, double z, double t) {
	return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
}
def code(x, y, z, t):
	return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y)
function code(x, y, z, t)
	return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(Float64(t / Float64(z * 3.0)) / y))
end
function tmp = code(x, y, z, t)
	tmp = (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}
\end{array}

Reproduce

?
herbie shell --seed 2023229 
(FPCore (x y z t)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, H"
  :precision binary64

  :herbie-target
  (+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y))

  (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))