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

Percentage Accurate: 85.3% → 99.7%
Time: 12.9s
Alternatives: 11
Speedup: 1.0×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 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: 85.3% accurate, 1.0× speedup?

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

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

Alternative 1: 99.7% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{y \cdot \left(z - t\right)}{a - t}\\ \mathbf{if}\;t\_1 \leq -\infty:\\ \;\;\;\;x + y \cdot \frac{z - t}{a - t}\\ \mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+301}:\\ \;\;\;\;t\_1 + x\\ \mathbf{else}:\\ \;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a - t}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (/ (* y (- z t)) (- a t))))
   (if (<= t_1 (- INFINITY))
     (+ x (* y (/ (- z t) (- a t))))
     (if (<= t_1 5e+301) (+ t_1 x) (+ x (* (- z t) (/ y (- a t))))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = (y * (z - t)) / (a - t);
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = x + (y * ((z - t) / (a - t)));
	} else if (t_1 <= 5e+301) {
		tmp = t_1 + x;
	} else {
		tmp = x + ((z - t) * (y / (a - t)));
	}
	return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = (y * (z - t)) / (a - t);
	double tmp;
	if (t_1 <= -Double.POSITIVE_INFINITY) {
		tmp = x + (y * ((z - t) / (a - t)));
	} else if (t_1 <= 5e+301) {
		tmp = t_1 + x;
	} else {
		tmp = x + ((z - t) * (y / (a - t)));
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = (y * (z - t)) / (a - t)
	tmp = 0
	if t_1 <= -math.inf:
		tmp = x + (y * ((z - t) / (a - t)))
	elif t_1 <= 5e+301:
		tmp = t_1 + x
	else:
		tmp = x + ((z - t) * (y / (a - t)))
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(Float64(y * Float64(z - t)) / Float64(a - t))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t))));
	elseif (t_1 <= 5e+301)
		tmp = Float64(t_1 + x);
	else
		tmp = Float64(x + Float64(Float64(z - t) * Float64(y / Float64(a - t))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = (y * (z - t)) / (a - t);
	tmp = 0.0;
	if (t_1 <= -Inf)
		tmp = x + (y * ((z - t) / (a - t)));
	elseif (t_1 <= 5e+301)
		tmp = t_1 + x;
	else
		tmp = x + ((z - t) * (y / (a - t)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+301], N[(t$95$1 + x), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x + y \cdot \frac{z - t}{a - t}\\

\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+301}:\\
\;\;\;\;t\_1 + x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (/.f64 (*.f64 y (-.f64 z t)) (-.f64 a t)) < -inf.0

    1. Initial program 44.7%

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

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

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

    if -inf.0 < (/.f64 (*.f64 y (-.f64 z t)) (-.f64 a t)) < 5.0000000000000004e301

    1. Initial program 99.4%

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

    if 5.0000000000000004e301 < (/.f64 (*.f64 y (-.f64 z t)) (-.f64 a t))

    1. Initial program 56.6%

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

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

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

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

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

Alternative 2: 75.2% accurate, 0.5× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.10000000000000004e-40 or 2.5000000000000002e68 < t

    1. Initial program 78.7%

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

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

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

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

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified80.6%

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

    if -1.10000000000000004e-40 < t < 3.8000000000000001e-97

    1. Initial program 98.1%

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

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

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

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

    if 3.8000000000000001e-97 < t < 2.5000000000000002e68

    1. Initial program 93.6%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(y - \frac{y \cdot z - \color{blue}{y \cdot a}}{t}\right) + x \]
      10. distribute-lft-out--64.5%

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{y \cdot z}{t}} + x \]
    9. Step-by-step derivation
      1. associate-*r/70.9%

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

        \[\leadsto \frac{\color{blue}{-y \cdot z}}{t} + x \]
      3. distribute-rgt-neg-in70.9%

        \[\leadsto \frac{\color{blue}{y \cdot \left(-z\right)}}{t} + x \]
    10. Simplified70.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.1 \cdot 10^{-40}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;t \leq 3.8 \cdot 10^{-97}:\\ \;\;\;\;x + \frac{y \cdot z}{a}\\ \mathbf{elif}\;t \leq 2.5 \cdot 10^{+68}:\\ \;\;\;\;x - \frac{y \cdot z}{t}\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 75.3% accurate, 0.5× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -8.00000000000000005e-41 or 4.4e67 < t

    1. Initial program 78.7%

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

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

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

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

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified80.6%

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

    if -8.00000000000000005e-41 < t < 2.5999999999999998e-60

    1. Initial program 98.2%

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

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

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

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

    if 2.5999999999999998e-60 < t < 4.4e67

    1. Initial program 91.5%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(y - \frac{y \cdot z - \color{blue}{y \cdot a}}{t}\right) + x \]
      10. distribute-lft-out--68.9%

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{y \cdot z}{t}} + x \]
    9. Step-by-step derivation
      1. mul-1-neg77.5%

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

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

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

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

      \[\leadsto \color{blue}{x + -1 \cdot \frac{y \cdot z}{t}} \]
    12. Step-by-step derivation
      1. mul-1-neg77.5%

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

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

        \[\leadsto \color{blue}{x - y \cdot \frac{z}{t}} \]
    13. Simplified77.3%

      \[\leadsto \color{blue}{x - y \cdot \frac{z}{t}} \]
  3. Recombined 3 regimes into one program.
  4. Add Preprocessing

