Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, A

Percentage Accurate: 84.2% → 98.2%
Time: 8.3s
Alternatives: 15
Speedup: 1.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 15 alternatives:

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

Initial Program: 84.2% accurate, 1.0× speedup?

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

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

Alternative 1: 98.2% accurate, 1.0× speedup?

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

\\
x + \frac{y}{\frac{z - a}{z - t}}
\end{array}
Derivation
  1. Initial program 86.0%

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

      \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
  3. Simplified99.2%

    \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
  4. Final simplification99.2%

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

Alternative 2: 82.2% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + y \cdot \left(1 - \frac{t}{z}\right)\\ \mathbf{if}\;z \leq -6.8 \cdot 10^{+80}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -2.25 \cdot 10^{-73}:\\ \;\;\;\;x + z \cdot \frac{y}{z - a}\\ \mathbf{elif}\;z \leq 21000:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ x (* y (- 1.0 (/ t z))))))
   (if (<= z -6.8e+80)
     t_1
     (if (<= z -2.25e-73)
       (+ x (* z (/ y (- z a))))
       (if (<= z 21000.0) (+ x (/ y (/ a t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (y * (1.0 - (t / z)));
	double tmp;
	if (z <= -6.8e+80) {
		tmp = t_1;
	} else if (z <= -2.25e-73) {
		tmp = x + (z * (y / (z - a)));
	} else if (z <= 21000.0) {
		tmp = x + (y / (a / t));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: t_1
    real(8) :: tmp
    t_1 = x + (y * (1.0d0 - (t / z)))
    if (z <= (-6.8d+80)) then
        tmp = t_1
    else if (z <= (-2.25d-73)) then
        tmp = x + (z * (y / (z - a)))
    else if (z <= 21000.0d0) then
        tmp = x + (y / (a / t))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (y * (1.0 - (t / z)));
	double tmp;
	if (z <= -6.8e+80) {
		tmp = t_1;
	} else if (z <= -2.25e-73) {
		tmp = x + (z * (y / (z - a)));
	} else if (z <= 21000.0) {
		tmp = x + (y / (a / t));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = x + (y * (1.0 - (t / z)))
	tmp = 0
	if z <= -6.8e+80:
		tmp = t_1
	elif z <= -2.25e-73:
		tmp = x + (z * (y / (z - a)))
	elif z <= 21000.0:
		tmp = x + (y / (a / t))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(x + Float64(y * Float64(1.0 - Float64(t / z))))
	tmp = 0.0
	if (z <= -6.8e+80)
		tmp = t_1;
	elseif (z <= -2.25e-73)
		tmp = Float64(x + Float64(z * Float64(y / Float64(z - a))));
	elseif (z <= 21000.0)
		tmp = Float64(x + Float64(y / Float64(a / t)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = x + (y * (1.0 - (t / z)));
	tmp = 0.0;
	if (z <= -6.8e+80)
		tmp = t_1;
	elseif (z <= -2.25e-73)
		tmp = x + (z * (y / (z - a)));
	elseif (z <= 21000.0)
		tmp = x + (y / (a / t));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.8e+80], t$95$1, If[LessEqual[z, -2.25e-73], N[(x + N[(z * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 21000.0], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + y \cdot \left(1 - \frac{t}{z}\right)\\
\mathbf{if}\;z \leq -6.8 \cdot 10^{+80}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;z \leq -2.25 \cdot 10^{-73}:\\
\;\;\;\;x + z \cdot \frac{y}{z - a}\\

\mathbf{elif}\;z \leq 21000:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -6.79999999999999984e80 or 21000 < z

    1. Initial program 71.2%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Step-by-step derivation
      1. clear-num99.8%

        \[\leadsto x + \color{blue}{\frac{1}{\frac{\frac{z - a}{z - t}}{y}}} \]
      2. associate-/r/99.9%

        \[\leadsto x + \color{blue}{\frac{1}{\frac{z - a}{z - t}} \cdot y} \]
      3. clear-num100.0%

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

      \[\leadsto x + \color{blue}{\frac{z - t}{z - a} \cdot y} \]
    6. Taylor expanded in a around 0 91.8%

      \[\leadsto x + \color{blue}{\frac{z - t}{z}} \cdot y \]
    7. Step-by-step derivation
      1. div-sub91.8%

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

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

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

    if -6.79999999999999984e80 < z < -2.25e-73

    1. Initial program 91.2%

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

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

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

      \[\leadsto x + \color{blue}{\frac{y \cdot z}{z - a}} \]
    5. Step-by-step derivation
      1. associate-*l/86.3%

        \[\leadsto x + \color{blue}{\frac{y}{z - a} \cdot z} \]
      2. *-commutative86.3%

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{z - a}} \]
    6. Simplified86.3%

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

    if -2.25e-73 < z < 21000

    1. Initial program 99.9%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified98.3%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in z around 0 83.2%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{a}{t}}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification87.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6.8 \cdot 10^{+80}:\\ \;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\ \mathbf{elif}\;z \leq -2.25 \cdot 10^{-73}:\\ \;\;\;\;x + z \cdot \frac{y}{z - a}\\ \mathbf{elif}\;z \leq 21000:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\ \end{array} \]

Alternative 3: 81.7% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -6.8 \cdot 10^{+80}:\\ \;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\ \mathbf{elif}\;z \leq -5.3 \cdot 10^{-73}:\\ \;\;\;\;x + z \cdot \frac{y}{z - a}\\ \mathbf{elif}\;z \leq 2.15 \cdot 10^{-107}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{z - a}{z}}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= z -6.8e+80)
   (+ x (* y (- 1.0 (/ t z))))
   (if (<= z -5.3e-73)
     (+ x (* z (/ y (- z a))))
     (if (<= z 2.15e-107) (+ x (/ y (/ a t))) (+ x (/ y (/ (- z a) z)))))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -6.8e+80) {
		tmp = x + (y * (1.0 - (t / z)));
	} else if (z <= -5.3e-73) {
		tmp = x + (z * (y / (z - a)));
	} else if (z <= 2.15e-107) {
		tmp = x + (y / (a / t));
	} else {
		tmp = x + (y / ((z - a) / z));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: tmp
    if (z <= (-6.8d+80)) then
        tmp = x + (y * (1.0d0 - (t / z)))
    else if (z <= (-5.3d-73)) then
        tmp = x + (z * (y / (z - a)))
    else if (z <= 2.15d-107) then
        tmp = x + (y / (a / t))
    else
        tmp = x + (y / ((z - a) / z))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -6.8e+80) {
		tmp = x + (y * (1.0 - (t / z)));
	} else if (z <= -5.3e-73) {
		tmp = x + (z * (y / (z - a)));
	} else if (z <= 2.15e-107) {
		tmp = x + (y / (a / t));
	} else {
		tmp = x + (y / ((z - a) / z));
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if z <= -6.8e+80:
		tmp = x + (y * (1.0 - (t / z)))
	elif z <= -5.3e-73:
		tmp = x + (z * (y / (z - a)))
	elif z <= 2.15e-107:
		tmp = x + (y / (a / t))
	else:
		tmp = x + (y / ((z - a) / z))
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (z <= -6.8e+80)
		tmp = Float64(x + Float64(y * Float64(1.0 - Float64(t / z))));
	elseif (z <= -5.3e-73)
		tmp = Float64(x + Float64(z * Float64(y / Float64(z - a))));
	elseif (z <= 2.15e-107)
		tmp = Float64(x + Float64(y / Float64(a / t)));
	else
		tmp = Float64(x + Float64(y / Float64(Float64(z - a) / z)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (z <= -6.8e+80)
		tmp = x + (y * (1.0 - (t / z)));
	elseif (z <= -5.3e-73)
		tmp = x + (z * (y / (z - a)));
	elseif (z <= 2.15e-107)
		tmp = x + (y / (a / t));
	else
		tmp = x + (y / ((z - a) / z));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -6.8e+80], N[(x + N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.3e-73], N[(x + N[(z * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.15e-107], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{+80}:\\
\;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\

\mathbf{elif}\;z \leq -5.3 \cdot 10^{-73}:\\
\;\;\;\;x + z \cdot \frac{y}{z - a}\\

\mathbf{elif}\;z \leq 2.15 \cdot 10^{-107}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{z - a}{z}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -6.79999999999999984e80

    1. Initial program 64.1%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Step-by-step derivation
      1. clear-num99.9%

        \[\leadsto x + \color{blue}{\frac{1}{\frac{\frac{z - a}{z - t}}{y}}} \]
      2. associate-/r/99.9%

        \[\leadsto x + \color{blue}{\frac{1}{\frac{z - a}{z - t}} \cdot y} \]
      3. clear-num100.0%

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

      \[\leadsto x + \color{blue}{\frac{z - t}{z - a} \cdot y} \]
    6. Taylor expanded in a around 0 91.4%

      \[\leadsto x + \color{blue}{\frac{z - t}{z}} \cdot y \]
    7. Step-by-step derivation
      1. div-sub91.4%

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

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

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

    if -6.79999999999999984e80 < z < -5.29999999999999972e-73

    1. Initial program 91.2%

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

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

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

      \[\leadsto x + \color{blue}{\frac{y \cdot z}{z - a}} \]
    5. Step-by-step derivation
      1. associate-*l/86.3%

        \[\leadsto x + \color{blue}{\frac{y}{z - a} \cdot z} \]
      2. *-commutative86.3%

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{z - a}} \]
    6. Simplified86.3%

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

    if -5.29999999999999972e-73 < z < 2.1499999999999999e-107

    1. Initial program 99.9%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified97.8%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in z around 0 84.4%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{a}{t}}} \]

    if 2.1499999999999999e-107 < z

    1. Initial program 82.9%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in t around 0 89.1%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{z - a}{z}}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification87.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6.8 \cdot 10^{+80}:\\ \;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\ \mathbf{elif}\;z \leq -5.3 \cdot 10^{-73}:\\ \;\;\;\;x + z \cdot \frac{y}{z - a}\\ \mathbf{elif}\;z \leq 2.15 \cdot 10^{-107}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{z - a}{z}}\\ \end{array} \]

Alternative 4: 81.7% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.3 \cdot 10^{+83}:\\ \;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\ \mathbf{elif}\;z \leq -2.6 \cdot 10^{-71}:\\ \;\;\;\;x + \frac{z}{\frac{z - a}{y}}\\ \mathbf{elif}\;z \leq 3.3 \cdot 10^{-106}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{z - a}{z}}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= z -3.3e+83)
   (+ x (* y (- 1.0 (/ t z))))
   (if (<= z -2.6e-71)
     (+ x (/ z (/ (- z a) y)))
     (if (<= z 3.3e-106) (+ x (/ y (/ a t))) (+ x (/ y (/ (- z a) z)))))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -3.3e+83) {
		tmp = x + (y * (1.0 - (t / z)));
	} else if (z <= -2.6e-71) {
		tmp = x + (z / ((z - a) / y));
	} else if (z <= 3.3e-106) {
		tmp = x + (y / (a / t));
	} else {
		tmp = x + (y / ((z - a) / z));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: tmp
    if (z <= (-3.3d+83)) then
        tmp = x + (y * (1.0d0 - (t / z)))
    else if (z <= (-2.6d-71)) then
        tmp = x + (z / ((z - a) / y))
    else if (z <= 3.3d-106) then
        tmp = x + (y / (a / t))
    else
        tmp = x + (y / ((z - a) / z))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -3.3e+83) {
		tmp = x + (y * (1.0 - (t / z)));
	} else if (z <= -2.6e-71) {
		tmp = x + (z / ((z - a) / y));
	} else if (z <= 3.3e-106) {
		tmp = x + (y / (a / t));
	} else {
		tmp = x + (y / ((z - a) / z));
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if z <= -3.3e+83:
		tmp = x + (y * (1.0 - (t / z)))
	elif z <= -2.6e-71:
		tmp = x + (z / ((z - a) / y))
	elif z <= 3.3e-106:
		tmp = x + (y / (a / t))
	else:
		tmp = x + (y / ((z - a) / z))
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (z <= -3.3e+83)
		tmp = Float64(x + Float64(y * Float64(1.0 - Float64(t / z))));
	elseif (z <= -2.6e-71)
		tmp = Float64(x + Float64(z / Float64(Float64(z - a) / y)));
	elseif (z <= 3.3e-106)
		tmp = Float64(x + Float64(y / Float64(a / t)));
	else
		tmp = Float64(x + Float64(y / Float64(Float64(z - a) / z)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (z <= -3.3e+83)
		tmp = x + (y * (1.0 - (t / z)));
	elseif (z <= -2.6e-71)
		tmp = x + (z / ((z - a) / y));
	elseif (z <= 3.3e-106)
		tmp = x + (y / (a / t));
	else
		tmp = x + (y / ((z - a) / z));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.3e+83], N[(x + N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.6e-71], N[(x + N[(z / N[(N[(z - a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.3e-106], N[(x + N[(y / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.3 \cdot 10^{+83}:\\
\;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\

\mathbf{elif}\;z \leq -2.6 \cdot 10^{-71}:\\
\;\;\;\;x + \frac{z}{\frac{z - a}{y}}\\

\mathbf{elif}\;z \leq 3.3 \cdot 10^{-106}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{z - a}{z}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -3.29999999999999985e83

    1. Initial program 64.1%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Step-by-step derivation
      1. clear-num99.9%

        \[\leadsto x + \color{blue}{\frac{1}{\frac{\frac{z - a}{z - t}}{y}}} \]
      2. associate-/r/99.9%

        \[\leadsto x + \color{blue}{\frac{1}{\frac{z - a}{z - t}} \cdot y} \]
      3. clear-num100.0%

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

      \[\leadsto x + \color{blue}{\frac{z - t}{z - a} \cdot y} \]
    6. Taylor expanded in a around 0 91.4%

      \[\leadsto x + \color{blue}{\frac{z - t}{z}} \cdot y \]
    7. Step-by-step derivation
      1. div-sub91.4%

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

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

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

    if -3.29999999999999985e83 < z < -2.5999999999999999e-71

    1. Initial program 91.2%

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

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

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

      \[\leadsto x + \color{blue}{\frac{y \cdot z}{z - a}} \]
    5. Step-by-step derivation
      1. associate-*l/86.3%

        \[\leadsto x + \color{blue}{\frac{y}{z - a} \cdot z} \]
      2. *-commutative86.3%

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{z - a}} \]
    6. Simplified86.3%

      \[\leadsto x + \color{blue}{z \cdot \frac{y}{z - a}} \]
    7. Step-by-step derivation
      1. clear-num86.3%

        \[\leadsto x + z \cdot \color{blue}{\frac{1}{\frac{z - a}{y}}} \]
      2. un-div-inv86.4%

        \[\leadsto x + \color{blue}{\frac{z}{\frac{z - a}{y}}} \]
    8. Applied egg-rr86.4%

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

    if -2.5999999999999999e-71 < z < 3.30000000000000016e-106

    1. Initial program 99.9%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified97.8%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in z around 0 84.4%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{a}{t}}} \]

    if 3.30000000000000016e-106 < z

    1. Initial program 82.9%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in t around 0 89.1%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{z - a}{z}}} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification87.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.3 \cdot 10^{+83}:\\ \;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\ \mathbf{elif}\;z \leq -2.6 \cdot 10^{-71}:\\ \;\;\;\;x + \frac{z}{\frac{z - a}{y}}\\ \mathbf{elif}\;z \leq 3.3 \cdot 10^{-106}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{z - a}{z}}\\ \end{array} \]

Alternative 5: 79.8% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.62 \cdot 10^{-71} \lor \neg \left(z \leq 4.3 \cdot 10^{-106}\right):\\
\;\;\;\;x + z \cdot \frac{y}{z - a}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.6200000000000001e-71 or 4.3000000000000002e-106 < z

    1. Initial program 78.7%

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

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

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

      \[\leadsto x + \color{blue}{\frac{y \cdot z}{z - a}} \]
    5. Step-by-step derivation
      1. associate-*l/84.5%

        \[\leadsto x + \color{blue}{\frac{y}{z - a} \cdot z} \]
      2. *-commutative84.5%

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{z - a}} \]
    6. Simplified84.5%

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

    if -1.6200000000000001e-71 < z < 4.3000000000000002e-106

    1. Initial program 99.9%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified97.8%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in z around 0 84.4%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.62 \cdot 10^{-71} \lor \neg \left(z \leq 4.3 \cdot 10^{-106}\right):\\ \;\;\;\;x + z \cdot \frac{y}{z - a}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \end{array} \]

Alternative 6: 85.9% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{y}{z - a}\\
\mathbf{if}\;t \leq -6.8 \cdot 10^{+51} \lor \neg \left(t \leq 3.3 \cdot 10^{+37}\right):\\
\;\;\;\;x - t \cdot t_1\\

\mathbf{else}:\\
\;\;\;\;x + z \cdot t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -6.79999999999999969e51 or 3.3000000000000001e37 < t

    1. Initial program 87.5%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified98.2%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in t around inf 87.0%

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

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

        \[\leadsto x + \frac{y}{\frac{\color{blue}{-\left(z - a\right)}}{t}} \]
    6. Simplified87.0%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{-\left(z - a\right)}{t}}} \]
    7. Step-by-step derivation
      1. frac-2neg87.0%

        \[\leadsto x + \color{blue}{\frac{-y}{-\frac{-\left(z - a\right)}{t}}} \]
      2. div-inv86.9%

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

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\color{blue}{\frac{-\left(-\left(z - a\right)\right)}{t}}} \]
      4. remove-double-neg86.9%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{z - a}}{t}} \]
      5. add-sqr-sqrt40.4%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{\sqrt{z - a} \cdot \sqrt{z - a}}}{t}} \]
      6. sqrt-unprod53.4%

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

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\sqrt{\color{blue}{\left(-\left(z - a\right)\right) \cdot \left(-\left(z - a\right)\right)}}}{t}} \]
      8. sqrt-unprod15.5%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{\sqrt{-\left(z - a\right)} \cdot \sqrt{-\left(z - a\right)}}}{t}} \]
      9. add-sqr-sqrt37.2%

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

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

        \[\leadsto \color{blue}{x - y \cdot \frac{t}{-\left(z - a\right)}} \]
      12. add-sqr-sqrt15.5%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{-\left(z - a\right)} \cdot \sqrt{-\left(z - a\right)}}} \]
      13. sqrt-unprod53.4%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{\left(-\left(z - a\right)\right) \cdot \left(-\left(z - a\right)\right)}}} \]
      14. sqr-neg53.4%

        \[\leadsto x - y \cdot \frac{t}{\sqrt{\color{blue}{\left(z - a\right) \cdot \left(z - a\right)}}} \]
      15. sqrt-unprod40.4%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{z - a} \cdot \sqrt{z - a}}} \]
      16. add-sqr-sqrt86.9%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{z - a}} \]
    8. Applied egg-rr86.9%

      \[\leadsto \color{blue}{x - y \cdot \frac{t}{z - a}} \]
    9. Step-by-step derivation
      1. associate-*r/83.0%

        \[\leadsto x - \color{blue}{\frac{y \cdot t}{z - a}} \]
      2. associate-*l/85.7%

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

        \[\leadsto x - \color{blue}{t \cdot \frac{y}{z - a}} \]
    10. Simplified85.7%

      \[\leadsto \color{blue}{x - t \cdot \frac{y}{z - a}} \]

    if -6.79999999999999969e51 < t < 3.3000000000000001e37

    1. Initial program 84.9%

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

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

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

      \[\leadsto x + \color{blue}{\frac{y \cdot z}{z - a}} \]
    5. Step-by-step derivation
      1. associate-*l/94.3%

        \[\leadsto x + \color{blue}{\frac{y}{z - a} \cdot z} \]
      2. *-commutative94.3%

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{z - a}} \]
    6. Simplified94.3%

      \[\leadsto x + \color{blue}{z \cdot \frac{y}{z - a}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification90.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6.8 \cdot 10^{+51} \lor \neg \left(t \leq 3.3 \cdot 10^{+37}\right):\\ \;\;\;\;x - t \cdot \frac{y}{z - a}\\ \mathbf{else}:\\ \;\;\;\;x + z \cdot \frac{y}{z - a}\\ \end{array} \]

Alternative 7: 85.4% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.1 \cdot 10^{+52} \lor \neg \left(t \leq 6 \cdot 10^{+37}\right):\\
\;\;\;\;x - y \cdot \frac{t}{z - a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -4.1e52 or 6.00000000000000043e37 < t

    1. Initial program 87.5%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified98.2%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in t around inf 87.0%

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

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

        \[\leadsto x + \frac{y}{\frac{\color{blue}{-\left(z - a\right)}}{t}} \]
    6. Simplified87.0%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{-\left(z - a\right)}{t}}} \]
    7. Step-by-step derivation
      1. frac-2neg87.0%

        \[\leadsto x + \color{blue}{\frac{-y}{-\frac{-\left(z - a\right)}{t}}} \]
      2. div-inv86.9%

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

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\color{blue}{\frac{-\left(-\left(z - a\right)\right)}{t}}} \]
      4. remove-double-neg86.9%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{z - a}}{t}} \]
      5. add-sqr-sqrt40.4%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{\sqrt{z - a} \cdot \sqrt{z - a}}}{t}} \]
      6. sqrt-unprod53.4%

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

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\sqrt{\color{blue}{\left(-\left(z - a\right)\right) \cdot \left(-\left(z - a\right)\right)}}}{t}} \]
      8. sqrt-unprod15.5%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{\sqrt{-\left(z - a\right)} \cdot \sqrt{-\left(z - a\right)}}}{t}} \]
      9. add-sqr-sqrt37.2%

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

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

        \[\leadsto \color{blue}{x - y \cdot \frac{t}{-\left(z - a\right)}} \]
      12. add-sqr-sqrt15.5%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{-\left(z - a\right)} \cdot \sqrt{-\left(z - a\right)}}} \]
      13. sqrt-unprod53.4%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{\left(-\left(z - a\right)\right) \cdot \left(-\left(z - a\right)\right)}}} \]
      14. sqr-neg53.4%

        \[\leadsto x - y \cdot \frac{t}{\sqrt{\color{blue}{\left(z - a\right) \cdot \left(z - a\right)}}} \]
      15. sqrt-unprod40.4%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{z - a} \cdot \sqrt{z - a}}} \]
      16. add-sqr-sqrt86.9%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{z - a}} \]
    8. Applied egg-rr86.9%

      \[\leadsto \color{blue}{x - y \cdot \frac{t}{z - a}} \]

    if -4.1e52 < t < 6.00000000000000043e37

    1. Initial program 84.9%

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

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

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

      \[\leadsto x + \color{blue}{\frac{y \cdot z}{z - a}} \]
    5. Step-by-step derivation
      1. associate-*l/94.3%

        \[\leadsto x + \color{blue}{\frac{y}{z - a} \cdot z} \]
      2. *-commutative94.3%

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{z - a}} \]
    6. Simplified94.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.1 \cdot 10^{+52} \lor \neg \left(t \leq 6 \cdot 10^{+37}\right):\\ \;\;\;\;x - y \cdot \frac{t}{z - a}\\ \mathbf{else}:\\ \;\;\;\;x + z \cdot \frac{y}{z - a}\\ \end{array} \]

