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

Percentage Accurate: 85.2% → 99.8%
Time: 8.7s
Alternatives: 12
Speedup: 1.0×

Specification

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

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

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

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

Alternative 1: 99.8% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - z\right) \cdot t}{a - z}\\ \mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 2 \cdot 10^{+305}\right):\\ \;\;\;\;x + t \cdot \frac{y - z}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x + t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (/ (* (- y z) t) (- a z))))
   (if (or (<= t_1 (- INFINITY)) (not (<= t_1 2e+305)))
     (+ x (* t (/ (- y z) (- a z))))
     (+ x t_1))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = ((y - z) * t) / (a - z);
	double tmp;
	if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 2e+305)) {
		tmp = x + (t * ((y - z) / (a - z)));
	} else {
		tmp = x + t_1;
	}
	return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = ((y - z) * t) / (a - z);
	double tmp;
	if ((t_1 <= -Double.POSITIVE_INFINITY) || !(t_1 <= 2e+305)) {
		tmp = x + (t * ((y - z) / (a - z)));
	} else {
		tmp = x + t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = ((y - z) * t) / (a - z)
	tmp = 0
	if (t_1 <= -math.inf) or not (t_1 <= 2e+305):
		tmp = x + (t * ((y - z) / (a - z)))
	else:
		tmp = x + t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(Float64(Float64(y - z) * t) / Float64(a - z))
	tmp = 0.0
	if ((t_1 <= Float64(-Inf)) || !(t_1 <= 2e+305))
		tmp = Float64(x + Float64(t * Float64(Float64(y - z) / Float64(a - z))));
	else
		tmp = Float64(x + t_1);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = ((y - z) * t) / (a - z);
	tmp = 0.0;
	if ((t_1 <= -Inf) || ~((t_1 <= 2e+305)))
		tmp = x + (t * ((y - z) / (a - z)));
	else
		tmp = x + t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 2e+305]], $MachinePrecision]], N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t$95$1), $MachinePrecision]]]
\begin{array}{l}

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < -inf.0 or 1.9999999999999999e305 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z))

    1. Initial program 31.1%

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

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

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

    if -inf.0 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < 1.9999999999999999e305

    1. Initial program 99.9%

      \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification99.8%

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

Alternative 2: 80.3% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.6 \cdot 10^{-129} \lor \neg \left(a \leq 3 \cdot 10^{-33}\right):\\
\;\;\;\;x + t \cdot \frac{y - z}{a}\\

