Optimisation.CirclePacking:place from circle-packing-0.1.0.4, F

Percentage Accurate: 93.3% → 97.1%
Time: 16.9s
Alternatives: 11
Speedup: 1.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 11 alternatives:

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

Initial Program: 93.3% accurate, 1.0× speedup?

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

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

Alternative 1: 97.1% accurate, 1.0× speedup?

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

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

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

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

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

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

Alternative 2: 48.6% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{-y}{\frac{a}{z}}\\ \mathbf{if}\;a \leq -1.05 \cdot 10^{+28}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{-277}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 9.4 \cdot 10^{-175}:\\ \;\;\;\;\frac{t}{\frac{a}{y}}\\ \mathbf{elif}\;a \leq 2.05 \cdot 10^{-14}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (/ (- y) (/ a z))))
   (if (<= a -1.05e+28)
     x
     (if (<= a 5.2e-277)
       t_1
       (if (<= a 9.4e-175) (/ t (/ a y)) (if (<= a 2.05e-14) t_1 x))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = -y / (a / z);
	double tmp;
	if (a <= -1.05e+28) {
		tmp = x;
	} else if (a <= 5.2e-277) {
		tmp = t_1;
	} else if (a <= 9.4e-175) {
		tmp = t / (a / y);
	} else if (a <= 2.05e-14) {
		tmp = t_1;
	} 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) :: t_1
    real(8) :: tmp
    t_1 = -y / (a / z)
    if (a <= (-1.05d+28)) then
        tmp = x
    else if (a <= 5.2d-277) then
        tmp = t_1
    else if (a <= 9.4d-175) then
        tmp = t / (a / y)
    else if (a <= 2.05d-14) then
        tmp = t_1
    else
        tmp = x
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = -y / (a / z);
	double tmp;
	if (a <= -1.05e+28) {
		tmp = x;
	} else if (a <= 5.2e-277) {
		tmp = t_1;
	} else if (a <= 9.4e-175) {
		tmp = t / (a / y);
	} else if (a <= 2.05e-14) {
		tmp = t_1;
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = -y / (a / z)
	tmp = 0
	if a <= -1.05e+28:
		tmp = x
	elif a <= 5.2e-277:
		tmp = t_1
	elif a <= 9.4e-175:
		tmp = t / (a / y)
	elif a <= 2.05e-14:
		tmp = t_1
	else:
		tmp = x
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(Float64(-y) / Float64(a / z))
	tmp = 0.0
	if (a <= -1.05e+28)
		tmp = x;
	elseif (a <= 5.2e-277)
		tmp = t_1;
	elseif (a <= 9.4e-175)
		tmp = Float64(t / Float64(a / y));
	elseif (a <= 2.05e-14)
		tmp = t_1;
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = -y / (a / z);
	tmp = 0.0;
	if (a <= -1.05e+28)
		tmp = x;
	elseif (a <= 5.2e-277)
		tmp = t_1;
	elseif (a <= 9.4e-175)
		tmp = t / (a / y);
	elseif (a <= 2.05e-14)
		tmp = t_1;
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[((-y) / N[(a / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.05e+28], x, If[LessEqual[a, 5.2e-277], t$95$1, If[LessEqual[a, 9.4e-175], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.05e-14], t$95$1, x]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{-y}{\frac{a}{z}}\\
\mathbf{if}\;a \leq -1.05 \cdot 10^{+28}:\\
\;\;\;\;x\\

\mathbf{elif}\;a \leq 5.2 \cdot 10^{-277}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;a \leq 9.4 \cdot 10^{-175}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\

\mathbf{elif}\;a \leq 2.05 \cdot 10^{-14}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.04999999999999995e28 or 2.0500000000000001e-14 < a

    1. Initial program 86.8%

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

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

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

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

    if -1.04999999999999995e28 < a < 5.2e-277 or 9.39999999999999996e-175 < a < 2.0500000000000001e-14

    1. Initial program 99.8%

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

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

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

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

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

        \[\leadsto -\color{blue}{\frac{y}{\frac{a}{z}}} \]
    6. Simplified58.6%

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

    if 5.2e-277 < a < 9.39999999999999996e-175

    1. Initial program 99.9%

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

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

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

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

        \[\leadsto \color{blue}{\frac{y}{a} \cdot t} \]
      2. *-commutative66.1%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} \]
    6. Simplified66.1%

      \[\leadsto \color{blue}{t \cdot \frac{y}{a}} \]
    7. Step-by-step derivation
      1. clear-num66.1%

        \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{a}{y}}} \]
      2. div-inv66.1%

        \[\leadsto \color{blue}{\frac{t}{\frac{a}{y}}} \]
    8. Applied egg-rr66.1%

      \[\leadsto \color{blue}{\frac{t}{\frac{a}{y}}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification60.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.05 \cdot 10^{+28}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{-277}:\\ \;\;\;\;\frac{-y}{\frac{a}{z}}\\ \mathbf{elif}\;a \leq 9.4 \cdot 10^{-175}:\\ \;\;\;\;\frac{t}{\frac{a}{y}}\\ \mathbf{elif}\;a \leq 2.05 \cdot 10^{-14}:\\ \;\;\;\;\frac{-y}{\frac{a}{z}}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 3: 48.4% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
t_1 := y \cdot \frac{-z}{a}\\
\mathbf{if}\;a \leq -4.1 \cdot 10^{+27}:\\
\;\;\;\;x\\

\mathbf{elif}\;a \leq 4.6 \cdot 10^{-277}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;a \leq 4.5 \cdot 10^{-175}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\

\mathbf{elif}\;a \leq 4.35 \cdot 10^{-13}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -4.1000000000000002e27 or 4.35000000000000014e-13 < a

    1. Initial program 86.8%

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

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

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

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

    if -4.1000000000000002e27 < a < 4.6e-277 or 4.49999999999999998e-175 < a < 4.35000000000000014e-13

    1. Initial program 99.8%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{-y \cdot \left(z - t\right)}{a}} \]
      3. distribute-rgt-neg-in89.5%

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

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

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

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

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

        \[\leadsto y \cdot \frac{\color{blue}{-z}}{a} \]
    9. Simplified58.6%

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

    if 4.6e-277 < a < 4.49999999999999998e-175

    1. Initial program 99.9%

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

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

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

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

        \[\leadsto \color{blue}{\frac{y}{a} \cdot t} \]
      2. *-commutative66.1%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} \]
    6. Simplified66.1%

      \[\leadsto \color{blue}{t \cdot \frac{y}{a}} \]
    7. Step-by-step derivation
      1. clear-num66.1%

        \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{a}{y}}} \]
      2. div-inv66.1%

        \[\leadsto \color{blue}{\frac{t}{\frac{a}{y}}} \]
    8. Applied egg-rr66.1%

      \[\leadsto \color{blue}{\frac{t}{\frac{a}{y}}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification60.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.1 \cdot 10^{+27}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 4.6 \cdot 10^{-277}:\\ \;\;\;\;y \cdot \frac{-z}{a}\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{-175}:\\ \;\;\;\;\frac{t}{\frac{a}{y}}\\ \mathbf{elif}\;a \leq 4.35 \cdot 10^{-13}:\\ \;\;\;\;y \cdot \frac{-z}{a}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 4: 50.4% accurate, 0.6× speedup?

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

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

\mathbf{elif}\;a \leq 2.55 \cdot 10^{-278}:\\
\;\;\;\;\frac{y \cdot \left(-z\right)}{a}\\

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

\mathbf{elif}\;a \leq 5 \cdot 10^{-12}:\\
\;\;\;\;z \cdot \frac{y}{-a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -5.2000000000000004e28 or 4.9999999999999997e-12 < a

    1. Initial program 86.8%

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

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

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

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

    if -5.2000000000000004e28 < a < 2.55000000000000005e-278

    1. Initial program 99.9%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{-y \cdot \left(z - t\right)}{a}} \]
      3. distribute-rgt-neg-in89.9%

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

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

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

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

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

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

        \[\leadsto \frac{\color{blue}{\left(-y\right)} \cdot z}{a} \]
    10. Simplified58.1%

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

    if 2.55000000000000005e-278 < a < 9.9999999999999993e-245

    1. Initial program 100.0%

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

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

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

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

        \[\leadsto \color{blue}{\frac{y}{a} \cdot t} \]
      2. *-commutative70.2%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} \]
    6. Simplified70.2%

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

    if 9.9999999999999993e-245 < a < 4.9999999999999997e-12

    1. Initial program 99.8%

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{y \cdot z}{a}} \]
    5. Step-by-step derivation
      1. mul-1-neg72.8%

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

        \[\leadsto -\color{blue}{\frac{y}{a} \cdot z} \]
      3. *-commutative77.7%

        \[\leadsto -\color{blue}{z \cdot \frac{y}{a}} \]
      4. distribute-rgt-neg-in77.7%

        \[\leadsto \color{blue}{z \cdot \left(-\frac{y}{a}\right)} \]
      5. distribute-frac-neg77.7%

        \[\leadsto z \cdot \color{blue}{\frac{-y}{a}} \]
      6. *-lft-identity77.7%

        \[\leadsto z \cdot \color{blue}{\left(1 \cdot \frac{-y}{a}\right)} \]
      7. metadata-eval77.7%

        \[\leadsto z \cdot \left(\color{blue}{\frac{-1}{-1}} \cdot \frac{-y}{a}\right) \]
      8. times-frac77.7%

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

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

        \[\leadsto z \cdot \frac{\color{blue}{-\left(-y\right)}}{-a} \]
      11. remove-double-neg77.7%

        \[\leadsto z \cdot \frac{\color{blue}{y}}{-a} \]
    6. Simplified77.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -5.2 \cdot 10^{+28}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 2.55 \cdot 10^{-278}:\\ \;\;\;\;\frac{y \cdot \left(-z\right)}{a}\\ \mathbf{elif}\;a \leq 10^{-244}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{elif}\;a \leq 5 \cdot 10^{-12}:\\ \;\;\;\;z \cdot \frac{y}{-a}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 5: 68.7% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{-14} \lor \neg \left(y \leq 1.9 \cdot 10^{-74}\right):\\
