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

Percentage Accurate: 85.4% → 98.3%
Time: 13.1s
Alternatives: 15
Speedup: 1.0×

Specification

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

\\
x + \frac{y \cdot \left(z - t\right)}{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 15 alternatives:

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

Initial Program: 85.4% accurate, 1.0× speedup?

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

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

Alternative 1: 98.3% accurate, 1.0× speedup?

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

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

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

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

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

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

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

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

    \[\leadsto x - \frac{y}{\frac{a - t}{t - z}} \]
  8. Add Preprocessing

Alternative 2: 88.2% accurate, 0.6× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.04999999999999999e75 or 9.8000000000000004e78 < t

    1. Initial program 72.5%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative72.5%

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

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

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

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

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

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

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

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

        \[\leadsto x - \color{blue}{y \cdot \frac{z - t}{t}} \]
      4. div-sub89.5%

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

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

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

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

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

    if -1.04999999999999999e75 < t < 9.8000000000000004e78

    1. Initial program 96.4%

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

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

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

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{a - t}, x\right)} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. fma-undefine95.9%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.05 \cdot 10^{+75} \lor \neg \left(t \leq 9.8 \cdot 10^{+78}\right):\\ \;\;\;\;x + y \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{z}{\frac{a - t}{y}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 84.9% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.3 \cdot 10^{+76} \lor \neg \left(t \leq 1.02 \cdot 10^{+84}\right):\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.3e76 or 1.0199999999999999e84 < t

    1. Initial program 71.9%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative71.9%

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

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

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

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutative82.4%

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified82.4%

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

    if -1.3e76 < t < 1.0199999999999999e84

    1. Initial program 96.5%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative96.5%

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

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

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{a - t}, x\right)} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. fma-undefine96.0%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.3 \cdot 10^{+76} \lor \neg \left(t \leq 1.02 \cdot 10^{+84}\right):\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;x - \frac{z}{\frac{t - a}{y}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 84.7% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+147} \lor \neg \left(t \leq 6.2 \cdot 10^{+82}\right):\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.7e147 or 6.20000000000000065e82 < t

    1. Initial program 67.6%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative67.6%

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

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

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

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutative84.0%

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified84.0%

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

    if -1.7e147 < t < 6.20000000000000065e82

    1. Initial program 96.2%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.7 \cdot 10^{+147} \lor \neg \left(t \leq 6.2 \cdot 10^{+82}\right):\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{a - t}{z}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 84.6% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{+148} \lor \neg \left(t \leq 9 \cdot 10^{+83}\right):\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.8999999999999999e148 or 8.9999999999999999e83 < t

    1. Initial program 67.6%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative67.6%

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

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

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

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutative84.0%

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified84.0%

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

    if -1.8999999999999999e148 < t < 8.9999999999999999e83

    1. Initial program 96.2%

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

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

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

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

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

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

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

Alternative 6: 87.8% accurate, 0.6× speedup?

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

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

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

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


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

    1. Initial program 83.2%

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

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

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

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

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

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

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

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

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

        \[\leadsto x - \color{blue}{y \cdot \frac{z - t}{t}} \]
      4. div-sub94.0%

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

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

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

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

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

    if -1.8000000000000001e78 < t < 2.39999999999999991e83

    1. Initial program 96.5%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative96.5%

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

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

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{a - t}, x\right)} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. fma-undefine96.0%

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

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

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

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

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

    if 2.39999999999999991e83 < t

    1. Initial program 60.8%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative60.8%

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

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

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

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

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

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

        \[\leadsto x + \color{blue}{\left(-\frac{t \cdot y}{a - t}\right)} \]
      2. unsub-neg58.7%

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

        \[\leadsto x - \frac{\color{blue}{y \cdot t}}{a - t} \]
      4. *-lft-identity58.7%

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

        \[\leadsto x - \color{blue}{\frac{y}{1} \cdot \frac{t}{a - t}} \]
      6. /-rgt-identity86.6%

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

      \[\leadsto \color{blue}{x - y \cdot \frac{t}{a - t}} \]
    8. Step-by-step derivation
      1. clear-num86.5%

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

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

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

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

Alternative 7: 87.7% accurate, 0.6× speedup?

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

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

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

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


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

    1. Initial program 83.2%

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

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

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

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

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

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

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

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

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

        \[\leadsto x - \color{blue}{y \cdot \frac{z - t}{t}} \]
      4. div-sub94.0%

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

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

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

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

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

    if -4.20000000000000016e79 < t < 8.79999999999999995e83

    1. Initial program 96.5%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative96.5%

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

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

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{a - t}, x\right)} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. fma-undefine96.0%

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

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

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

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

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

    if 8.79999999999999995e83 < t

    1. Initial program 60.8%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative60.8%

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

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

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

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

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

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

        \[\leadsto x + \color{blue}{\left(-\frac{t \cdot y}{a - t}\right)} \]
      2. unsub-neg58.7%

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

        \[\leadsto x - \frac{\color{blue}{y \cdot t}}{a - t} \]
      4. *-lft-identity58.7%

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

        \[\leadsto x - \color{blue}{\frac{y}{1} \cdot \frac{t}{a - t}} \]
      6. /-rgt-identity86.6%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.2 \cdot 10^{+79}:\\ \;\;\;\;x + y \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{elif}\;t \leq 8.8 \cdot 10^{+83}:\\ \;\;\;\;x + \frac{z}{\frac{a - t}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{t}{t - a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 76.3% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-53} \lor \neg \left(t \leq 1.15 \cdot 10^{+79}\right):\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.00000000000000003e-53 or 1.15e79 < t

    1. Initial program 75.4%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative75.4%

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

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

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

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutative77.9%

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified77.9%

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

    if -1.00000000000000003e-53 < t < 1.15e79

    1. Initial program 97.3%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative97.3%

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z}{a}} + x \]
    7. Simplified82.1%

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

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

