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

Percentage Accurate: 85.7% → 99.6%
Time: 6.7s
Alternatives: 10
Speedup: 0.7×

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 10 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.7% 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.6% accurate, 0.3× 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 10^{+292}\right):\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\ \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 1e+292)))
     (+ x (/ (- y z) (/ (- a z) t)))
     (+ 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 <= 1e+292)) {
		tmp = x + ((y - z) / ((a - z) / t));
	} 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 <= 1e+292)) {
		tmp = x + ((y - z) / ((a - z) / t));
	} 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 <= 1e+292):
		tmp = x + ((y - z) / ((a - z) / t))
	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 <= 1e+292))
		tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t)));
	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 <= 1e+292)))
		tmp = x + ((y - z) / ((a - z) / t));
	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, 1e+292]], $MachinePrecision]], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $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 10^{+292}\right):\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\

\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 1e292 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z))

    1. Initial program 29.3%

      \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto x + \color{blue}{\frac{\left(y - z\right) \cdot t}{a - z}} \]
      2. lift-*.f64N/A

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

        \[\leadsto x + \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
      4. clear-numN/A

        \[\leadsto x + \left(y - z\right) \cdot \color{blue}{\frac{1}{\frac{a - z}{t}}} \]
      5. un-div-invN/A

        \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t}}} \]
      6. lower-/.f64N/A

        \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t}}} \]
      7. lower-/.f6499.8

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

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

    if -inf.0 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < 1e292

    1. Initial program 99.9%

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

    \[\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 10^{+292}\right):\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 93.0% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.1 \cdot 10^{+78}:\\ \;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\ \mathbf{elif}\;z \leq 3.2 \cdot 10^{+115}:\\ \;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x + \mathsf{fma}\left(\frac{y}{-z}, t, t\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= z -2.1e+78)
   (fma (- 1.0 (/ y z)) t x)
   (if (<= z 3.2e+115)
     (+ x (/ (* (- y z) t) (- a z)))
     (+ x (fma (/ y (- z)) t t)))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -2.1e+78) {
		tmp = fma((1.0 - (y / z)), t, x);
	} else if (z <= 3.2e+115) {
		tmp = x + (((y - z) * t) / (a - z));
	} else {
		tmp = x + fma((y / -z), t, t);
	}
	return tmp;
}
function code(x, y, z, t, a)
	tmp = 0.0
	if (z <= -2.1e+78)
		tmp = fma(Float64(1.0 - Float64(y / z)), t, x);
	elseif (z <= 3.2e+115)
		tmp = Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z)));
	else
		tmp = Float64(x + fma(Float64(y / Float64(-z)), t, t));
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.1e+78], N[(N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision] * t + x), $MachinePrecision], If[LessEqual[z, 3.2e+115], N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y / (-z)), $MachinePrecision] * t + t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+78}:\\
\;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\

