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

Percentage Accurate: 86.3% → 98.4%
Time: 8.0s
Alternatives: 11
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 11 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: 86.3% 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: 98.4% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x + \frac{\left(y - z\right) \cdot t}{a - z} \leq -4000000000:\\ \;\;\;\;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 (<= (+ x (/ (* (- y z) t) (- a z))) -4000000000.0)
   (+ 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 ((x + (((y - z) * t) / (a - z))) <= -4000000000.0) {
		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 ((x + (((y - z) * t) / (a - z))) <= (-4000000000.0d0)) 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 ((x + (((y - z) * t) / (a - z))) <= -4000000000.0) {
		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 (x + (((y - z) * t) / (a - z))) <= -4000000000.0:
		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 (Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z))) <= -4000000000.0)
		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 ((x + (((y - z) * t) / (a - z))) <= -4000000000.0)
		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[N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -4000000000.0], 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}\;x + \frac{\left(y - z\right) \cdot t}{a - z} \leq -4000000000:\\
\;\;\;\;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 (+.f64 x (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z))) < -4e9

    1. Initial program 86.8%

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

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

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

    if -4e9 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)))

    1. Initial program 88.3%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x + \frac{\left(y - z\right) \cdot t}{a - z} \leq -4000000000:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\ \mathbf{else}:\\ \;\;\;\;x + t \cdot \frac{y - z}{a - z}\\ \end{array} \]

Alternative 2: 98.3% accurate, 0.5× speedup?

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 x (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z))) < -4e9

    1. Initial program 86.8%

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

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

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

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

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

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

    if -4e9 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)))

    1. Initial program 88.3%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x + \frac{\left(y - z\right) \cdot t}{a - z} \leq -4000000000:\\ \;\;\;\;x + \left(y - z\right) \cdot \frac{t}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x + t \cdot \frac{y - z}{a - z}\\ \end{array} \]

Alternative 3: 78.3% accurate, 0.6× speedup?

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

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

\mathbf{elif}\;z \leq -1.25 \cdot 10^{-69}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\

\mathbf{elif}\;z \leq -2.2 \cdot 10^{-78} \lor \neg \left(z \leq 1.05 \cdot 10^{+63}\right):\\
\;\;\;\;x + t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.0499999999999999e86 or -1.25000000000000008e-69 < z < -2.1999999999999999e-78 or 1.0500000000000001e63 < z

    1. Initial program 74.4%

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

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

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

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

    if -1.0499999999999999e86 < z < -1.25000000000000008e-69

    1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

    if -2.1999999999999999e-78 < z < 1.0500000000000001e63

    1. Initial program 96.3%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.05 \cdot 10^{+86}:\\ \;\;\;\;x + t\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-69}:\\ \;\;\;\;x - t \cdot \frac{y}{z}\\ \mathbf{elif}\;z \leq -2.2 \cdot 10^{-78} \lor \neg \left(z \leq 1.05 \cdot 10^{+63}\right):\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;x + \left(y - z\right) \cdot \frac{t}{a}\\ \end{array} \]

Alternative 4: 76.9% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;z \leq -1.7 \cdot 10^{-61}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\

\mathbf{elif}\;z \leq 1.6 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -7.5999999999999993e88 or 1.60000000000000009e64 < z

    1. Initial program 73.4%

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

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

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

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

    if -7.5999999999999993e88 < z < -1.6999999999999999e-61

    1. Initial program 99.8%

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

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

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

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

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

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

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

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

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

    if -1.6999999999999999e-61 < z < 1.60000000000000009e64

    1. Initial program 96.4%

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

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

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

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

        \[\leadsto x + \color{blue}{\frac{t}{\frac{a}{y}}} \]
    6. Simplified79.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7.6 \cdot 10^{+88}:\\ \;\;\;\;x + t\\ \mathbf{elif}\;z \leq -1.7 \cdot 10^{-61}:\\ \;\;\;\;x - t \cdot \frac{y}{z}\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{+64}:\\ \;\;\;\;x + \frac{t}{\frac{a}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + t\\ \end{array} \]

