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

Percentage Accurate: 93.2% → 97.1%
Time: 8.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.2% 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(z - t\right) \end{array} \]
(FPCore (x y z t a) :precision binary64 (- x (* (/ y a) (- z t))))
double code(double x, double y, double z, double t, double a) {
	return x - ((y / a) * (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) * (z - t))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x - ((y / a) * (z - t));
}
def code(x, y, z, t, a):
	return x - ((y / a) * (z - t))
function code(x, y, z, t, a)
	return Float64(x - Float64(Float64(y / a) * Float64(z - t)))
end
function tmp = code(x, y, z, t, a)
	tmp = x - ((y / a) * (z - t));
end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(y / a), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

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

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

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

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

Alternative 2: 68.5% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.3 \cdot 10^{-74} \lor \neg \left(y \leq 3.7 \cdot 10^{-106}\right) \land \left(y \leq 19500000000 \lor \neg \left(y \leq 1.02 \cdot 10^{+58}\right)\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 -3.3e-74)
         (and (not (<= y 3.7e-106))
              (or (<= y 19500000000.0) (not (<= y 1.02e+58)))))
   (* y (/ (- t z) a))
   x))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((y <= -3.3e-74) || (!(y <= 3.7e-106) && ((y <= 19500000000.0) || !(y <= 1.02e+58)))) {
		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 <= (-3.3d-74)) .or. (.not. (y <= 3.7d-106)) .and. (y <= 19500000000.0d0) .or. (.not. (y <= 1.02d+58))) 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 <= -3.3e-74) || (!(y <= 3.7e-106) && ((y <= 19500000000.0) || !(y <= 1.02e+58)))) {
		tmp = y * ((t - z) / a);
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if (y <= -3.3e-74) or (not (y <= 3.7e-106) and ((y <= 19500000000.0) or not (y <= 1.02e+58))):
		tmp = y * ((t - z) / a)
	else:
		tmp = x
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if ((y <= -3.3e-74) || (!(y <= 3.7e-106) && ((y <= 19500000000.0) || !(y <= 1.02e+58))))
		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 <= -3.3e-74) || (~((y <= 3.7e-106)) && ((y <= 19500000000.0) || ~((y <= 1.02e+58)))))
		tmp = y * ((t - z) / a);
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -3.3e-74], And[N[Not[LessEqual[y, 3.7e-106]], $MachinePrecision], Or[LessEqual[y, 19500000000.0], N[Not[LessEqual[y, 1.02e+58]], $MachinePrecision]]]], N[(y * N[(N[(t - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.3 \cdot 10^{-74} \lor \neg \left(y \leq 3.7 \cdot 10^{-106}\right) \land \left(y \leq 19500000000 \lor \neg \left(y \leq 1.02 \cdot 10^{+58}\right)\right):\\
\;\;\;\;y \cdot \frac{t - z}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -3.29999999999999996e-74 or 3.69999999999999979e-106 < y < 1.95e10 or 1.02000000000000005e58 < y

    1. Initial program 85.9%

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

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

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

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

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

        \[\leadsto -\color{blue}{y \cdot \frac{z - t}{a}} \]
      3. distribute-rgt-neg-in83.6%

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

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

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

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

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

        \[\leadsto y \cdot \color{blue}{\left(\frac{t}{a} + \left(-\frac{z}{a}\right)\right)} \]
      9. sub-neg81.7%

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

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

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

    if -3.29999999999999996e-74 < y < 3.69999999999999979e-106 or 1.95e10 < y < 1.02000000000000005e58

    1. Initial program 98.9%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.3 \cdot 10^{-74} \lor \neg \left(y \leq 3.7 \cdot 10^{-106}\right) \land \left(y \leq 19500000000 \lor \neg \left(y \leq 1.02 \cdot 10^{+58}\right)\right):\\ \;\;\;\;y \cdot \frac{t - z}{a}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]

Alternative 3: 51.6% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
t_1 := -y \cdot \frac{z}{a}\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{-40}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 3.9 \cdot 10^{+61}:\\
\;\;\;\;x\\

\mathbf{elif}\;y \leq 1.09 \cdot 10^{+195}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -2.39999999999999991e-40 or 3.89999999999999987e61 < y < 1.09e195

    1. Initial program 84.4%

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

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

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

        \[\leadsto -\color{blue}{y \cdot \frac{z - t}{a}} \]
      3. distribute-rgt-neg-in86.3%

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

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

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

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

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

        \[\leadsto y \cdot \color{blue}{\left(\frac{t}{a} + \left(-\frac{z}{a}\right)\right)} \]
      9. sub-neg83.7%

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

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

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

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

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

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

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

    if -2.39999999999999991e-40 < y < 3.89999999999999987e61

    1. Initial program 98.3%

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

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

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

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

    if 1.09e195 < y

    1. Initial program 78.9%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.4 \cdot 10^{-40}:\\ \;\;\;\;-y \cdot \frac{z}{a}\\ \mathbf{elif}\;y \leq 3.9 \cdot 10^{+61}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 1.09 \cdot 10^{+195}:\\ \;\;\;\;-y \cdot \frac{z}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{\frac{a}{y}}\\ \end{array} \]

Alternative 4: 51.9% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{-40}:\\
\;\;\;\;\frac{y}{a} \cdot \left(-z\right)\\

\mathbf{elif}\;y \leq 6.4 \cdot 10^{+62}:\\
\;\;\;\;x\\

\mathbf{elif}\;y \leq 3.1 \cdot 10^{+195}:\\
\;\;\;\;-y \cdot \frac{z}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -2.7e-40

    1. Initial program 85.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 z around inf 56.7%

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

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

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

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

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

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

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

    if -2.7e-40 < y < 6.39999999999999968e62

    1. Initial program 98.3%

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

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

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

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

    if 6.39999999999999968e62 < y < 3.1000000000000002e195

    1. Initial program 83.0%

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

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

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

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

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

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

        \[\leadsto \color{blue}{y \cdot \left(-\frac{z - t}{a}\right)} \]
      4. neg-sub084.7%

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

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

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

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

        \[\leadsto y \cdot \color{blue}{\left(\frac{t}{a} + \left(-\frac{z}{a}\right)\right)} \]
      9. sub-neg77.0%

        \[\leadsto y \cdot \color{blue}{\left(\frac{t}{a} - \frac{z}{a}\right)} \]
      10. div-sub84.7%

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

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

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

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

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

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

    if 3.1000000000000002e195 < y

    1. Initial program 78.9%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.7 \cdot 10^{-40}:\\ \;\;\;\;\frac{y}{a} \cdot \left(-z\right)\\ \mathbf{elif}\;y \leq 6.4 \cdot 10^{+62}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 3.1 \cdot 10^{+195}:\\ \;\;\;\;-y \cdot \frac{z}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{\frac{a}{y}}\\ \end{array} \]

Alternative 5: 51.9% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.85 \cdot 10^{-40}:\\
\;\;\;\;\frac{y}{a} \cdot \left(-z\right)\\

\mathbf{elif}\;y \leq 3.9 \cdot 10^{+61}:\\
\;\;\;\;x\\

\mathbf{elif}\;y \leq 6.2 \cdot 10^{+194}:\\
\;\;\;\;\frac{-y}{\frac{a}{z}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -1.84999999999999999e-40

    1. Initial program 85.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 z around inf 56.7%

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

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

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

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

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

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

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

    if -1.84999999999999999e-40 < y < 3.89999999999999987e61

    1. Initial program 98.3%

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

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

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

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

    if 3.89999999999999987e61 < y < 6.1999999999999999e194

    1. Initial program 83.0%

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

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

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

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

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

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

        \[\leadsto \color{blue}{y \cdot \left(-\frac{z - t}{a}\right)} \]
      4. neg-sub084.7%

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

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

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

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

        \[\leadsto y \cdot \color{blue}{\left(\frac{t}{a} + \left(-\frac{z}{a}\right)\right)} \]
      9. sub-neg77.0%

        \[\leadsto y \cdot \color{blue}{\left(\frac{t}{a} - \frac{z}{a}\right)} \]
      10. div-sub84.7%

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

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

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

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

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

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

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

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

        \[\leadsto -\color{blue}{\frac{y}{\frac{a}{z}}} \]
      3. distribute-neg-frac62.8%

        \[\leadsto \color{blue}{\frac{-y}{\frac{a}{z}}} \]
    12. Simplified62.8%

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

    if 6.1999999999999999e194 < y

    1. Initial program 78.9%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.85 \cdot 10^{-40}:\\ \;\;\;\;\frac{y}{a} \cdot \left(-z\right)\\ \mathbf{elif}\;y \leq 3.9 \cdot 10^{+61}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 6.2 \cdot 10^{+194}:\\ \;\;\;\;\frac{-y}{\frac{a}{z}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{\frac{a}{y}}\\ \end{array} \]

Alternative 6: 77.3% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{-40} \lor \neg \left(y \leq 5 \cdot 10^{+58}\right):\\
\;\;\;\;y \cdot \frac{t - z}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -2.7e-40 or 4.99999999999999986e58 < y

    1. Initial program 83.2%

      \[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 73.8%

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

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

        \[\leadsto -\color{blue}{y \cdot \frac{z - t}{a}} \]
      3. distribute-rgt-neg-in87.6%

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

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

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

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

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

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

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

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

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

    if -2.7e-40 < y < 4.99999999999999986e58

    1. Initial program 99.1%

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 7: 86.2% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+42} \lor \neg \left(z \leq 4.2 \cdot 10^{+23}\right):\\
\;\;\;\;x - \frac{y}{a} \cdot z\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.50000000000000003e42 or 4.2000000000000003e23 < z

    1. Initial program 89.8%

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

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

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

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

        \[\leadsto x - \color{blue}{\frac{y}{a} \cdot z} \]
      2. *-commutative89.5%

        \[\leadsto x - \color{blue}{z \cdot \frac{y}{a}} \]
    6. Simplified89.5%

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

    if -2.50000000000000003e42 < z < 4.2000000000000003e23

    1. Initial program 91.5%

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 8: 50.9% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.6 \cdot 10^{-74} \lor \neg \left(y \leq 1.05 \cdot 10^{+58}\right):\\
\;\;\;\;\frac{y}{a} \cdot t\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -6.59999999999999992e-74 or 1.05000000000000006e58 < y

    1. Initial program 84.5%

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

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

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

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

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

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

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

    if -6.59999999999999992e-74 < y < 1.05000000000000006e58

    1. Initial program 99.0%

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

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

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

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

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

Alternative 9: 50.9% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.8 \cdot 10^{-74}:\\
\;\;\;\;\frac{y}{a} \cdot t\\

\mathbf{elif}\;y \leq 1.04 \cdot 10^{+58}:\\
\;\;\;\;x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -4.7999999999999998e-74

    1. Initial program 87.1%

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

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

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

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

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

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

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

    if -4.7999999999999998e-74 < y < 1.04e58

    1. Initial program 99.0%

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

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

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

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

    if 1.04e58 < y

    1. Initial program 80.7%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.8 \cdot 10^{-74}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{elif}\;y \leq 1.04 \cdot 10^{+58}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{\frac{a}{y}}\\ \end{array} \]

Alternative 10: 93.4% accurate, 1.0× speedup?

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

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

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

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

    \[\leadsto \color{blue}{x - y \cdot \frac{z - t}{a}} \]
  4. Final simplification95.1%

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

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 90.7%

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

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

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

    \[\leadsto \color{blue}{x} \]
  5. Final simplification37.4%

    \[\leadsto x \]

Developer target: 99.1% 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 2023195 
(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)))