Alternative 8: 85.4% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4 \cdot 10^{+51}:\\ \;\;\;\;x - \frac{y}{\frac{z - a}{t}}\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{+37}:\\ \;\;\;\;x + z \cdot \frac{y}{z - a}\\ \mathbf{else}:\\ \;\;\;\;x - y \cdot \frac{t}{z - a}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= t -4e+51)
   (- x (/ y (/ (- z a) t)))
   (if (<= t 3.1e+37) (+ x (* z (/ y (- z a)))) (- x (* y (/ t (- z a)))))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (t <= -4e+51) {
		tmp = x - (y / ((z - a) / t));
	} else if (t <= 3.1e+37) {
		tmp = x + (z * (y / (z - a)));
	} else {
		tmp = x - (y * (t / (z - a)));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: tmp
    if (t <= (-4d+51)) then
        tmp = x - (y / ((z - a) / t))
    else if (t <= 3.1d+37) then
        tmp = x + (z * (y / (z - a)))
    else
        tmp = x - (y * (t / (z - a)))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (t <= -4e+51) {
		tmp = x - (y / ((z - a) / t));
	} else if (t <= 3.1e+37) {
		tmp = x + (z * (y / (z - a)));
	} else {
		tmp = x - (y * (t / (z - a)));
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if t <= -4e+51:
		tmp = x - (y / ((z - a) / t))
	elif t <= 3.1e+37:
		tmp = x + (z * (y / (z - a)))
	else:
		tmp = x - (y * (t / (z - a)))
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (t <= -4e+51)
		tmp = Float64(x - Float64(y / Float64(Float64(z - a) / t)));
	elseif (t <= 3.1e+37)
		tmp = Float64(x + Float64(z * Float64(y / Float64(z - a))));
	else
		tmp = Float64(x - Float64(y * Float64(t / Float64(z - a))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (t <= -4e+51)
		tmp = x - (y / ((z - a) / t));
	elseif (t <= 3.1e+37)
		tmp = x + (z * (y / (z - a)));
	else
		tmp = x - (y * (t / (z - a)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4e+51], N[(x - N[(y / N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e+37], N[(x + N[(z * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+51}:\\
\;\;\;\;x - \frac{y}{\frac{z - a}{t}}\\

\mathbf{elif}\;t \leq 3.1 \cdot 10^{+37}:\\
\;\;\;\;x + z \cdot \frac{y}{z - a}\\

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


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

    1. Initial program 93.1%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified96.7%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in t around inf 84.5%

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

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

        \[\leadsto x + \frac{y}{\frac{\color{blue}{-\left(z - a\right)}}{t}} \]
    6. Simplified84.5%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{-\left(z - a\right)}{t}}} \]
    7. Step-by-step derivation
      1. frac-2neg84.5%

        \[\leadsto x + \color{blue}{\frac{-y}{-\frac{-\left(z - a\right)}{t}}} \]
      2. div-inv84.4%

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

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\color{blue}{\frac{-\left(-\left(z - a\right)\right)}{t}}} \]
      4. remove-double-neg84.4%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{z - a}}{t}} \]
      5. add-sqr-sqrt37.9%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{\sqrt{z - a} \cdot \sqrt{z - a}}}{t}} \]
      6. sqrt-unprod46.1%

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

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\sqrt{\color{blue}{\left(-\left(z - a\right)\right) \cdot \left(-\left(z - a\right)\right)}}}{t}} \]
      8. sqrt-unprod9.9%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{\sqrt{-\left(z - a\right)} \cdot \sqrt{-\left(z - a\right)}}}{t}} \]
      9. add-sqr-sqrt33.6%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{-\left(z - a\right)}}{t}} \]
      10. clear-num33.6%

        \[\leadsto x + \left(-y\right) \cdot \color{blue}{\frac{t}{-\left(z - a\right)}} \]
      11. cancel-sign-sub-inv33.6%

        \[\leadsto \color{blue}{x - y \cdot \frac{t}{-\left(z - a\right)}} \]
      12. add-sqr-sqrt9.9%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{-\left(z - a\right)} \cdot \sqrt{-\left(z - a\right)}}} \]
      13. sqrt-unprod46.1%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{\left(-\left(z - a\right)\right) \cdot \left(-\left(z - a\right)\right)}}} \]
      14. sqr-neg46.1%

        \[\leadsto x - y \cdot \frac{t}{\sqrt{\color{blue}{\left(z - a\right) \cdot \left(z - a\right)}}} \]
      15. sqrt-unprod37.9%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{z - a} \cdot \sqrt{z - a}}} \]
      16. add-sqr-sqrt84.4%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{z - a}} \]
    8. Applied egg-rr84.4%

      \[\leadsto \color{blue}{x - y \cdot \frac{t}{z - a}} \]
    9. Step-by-step derivation
      1. clear-num84.4%

        \[\leadsto x - y \cdot \color{blue}{\frac{1}{\frac{z - a}{t}}} \]
      2. un-div-inv84.5%

        \[\leadsto x - \color{blue}{\frac{y}{\frac{z - a}{t}}} \]
    10. Applied egg-rr84.5%

      \[\leadsto x - \color{blue}{\frac{y}{\frac{z - a}{t}}} \]

    if -4e51 < t < 3.1000000000000002e37

    1. Initial program 84.9%

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

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

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

      \[\leadsto x + \color{blue}{\frac{y \cdot z}{z - a}} \]
    5. Step-by-step derivation
      1. associate-*l/94.3%

        \[\leadsto x + \color{blue}{\frac{y}{z - a} \cdot z} \]
      2. *-commutative94.3%

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{z - a}} \]
    6. Simplified94.3%

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

    if 3.1000000000000002e37 < t

    1. Initial program 81.6%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in t around inf 89.6%

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

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

        \[\leadsto x + \frac{y}{\frac{\color{blue}{-\left(z - a\right)}}{t}} \]
    6. Simplified89.6%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{-\left(z - a\right)}{t}}} \]
    7. Step-by-step derivation
      1. frac-2neg89.6%

        \[\leadsto x + \color{blue}{\frac{-y}{-\frac{-\left(z - a\right)}{t}}} \]
      2. div-inv89.6%

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

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\color{blue}{\frac{-\left(-\left(z - a\right)\right)}{t}}} \]
      4. remove-double-neg89.6%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{z - a}}{t}} \]
      5. add-sqr-sqrt43.1%

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

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{\sqrt{\left(z - a\right) \cdot \left(z - a\right)}}}{t}} \]
      7. sqr-neg61.2%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\sqrt{\color{blue}{\left(-\left(z - a\right)\right) \cdot \left(-\left(z - a\right)\right)}}}{t}} \]
      8. sqrt-unprod21.5%

        \[\leadsto x + \left(-y\right) \cdot \frac{1}{\frac{\color{blue}{\sqrt{-\left(z - a\right)} \cdot \sqrt{-\left(z - a\right)}}}{t}} \]
      9. add-sqr-sqrt41.1%

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

        \[\leadsto x + \left(-y\right) \cdot \color{blue}{\frac{t}{-\left(z - a\right)}} \]
      11. cancel-sign-sub-inv41.1%

        \[\leadsto \color{blue}{x - y \cdot \frac{t}{-\left(z - a\right)}} \]
      12. add-sqr-sqrt21.5%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{-\left(z - a\right)} \cdot \sqrt{-\left(z - a\right)}}} \]
      13. sqrt-unprod61.2%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{\left(-\left(z - a\right)\right) \cdot \left(-\left(z - a\right)\right)}}} \]
      14. sqr-neg61.2%

        \[\leadsto x - y \cdot \frac{t}{\sqrt{\color{blue}{\left(z - a\right) \cdot \left(z - a\right)}}} \]
      15. sqrt-unprod43.1%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{\sqrt{z - a} \cdot \sqrt{z - a}}} \]
      16. add-sqr-sqrt89.7%

        \[\leadsto x - y \cdot \frac{t}{\color{blue}{z - a}} \]
    8. Applied egg-rr89.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4 \cdot 10^{+51}:\\ \;\;\;\;x - \frac{y}{\frac{z - a}{t}}\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{+37}:\\ \;\;\;\;x + z \cdot \frac{y}{z - a}\\ \mathbf{else}:\\ \;\;\;\;x - y \cdot \frac{t}{z - a}\\ \end{array} \]