\mathbf{else}:\\
\;\;\;\;x + \left(t - y \cdot \frac{t}{z}\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -9.59999999999999954e-129 or 3.0000000000000002e-33 < a

    1. Initial program 85.1%

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

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

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

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

    if -9.59999999999999954e-129 < a < 3.0000000000000002e-33

    1. Initial program 87.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 86.8% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.6 \cdot 10^{+89} \lor \neg \left(z \leq 2.8 \cdot 10^{+125}\right):\\
\;\;\;\;x + \frac{t}{1 - \frac{a}{z}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -8.6000000000000003e89 or 2.8000000000000001e125 < z

    1. Initial program 67.1%

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

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

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

      \[\leadsto x + \color{blue}{-1 \cdot \frac{t \cdot z}{a - z}} \]
    5. Step-by-step derivation
      1. mul-1-neg63.1%

        \[\leadsto x + \color{blue}{\left(-\frac{t \cdot z}{a - z}\right)} \]
      2. associate-/l*93.8%

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

        \[\leadsto x + \color{blue}{\frac{-t}{\frac{a - z}{z}}} \]
    6. Simplified93.8%

      \[\leadsto x + \color{blue}{\frac{-t}{\frac{a - z}{z}}} \]
    7. Step-by-step derivation
      1. frac-2neg93.8%

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

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

        \[\leadsto x + \color{blue}{t} \cdot \frac{1}{-\frac{a - z}{z}} \]
      4. div-sub93.8%

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

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

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

        \[\leadsto x + t \cdot \frac{1}{-\left(\frac{a}{z} + \color{blue}{-1}\right)} \]
    8. Applied egg-rr93.8%

      \[\leadsto x + \color{blue}{t \cdot \frac{1}{-\left(\frac{a}{z} + -1\right)}} \]
    9. Step-by-step derivation
      1. associate-*r/93.8%

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

        \[\leadsto x + \frac{\color{blue}{t}}{-\left(\frac{a}{z} + -1\right)} \]
      3. neg-sub093.8%

        \[\leadsto x + \frac{t}{\color{blue}{0 - \left(\frac{a}{z} + -1\right)}} \]
      4. +-commutative93.8%

        \[\leadsto x + \frac{t}{0 - \color{blue}{\left(-1 + \frac{a}{z}\right)}} \]
      5. associate--r+93.8%

        \[\leadsto x + \frac{t}{\color{blue}{\left(0 - -1\right) - \frac{a}{z}}} \]
      6. metadata-eval93.8%

        \[\leadsto x + \frac{t}{\color{blue}{1} - \frac{a}{z}} \]
    10. Simplified93.8%

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

    if -8.6000000000000003e89 < z < 2.8000000000000001e125

    1. Initial program 93.3%

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

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

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

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

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

Alternative 4: 86.9% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.9 \cdot 10^{+90} \lor \neg \left(z \leq 9.5 \cdot 10^{+124}\right):\\
\;\;\;\;x + \frac{t}{1 - \frac{a}{z}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -3.9000000000000002e90 or 9.50000000000000004e124 < z

    1. Initial program 67.1%

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

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

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

      \[\leadsto x + \color{blue}{-1 \cdot \frac{t \cdot z}{a - z}} \]
    5. Step-by-step derivation
      1. mul-1-neg63.1%

        \[\leadsto x + \color{blue}{\left(-\frac{t \cdot z}{a - z}\right)} \]
      2. associate-/l*93.8%

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

        \[\leadsto x + \color{blue}{\frac{-t}{\frac{a - z}{z}}} \]
    6. Simplified93.8%

      \[\leadsto x + \color{blue}{\frac{-t}{\frac{a - z}{z}}} \]
    7. Step-by-step derivation
      1. frac-2neg93.8%

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

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

        \[\leadsto x + \color{blue}{t} \cdot \frac{1}{-\frac{a - z}{z}} \]
      4. div-sub93.8%

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

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

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

        \[\leadsto x + t \cdot \frac{1}{-\left(\frac{a}{z} + \color{blue}{-1}\right)} \]
    8. Applied egg-rr93.8%

      \[\leadsto x + \color{blue}{t \cdot \frac{1}{-\left(\frac{a}{z} + -1\right)}} \]
    9. Step-by-step derivation
      1. associate-*r/93.8%

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

        \[\leadsto x + \frac{\color{blue}{t}}{-\left(\frac{a}{z} + -1\right)} \]
      3. neg-sub093.8%

        \[\leadsto x + \frac{t}{\color{blue}{0 - \left(\frac{a}{z} + -1\right)}} \]
      4. +-commutative93.8%

        \[\leadsto x + \frac{t}{0 - \color{blue}{\left(-1 + \frac{a}{z}\right)}} \]
      5. associate--r+93.8%

        \[\leadsto x + \frac{t}{\color{blue}{\left(0 - -1\right) - \frac{a}{z}}} \]
      6. metadata-eval93.8%

        \[\leadsto x + \frac{t}{\color{blue}{1} - \frac{a}{z}} \]
    10. Simplified93.8%

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

    if -3.9000000000000002e90 < z < 9.50000000000000004e124

    1. Initial program 93.3%

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

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

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

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

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

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

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

Alternative 5: 84.4% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.6 \cdot 10^{+97}:\\ \;\;\;\;x + t\\ \mathbf{elif}\;z \leq 1.26 \cdot 10^{+163}:\\ \;\;\;\;x + t \cdot \frac{y}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x + t\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= z -1.6e+97)
   (+ x t)
   (if (<= z 1.26e+163) (+ x (* t (/ y (- a z)))) (+ x t))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -1.6e+97) {
		tmp = x + t;
	} else if (z <= 1.26e+163) {
		tmp = x + (t * (y / (a - z)));
	} else {
		tmp = x + 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.6d+97)) then
        tmp = x + t
    else if (z <= 1.26d+163) then
        tmp = x + (t * (y / (a - z)))
    else
        tmp = x + 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.6e+97) {
		tmp = x + t;
	} else if (z <= 1.26e+163) {
		tmp = x + (t * (y / (a - z)));
	} else {
		tmp = x + t;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if z <= -1.6e+97:
		tmp = x + t
	elif z <= 1.26e+163:
		tmp = x + (t * (y / (a - z)))
	else:
		tmp = x + t
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (z <= -1.6e+97)
		tmp = Float64(x + t);
	elseif (z <= 1.26e+163)
		tmp = Float64(x + Float64(t * Float64(y / Float64(a - z))));
	else
		tmp = Float64(x + t);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (z <= -1.6e+97)
		tmp = x + t;
	elseif (z <= 1.26e+163)
		tmp = x + (t * (y / (a - z)));
	else
		tmp = x + t;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.6e+97], N[(x + t), $MachinePrecision], If[LessEqual[z, 1.26e+163], N[(x + N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+97}:\\
\;\;\;\;x + t\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.60000000000000008e97 or 1.26e163 < z

    1. Initial program 67.5%

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

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

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

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

    if -1.60000000000000008e97 < z < 1.26e163

    1. Initial program 92.0%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.6 \cdot 10^{+97}:\\ \;\;\;\;x + t\\ \mathbf{elif}\;z \leq 1.26 \cdot 10^{+163}:\\ \;\;\;\;x + t \cdot \frac{y}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x + t\\ \end{array} \]

Alternative 6: 98.1% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1 \cdot 10^{+119}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\ \mathbf{else}:\\ \;\;\;\;x + t \cdot \frac{y - z}{a - z}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= y -1e+119)
   (+ x (/ (- y z) (/ (- a z) t)))
   (+ x (* t (/ (- y z) (- a z))))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (y <= -1e+119) {
		tmp = x + ((y - z) / ((a - z) / t));
	} else {
		tmp = x + (t * ((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 (y <= (-1d+119)) then
        tmp = x + ((y - z) / ((a - z) / t))
    else
        tmp = x + (t * ((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 (y <= -1e+119) {
		tmp = x + ((y - z) / ((a - z) / t));
	} else {
		tmp = x + (t * ((y - z) / (a - z)));
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if y <= -1e+119:
		tmp = x + ((y - z) / ((a - z) / t))
	else:
		tmp = x + (t * ((y - z) / (a - z)))
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (y <= -1e+119)
		tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t)));
	else
		tmp = Float64(x + Float64(t * Float64(Float64(y - z) / Float64(a - z))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (y <= -1e+119)
		tmp = x + ((y - z) / ((a - z) / t));
	else
		tmp = x + (t * ((y - z) / (a - z)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -1e+119], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -9.99999999999999944e118

    1. Initial program 73.4%

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

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

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

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

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

    if -9.99999999999999944e118 < y

    1. Initial program 88.4%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1 \cdot 10^{+119}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\ \mathbf{else}:\\ \;\;\;\;x + t \cdot \frac{y - z}{a - z}\\ \end{array} \]

Alternative 7: 62.6% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -4.1 \cdot 10^{+47}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{-233}:\\ \;\;\;\;x + t\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{-220}:\\ \;\;\;\;t \cdot \frac{-y}{z}\\ \mathbf{elif}\;a \leq 5 \cdot 10^{+101}:\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= a -4.1e+47)
   x
   (if (<= a 5.2e-233)
     (+ x t)
     (if (<= a 2.4e-220) (* t (/ (- y) z)) (if (<= a 5e+101) (+ x t) x)))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -4.1e+47) {
		tmp = x;
	} else if (a <= 5.2e-233) {
		tmp = x + t;
	} else if (a <= 2.4e-220) {
		tmp = t * (-y / z);
	} else if (a <= 5e+101) {
		tmp = x + t;
	} 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 <= (-4.1d+47)) then
        tmp = x
    else if (a <= 5.2d-233) then
        tmp = x + t
    else if (a <= 2.4d-220) then
        tmp = t * (-y / z)
    else if (a <= 5d+101) then
        tmp = x + t
    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 <= -4.1e+47) {
		tmp = x;
	} else if (a <= 5.2e-233) {
		tmp = x + t;
	} else if (a <= 2.4e-220) {
		tmp = t * (-y / z);
	} else if (a <= 5e+101) {
		tmp = x + t;
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if a <= -4.1e+47:
		tmp = x
	elif a <= 5.2e-233:
		tmp = x + t
	elif a <= 2.4e-220:
		tmp = t * (-y / z)
	elif a <= 5e+101:
		tmp = x + t
	else:
		tmp = x
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -4.1e+47)
		tmp = x;
	elseif (a <= 5.2e-233)
		tmp = Float64(x + t);
	elseif (a <= 2.4e-220)
		tmp = Float64(t * Float64(Float64(-y) / z));
	elseif (a <= 5e+101)
		tmp = Float64(x + t);
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (a <= -4.1e+47)
		tmp = x;
	elseif (a <= 5.2e-233)
		tmp = x + t;
	elseif (a <= 2.4e-220)
		tmp = t * (-y / z);
	elseif (a <= 5e+101)
		tmp = x + t;
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.1e+47], x, If[LessEqual[a, 5.2e-233], N[(x + t), $MachinePrecision], If[LessEqual[a, 2.4e-220], N[(t * N[((-y) / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e+101], N[(x + t), $MachinePrecision], x]]]]
\begin{array}{l}

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

\mathbf{elif}\;a \leq 5.2 \cdot 10^{-233}:\\
\;\;\;\;x + t\\

\mathbf{elif}\;a \leq 2.4 \cdot 10^{-220}:\\
\;\;\;\;t \cdot \frac{-y}{z}\\

\mathbf{elif}\;a \leq 5 \cdot 10^{+101}:\\
\;\;\;\;x + t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -4.1000000000000001e47 or 4.99999999999999989e101 < a

    1. Initial program 84.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.1000000000000001e47 < a < 5.1999999999999996e-233 or 2.4000000000000001e-220 < a < 4.99999999999999989e101

    1. Initial program 86.6%

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

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

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

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

    if 5.1999999999999996e-233 < a < 2.4000000000000001e-220

    1. Initial program 99.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{x - t \cdot \frac{y}{z}} \]
    12. Simplified100.0%

      \[\leadsto \color{blue}{x - t \cdot \frac{y}{z}} \]
    13. Taylor expanded in x around 0 99.7%

      \[\leadsto \color{blue}{-1 \cdot \frac{t \cdot y}{z}} \]
    14. Step-by-step derivation
      1. mul-1-neg99.7%

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

        \[\leadsto -\color{blue}{t \cdot \frac{y}{z}} \]
      3. distribute-rgt-neg-in100.0%

        \[\leadsto \color{blue}{t \cdot \left(-\frac{y}{z}\right)} \]
    15. Simplified100.0%

      \[\leadsto \color{blue}{t \cdot \left(-\frac{y}{z}\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification67.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.1 \cdot 10^{+47}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{-233}:\\ \;\;\;\;x + t\\ \mathbf{elif}\;a \leq 2.4 \cdot 10^{-220}:\\ \;\;\;\;t \cdot \frac{-y}{z}\\ \mathbf{elif}\;a \leq 5 \cdot 10^{+101}:\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 8: 75.9% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.75 \cdot 10^{+90} \lor \neg \left(z \leq 1.35 \cdot 10^{+124}\right):\\
\;\;\;\;x + t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.7499999999999999e90 or 1.34999999999999989e124 < z

    1. Initial program 67.1%

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

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

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

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

    if -1.7499999999999999e90 < z < 1.34999999999999989e124

    1. Initial program 93.3%

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

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

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

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

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

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

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

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

Alternative 9: 75.9% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+90} \lor \neg \left(z \leq 1.4 \cdot 10^{+124}\right):\\
\;\;\;\;x + t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.15e90 or 1.4e124 < z

    1. Initial program 67.1%

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

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

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

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

    if -1.15e90 < z < 1.4e124

    1. Initial program 93.3%

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

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

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

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

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

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

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

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

        \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{a}{t}}} \]
      3. un-div-inv77.8%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{a}{t}}} \]
    8. Applied egg-rr77.8%

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

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