\;\;\;\;y \cdot \frac{t - z}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -9.99999999999999999e-15 or 1.8999999999999998e-74 < y

    1. Initial program 88.4%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{-y \cdot \left(z - t\right)}{a}} \]
      3. distribute-rgt-neg-in71.8%

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

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

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

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

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

        \[\leadsto y \cdot \color{blue}{\left(\frac{t}{a} - \frac{z}{a}\right)} \]
      3. div-sub80.5%

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

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

    if -9.99999999999999999e-15 < y < 1.8999999999999998e-74

    1. Initial program 99.9%

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

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

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

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

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

Alternative 6: 84.4% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.4 \cdot 10^{+104} \lor \neg \left(t \leq 1.7 \cdot 10^{+45}\right):\\
\;\;\;\;x + \frac{y}{a} \cdot t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -5.39999999999999969e104 or 1.7e45 < t

    1. Initial program 86.3%

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

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

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

      \[\leadsto \color{blue}{x - -1 \cdot \frac{y \cdot t}{a}} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv78.3%

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

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

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

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

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

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

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

    if -5.39999999999999969e104 < t < 1.7e45

    1. Initial program 96.8%

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

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

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

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

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

Alternative 7: 78.3% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+179}:\\
\;\;\;\;z \cdot \frac{y}{-a}\\

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

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


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

    1. Initial program 90.5%

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{y \cdot z}{a}} \]
    5. Step-by-step derivation
      1. mul-1-neg70.4%

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

        \[\leadsto -\color{blue}{\frac{y}{a} \cdot z} \]
      3. *-commutative75.2%

        \[\leadsto -\color{blue}{z \cdot \frac{y}{a}} \]
      4. distribute-rgt-neg-in75.2%

        \[\leadsto \color{blue}{z \cdot \left(-\frac{y}{a}\right)} \]
      5. distribute-frac-neg75.2%

        \[\leadsto z \cdot \color{blue}{\frac{-y}{a}} \]
      6. *-lft-identity75.2%

        \[\leadsto z \cdot \color{blue}{\left(1 \cdot \frac{-y}{a}\right)} \]
      7. metadata-eval75.2%

        \[\leadsto z \cdot \left(\color{blue}{\frac{-1}{-1}} \cdot \frac{-y}{a}\right) \]
      8. times-frac75.2%

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

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

        \[\leadsto z \cdot \frac{\color{blue}{-\left(-y\right)}}{-a} \]
      11. remove-double-neg75.2%

        \[\leadsto z \cdot \frac{\color{blue}{y}}{-a} \]
    6. Simplified75.2%

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

    if -2.0999999999999999e179 < z < 6.60000000000000019e183

    1. Initial program 94.8%

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

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

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

      \[\leadsto \color{blue}{x - -1 \cdot \frac{y \cdot t}{a}} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv76.1%

        \[\leadsto \color{blue}{x + \left(--1\right) \cdot \frac{y \cdot t}{a}} \]
      2. metadata-eval76.1%

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

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

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

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

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

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

    if 6.60000000000000019e183 < z

    1. Initial program 84.2%

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{-y \cdot \left(z - t\right)}{a}} \]
      3. distribute-rgt-neg-in70.5%

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.1 \cdot 10^{+179}:\\ \;\;\;\;z \cdot \frac{y}{-a}\\ \mathbf{elif}\;z \leq 6.6 \cdot 10^{+183}:\\ \;\;\;\;x + \frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{t - z}{a}\\ \end{array} \]