Alternative 9: 75.2% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{-52} \lor \neg \left(t \leq 5.8 \cdot 10^{+79}\right):\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.9000000000000002e-52 or 5.79999999999999984e79 < t

    1. Initial program 75.4%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative75.4%

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

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

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

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutative77.9%

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified77.9%

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

    if -1.9000000000000002e-52 < t < 5.79999999999999984e79

    1. Initial program 97.3%

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

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

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

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

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

Alternative 10: 63.1% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;a \leq 6.2 \cdot 10^{+179}:\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -1.4e137 or 6.2e179 < a

    1. Initial program 86.9%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative86.9%

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

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

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

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

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

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

    if -1.4e137 < a < 6.2e179

    1. Initial program 88.0%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative88.0%

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

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

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

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutative68.1%

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified68.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.4 \cdot 10^{+137}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 6.2 \cdot 10^{+179}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 62.0% accurate, 0.9× speedup?

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

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

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


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

    1. Initial program 68.2%

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

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

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

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

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

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

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

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

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

        \[\leadsto x - \color{blue}{y \cdot \frac{z - t}{t}} \]
      4. div-sub73.8%

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(y \cdot \left(\frac{z}{t} - 1\right)\right)} \]
    11. Step-by-step derivation
      1. sub-neg73.8%

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

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

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

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

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

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

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

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

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

    if -5.1999999999999996e170 < y

    1. Initial program 89.9%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative89.9%

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

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

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

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutative67.3%

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified67.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.2 \cdot 10^{+170}:\\ \;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 59.1% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq 1.26 \cdot 10^{+132}:\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < 1.25999999999999999e132

    1. Initial program 88.6%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative88.6%

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

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

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

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutative70.2%

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified70.2%

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

    if 1.25999999999999999e132 < z

    1. Initial program 81.5%

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

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

      \[\leadsto \color{blue}{x + y \cdot \frac{z - t}{a - t}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num90.7%

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

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

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

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

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

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

        \[\leadsto x - \color{blue}{y \cdot \frac{z - t}{t}} \]
      4. div-sub57.3%

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(y \cdot \left(\frac{z}{t} - 1\right)\right)} \]
    11. Step-by-step derivation
      1. sub-neg51.0%

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

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

        \[\leadsto \color{blue}{-y \cdot \left(\frac{z}{t} + -1\right)} \]
      4. distribute-rgt-neg-in51.0%

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

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

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

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

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

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

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

        \[\leadsto y \cdot \color{blue}{\frac{-1 \cdot z}{t}} \]
      2. neg-mul-144.8%

        \[\leadsto y \cdot \frac{\color{blue}{-z}}{t} \]
    15. Simplified44.8%

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

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

Alternative 13: 98.3% accurate, 1.0× speedup?

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

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

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

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

    \[\leadsto \color{blue}{x + y \cdot \frac{z - t}{a - t}} \]
  4. Add Preprocessing
  5. Final simplification98.4%

    \[\leadsto x - y \cdot \frac{z - t}{t - a} \]
  6. Add Preprocessing

Alternative 14: 50.9% accurate, 1.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{+46}:\\
\;\;\;\;y\\

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


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

    1. Initial program 66.4%

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

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

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

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

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

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

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

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

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

        \[\leadsto x - \color{blue}{y \cdot \frac{z - t}{t}} \]
      4. div-sub61.5%

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(y \cdot \left(\frac{z}{t} - 1\right)\right)} \]
    11. Step-by-step derivation
      1. sub-neg54.3%

        \[\leadsto -1 \cdot \left(y \cdot \color{blue}{\left(\frac{z}{t} + \left(-1\right)\right)}\right) \]
      2. metadata-eval54.3%

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

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

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

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

        \[\leadsto y \cdot \color{blue}{\left(\left(--1\right) + \left(-\frac{z}{t}\right)\right)} \]
      7. metadata-eval54.3%

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

        \[\leadsto y \cdot \color{blue}{\left(1 - \frac{z}{t}\right)} \]
    12. Simplified54.3%

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

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

    if -4.2e46 < y

    1. Initial program 93.3%

      \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
    2. Step-by-step derivation
      1. +-commutative93.3%

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

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

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

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

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

      \[\leadsto \color{blue}{x} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 15: 50.9% accurate, 11.0× speedup?

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

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

    \[x + \frac{y \cdot \left(z - t\right)}{a - t} \]
  2. Step-by-step derivation
    1. +-commutative87.7%

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

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

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

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

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

    \[\leadsto \color{blue}{x} \]
  6. Add Preprocessing

Developer Target 1: 98.3% accurate, 1.0× speedup?

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

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

Reproduce

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

  :alt
  (! :herbie-platform default (+ x (/ y (/ (- a t) (- z t)))))

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