Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, B

Percentage Accurate: 98.1% → 98.1%
Time: 8.2s
Alternatives: 12
Speedup: 1.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 12 alternatives:

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

Initial Program: 98.1% accurate, 1.0× speedup?

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

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

Alternative 1: 98.1% accurate, 1.0× speedup?

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

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

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

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

Alternative 2: 82.2% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{+74} \lor \neg \left(t \leq -11500\right) \land \left(t \leq -9.5 \cdot 10^{-65} \lor \neg \left(t \leq 7.2 \cdot 10^{-18}\right)\right):\\
\;\;\;\;x + \frac{y}{\frac{t}{t - z}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.9999999999999999e74 or -11500 < t < -9.5000000000000004e-65 or 7.20000000000000021e-18 < t

    1. Initial program 99.9%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative99.9%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{-1}, \frac{y}{t - a}, x\right)} \]
      12. sub-neg97.1%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{z + \left(-t\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      13. +-commutative97.1%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(-t\right) + z}}{-1}, \frac{y}{t - a}, x\right) \]
      14. neg-sub097.1%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - t\right)} + z}{-1}, \frac{y}{t - a}, x\right) \]
      15. associate-+l-97.1%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{0 - \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      16. sub0-neg97.1%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-\left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      17. neg-mul-197.1%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-1 \cdot \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      18. *-commutative97.1%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - z\right) \cdot -1}}{-1}, \frac{y}{t - a}, x\right) \]
      19. associate-/l*97.1%

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - z}{\frac{-1}{-1}}}, \frac{y}{t - a}, x\right) \]
      20. metadata-eval97.1%

        \[\leadsto \mathsf{fma}\left(\frac{t - z}{\color{blue}{1}}, \frac{y}{t - a}, x\right) \]
      21. /-rgt-identity97.1%

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(t - z, \frac{y}{t - a}, x\right)} \]
    4. Taylor expanded in a around 0 67.7%

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

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{t}{t - z}}} \]
    6. Simplified90.4%

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

    if -1.9999999999999999e74 < t < -11500 or -9.5000000000000004e-65 < t < 7.20000000000000021e-18

    1. Initial program 98.5%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in a around inf 87.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2 \cdot 10^{+74} \lor \neg \left(t \leq -11500\right) \land \left(t \leq -9.5 \cdot 10^{-65} \lor \neg \left(t \leq 7.2 \cdot 10^{-18}\right)\right):\\ \;\;\;\;x + \frac{y}{\frac{t}{t - z}}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{z - t}{a}\\ \end{array} \]

Alternative 3: 76.7% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{+96}:\\
\;\;\;\;x + y\\

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

\mathbf{elif}\;t \leq 6.5 \cdot 10^{+125}:\\
\;\;\;\;x - z \cdot \frac{y}{t}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -3.20000000000000006e96 or 4.1e154 < t

    1. Initial program 99.9%

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

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

    if -3.20000000000000006e96 < t < 2.6999999999999999e-14

    1. Initial program 98.6%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in t around 0 79.7%

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

    if 2.6999999999999999e-14 < t < 6.4999999999999999e125

    1. Initial program 99.9%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative99.9%

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{z - t}{a - t}, x\right)} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{z - t}{a - t}, x\right)} \]
    4. Taylor expanded in z around inf 92.5%

      \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{z}{a - t}}, x\right) \]
    5. Taylor expanded in a around 0 88.8%

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

        \[\leadsto \color{blue}{x + -1 \cdot \frac{y \cdot z}{t}} \]
      2. mul-1-neg88.8%

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

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

        \[\leadsto x - \color{blue}{\frac{y}{\frac{t}{z}}} \]
      5. associate-/r/88.8%

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

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

    if 6.4999999999999999e125 < t < 4.1e154

    1. Initial program 100.0%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative100.0%

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{z - t}{-1} \cdot \frac{y}{t - a}} + x \]
      11. fma-def99.8%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{-1}, \frac{y}{t - a}, x\right)} \]
      12. sub-neg99.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{z + \left(-t\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      13. +-commutative99.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(-t\right) + z}}{-1}, \frac{y}{t - a}, x\right) \]
      14. neg-sub099.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - t\right)} + z}{-1}, \frac{y}{t - a}, x\right) \]
      15. associate-+l-99.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{0 - \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      16. sub0-neg99.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-\left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      17. neg-mul-199.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-1 \cdot \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      18. *-commutative99.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - z\right) \cdot -1}}{-1}, \frac{y}{t - a}, x\right) \]
      19. associate-/l*99.8%

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - z}{\frac{-1}{-1}}}, \frac{y}{t - a}, x\right) \]
      20. metadata-eval99.8%

        \[\leadsto \mathsf{fma}\left(\frac{t - z}{\color{blue}{1}}, \frac{y}{t - a}, x\right) \]
      21. /-rgt-identity99.8%

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(t - z, \frac{y}{t - a}, x\right)} \]
    4. Taylor expanded in y around -inf 71.0%

      \[\leadsto \color{blue}{\frac{y \cdot \left(t - z\right)}{t - a}} \]
    5. Step-by-step derivation
      1. *-commutative71.0%

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

        \[\leadsto \color{blue}{\left(t - z\right) \cdot \frac{y}{t - a}} \]
    6. Simplified97.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.2 \cdot 10^{+96}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;t \leq 2.7 \cdot 10^{-14}:\\ \;\;\;\;x + y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq 6.5 \cdot 10^{+125}:\\ \;\;\;\;x - z \cdot \frac{y}{t}\\ \mathbf{elif}\;t \leq 4.1 \cdot 10^{+154}:\\ \;\;\;\;\left(t - z\right) \cdot \frac{y}{t - a}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]