Alternative 8: 50.7% accurate, 0.9× speedup?

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

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

\mathbf{elif}\;a \leq 3.05 \cdot 10^{-16}:\\
\;\;\;\;z \cdot \frac{y}{-a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -6.1999999999999999e26 or 3.04999999999999976e-16 < a

    1. Initial program 86.8%

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

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

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

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

    if -6.1999999999999999e26 < a < 3.04999999999999976e-16

    1. Initial program 99.9%

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{y \cdot z}{a}} \]
    5. Step-by-step derivation
      1. mul-1-neg60.0%

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

        \[\leadsto -\color{blue}{\frac{y}{a} \cdot z} \]
      3. *-commutative61.2%

        \[\leadsto -\color{blue}{z \cdot \frac{y}{a}} \]
      4. distribute-rgt-neg-in61.2%

        \[\leadsto \color{blue}{z \cdot \left(-\frac{y}{a}\right)} \]
      5. distribute-frac-neg61.2%

        \[\leadsto z \cdot \color{blue}{\frac{-y}{a}} \]
      6. *-lft-identity61.2%

        \[\leadsto z \cdot \color{blue}{\left(1 \cdot \frac{-y}{a}\right)} \]
      7. metadata-eval61.2%

        \[\leadsto z \cdot \left(\color{blue}{\frac{-1}{-1}} \cdot \frac{-y}{a}\right) \]
      8. times-frac61.2%

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

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

        \[\leadsto z \cdot \frac{\color{blue}{-\left(-y\right)}}{-a} \]
      11. remove-double-neg61.2%

        \[\leadsto z \cdot \frac{\color{blue}{y}}{-a} \]
    6. Simplified61.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.2 \cdot 10^{+26}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 3.05 \cdot 10^{-16}:\\ \;\;\;\;z \cdot \frac{y}{-a}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 9: 51.4% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.8 \cdot 10^{+32} \lor \neg \left(y \leq 3.3 \cdot 10^{-24}\right):\\