Alternative 5: 85.4% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.7 \cdot 10^{+85} \lor \neg \left(z \leq 9.5 \cdot 10^{+86}\right):\\
\;\;\;\;x + t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.7000000000000002e85 or 9.50000000000000028e86 < z

    1. Initial program 70.8%

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

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

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

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

    if -1.7000000000000002e85 < z < 9.50000000000000028e86

    1. Initial program 97.0%

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

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

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

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

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

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

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

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

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

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

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

Alternative 6: 88.4% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.00098 \lor \neg \left(z \leq 4 \cdot 10^{+64}\right):\\
\;\;\;\;x - t \cdot \left(\frac{y}{z} + -1\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -9.7999999999999997e-4 or 4.00000000000000009e64 < z

    1. Initial program 77.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -9.7999999999999997e-4 < z < 4.00000000000000009e64

    1. Initial program 96.6%

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

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

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

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

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

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

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

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

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

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

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

Alternative 7: 76.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.15 \cdot 10^{-78} \lor \neg \left(z \leq 3 \cdot 10^{+64}\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 -2.15e-78) (not (<= z 3e+64))) (+ x t) (+ x (* y (/ t a)))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((z <= -2.15e-78) || !(z <= 3e+64)) {
		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 <= (-2.15d-78)) .or. (.not. (z <= 3d+64))) 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 <= -2.15e-78) || !(z <= 3e+64)) {
		tmp = x + t;
	} else {
		tmp = x + (y * (t / a));
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if (z <= -2.15e-78) or not (z <= 3e+64):
		tmp = x + t
	else:
		tmp = x + (y * (t / a))
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if ((z <= -2.15e-78) || !(z <= 3e+64))
		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 <= -2.15e-78) || ~((z <= 3e+64)))
		tmp = x + t;
	else
		tmp = x + (y * (t / a));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.15e-78], N[Not[LessEqual[z, 3e+64]], $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 -2.15 \cdot 10^{-78} \lor \neg \left(z \leq 3 \cdot 10^{+64}\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 < -2.14999999999999997e-78 or 3.0000000000000002e64 < z

    1. Initial program 78.4%

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

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

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

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

    if -2.14999999999999997e-78 < z < 3.0000000000000002e64

    1. Initial program 96.4%

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

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

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

        \[\leadsto x + \color{blue}{\frac{t}{a} \cdot y} \]
    6. Simplified79.7%

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

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

Alternative 8: 76.0% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{-78} \lor \neg \left(z \leq 2.55 \cdot 10^{+64}\right):\\
\;\;\;\;x + t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.3000000000000002e-78 or 2.55000000000000012e64 < z

    1. Initial program 78.4%

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

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

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

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

    if -2.3000000000000002e-78 < z < 2.55000000000000012e64

    1. Initial program 96.4%

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

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

        \[\leadsto x + \color{blue}{\frac{t}{\frac{a}{y}}} \]
    6. Simplified79.7%

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

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

Alternative 9: 96.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \left(y - z\right) \cdot \frac{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(y - z) * Float64(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[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

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

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

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

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

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

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

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

Alternative 10: 61.3% accurate, 2.2× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -2.8999999999999999e55

    1. Initial program 86.4%

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

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

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

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

        \[\leadsto x + \color{blue}{\frac{t}{\frac{a}{y}}} \]
    6. Simplified82.3%

      \[\leadsto x + \color{blue}{\frac{t}{\frac{a}{y}}} \]
    7. Taylor expanded in x around inf 69.2%

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

    if -2.8999999999999999e55 < a

    1. Initial program 88.1%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.9 \cdot 10^{+55}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;x + t\\ \end{array} \]

Alternative 11: 51.4% 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 87.8%

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

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

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

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

      \[\leadsto x + \color{blue}{\frac{t}{\frac{a}{y}}} \]
  6. Simplified62.0%

    \[\leadsto x + \color{blue}{\frac{t}{\frac{a}{y}}} \]
  7. Taylor expanded in x around inf 51.5%

    \[\leadsto \color{blue}{x} \]
  8. Final simplification51.5%

    \[\leadsto x \]

Developer target: 99.3% 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 2023336 
(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))))