Alternative 4: 77.9% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.6 \cdot 10^{+99}:\\
\;\;\;\;x + y\\

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -3.6000000000000002e99 or 2.09999999999999994e154 < t

    1. Initial program 99.9%

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

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

    if -3.6000000000000002e99 < t < 1.1e-14

    1. Initial program 98.6%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in a around inf 83.3%

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

    if 1.1e-14 < t < 1.69999999999999995e126

    1. Initial program 99.9%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative99.9%

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{z - t}{a - t}, x\right)} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{z - t}{a - t}, x\right)} \]
    4. Taylor expanded in z around inf 92.5%

      \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{z}{a - t}}, x\right) \]
    5. Taylor expanded in a around 0 88.8%

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

        \[\leadsto \color{blue}{x + -1 \cdot \frac{y \cdot z}{t}} \]
      2. mul-1-neg88.8%

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

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

        \[\leadsto x - \color{blue}{\frac{y}{\frac{t}{z}}} \]
      5. associate-/r/88.8%

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

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

    if 1.69999999999999995e126 < t < 2.09999999999999994e154

    1. Initial program 100.0%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative100.0%

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{z - t}{-1} \cdot \frac{y}{t - a}} + x \]
      11. fma-def99.8%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{-1}, \frac{y}{t - a}, x\right)} \]
      12. sub-neg99.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{z + \left(-t\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      13. +-commutative99.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(-t\right) + z}}{-1}, \frac{y}{t - a}, x\right) \]
      14. neg-sub099.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - t\right)} + z}{-1}, \frac{y}{t - a}, x\right) \]
      15. associate-+l-99.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{0 - \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      16. sub0-neg99.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-\left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      17. neg-mul-199.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-1 \cdot \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      18. *-commutative99.8%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - z\right) \cdot -1}}{-1}, \frac{y}{t - a}, x\right) \]
      19. associate-/l*99.8%

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - z}{\frac{-1}{-1}}}, \frac{y}{t - a}, x\right) \]
      20. metadata-eval99.8%

        \[\leadsto \mathsf{fma}\left(\frac{t - z}{\color{blue}{1}}, \frac{y}{t - a}, x\right) \]
      21. /-rgt-identity99.8%

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(t - z, \frac{y}{t - a}, x\right)} \]
    4. Taylor expanded in y around -inf 71.0%

      \[\leadsto \color{blue}{\frac{y \cdot \left(t - z\right)}{t - a}} \]
    5. Step-by-step derivation
      1. *-commutative71.0%

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

        \[\leadsto \color{blue}{\left(t - z\right) \cdot \frac{y}{t - a}} \]
    6. Simplified97.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.6 \cdot 10^{+99}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;t \leq 1.1 \cdot 10^{-14}:\\ \;\;\;\;x + y \cdot \frac{z - t}{a}\\ \mathbf{elif}\;t \leq 1.7 \cdot 10^{+126}:\\ \;\;\;\;x - z \cdot \frac{y}{t}\\ \mathbf{elif}\;t \leq 2.1 \cdot 10^{+154}:\\ \;\;\;\;\left(t - z\right) \cdot \frac{y}{t - a}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]