Alternative 9: 76.8% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -3.19999999999999991e-27 or 14200 < z

    1. Initial program 74.0%

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

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

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

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

    if -3.19999999999999991e-27 < z < 14200

    1. Initial program 98.6%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified98.5%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Step-by-step derivation
      1. clear-num98.4%

        \[\leadsto x + \color{blue}{\frac{1}{\frac{\frac{z - a}{z - t}}{y}}} \]
      2. associate-/r/98.4%

        \[\leadsto x + \color{blue}{\frac{1}{\frac{z - a}{z - t}} \cdot y} \]
      3. clear-num98.4%

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

      \[\leadsto x + \color{blue}{\frac{z - t}{z - a} \cdot y} \]
    6. Taylor expanded in z around 0 80.4%

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

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

Alternative 10: 76.9% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.7 \cdot 10^{-26} \lor \neg \left(z \leq 2050000\right):\\
\;\;\;\;x + y\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.70000000000000007e-26 or 2.05e6 < z

    1. Initial program 74.0%

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

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

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

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

    if -1.70000000000000007e-26 < z < 2.05e6

    1. Initial program 98.6%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified98.5%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in z around 0 81.1%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{a}{t}}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification81.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.7 \cdot 10^{-26} \lor \neg \left(z \leq 2050000\right):\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \end{array} \]

