Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3

Percentage Accurate: 96.8% → 99.7%
Time: 10.1s
Alternatives: 11
Speedup: 1.0×

Specification

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

\\
x - \frac{y - z}{\frac{\left(t - z\right) + 1}{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: 96.8% accurate, 1.0× speedup?

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

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

Alternative 1: 99.7% accurate, 1.0× speedup?

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

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

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

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

    \[\leadsto \color{blue}{x - \frac{y - z}{\left(t - z\right) + 1} \cdot a} \]
  4. Add Preprocessing
  5. Final simplification99.9%

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

Alternative 2: 89.4% accurate, 0.6× speedup?

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

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

\mathbf{elif}\;t \leq 0.0064:\\
\;\;\;\;x + \frac{a}{1 - z} \cdot \left(z - y\right)\\

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


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

    1. Initial program 96.8%

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

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

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

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

    if -1.7000000000000001e64 < t < 0.00640000000000000031

    1. Initial program 97.2%

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

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

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

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

        \[\leadsto x - \color{blue}{\frac{a}{\frac{1 - z}{y - z}}} \]
      2. associate-/r/95.0%

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

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

    if 0.00640000000000000031 < t

    1. Initial program 96.2%

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

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

      \[\leadsto \color{blue}{x - \frac{y - z}{\left(t - z\right) + 1} \cdot a} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. *-commutative99.8%

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

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

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

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

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

        \[\leadsto x - \color{blue}{\frac{a}{\frac{t}{y - z}}} \]
    9. Simplified90.0%

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

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

Alternative 3: 72.3% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -410000:\\
\;\;\;\;x - a\\

\mathbf{elif}\;z \leq -6.9 \cdot 10^{-295}:\\
\;\;\;\;x - y \cdot \frac{a}{t}\\

\mathbf{elif}\;z \leq 1700:\\
\;\;\;\;x - y \cdot a\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -4.1e5 or 1700 < z

    1. Initial program 94.9%

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

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

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

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

    if -4.1e5 < z < -6.89999999999999996e-295

    1. Initial program 99.8%

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

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

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

      \[\leadsto x - \color{blue}{\frac{y - z}{t}} \cdot a \]
    6. Taylor expanded in y around inf 71.5%

      \[\leadsto x - \color{blue}{\frac{a \cdot y}{t}} \]
    7. Step-by-step derivation
      1. *-commutative71.5%

        \[\leadsto x - \frac{\color{blue}{y \cdot a}}{t} \]
      2. associate-*r/72.8%

        \[\leadsto x - \color{blue}{y \cdot \frac{a}{t}} \]
    8. Simplified72.8%

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

    if -6.89999999999999996e-295 < z < 1700

    1. Initial program 98.2%

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

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

      \[\leadsto \color{blue}{x - \frac{y - z}{\left(t - z\right) + 1} \cdot a} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. *-commutative99.9%

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

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

        \[\leadsto x - \color{blue}{\frac{a}{\frac{\left(t - z\right) + 1}{y - z}}} \]
    6. Applied egg-rr99.8%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -410000:\\ \;\;\;\;x - a\\ \mathbf{elif}\;z \leq -6.9 \cdot 10^{-295}:\\ \;\;\;\;x - y \cdot \frac{a}{t}\\ \mathbf{elif}\;z \leq 1700:\\ \;\;\;\;x - y \cdot a\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 72.4% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -210:\\
\;\;\;\;x - a\\

\mathbf{elif}\;z \leq -1.9 \cdot 10^{-293}:\\
\;\;\;\;x - a \cdot \frac{y}{t}\\

\mathbf{elif}\;z \leq 1600:\\
\;\;\;\;x - y \cdot a\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -210 or 1600 < z

    1. Initial program 94.9%

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

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

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

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

    if -210 < z < -1.9e-293

    1. Initial program 99.8%

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

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

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

      \[\leadsto x - \color{blue}{\frac{y - z}{t}} \cdot a \]
    6. Taylor expanded in y around inf 74.3%

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

    if -1.9e-293 < z < 1600

    1. Initial program 98.2%

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

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

      \[\leadsto \color{blue}{x - \frac{y - z}{\left(t - z\right) + 1} \cdot a} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. *-commutative99.9%

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

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

        \[\leadsto x - \color{blue}{\frac{a}{\frac{\left(t - z\right) + 1}{y - z}}} \]
    6. Applied egg-rr99.8%

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

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

      \[\leadsto x - \color{blue}{a \cdot y} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification73.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -210:\\ \;\;\;\;x - a\\ \mathbf{elif}\;z \leq -1.9 \cdot 10^{-293}:\\ \;\;\;\;x - a \cdot \frac{y}{t}\\ \mathbf{elif}\;z \leq 1600:\\ \;\;\;\;x - y \cdot a\\ \mathbf{else}:\\ \;\;\;\;x - a\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 84.6% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -6 \cdot 10^{+32} \lor \neg \left(z \leq 1.1 \cdot 10^{+45}\right):\\
\;\;\;\;x - a\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -6e32 or 1.1e45 < z

    1. Initial program 94.3%

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

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

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

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

    if -6e32 < z < 1.1e45

    1. Initial program 99.1%

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

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

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

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

        \[\leadsto x - \color{blue}{\frac{a}{\frac{1 + t}{y}}} \]
      2. associate-/r/84.0%

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

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

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

Alternative 6: 88.2% accurate, 0.7× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.15e6 or 1.00000000000000003e40 < z

    1. Initial program 94.6%

      \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 81.7%

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

        \[\leadsto x - \frac{y - z}{\color{blue}{-\frac{z}{a}}} \]
      2. distribute-neg-frac81.7%

        \[\leadsto x - \frac{y - z}{\color{blue}{\frac{-z}{a}}} \]
    5. Simplified81.7%

      \[\leadsto x - \frac{y - z}{\color{blue}{\frac{-z}{a}}} \]
    6. Taylor expanded in y around 0 78.1%

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

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

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

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

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

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

    if -1.15e6 < z < 1.00000000000000003e40

    1. Initial program 99.1%

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

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

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

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

        \[\leadsto x - \color{blue}{\frac{a}{\frac{1 + t}{y}}} \]
      2. associate-/r/85.3%

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

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

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

Alternative 7: 88.2% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -900000:\\
\;\;\;\;x + \left(\frac{y}{\frac{z}{a}} - a\right)\\

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

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


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

    1. Initial program 94.4%

      \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 84.2%

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

        \[\leadsto x - \frac{y - z}{\color{blue}{-\frac{z}{a}}} \]
      2. distribute-neg-frac84.2%

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

      \[\leadsto x - \frac{y - z}{\color{blue}{\frac{-z}{a}}} \]
    6. Taylor expanded in y around 0 81.7%

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

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

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

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

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

      \[\leadsto x - \color{blue}{\left(a - y \cdot \frac{a}{z}\right)} \]
    9. Step-by-step derivation
      1. clear-num87.0%

        \[\leadsto x - \left(a - y \cdot \color{blue}{\frac{1}{\frac{z}{a}}}\right) \]
      2. un-div-inv87.0%

        \[\leadsto x - \left(a - \color{blue}{\frac{y}{\frac{z}{a}}}\right) \]
    10. Applied egg-rr87.0%

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

    if -9e5 < z < 1.00000000000000003e40

    1. Initial program 99.1%

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

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

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

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

        \[\leadsto x - \color{blue}{\frac{a}{\frac{1 + t}{y}}} \]
      2. associate-/r/85.3%

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

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

    if 1.00000000000000003e40 < z

    1. Initial program 94.7%

      \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 78.6%

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

        \[\leadsto x - \frac{y - z}{\color{blue}{-\frac{z}{a}}} \]
      2. distribute-neg-frac78.6%

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

      \[\leadsto x - \frac{y - z}{\color{blue}{\frac{-z}{a}}} \]
    6. Taylor expanded in y around 0 73.7%

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

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

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

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

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

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

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

Alternative 8: 88.5% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1150000:\\
\;\;\;\;x + \left(\frac{y}{\frac{z}{a}} - a\right)\\

\mathbf{elif}\;z \leq 3.9 \cdot 10^{+40}:\\
\;\;\;\;x - \frac{a}{\frac{t + 1}{y}}\\

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


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

    1. Initial program 94.4%

      \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 84.2%

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

        \[\leadsto x - \frac{y - z}{\color{blue}{-\frac{z}{a}}} \]
      2. distribute-neg-frac84.2%

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

      \[\leadsto x - \frac{y - z}{\color{blue}{\frac{-z}{a}}} \]
    6. Taylor expanded in y around 0 81.7%

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

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

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

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

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

      \[\leadsto x - \color{blue}{\left(a - y \cdot \frac{a}{z}\right)} \]
    9. Step-by-step derivation
      1. clear-num87.0%

        \[\leadsto x - \left(a - y \cdot \color{blue}{\frac{1}{\frac{z}{a}}}\right) \]
      2. un-div-inv87.0%

        \[\leadsto x - \left(a - \color{blue}{\frac{y}{\frac{z}{a}}}\right) \]
    10. Applied egg-rr87.0%

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

    if -1.15e6 < z < 3.9000000000000001e40

    1. Initial program 99.1%

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

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

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

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

        \[\leadsto x - \color{blue}{\frac{a}{\frac{1 + t}{y}}} \]
    7. Simplified85.9%

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

    if 3.9000000000000001e40 < z

    1. Initial program 94.7%

      \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 78.6%

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

        \[\leadsto x - \frac{y - z}{\color{blue}{-\frac{z}{a}}} \]
      2. distribute-neg-frac78.6%

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

      \[\leadsto x - \frac{y - z}{\color{blue}{\frac{-z}{a}}} \]
    6. Taylor expanded in y around 0 73.7%

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

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

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

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

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

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

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

Alternative 9: 72.9% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+36} \lor \neg \left(z \leq 4700\right):\\
\;\;\;\;x - a\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -3e36 or 4700 < z

    1. Initial program 94.7%

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

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

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

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

    if -3e36 < z < 4700

    1. Initial program 99.1%

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

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

      \[\leadsto \color{blue}{x - \frac{y - z}{\left(t - z\right) + 1} \cdot a} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. *-commutative99.9%

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

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

        \[\leadsto x - \color{blue}{\frac{a}{\frac{\left(t - z\right) + 1}{y - z}}} \]
    6. Applied egg-rr99.8%

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

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

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

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

Alternative 10: 66.3% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.8 \cdot 10^{-11} \lor \neg \left(z \leq 5 \cdot 10^{-17}\right):\\
\;\;\;\;x - a\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -7.80000000000000021e-11 or 4.9999999999999999e-17 < z

    1. Initial program 95.2%

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

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

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

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

    if -7.80000000000000021e-11 < z < 4.9999999999999999e-17

    1. Initial program 99.0%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7.8 \cdot 10^{-11} \lor \neg \left(z \leq 5 \cdot 10^{-17}\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 53.9% accurate, 13.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 96.9%

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

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

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

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

    \[\leadsto \color{blue}{x} \]
  7. Final simplification51.1%

    \[\leadsto x \]
  8. Add Preprocessing

Developer target: 99.7% accurate, 1.0× speedup?

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

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

Reproduce

?
herbie shell --seed 2024018 
(FPCore (x y z t a)
  :name "Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3"
  :precision binary64

  :herbie-target
  (- x (* (/ (- y z) (+ (- t z) 1.0)) a))

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