Alternative 5: 62.7% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{a - t}\\
\mathbf{if}\;z \leq -2 \cdot 10^{+250}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;z \leq 2.1 \cdot 10^{-288}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;z \leq 4.8 \cdot 10^{-128}:\\
\;\;\;\;x\\

\mathbf{elif}\;z \leq 1.7 \cdot 10^{+215}:\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.9999999999999998e250 or 1.70000000000000009e215 < z

    1. Initial program 97.7%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative97.7%

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(y, \frac{z - t}{a - t}, x\right)} \]
    4. Taylor expanded in z around inf 95.3%

      \[\leadsto \mathsf{fma}\left(y, \color{blue}{\frac{z}{a - t}}, x\right) \]
    5. Taylor expanded in y around inf 54.5%

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

        \[\leadsto \color{blue}{y \cdot \frac{z}{a - t}} \]
    7. Simplified73.9%

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

    if -1.9999999999999998e250 < z < 2.09999999999999996e-288 or 4.7999999999999996e-128 < z < 1.70000000000000009e215

    1. Initial program 99.4%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in t around inf 69.2%

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

    if 2.09999999999999996e-288 < z < 4.7999999999999996e-128

    1. Initial program 99.9%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in x around inf 75.5%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2 \cdot 10^{+250}:\\ \;\;\;\;y \cdot \frac{z}{a - t}\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-288}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;z \leq 4.8 \cdot 10^{-128}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 1.7 \cdot 10^{+215}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{a - t}\\ \end{array} \]

Alternative 6: 87.1% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.4 \cdot 10^{+106} \lor \neg \left(t \leq 7.2 \cdot 10^{-14}\right):\\
\;\;\;\;x + \frac{y}{\frac{t}{t - z}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -2.4000000000000001e106 or 7.1999999999999996e-14 < t

    1. Initial program 99.9%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative99.9%

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{z - t}{-1} \cdot \frac{y}{t - a}} + x \]
      11. fma-def96.7%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{-1}, \frac{y}{t - a}, x\right)} \]
      12. sub-neg96.7%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{z + \left(-t\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      13. +-commutative96.7%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(-t\right) + z}}{-1}, \frac{y}{t - a}, x\right) \]
      14. neg-sub096.7%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - t\right)} + z}{-1}, \frac{y}{t - a}, x\right) \]
      15. associate-+l-96.7%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{0 - \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      16. sub0-neg96.7%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-\left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      17. neg-mul-196.7%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-1 \cdot \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      18. *-commutative96.7%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - z\right) \cdot -1}}{-1}, \frac{y}{t - a}, x\right) \]
      19. associate-/l*96.7%

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - z}{\frac{-1}{-1}}}, \frac{y}{t - a}, x\right) \]
      20. metadata-eval96.7%

        \[\leadsto \mathsf{fma}\left(\frac{t - z}{\color{blue}{1}}, \frac{y}{t - a}, x\right) \]
      21. /-rgt-identity96.7%

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(t - z, \frac{y}{t - a}, x\right)} \]
    4. Taylor expanded in a around 0 65.1%

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

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

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

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

    if -2.4000000000000001e106 < t < 7.1999999999999996e-14

    1. Initial program 98.6%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in z around inf 87.6%

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

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

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

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

Alternative 7: 59.5% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq 3.5 \cdot 10^{-286}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;z \leq 3.2 \cdot 10^{-128}:\\
\;\;\;\;x\\