Alternative 10: 98.2% accurate, 1.0× speedup?

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

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

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

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

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

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

Alternative 11: 63.3% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.6 \cdot 10^{+47}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 3.8 \cdot 10^{+102}:\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= a -1.6e+47) x (if (<= a 3.8e+102) (+ x t) x)))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -1.6e+47) {
		tmp = x;
	} else if (a <= 3.8e+102) {
		tmp = x + t;
	} 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 <= (-1.6d+47)) then
        tmp = x
    else if (a <= 3.8d+102) then
        tmp = x + t
    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 <= -1.6e+47) {
		tmp = x;
	} else if (a <= 3.8e+102) {
		tmp = x + t;
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if a <= -1.6e+47:
		tmp = x
	elif a <= 3.8e+102:
		tmp = x + t
	else:
		tmp = x
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -1.6e+47)
		tmp = x;
	elseif (a <= 3.8e+102)
		tmp = Float64(x + t);
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (a <= -1.6e+47)
		tmp = x;
	elseif (a <= 3.8e+102)
		tmp = x + t;
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.6e+47], x, If[LessEqual[a, 3.8e+102], N[(x + t), $MachinePrecision], x]]
\begin{array}{l}

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

\mathbf{elif}\;a \leq 3.8 \cdot 10^{+102}:\\
\;\;\;\;x + t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -1.6e47 or 3.79999999999999979e102 < a

    1. Initial program 84.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.6e47 < a < 3.79999999999999979e102

    1. Initial program 87.2%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.6 \cdot 10^{+47}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 3.8 \cdot 10^{+102}:\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 12: 50.8% 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 85.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{x} \]
  11. Final simplification53.8%

    \[\leadsto x \]