Alternative 4: 85.0% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.22 \cdot 10^{-60} \lor \neg \left(t \leq 1.8 \cdot 10^{+67}\right):\\
\;\;\;\;x + y \cdot \frac{t - z}{t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.22e-60 or 1.7999999999999999e67 < t

    1. Initial program 79.5%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto x + y \cdot \frac{\color{blue}{\left(-\left(-t\right)\right)} - z}{t} \]
      10. remove-double-neg91.9%

        \[\leadsto x + y \cdot \frac{\color{blue}{t} - z}{t} \]
    7. Simplified91.9%

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

    if -1.22e-60 < t < 1.7999999999999999e67

    1. Initial program 97.0%

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

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

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

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

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

Alternative 5: 86.1% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.8 \cdot 10^{-58} \lor \neg \left(t \leq 4.8 \cdot 10^{+47}\right):\\
\;\;\;\;x + y \cdot \frac{t - z}{t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -5.7999999999999998e-58 or 4.80000000000000037e47 < t

    1. Initial program 80.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.7999999999999998e-58 < t < 4.80000000000000037e47

    1. Initial program 97.0%

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

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

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

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

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

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

Alternative 6: 81.0% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{-62} \lor \neg \left(t \leq 1.22 \cdot 10^{-39}\right):\\
\;\;\;\;x + y \cdot \frac{t - z}{t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -3.0000000000000001e-62 or 1.2200000000000001e-39 < t

    1. Initial program 81.2%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto x + y \cdot \frac{\color{blue}{\left(-\left(-t\right)\right)} - z}{t} \]
      10. remove-double-neg89.4%

        \[\leadsto x + y \cdot \frac{\color{blue}{t} - z}{t} \]
    7. Simplified89.4%

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

    if -3.0000000000000001e-62 < t < 1.2200000000000001e-39

    1. Initial program 98.2%

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

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

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

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

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

Alternative 7: 85.0% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.22 \cdot 10^{-60}:\\
\;\;\;\;x + y \cdot \frac{t - z}{t}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.22e-60

    1. Initial program 79.3%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto x + y \cdot \frac{\color{blue}{\left(-\left(-t\right)\right)} - z}{t} \]
      10. remove-double-neg90.6%

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

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

    if -1.22e-60 < t < 1.99999999999999997e67

    1. Initial program 97.0%

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

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

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

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

    if 1.99999999999999997e67 < t

    1. Initial program 80.0%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(y - \frac{y \cdot z - \color{blue}{y \cdot a}}{t}\right) + x \]
      10. distribute-lft-out--74.3%

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

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

      \[\leadsto \left(y - \color{blue}{\frac{y \cdot z}{t}}\right) + x \]
    9. Step-by-step derivation
      1. associate-/l*94.8%

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

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

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

Alternative 8: 75.1% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{-40} \lor \neg \left(t \leq 1.35 \cdot 10^{+33}\right):\\
\;\;\;\;y + x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.05000000000000009e-40 or 1.34999999999999996e33 < t

    1. Initial program 79.6%

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

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

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

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

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

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

    if -1.05000000000000009e-40 < t < 1.34999999999999996e33

    1. Initial program 97.0%

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

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

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

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

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

Alternative 9: 62.6% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;a \leq 5.8 \cdot 10^{+155}:\\
\;\;\;\;y + x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -2.6000000000000001e138 or 5.7999999999999998e155 < a

    1. Initial program 90.2%

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

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

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

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

    if -2.6000000000000001e138 < a < 5.7999999999999998e155

    1. Initial program 88.4%

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

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

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

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

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified56.6%

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

Alternative 10: 98.2% accurate, 1.0× speedup?

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

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

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

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

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

Alternative 11: 50.1% accurate, 11.0× speedup?

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

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

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

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

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

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

Developer target: 98.3% accurate, 1.0× speedup?

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

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

Reproduce

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

  :alt
  (+ x (/ y (/ (- a t) (- z t))))

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