\mathbf{elif}\;z \leq 2.4 \cdot 10^{+218}:\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < 3.49999999999999988e-286 or 3.1999999999999998e-128 < z < 2.39999999999999981e218

    1. Initial program 99.5%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in t around inf 66.2%

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

    if 3.49999999999999988e-286 < z < 3.1999999999999998e-128

    1. Initial program 99.9%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in x around inf 75.5%

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

    if 2.39999999999999981e218 < z

    1. Initial program 96.4%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative96.4%

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{z - t}{-1} \cdot \frac{y}{t - a}} + x \]
      11. fma-def92.6%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{-1}, \frac{y}{t - a}, x\right)} \]
      12. sub-neg92.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{z + \left(-t\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      13. +-commutative92.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(-t\right) + z}}{-1}, \frac{y}{t - a}, x\right) \]
      14. neg-sub092.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - t\right)} + z}{-1}, \frac{y}{t - a}, x\right) \]
      15. associate-+l-92.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{0 - \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      16. sub0-neg92.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-\left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      17. neg-mul-192.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-1 \cdot \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      18. *-commutative92.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - z\right) \cdot -1}}{-1}, \frac{y}{t - a}, x\right) \]
      19. associate-/l*92.6%

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - z}{\frac{-1}{-1}}}, \frac{y}{t - a}, x\right) \]
      20. metadata-eval92.6%

        \[\leadsto \mathsf{fma}\left(\frac{t - z}{\color{blue}{1}}, \frac{y}{t - a}, x\right) \]
      21. /-rgt-identity92.6%

        \[\leadsto \mathsf{fma}\left(\color{blue}{t - z}, \frac{y}{t - a}, x\right) \]
    3. Simplified92.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t - z, \frac{y}{t - a}, x\right)} \]
    4. Taylor expanded in a around 0 49.6%

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

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{t}{t - z}}} \]
    6. Simplified60.2%

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

      \[\leadsto \color{blue}{\left(1 - \frac{z}{t}\right) \cdot y} \]
    8. Taylor expanded in z around inf 48.2%

      \[\leadsto \color{blue}{\left(-1 \cdot \frac{z}{t}\right)} \cdot y \]
    9. Step-by-step derivation
      1. neg-mul-148.2%

        \[\leadsto \color{blue}{\left(-\frac{z}{t}\right)} \cdot y \]
      2. distribute-neg-frac48.2%

        \[\leadsto \color{blue}{\frac{-z}{t}} \cdot y \]
    10. Simplified48.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq 3.5 \cdot 10^{-286}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;z \leq 3.2 \cdot 10^{-128}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{+218}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{-z}{t}\\ \end{array} \]

Alternative 8: 59.5% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.25 \cdot 10^{-289}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;z \leq 3.6 \cdot 10^{-128}:\\
\;\;\;\;x\\

\mathbf{elif}\;z \leq 3.1 \cdot 10^{+218}:\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < 1.25000000000000007e-289 or 3.60000000000000025e-128 < z < 3.1000000000000002e218

    1. Initial program 99.5%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in t around inf 66.2%

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

    if 1.25000000000000007e-289 < z < 3.60000000000000025e-128

    1. Initial program 99.9%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in x around inf 75.5%

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

    if 3.1000000000000002e218 < z

    1. Initial program 96.4%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative96.4%

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{z - t}{-1} \cdot \frac{y}{t - a}} + x \]
      11. fma-def92.6%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{-1}, \frac{y}{t - a}, x\right)} \]
      12. sub-neg92.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{z + \left(-t\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      13. +-commutative92.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(-t\right) + z}}{-1}, \frac{y}{t - a}, x\right) \]
      14. neg-sub092.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - t\right)} + z}{-1}, \frac{y}{t - a}, x\right) \]
      15. associate-+l-92.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{0 - \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      16. sub0-neg92.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-\left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      17. neg-mul-192.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-1 \cdot \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      18. *-commutative92.6%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - z\right) \cdot -1}}{-1}, \frac{y}{t - a}, x\right) \]
      19. associate-/l*92.6%

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - z}{\frac{-1}{-1}}}, \frac{y}{t - a}, x\right) \]
      20. metadata-eval92.6%

        \[\leadsto \mathsf{fma}\left(\frac{t - z}{\color{blue}{1}}, \frac{y}{t - a}, x\right) \]
      21. /-rgt-identity92.6%

        \[\leadsto \mathsf{fma}\left(\color{blue}{t - z}, \frac{y}{t - a}, x\right) \]
    3. Simplified92.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t - z, \frac{y}{t - a}, x\right)} \]
    4. Taylor expanded in z around inf 53.9%

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

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

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

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

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

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

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

        \[\leadsto -\color{blue}{\frac{y}{\frac{t}{z}}} \]
      3. distribute-neg-frac48.2%

        \[\leadsto \color{blue}{\frac{-y}{\frac{t}{z}}} \]
    9. Simplified48.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq 1.25 \cdot 10^{-289}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;z \leq 3.6 \cdot 10^{-128}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 3.1 \cdot 10^{+218}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;\frac{-y}{\frac{t}{z}}\\ \end{array} \]