\mathbf{elif}\;z \leq 3.2 \cdot 10^{+115}:\\
\;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -2.1000000000000001e78

    1. Initial program 75.1%

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

      \[\leadsto \color{blue}{x + -1 \cdot \frac{t \cdot \left(y - z\right)}{z}} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

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

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

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{t \cdot \frac{y - z}{z}}\right)\right) + x \]
      4. *-commutativeN/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y - z}{z} \cdot t}\right)\right) + x \]
      5. distribute-lft-neg-inN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{z}\right)\right) \cdot t} + x \]
      6. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(\frac{y - z}{z}\right), t, x\right)} \]
      7. neg-sub0N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{0 - \frac{y - z}{z}}, t, x\right) \]
      8. div-subN/A

        \[\leadsto \mathsf{fma}\left(0 - \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)}, t, x\right) \]
      9. *-inversesN/A

        \[\leadsto \mathsf{fma}\left(0 - \left(\frac{y}{z} - \color{blue}{1}\right), t, x\right) \]
      10. associate-+l-N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - \frac{y}{z}\right) + 1}, t, x\right) \]
      11. neg-sub0N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)} + 1, t, x\right) \]
      12. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot \frac{y}{z}} + 1, t, x\right) \]
      13. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 + -1 \cdot \frac{y}{z}}, t, x\right) \]
      14. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)}, t, x\right) \]
      15. unsub-negN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 - \frac{y}{z}}, t, x\right) \]
      16. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 - \frac{y}{z}}, t, x\right) \]
      17. lower-/.f6497.9

        \[\leadsto \mathsf{fma}\left(1 - \color{blue}{\frac{y}{z}}, t, x\right) \]
    5. Applied rewrites97.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)} \]

    if -2.1000000000000001e78 < z < 3.2e115

    1. Initial program 93.8%

      \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
    2. Add Preprocessing

    if 3.2e115 < z

    1. Initial program 62.8%

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

      \[\leadsto x + \color{blue}{-1 \cdot \frac{t \cdot \left(y - z\right)}{z}} \]
    4. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{t \cdot \left(y - z\right)}{z}\right)\right)} \]
      2. neg-sub0N/A

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

        \[\leadsto x + \left(0 - \color{blue}{t \cdot \frac{y - z}{z}}\right) \]
      4. div-subN/A

        \[\leadsto x + \left(0 - t \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)}\right) \]
      5. sub-negN/A

        \[\leadsto x + \left(0 - t \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)}\right) \]
      6. *-inversesN/A

        \[\leadsto x + \left(0 - t \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto x + \left(0 - t \cdot \left(\frac{y}{z} + \color{blue}{-1}\right)\right) \]
      8. distribute-rgt-inN/A

        \[\leadsto x + \left(0 - \color{blue}{\left(\frac{y}{z} \cdot t + -1 \cdot t\right)}\right) \]
      9. *-commutativeN/A

        \[\leadsto x + \left(0 - \left(\color{blue}{t \cdot \frac{y}{z}} + -1 \cdot t\right)\right) \]
      10. associate-/l*N/A

        \[\leadsto x + \left(0 - \left(\color{blue}{\frac{t \cdot y}{z}} + -1 \cdot t\right)\right) \]
      11. mul-1-negN/A

        \[\leadsto x + \left(0 - \left(\frac{t \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(t\right)\right)}\right)\right) \]
      12. unsub-negN/A

        \[\leadsto x + \left(0 - \color{blue}{\left(\frac{t \cdot y}{z} - t\right)}\right) \]
      13. associate-+l-N/A

        \[\leadsto x + \color{blue}{\left(\left(0 - \frac{t \cdot y}{z}\right) + t\right)} \]
      14. neg-sub0N/A

        \[\leadsto x + \left(\color{blue}{\left(\mathsf{neg}\left(\frac{t \cdot y}{z}\right)\right)} + t\right) \]
      15. associate-/l*N/A

        \[\leadsto x + \left(\left(\mathsf{neg}\left(\color{blue}{t \cdot \frac{y}{z}}\right)\right) + t\right) \]
      16. *-commutativeN/A

        \[\leadsto x + \left(\left(\mathsf{neg}\left(\color{blue}{\frac{y}{z} \cdot t}\right)\right) + t\right) \]
      17. distribute-lft-neg-inN/A

        \[\leadsto x + \left(\color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right) \cdot t} + t\right) \]
      18. mul-1-negN/A

        \[\leadsto x + \left(\color{blue}{\left(-1 \cdot \frac{y}{z}\right)} \cdot t + t\right) \]
      19. lower-fma.f64N/A

        \[\leadsto x + \color{blue}{\mathsf{fma}\left(-1 \cdot \frac{y}{z}, t, t\right)} \]
    5. Applied rewrites93.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.1 \cdot 10^{+78}:\\ \;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\ \mathbf{elif}\;z \leq 3.2 \cdot 10^{+115}:\\ \;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x + \mathsf{fma}\left(\frac{y}{-z}, t, t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 83.2% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.35 \cdot 10^{-74} \lor \neg \left(z \leq 9 \cdot 10^{-79}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a - z}, -t, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (or (<= z -1.35e-74) (not (<= z 9e-79)))
   (fma (/ z (- a z)) (- t) x)
   (fma (- y z) (/ t a) x)))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((z <= -1.35e-74) || !(z <= 9e-79)) {
		tmp = fma((z / (a - z)), -t, x);
	} else {
		tmp = fma((y - z), (t / a), x);
	}
	return tmp;
}
function code(x, y, z, t, a)
	tmp = 0.0
	if ((z <= -1.35e-74) || !(z <= 9e-79))
		tmp = fma(Float64(z / Float64(a - z)), Float64(-t), x);
	else
		tmp = fma(Float64(y - z), Float64(t / a), x);
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.35e-74], N[Not[LessEqual[z, 9e-79]], $MachinePrecision]], N[(N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision] * (-t) + x), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * N[(t / a), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.35 \cdot 10^{-74} \lor \neg \left(z \leq 9 \cdot 10^{-79}\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{a - z}, -t, x\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.35000000000000009e-74 or 9.0000000000000006e-79 < z

    1. Initial program 79.2%

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

      \[\leadsto \color{blue}{x + -1 \cdot \frac{t \cdot z}{a - z}} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{-1 \cdot \frac{t \cdot z}{a - z} + x} \]
      2. mul-1-negN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{t \cdot z}{a - z}\right)\right)} + x \]
      3. associate-/l*N/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{t \cdot \frac{z}{a - z}}\right)\right) + x \]
      4. *-commutativeN/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{z}{a - z} \cdot t}\right)\right) + x \]
      5. distribute-rgt-neg-inN/A

        \[\leadsto \color{blue}{\frac{z}{a - z} \cdot \left(\mathsf{neg}\left(t\right)\right)} + x \]
      6. mul-1-negN/A

        \[\leadsto \frac{z}{a - z} \cdot \color{blue}{\left(-1 \cdot t\right)} + x \]
      7. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{a - z}, -1 \cdot t, x\right)} \]
      8. lower-/.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{a - z}}, -1 \cdot t, x\right) \]
      9. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(\frac{z}{\color{blue}{a - z}}, -1 \cdot t, x\right) \]
      10. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(\frac{z}{a - z}, \color{blue}{\mathsf{neg}\left(t\right)}, x\right) \]
      11. lower-neg.f6484.4

        \[\leadsto \mathsf{fma}\left(\frac{z}{a - z}, \color{blue}{-t}, x\right) \]
    5. Applied rewrites84.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{a - z}, -t, x\right)} \]

    if -1.35000000000000009e-74 < z < 9.0000000000000006e-79

    1. Initial program 95.9%

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

      \[\leadsto \color{blue}{x + \frac{t \cdot \left(y - z\right)}{a}} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a} + x} \]
      2. *-commutativeN/A

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

        \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a}} + x \]
      4. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)} \]
      5. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{y - z}, \frac{t}{a}, x\right) \]
      6. lower-/.f6484.8

        \[\leadsto \mathsf{fma}\left(y - z, \color{blue}{\frac{t}{a}}, x\right) \]
    5. Applied rewrites84.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification84.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.35 \cdot 10^{-74} \lor \neg \left(z \leq 9 \cdot 10^{-79}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a - z}, -t, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 86.5% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.5 \cdot 10^{+38}:\\ \;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\ \mathbf{elif}\;z \leq 9.8 \cdot 10^{+91}:\\ \;\;\;\;x + \frac{t \cdot y}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x + \mathsf{fma}\left(\frac{y}{-z}, t, t\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= z -1.5e+38)
   (fma (- 1.0 (/ y z)) t x)
   (if (<= z 9.8e+91) (+ x (/ (* t y) (- a z))) (+ x (fma (/ y (- z)) t t)))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -1.5e+38) {
		tmp = fma((1.0 - (y / z)), t, x);
	} else if (z <= 9.8e+91) {
		tmp = x + ((t * y) / (a - z));
	} else {
		tmp = x + fma((y / -z), t, t);
	}
	return tmp;
}
function code(x, y, z, t, a)
	tmp = 0.0
	if (z <= -1.5e+38)
		tmp = fma(Float64(1.0 - Float64(y / z)), t, x);
	elseif (z <= 9.8e+91)
		tmp = Float64(x + Float64(Float64(t * y) / Float64(a - z)));
	else
		tmp = Float64(x + fma(Float64(y / Float64(-z)), t, t));
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.5e+38], N[(N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision] * t + x), $MachinePrecision], If[LessEqual[z, 9.8e+91], N[(x + N[(N[(t * y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y / (-z)), $MachinePrecision] * t + t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+38}:\\
\;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.5000000000000001e38

    1. Initial program 76.7%

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

      \[\leadsto \color{blue}{x + -1 \cdot \frac{t \cdot \left(y - z\right)}{z}} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

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

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

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{t \cdot \frac{y - z}{z}}\right)\right) + x \]
      4. *-commutativeN/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y - z}{z} \cdot t}\right)\right) + x \]
      5. distribute-lft-neg-inN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{z}\right)\right) \cdot t} + x \]
      6. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(\frac{y - z}{z}\right), t, x\right)} \]
      7. neg-sub0N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{0 - \frac{y - z}{z}}, t, x\right) \]
      8. div-subN/A

        \[\leadsto \mathsf{fma}\left(0 - \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)}, t, x\right) \]
      9. *-inversesN/A

        \[\leadsto \mathsf{fma}\left(0 - \left(\frac{y}{z} - \color{blue}{1}\right), t, x\right) \]
      10. associate-+l-N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - \frac{y}{z}\right) + 1}, t, x\right) \]
      11. neg-sub0N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)} + 1, t, x\right) \]
      12. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot \frac{y}{z}} + 1, t, x\right) \]
      13. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 + -1 \cdot \frac{y}{z}}, t, x\right) \]
      14. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)}, t, x\right) \]
      15. unsub-negN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 - \frac{y}{z}}, t, x\right) \]
      16. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 - \frac{y}{z}}, t, x\right) \]
      17. lower-/.f6494.6

        \[\leadsto \mathsf{fma}\left(1 - \color{blue}{\frac{y}{z}}, t, x\right) \]
    5. Applied rewrites94.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)} \]

    if -1.5000000000000001e38 < z < 9.8000000000000006e91

    1. Initial program 93.9%

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

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

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

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

    if 9.8000000000000006e91 < z

    1. Initial program 65.9%

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

      \[\leadsto x + \color{blue}{-1 \cdot \frac{t \cdot \left(y - z\right)}{z}} \]
    4. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{t \cdot \left(y - z\right)}{z}\right)\right)} \]
      2. neg-sub0N/A

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

        \[\leadsto x + \left(0 - \color{blue}{t \cdot \frac{y - z}{z}}\right) \]
      4. div-subN/A

        \[\leadsto x + \left(0 - t \cdot \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)}\right) \]
      5. sub-negN/A

        \[\leadsto x + \left(0 - t \cdot \color{blue}{\left(\frac{y}{z} + \left(\mathsf{neg}\left(\frac{z}{z}\right)\right)\right)}\right) \]
      6. *-inversesN/A

        \[\leadsto x + \left(0 - t \cdot \left(\frac{y}{z} + \left(\mathsf{neg}\left(\color{blue}{1}\right)\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto x + \left(0 - t \cdot \left(\frac{y}{z} + \color{blue}{-1}\right)\right) \]
      8. distribute-rgt-inN/A

        \[\leadsto x + \left(0 - \color{blue}{\left(\frac{y}{z} \cdot t + -1 \cdot t\right)}\right) \]
      9. *-commutativeN/A

        \[\leadsto x + \left(0 - \left(\color{blue}{t \cdot \frac{y}{z}} + -1 \cdot t\right)\right) \]
      10. associate-/l*N/A

        \[\leadsto x + \left(0 - \left(\color{blue}{\frac{t \cdot y}{z}} + -1 \cdot t\right)\right) \]
      11. mul-1-negN/A

        \[\leadsto x + \left(0 - \left(\frac{t \cdot y}{z} + \color{blue}{\left(\mathsf{neg}\left(t\right)\right)}\right)\right) \]
      12. unsub-negN/A

        \[\leadsto x + \left(0 - \color{blue}{\left(\frac{t \cdot y}{z} - t\right)}\right) \]
      13. associate-+l-N/A

        \[\leadsto x + \color{blue}{\left(\left(0 - \frac{t \cdot y}{z}\right) + t\right)} \]
      14. neg-sub0N/A

        \[\leadsto x + \left(\color{blue}{\left(\mathsf{neg}\left(\frac{t \cdot y}{z}\right)\right)} + t\right) \]
      15. associate-/l*N/A

        \[\leadsto x + \left(\left(\mathsf{neg}\left(\color{blue}{t \cdot \frac{y}{z}}\right)\right) + t\right) \]
      16. *-commutativeN/A

        \[\leadsto x + \left(\left(\mathsf{neg}\left(\color{blue}{\frac{y}{z} \cdot t}\right)\right) + t\right) \]
      17. distribute-lft-neg-inN/A

        \[\leadsto x + \left(\color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right) \cdot t} + t\right) \]
      18. mul-1-negN/A

        \[\leadsto x + \left(\color{blue}{\left(-1 \cdot \frac{y}{z}\right)} \cdot t + t\right) \]
      19. lower-fma.f64N/A

        \[\leadsto x + \color{blue}{\mathsf{fma}\left(-1 \cdot \frac{y}{z}, t, t\right)} \]
    5. Applied rewrites92.0%

      \[\leadsto x + \color{blue}{\mathsf{fma}\left(\frac{y}{-z}, t, t\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification88.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.5 \cdot 10^{+38}:\\ \;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\ \mathbf{elif}\;z \leq 9.8 \cdot 10^{+91}:\\ \;\;\;\;x + \frac{t \cdot y}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x + \mathsf{fma}\left(\frac{y}{-z}, t, t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 82.1% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.7 \cdot 10^{-31} \lor \neg \left(z \leq 3.1 \cdot 10^{+91}\right):\\ \;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (or (<= z -3.7e-31) (not (<= z 3.1e+91)))
   (fma (- 1.0 (/ y z)) t x)
   (fma (- y z) (/ t a) x)))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((z <= -3.7e-31) || !(z <= 3.1e+91)) {
		tmp = fma((1.0 - (y / z)), t, x);
	} else {
		tmp = fma((y - z), (t / a), x);
	}
	return tmp;
}
function code(x, y, z, t, a)
	tmp = 0.0
	if ((z <= -3.7e-31) || !(z <= 3.1e+91))
		tmp = fma(Float64(1.0 - Float64(y / z)), t, x);
	else
		tmp = fma(Float64(y - z), Float64(t / a), x);
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.7e-31], N[Not[LessEqual[z, 3.1e+91]], $MachinePrecision]], N[(N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision] * t + x), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * N[(t / a), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.7 \cdot 10^{-31} \lor \neg \left(z \leq 3.1 \cdot 10^{+91}\right):\\
\;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -3.6999999999999998e-31 or 3.09999999999999998e91 < z

    1. Initial program 74.7%

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

      \[\leadsto \color{blue}{x + -1 \cdot \frac{t \cdot \left(y - z\right)}{z}} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

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

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

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{t \cdot \frac{y - z}{z}}\right)\right) + x \]
      4. *-commutativeN/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y - z}{z} \cdot t}\right)\right) + x \]
      5. distribute-lft-neg-inN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{z}\right)\right) \cdot t} + x \]
      6. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(\frac{y - z}{z}\right), t, x\right)} \]
      7. neg-sub0N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{0 - \frac{y - z}{z}}, t, x\right) \]
      8. div-subN/A

        \[\leadsto \mathsf{fma}\left(0 - \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)}, t, x\right) \]
      9. *-inversesN/A

        \[\leadsto \mathsf{fma}\left(0 - \left(\frac{y}{z} - \color{blue}{1}\right), t, x\right) \]
      10. associate-+l-N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - \frac{y}{z}\right) + 1}, t, x\right) \]
      11. neg-sub0N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)} + 1, t, x\right) \]
      12. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot \frac{y}{z}} + 1, t, x\right) \]
      13. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 + -1 \cdot \frac{y}{z}}, t, x\right) \]
      14. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)}, t, x\right) \]
      15. unsub-negN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 - \frac{y}{z}}, t, x\right) \]
      16. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 - \frac{y}{z}}, t, x\right) \]
      17. lower-/.f6489.2

        \[\leadsto \mathsf{fma}\left(1 - \color{blue}{\frac{y}{z}}, t, x\right) \]
    5. Applied rewrites89.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)} \]

    if -3.6999999999999998e-31 < z < 3.09999999999999998e91

    1. Initial program 93.9%

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

      \[\leadsto \color{blue}{x + \frac{t \cdot \left(y - z\right)}{a}} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a} + x} \]
      2. *-commutativeN/A

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

        \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a}} + x \]
      4. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)} \]
      5. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{y - z}, \frac{t}{a}, x\right) \]
      6. lower-/.f6479.7

        \[\leadsto \mathsf{fma}\left(y - z, \color{blue}{\frac{t}{a}}, x\right) \]
    5. Applied rewrites79.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification83.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.7 \cdot 10^{-31} \lor \neg \left(z \leq 3.1 \cdot 10^{+91}\right):\\ \;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 82.5% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.6 \cdot 10^{-15} \lor \neg \left(z \leq 2.7 \cdot 10^{-22}\right):\\ \;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{t}{a}, x\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (or (<= z -3.6e-15) (not (<= z 2.7e-22)))
   (fma (- 1.0 (/ y z)) t x)
   (fma y (/ t a) x)))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((z <= -3.6e-15) || !(z <= 2.7e-22)) {
		tmp = fma((1.0 - (y / z)), t, x);
	} else {
		tmp = fma(y, (t / a), x);
	}
	return tmp;
}
function code(x, y, z, t, a)
	tmp = 0.0
	if ((z <= -3.6e-15) || !(z <= 2.7e-22))
		tmp = fma(Float64(1.0 - Float64(y / z)), t, x);
	else
		tmp = fma(y, Float64(t / a), x);
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.6e-15], N[Not[LessEqual[z, 2.7e-22]], $MachinePrecision]], N[(N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision] * t + x), $MachinePrecision], N[(y * N[(t / a), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.6 \cdot 10^{-15} \lor \neg \left(z \leq 2.7 \cdot 10^{-22}\right):\\
\;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{t}{a}, x\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -3.6000000000000001e-15 or 2.7000000000000002e-22 < z

    1. Initial program 74.8%

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

      \[\leadsto \color{blue}{x + -1 \cdot \frac{t \cdot \left(y - z\right)}{z}} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

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

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

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{t \cdot \frac{y - z}{z}}\right)\right) + x \]
      4. *-commutativeN/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\frac{y - z}{z} \cdot t}\right)\right) + x \]
      5. distribute-lft-neg-inN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{z}\right)\right) \cdot t} + x \]
      6. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(\frac{y - z}{z}\right), t, x\right)} \]
      7. neg-sub0N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{0 - \frac{y - z}{z}}, t, x\right) \]
      8. div-subN/A

        \[\leadsto \mathsf{fma}\left(0 - \color{blue}{\left(\frac{y}{z} - \frac{z}{z}\right)}, t, x\right) \]
      9. *-inversesN/A

        \[\leadsto \mathsf{fma}\left(0 - \left(\frac{y}{z} - \color{blue}{1}\right), t, x\right) \]
      10. associate-+l-N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(0 - \frac{y}{z}\right) + 1}, t, x\right) \]
      11. neg-sub0N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)} + 1, t, x\right) \]
      12. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{-1 \cdot \frac{y}{z}} + 1, t, x\right) \]
      13. +-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 + -1 \cdot \frac{y}{z}}, t, x\right) \]
      14. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(1 + \color{blue}{\left(\mathsf{neg}\left(\frac{y}{z}\right)\right)}, t, x\right) \]
      15. unsub-negN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 - \frac{y}{z}}, t, x\right) \]
      16. lower--.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{1 - \frac{y}{z}}, t, x\right) \]
      17. lower-/.f6487.2

        \[\leadsto \mathsf{fma}\left(1 - \color{blue}{\frac{y}{z}}, t, x\right) \]
    5. Applied rewrites87.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)} \]

    if -3.6000000000000001e-15 < z < 2.7000000000000002e-22

    1. Initial program 95.6%

      \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. lift-/.f64N/A

        \[\leadsto x + \color{blue}{\frac{\left(y - z\right) \cdot t}{a - z}} \]
      2. lift-*.f64N/A

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

        \[\leadsto x + \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
      4. clear-numN/A

        \[\leadsto x + \left(y - z\right) \cdot \color{blue}{\frac{1}{\frac{a - z}{t}}} \]
      5. un-div-invN/A

        \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t}}} \]
      6. lower-/.f64N/A

        \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t}}} \]
      7. lower-/.f6494.0

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

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

      \[\leadsto \color{blue}{x + \frac{t \cdot y}{a}} \]
    6. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\frac{t \cdot y}{a} + x} \]
      2. associate-/l*N/A

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} + x \]
      3. *-commutativeN/A

        \[\leadsto \color{blue}{\frac{y}{a} \cdot t} + x \]
      4. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{a}, t, x\right)} \]
      5. lower-/.f6476.5

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t, x\right) \]
    7. Applied rewrites76.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{a}, t, x\right)} \]
    8. Step-by-step derivation
      1. Applied rewrites78.4%

        \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{t}{a}}, x\right) \]
    9. Recombined 2 regimes into one program.
    10. Final simplification82.8%

      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.6 \cdot 10^{-15} \lor \neg \left(z \leq 2.7 \cdot 10^{-22}\right):\\ \;\;\;\;\mathsf{fma}\left(1 - \frac{y}{z}, t, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{t}{a}, x\right)\\ \end{array} \]
    11. Add Preprocessing

    Alternative 7: 77.0% accurate, 0.9× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1 \cdot 10^{+16} \lor \neg \left(z \leq 3.1 \cdot 10^{+91}\right):\\ \;\;\;\;t + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{t}{a}, x\right)\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (if (or (<= z -1e+16) (not (<= z 3.1e+91))) (+ t x) (fma y (/ t a) x)))
    double code(double x, double y, double z, double t, double a) {
    	double tmp;
    	if ((z <= -1e+16) || !(z <= 3.1e+91)) {
    		tmp = t + x;
    	} else {
    		tmp = fma(y, (t / a), x);
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a)
    	tmp = 0.0
    	if ((z <= -1e+16) || !(z <= 3.1e+91))
    		tmp = Float64(t + x);
    	else
    		tmp = fma(y, Float64(t / a), x);
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1e+16], N[Not[LessEqual[z, 3.1e+91]], $MachinePrecision]], N[(t + x), $MachinePrecision], N[(y * N[(t / a), $MachinePrecision] + x), $MachinePrecision]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;z \leq -1 \cdot 10^{+16} \lor \neg \left(z \leq 3.1 \cdot 10^{+91}\right):\\
    \;\;\;\;t + x\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(y, \frac{t}{a}, x\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if z < -1e16 or 3.09999999999999998e91 < z

      1. Initial program 72.9%

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

        \[\leadsto \color{blue}{t + x} \]
      4. Step-by-step derivation
        1. lower-+.f6486.3

          \[\leadsto \color{blue}{t + x} \]
      5. Applied rewrites86.3%

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

      if -1e16 < z < 3.09999999999999998e91

      1. Initial program 93.7%

        \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
      2. Add Preprocessing
      3. Step-by-step derivation
        1. lift-/.f64N/A

          \[\leadsto x + \color{blue}{\frac{\left(y - z\right) \cdot t}{a - z}} \]
        2. lift-*.f64N/A

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

          \[\leadsto x + \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
        4. clear-numN/A

          \[\leadsto x + \left(y - z\right) \cdot \color{blue}{\frac{1}{\frac{a - z}{t}}} \]
        5. un-div-invN/A

          \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t}}} \]
        6. lower-/.f64N/A

          \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t}}} \]
        7. lower-/.f6494.9

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

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

        \[\leadsto \color{blue}{x + \frac{t \cdot y}{a}} \]
      6. Step-by-step derivation
        1. +-commutativeN/A

          \[\leadsto \color{blue}{\frac{t \cdot y}{a} + x} \]
        2. associate-/l*N/A

          \[\leadsto \color{blue}{t \cdot \frac{y}{a}} + x \]
        3. *-commutativeN/A

          \[\leadsto \color{blue}{\frac{y}{a} \cdot t} + x \]
        4. lower-fma.f64N/A

          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{a}, t, x\right)} \]
        5. lower-/.f6474.3

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t, x\right) \]
      7. Applied rewrites74.3%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{a}, t, x\right)} \]
      8. Step-by-step derivation
        1. Applied rewrites75.9%

          \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{t}{a}}, x\right) \]
      9. Recombined 2 regimes into one program.
      10. Final simplification80.1%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1 \cdot 10^{+16} \lor \neg \left(z \leq 3.1 \cdot 10^{+91}\right):\\ \;\;\;\;t + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, \frac{t}{a}, x\right)\\ \end{array} \]
      11. Add Preprocessing

      Alternative 8: 76.3% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1 \cdot 10^{+16} \lor \neg \left(z \leq 1.9 \cdot 10^{+135}\right):\\ \;\;\;\;t + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t, x\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (or (<= z -1e+16) (not (<= z 1.9e+135))) (+ t x) (fma (/ y a) t x)))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if ((z <= -1e+16) || !(z <= 1.9e+135)) {
      		tmp = t + x;
      	} else {
      		tmp = fma((y / a), t, x);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if ((z <= -1e+16) || !(z <= 1.9e+135))
      		tmp = Float64(t + x);
      	else
      		tmp = fma(Float64(y / a), t, x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1e+16], N[Not[LessEqual[z, 1.9e+135]], $MachinePrecision]], N[(t + x), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * t + x), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -1 \cdot 10^{+16} \lor \neg \left(z \leq 1.9 \cdot 10^{+135}\right):\\
      \;\;\;\;t + x\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t, x\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -1e16 or 1.9000000000000001e135 < z

        1. Initial program 72.6%

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

          \[\leadsto \color{blue}{t + x} \]
        4. Step-by-step derivation
          1. lower-+.f6488.1

            \[\leadsto \color{blue}{t + x} \]
        5. Applied rewrites88.1%

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

        if -1e16 < z < 1.9000000000000001e135

        1. Initial program 92.9%

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

          \[\leadsto \color{blue}{x + \frac{t \cdot y}{a}} \]
        4. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{\frac{t \cdot y}{a} + x} \]
          2. associate-/l*N/A

            \[\leadsto \color{blue}{t \cdot \frac{y}{a}} + x \]
          3. *-commutativeN/A

            \[\leadsto \color{blue}{\frac{y}{a} \cdot t} + x \]
          4. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{a}, t, x\right)} \]
          5. lower-/.f6473.8

            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{y}{a}}, t, x\right) \]
        5. Applied rewrites73.8%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{a}, t, x\right)} \]
      3. Recombined 2 regimes into one program.
      4. Final simplification79.2%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1 \cdot 10^{+16} \lor \neg \left(z \leq 1.9 \cdot 10^{+135}\right):\\ \;\;\;\;t + x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t, x\right)\\ \end{array} \]
      5. Add Preprocessing

      Alternative 9: 60.8% accurate, 1.1× speedup?

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

        1. Initial program 81.0%

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

          \[\leadsto \color{blue}{\frac{t \cdot y}{a - z}} \]
        4. Step-by-step derivation
          1. associate-/l*N/A

            \[\leadsto \color{blue}{t \cdot \frac{y}{a - z}} \]
          2. *-commutativeN/A

            \[\leadsto \color{blue}{\frac{y}{a - z} \cdot t} \]
          3. lower-*.f64N/A

            \[\leadsto \color{blue}{\frac{y}{a - z} \cdot t} \]
          4. lower-/.f64N/A

            \[\leadsto \color{blue}{\frac{y}{a - z}} \cdot t \]
          5. lower--.f6473.9

            \[\leadsto \frac{y}{\color{blue}{a - z}} \cdot t \]
        5. Applied rewrites73.9%

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

          \[\leadsto \frac{y}{a} \cdot t \]
        7. Step-by-step derivation
          1. Applied rewrites58.9%

            \[\leadsto \frac{y}{a} \cdot t \]

          if -8.80000000000000035e145 < y

          1. Initial program 85.7%

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

            \[\leadsto \color{blue}{t + x} \]
          4. Step-by-step derivation
            1. lower-+.f6464.5

              \[\leadsto \color{blue}{t + x} \]
          5. Applied rewrites64.5%

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8.8 \cdot 10^{+145}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;t + x\\ \end{array} \]
        10. Add Preprocessing

        Alternative 10: 60.7% accurate, 6.5× speedup?

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

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

          \[\leadsto \color{blue}{t + x} \]
        4. Step-by-step derivation
          1. lower-+.f6460.1

            \[\leadsto \color{blue}{t + x} \]
        5. Applied rewrites60.1%

          \[\leadsto \color{blue}{t + x} \]
        6. Final simplification60.1%

          \[\leadsto t + x \]
        7. Add Preprocessing

        Developer Target 1: 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 2024324 
        (FPCore (x y z t a)
          :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, A"
          :precision binary64
        
          :alt
          (! :herbie-platform default (if (< t -10682974490174067/10000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y z) (- a z)) t)) (if (< t 312887599100691/80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (/ (* (- y z) t) (- a z))) (+ x (* (/ (- y z) (- a z)) t)))))
        
          (+ x (/ (* (- y z) t) (- a z))))