Developer target: 99.2% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \frac{y - z}{a - z} \cdot t\\ \mathbf{if}\;t < -1.0682974490174067 \cdot 10^{-39}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t < 3.9110949887586375 \cdot 10^{-141}:\\ \;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ x (* (/ (- y z) (- a z)) t))))
   (if (< t -1.0682974490174067e-39)
     t_1
     (if (< t 3.9110949887586375e-141) (+ x (/ (* (- y z) t) (- a z))) t_1))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (((y - z) / (a - z)) * t);
	double tmp;
	if (t < -1.0682974490174067e-39) {
		tmp = t_1;
	} else if (t < 3.9110949887586375e-141) {
		tmp = x + (((y - z) * t) / (a - z));
	} 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 - z) / (a - z)) * t)
    if (t < (-1.0682974490174067d-39)) then
        tmp = t_1
    else if (t < 3.9110949887586375d-141) then
        tmp = x + (((y - z) * t) / (a - z))
    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 - z) / (a - z)) * t);
	double tmp;
	if (t < -1.0682974490174067e-39) {
		tmp = t_1;
	} else if (t < 3.9110949887586375e-141) {
		tmp = x + (((y - z) * t) / (a - z));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = x + (((y - z) / (a - z)) * t)
	tmp = 0
	if t < -1.0682974490174067e-39:
		tmp = t_1
	elif t < 3.9110949887586375e-141:
		tmp = x + (((y - z) * t) / (a - z))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(x + Float64(Float64(Float64(y - z) / Float64(a - z)) * t))
	tmp = 0.0
	if (t < -1.0682974490174067e-39)
		tmp = t_1;
	elseif (t < 3.9110949887586375e-141)
		tmp = Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = x + (((y - z) / (a - z)) * t);
	tmp = 0.0;
	if (t < -1.0682974490174067e-39)
		tmp = t_1;
	elseif (t < 3.9110949887586375e-141)
		tmp = x + (((y - z) * t) / (a - z));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.0682974490174067e-39], t$95$1, If[Less[t, 3.9110949887586375e-141], N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + \frac{y - z}{a - z} \cdot t\\
\mathbf{if}\;t < -1.0682974490174067 \cdot 10^{-39}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t < 3.9110949887586375 \cdot 10^{-141}:\\
\;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\

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


\end{array}
\end{array}

Reproduce

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

  :herbie-target
  (if (< t -1.0682974490174067e-39) (+ x (* (/ (- y z) (- a z)) t)) (if (< t 3.9110949887586375e-141) (+ x (/ (* (- y z) t) (- a z))) (+ x (* (/ (- y z) (- a z)) t))))

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