Alternative 9: 76.8% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.18 \cdot 10^{+98}:\\
\;\;\;\;x + y\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.18000000000000002e98 or 1.7500000000000001e-17 < t

    1. Initial program 99.9%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in t around inf 79.1%

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

    if -1.18000000000000002e98 < t < 1.7500000000000001e-17

    1. Initial program 98.6%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in t around 0 79.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.18 \cdot 10^{+98}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{-17}:\\ \;\;\;\;x + y \cdot \frac{z}{a}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]

Alternative 10: 49.4% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.2 \cdot 10^{+284}:\\
\;\;\;\;x\\

\mathbf{elif}\;t \leq -7 \cdot 10^{+153}:\\
\;\;\;\;y\\

\mathbf{elif}\;t \leq 4.5 \cdot 10^{+225}:\\
\;\;\;\;x\\

\mathbf{else}:\\
\;\;\;\;y\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -5.1999999999999997e284 or -6.9999999999999998e153 < t < 4.49999999999999976e225

    1. Initial program 99.0%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in x around inf 56.3%

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

    if -5.1999999999999997e284 < t < -6.9999999999999998e153 or 4.49999999999999976e225 < t

    1. Initial program 100.0%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative100.0%

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{z - t}{-1} \cdot \frac{y}{t - a}} + x \]
      11. fma-def94.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - t}{-1}, \frac{y}{t - a}, x\right)} \]
      12. sub-neg94.0%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{z + \left(-t\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      13. +-commutative94.0%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(-t\right) + z}}{-1}, \frac{y}{t - a}, x\right) \]
      14. neg-sub094.0%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - t\right)} + z}{-1}, \frac{y}{t - a}, x\right) \]
      15. associate-+l-94.0%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{0 - \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      16. sub0-neg94.0%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-\left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      17. neg-mul-194.0%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{-1 \cdot \left(t - z\right)}}{-1}, \frac{y}{t - a}, x\right) \]
      18. *-commutative94.0%

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - z\right) \cdot -1}}{-1}, \frac{y}{t - a}, x\right) \]
      19. associate-/l*94.0%

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - z}{\frac{-1}{-1}}}, \frac{y}{t - a}, x\right) \]
      20. metadata-eval94.0%

        \[\leadsto \mathsf{fma}\left(\frac{t - z}{\color{blue}{1}}, \frac{y}{t - a}, x\right) \]
      21. /-rgt-identity94.0%

        \[\leadsto \mathsf{fma}\left(\color{blue}{t - z}, \frac{y}{t - a}, x\right) \]
    3. Simplified94.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(t - z, \frac{y}{t - a}, x\right)} \]
    4. Taylor expanded in a around 0 51.5%

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

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

        \[\leadsto x + \color{blue}{\frac{y}{\frac{t}{t - z}}} \]
    6. Simplified91.2%

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

      \[\leadsto \color{blue}{\left(1 - \frac{z}{t}\right) \cdot y} \]
    8. Taylor expanded in z around 0 60.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5.2 \cdot 10^{+284}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq -7 \cdot 10^{+153}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{+225}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]

Alternative 11: 64.1% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{-73}:\\
\;\;\;\;x + y\\

\mathbf{elif}\;t \leq 1.85 \cdot 10^{-13}:\\
\;\;\;\;x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.1e-73 or 1.84999999999999994e-13 < t

    1. Initial program 99.9%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in t around inf 74.7%

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

    if -1.1e-73 < t < 1.84999999999999994e-13

    1. Initial program 98.2%

      \[x + y \cdot \frac{z - t}{a - t} \]
    2. Taylor expanded in x around inf 54.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.1 \cdot 10^{-73}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;t \leq 1.85 \cdot 10^{-13}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]

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

    \[x + y \cdot \frac{z - t}{a - t} \]
  2. Taylor expanded in x around inf 51.6%

    \[\leadsto \color{blue}{x} \]
  3. Final simplification51.6%

    \[\leadsto x \]

Developer target: 99.4% accurate, 0.6× speedup?

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

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

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

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


\end{array}
\end{array}

Reproduce

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

  :herbie-target
  (if (< y -8.508084860551241e-17) (+ x (* y (/ (- z t) (- a t)))) (if (< y 2.894426862792089e-49) (+ x (* (* y (- z t)) (/ 1.0 (- a t)))) (+ x (* y (/ (- z t) (- a t))))))

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