Alternative 11: 62.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -3.6 \cdot 10^{+170}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 2.6 \cdot 10^{+58}:\\ \;\;\;\;x + z \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= a -3.6e+170) x (if (<= a 2.6e+58) (+ x (* z (/ y z))) x)))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -3.6e+170) {
		tmp = x;
	} else if (a <= 2.6e+58) {
		tmp = x + (z * (y / z));
	} else {
		tmp = x;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: tmp
    if (a <= (-3.6d+170)) then
        tmp = x
    else if (a <= 2.6d+58) then
        tmp = x + (z * (y / z))
    else
        tmp = x
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -3.6e+170) {
		tmp = x;
	} else if (a <= 2.6e+58) {
		tmp = x + (z * (y / z));
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if a <= -3.6e+170:
		tmp = x
	elif a <= 2.6e+58:
		tmp = x + (z * (y / z))
	else:
		tmp = x
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -3.6e+170)
		tmp = x;
	elseif (a <= 2.6e+58)
		tmp = Float64(x + Float64(z * Float64(y / z)));
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (a <= -3.6e+170)
		tmp = x;
	elseif (a <= 2.6e+58)
		tmp = x + (z * (y / z));
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.6e+170], x, If[LessEqual[a, 2.6e+58], N[(x + N[(z * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.6 \cdot 10^{+170}:\\
\;\;\;\;x\\

\mathbf{elif}\;a \leq 2.6 \cdot 10^{+58}:\\
\;\;\;\;x + z \cdot \frac{y}{z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -3.6e170 or 2.59999999999999988e58 < a

    1. Initial program 87.4%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in t around inf 91.0%

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

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

        \[\leadsto x + \frac{y}{\frac{\color{blue}{-\left(z - a\right)}}{t}} \]
    6. Simplified91.0%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{-\left(z - a\right)}{t}}} \]
    7. Taylor expanded in x around inf 75.8%

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

    if -3.6e170 < a < 2.59999999999999988e58

    1. Initial program 85.4%

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

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

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

      \[\leadsto x + \color{blue}{\frac{y \cdot z}{z - a}} \]
    5. Step-by-step derivation
      1. associate-*l/71.7%

        \[\leadsto x + \color{blue}{\frac{y}{z - a} \cdot z} \]
      2. *-commutative71.7%

        \[\leadsto x + \color{blue}{z \cdot \frac{y}{z - a}} \]
    6. Simplified71.7%

      \[\leadsto x + \color{blue}{z \cdot \frac{y}{z - a}} \]
    7. Taylor expanded in z around inf 67.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3.6 \cdot 10^{+170}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 2.6 \cdot 10^{+58}:\\ \;\;\;\;x + z \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 12: 95.8% accurate, 1.0× speedup?

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

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

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

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

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

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

Alternative 13: 98.0% accurate, 1.0× speedup?

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

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

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

      \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
  3. Simplified99.2%

    \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
  4. Step-by-step derivation
    1. clear-num99.1%

      \[\leadsto x + \color{blue}{\frac{1}{\frac{\frac{z - a}{z - t}}{y}}} \]
    2. associate-/r/99.2%

      \[\leadsto x + \color{blue}{\frac{1}{\frac{z - a}{z - t}} \cdot y} \]
    3. clear-num99.2%

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

    \[\leadsto x + \color{blue}{\frac{z - t}{z - a} \cdot y} \]
  6. Final simplification99.2%

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

Alternative 14: 62.6% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -6.6 \cdot 10^{+170}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 3 \cdot 10^{+58}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= a -6.6e+170) x (if (<= a 3e+58) (+ x y) x)))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -6.6e+170) {
		tmp = x;
	} else if (a <= 3e+58) {
		tmp = x + y;
	} else {
		tmp = x;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: tmp
    if (a <= (-6.6d+170)) then
        tmp = x
    else if (a <= 3d+58) then
        tmp = x + y
    else
        tmp = x
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -6.6e+170) {
		tmp = x;
	} else if (a <= 3e+58) {
		tmp = x + y;
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if a <= -6.6e+170:
		tmp = x
	elif a <= 3e+58:
		tmp = x + y
	else:
		tmp = x
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -6.6e+170)
		tmp = x;
	elseif (a <= 3e+58)
		tmp = Float64(x + y);
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (a <= -6.6e+170)
		tmp = x;
	elseif (a <= 3e+58)
		tmp = x + y;
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.6e+170], x, If[LessEqual[a, 3e+58], N[(x + y), $MachinePrecision], x]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.6 \cdot 10^{+170}:\\
\;\;\;\;x\\