\;\;\;\;\frac{y}{a} \cdot t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -4.79999999999999983e32 or 3.29999999999999984e-24 < y

    1. Initial program 87.1%

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

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

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

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

        \[\leadsto \color{blue}{\frac{y}{a} \cdot t} \]
      2. *-commutative48.9%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} \]
    6. Simplified48.9%

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

    if -4.79999999999999983e32 < y < 3.29999999999999984e-24

    1. Initial program 99.8%

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

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

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

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

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

Alternative 10: 51.2% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -9.5999999999999999e33 or 1.59999999999999994e-22 < y

    1. Initial program 87.1%

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

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

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

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

        \[\leadsto \color{blue}{\frac{y}{a} \cdot t} \]
      2. *-commutative48.9%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} \]
    6. Simplified48.9%

      \[\leadsto \color{blue}{t \cdot \frac{y}{a}} \]
    7. Step-by-step derivation
      1. clear-num48.9%

        \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{a}{y}}} \]
      2. div-inv49.0%

        \[\leadsto \color{blue}{\frac{t}{\frac{a}{y}}} \]
    8. Applied egg-rr49.0%

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

    if -9.5999999999999999e33 < y < 1.59999999999999994e-22

    1. Initial program 99.8%

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

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

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

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

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

Alternative 11: 39.9% accurate, 9.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 92.8%

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

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

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

    \[\leadsto \color{blue}{x} \]
  5. Final simplification38.7%

    \[\leadsto x \]

Developer target: 99.2% accurate, 0.7× speedup?

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

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

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

\mathbf{else}:\\
\;\;\;\;x - \frac{y}{t_1}\\


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2023187 
(FPCore (x y z t a)
  :name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, F"
  :precision binary64

  :herbie-target
  (if (< y -1.0761266216389975e-10) (- x (/ 1.0 (/ (/ a (- z t)) y))) (if (< y 2.894426862792089e-49) (- x (/ (* y (- z t)) a)) (- x (/ y (/ a (- z t))))))

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