\mathbf{elif}\;a \leq 3 \cdot 10^{+58}:\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -6.60000000000000047e170 or 3.0000000000000002e58 < a

    1. Initial program 87.4%

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
    4. Taylor expanded in t around inf 91.0%

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

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

        \[\leadsto x + \frac{y}{\frac{\color{blue}{-\left(z - a\right)}}{t}} \]
    6. Simplified91.0%

      \[\leadsto x + \frac{y}{\color{blue}{\frac{-\left(z - a\right)}{t}}} \]
    7. Taylor expanded in x around inf 75.8%

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

    if -6.60000000000000047e170 < a < 3.0000000000000002e58

    1. Initial program 85.4%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.6 \cdot 10^{+170}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 3 \cdot 10^{+58}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 15: 49.6% accurate, 11.0× speedup?

\[\begin{array}{l} \\ x \end{array} \]
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
	return x;
}
real(8) function code(x, y, z, t, a)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    code = x
end function
public static double code(double x, double y, double z, double t, double a) {
	return x;
}
def code(x, y, z, t, a):
	return x
function code(x, y, z, t, a)
	return x
end
function tmp = code(x, y, z, t, a)
	tmp = x;
end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}

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

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

      \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
  3. Simplified99.2%

    \[\leadsto \color{blue}{x + \frac{y}{\frac{z - a}{z - t}}} \]
  4. Taylor expanded in t around inf 76.9%

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

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

      \[\leadsto x + \frac{y}{\frac{\color{blue}{-\left(z - a\right)}}{t}} \]
  6. Simplified76.9%

    \[\leadsto x + \frac{y}{\color{blue}{\frac{-\left(z - a\right)}{t}}} \]
  7. Taylor expanded in x around inf 52.1%

    \[\leadsto \color{blue}{x} \]
  8. Final simplification52.1%

    \[\leadsto x \]

Developer target: 98.2% accurate, 1.0× speedup?

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

\\
x + \frac{y}{\frac{z - a}{z - t}}
\end{array}

Reproduce

?
herbie shell --seed 2023308 
(FPCore (x y z t a)
  :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, A"
  :precision binary64

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

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