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

Percentage Accurate: 96.9% → 96.9%
Time: 8.2s
Alternatives: 12
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 12 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.9% 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: 96.9% 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}
Derivation
  1. Initial program 96.9%

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

Alternative 2: 62.8% accurate, 0.4× speedup?

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

\\
\begin{array}{l}
t_1 := \frac{y - z}{\frac{\left(t - z\right) + 1}{a}}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+267} \lor \neg \left(t\_1 \leq 10^{+306}\right):\\
\;\;\;\;a \cdot \left(-y\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (-.f64 y z) (/.f64 (+.f64 (-.f64 t z) #s(literal 1 binary64)) a)) < -9.9999999999999997e266 or 1.00000000000000002e306 < (/.f64 (-.f64 y z) (/.f64 (+.f64 (-.f64 t z) #s(literal 1 binary64)) a))

    1. Initial program 100.0%

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

      \[\leadsto \color{blue}{x - \frac{a \cdot y}{1 + t}} \]
    4. Step-by-step derivation
      1. sub-negN/A

        \[\leadsto \color{blue}{x + \left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right)} \]
      2. +-commutativeN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right) + x} \]
      3. *-commutativeN/A

        \[\leadsto \left(\mathsf{neg}\left(\frac{\color{blue}{y \cdot a}}{1 + t}\right)\right) + x \]
      4. associate-/l*N/A

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{y \cdot \frac{a}{1 + t}}\right)\right) + x \]
      5. distribute-lft-neg-inN/A

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot \frac{a}{1 + t}} + x \]
      6. mul-1-negN/A

        \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \frac{a}{1 + t} + x \]
      7. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, \frac{a}{1 + t}, x\right)} \]
      8. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, \frac{a}{1 + t}, x\right) \]
      9. lower-neg.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, \frac{a}{1 + t}, x\right) \]
      10. lower-/.f64N/A

        \[\leadsto \mathsf{fma}\left(-y, \color{blue}{\frac{a}{1 + t}}, x\right) \]
      11. lower-+.f64100.0

        \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{1 + t}}, x\right) \]
    5. Applied rewrites100.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)} \]
    6. Taylor expanded in x around 0

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

        \[\leadsto a \cdot \color{blue}{\frac{y}{-1 - t}} \]
      2. Taylor expanded in t around 0

        \[\leadsto a \cdot \left(-1 \cdot y\right) \]
      3. Step-by-step derivation
        1. Applied rewrites76.5%

          \[\leadsto a \cdot \left(-y\right) \]

        if -9.9999999999999997e266 < (/.f64 (-.f64 y z) (/.f64 (+.f64 (-.f64 t z) #s(literal 1 binary64)) a)) < 1.00000000000000002e306

        1. Initial program 96.7%

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

          \[\leadsto \color{blue}{x - a} \]
        4. Step-by-step derivation
          1. lower--.f6461.2

            \[\leadsto \color{blue}{x - a} \]
        5. Applied rewrites61.2%

          \[\leadsto \color{blue}{x - a} \]
      4. Recombined 2 regimes into one program.
      5. Final simplification62.2%

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

      Alternative 3: 91.7% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.35 \cdot 10^{+182} \lor \neg \left(z \leq 4.4 \cdot 10^{+192}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{\left(y - z\right) \cdot a}{1 + \left(t - z\right)}\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (or (<= z -1.35e+182) (not (<= z 4.4e+192)))
         (fma (/ z (- (+ 1.0 t) z)) a x)
         (- x (/ (* (- y z) a) (+ 1.0 (- t z))))))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if ((z <= -1.35e+182) || !(z <= 4.4e+192)) {
      		tmp = fma((z / ((1.0 + t) - z)), a, x);
      	} else {
      		tmp = x - (((y - z) * a) / (1.0 + (t - z)));
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if ((z <= -1.35e+182) || !(z <= 4.4e+192))
      		tmp = fma(Float64(z / Float64(Float64(1.0 + t) - z)), a, x);
      	else
      		tmp = Float64(x - Float64(Float64(Float64(y - z) * a) / Float64(1.0 + Float64(t - z))));
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.35e+182], N[Not[LessEqual[z, 4.4e+192]], $MachinePrecision]], N[(N[(z / N[(N[(1.0 + t), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision] * a + x), $MachinePrecision], N[(x - N[(N[(N[(y - z), $MachinePrecision] * a), $MachinePrecision] / N[(1.0 + N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -1.35 \cdot 10^{+182} \lor \neg \left(z \leq 4.4 \cdot 10^{+192}\right):\\
      \;\;\;\;\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;x - \frac{\left(y - z\right) \cdot a}{1 + \left(t - z\right)}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -1.3500000000000001e182 or 4.4000000000000001e192 < z

        1. Initial program 94.5%

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

          \[\leadsto \color{blue}{x - -1 \cdot \frac{a \cdot z}{\left(1 + t\right) - z}} \]
        4. Step-by-step derivation
          1. cancel-sign-sub-invN/A

            \[\leadsto \color{blue}{x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot z}{\left(1 + t\right) - z}} \]
          2. metadata-evalN/A

            \[\leadsto x + \color{blue}{1} \cdot \frac{a \cdot z}{\left(1 + t\right) - z} \]
          3. *-lft-identityN/A

            \[\leadsto x + \color{blue}{\frac{a \cdot z}{\left(1 + t\right) - z}} \]
          4. +-commutativeN/A

            \[\leadsto \color{blue}{\frac{a \cdot z}{\left(1 + t\right) - z} + x} \]
          5. associate-/l*N/A

            \[\leadsto \color{blue}{a \cdot \frac{z}{\left(1 + t\right) - z}} + x \]
          6. *-commutativeN/A

            \[\leadsto \color{blue}{\frac{z}{\left(1 + t\right) - z} \cdot a} + x \]
          7. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)} \]
          8. lower-/.f64N/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{\left(1 + t\right) - z}}, a, x\right) \]
          9. lower--.f64N/A

            \[\leadsto \mathsf{fma}\left(\frac{z}{\color{blue}{\left(1 + t\right) - z}}, a, x\right) \]
          10. lower-+.f6496.3

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)} \]

        if -1.3500000000000001e182 < z < 4.4000000000000001e192

        1. Initial program 97.6%

          \[x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \]
        2. Add Preprocessing
        3. Step-by-step derivation
          1. lift-/.f64N/A

            \[\leadsto x - \color{blue}{\frac{y - z}{\frac{\left(t - z\right) + 1}{a}}} \]
          2. lift-/.f64N/A

            \[\leadsto x - \frac{y - z}{\color{blue}{\frac{\left(t - z\right) + 1}{a}}} \]
          3. associate-/r/N/A

            \[\leadsto x - \color{blue}{\frac{y - z}{\left(t - z\right) + 1} \cdot a} \]
          4. associate-*l/N/A

            \[\leadsto x - \color{blue}{\frac{\left(y - z\right) \cdot a}{\left(t - z\right) + 1}} \]
          5. lower-/.f64N/A

            \[\leadsto x - \color{blue}{\frac{\left(y - z\right) \cdot a}{\left(t - z\right) + 1}} \]
          6. lower-*.f6494.8

            \[\leadsto x - \frac{\color{blue}{\left(y - z\right) \cdot a}}{\left(t - z\right) + 1} \]
          7. lift-+.f64N/A

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

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

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

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

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

      Alternative 4: 89.3% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(1 + t\right) - z\\ \mathbf{if}\;y \leq -1.4 \cdot 10^{+118} \lor \neg \left(y \leq 2.05 \cdot 10^{-38}\right):\\ \;\;\;\;x - \frac{y}{t\_1} \cdot a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{t\_1}, a, x\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (let* ((t_1 (- (+ 1.0 t) z)))
         (if (or (<= y -1.4e+118) (not (<= y 2.05e-38)))
           (- x (* (/ y t_1) a))
           (fma (/ z t_1) a x))))
      double code(double x, double y, double z, double t, double a) {
      	double t_1 = (1.0 + t) - z;
      	double tmp;
      	if ((y <= -1.4e+118) || !(y <= 2.05e-38)) {
      		tmp = x - ((y / t_1) * a);
      	} else {
      		tmp = fma((z / t_1), a, x);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	t_1 = Float64(Float64(1.0 + t) - z)
      	tmp = 0.0
      	if ((y <= -1.4e+118) || !(y <= 2.05e-38))
      		tmp = Float64(x - Float64(Float64(y / t_1) * a));
      	else
      		tmp = fma(Float64(z / t_1), a, x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(1.0 + t), $MachinePrecision] - z), $MachinePrecision]}, If[Or[LessEqual[y, -1.4e+118], N[Not[LessEqual[y, 2.05e-38]], $MachinePrecision]], N[(x - N[(N[(y / t$95$1), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], N[(N[(z / t$95$1), $MachinePrecision] * a + x), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \left(1 + t\right) - z\\
      \mathbf{if}\;y \leq -1.4 \cdot 10^{+118} \lor \neg \left(y \leq 2.05 \cdot 10^{-38}\right):\\
      \;\;\;\;x - \frac{y}{t\_1} \cdot a\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(\frac{z}{t\_1}, a, x\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if y < -1.39999999999999993e118 or 2.0499999999999999e-38 < y

        1. Initial program 95.2%

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

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

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

            \[\leadsto x - \color{blue}{\frac{y}{\left(1 + t\right) - z} \cdot a} \]
          3. lower-*.f64N/A

            \[\leadsto x - \color{blue}{\frac{y}{\left(1 + t\right) - z} \cdot a} \]
          4. lower-/.f64N/A

            \[\leadsto x - \color{blue}{\frac{y}{\left(1 + t\right) - z}} \cdot a \]
          5. lower--.f64N/A

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

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

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

        if -1.39999999999999993e118 < y < 2.0499999999999999e-38

        1. Initial program 98.1%

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

          \[\leadsto \color{blue}{x - -1 \cdot \frac{a \cdot z}{\left(1 + t\right) - z}} \]
        4. Step-by-step derivation
          1. cancel-sign-sub-invN/A

            \[\leadsto \color{blue}{x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot z}{\left(1 + t\right) - z}} \]
          2. metadata-evalN/A

            \[\leadsto x + \color{blue}{1} \cdot \frac{a \cdot z}{\left(1 + t\right) - z} \]
          3. *-lft-identityN/A

            \[\leadsto x + \color{blue}{\frac{a \cdot z}{\left(1 + t\right) - z}} \]
          4. +-commutativeN/A

            \[\leadsto \color{blue}{\frac{a \cdot z}{\left(1 + t\right) - z} + x} \]
          5. associate-/l*N/A

            \[\leadsto \color{blue}{a \cdot \frac{z}{\left(1 + t\right) - z}} + x \]
          6. *-commutativeN/A

            \[\leadsto \color{blue}{\frac{z}{\left(1 + t\right) - z} \cdot a} + x \]
          7. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)} \]
          8. lower-/.f64N/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{\left(1 + t\right) - z}}, a, x\right) \]
          9. lower--.f64N/A

            \[\leadsto \mathsf{fma}\left(\frac{z}{\color{blue}{\left(1 + t\right) - z}}, a, x\right) \]
          10. lower-+.f6493.9

            \[\leadsto \mathsf{fma}\left(\frac{z}{\color{blue}{\left(1 + t\right)} - z}, a, x\right) \]
        5. Applied rewrites93.9%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)} \]
      3. Recombined 2 regimes into one program.
      4. Final simplification93.7%

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

      Alternative 5: 88.3% accurate, 1.0× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1900000000 \lor \neg \left(z \leq 5800000000000\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (or (<= z -1900000000.0) (not (<= z 5800000000000.0)))
         (fma (/ z (- (+ 1.0 t) z)) a x)
         (fma (- y) (/ a (+ 1.0 t)) x)))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if ((z <= -1900000000.0) || !(z <= 5800000000000.0)) {
      		tmp = fma((z / ((1.0 + t) - z)), a, x);
      	} else {
      		tmp = fma(-y, (a / (1.0 + t)), x);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if ((z <= -1900000000.0) || !(z <= 5800000000000.0))
      		tmp = fma(Float64(z / Float64(Float64(1.0 + t) - z)), a, x);
      	else
      		tmp = fma(Float64(-y), Float64(a / Float64(1.0 + t)), x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1900000000.0], N[Not[LessEqual[z, 5800000000000.0]], $MachinePrecision]], N[(N[(z / N[(N[(1.0 + t), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision] * a + x), $MachinePrecision], N[((-y) * N[(a / N[(1.0 + t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -1900000000 \lor \neg \left(z \leq 5800000000000\right):\\
      \;\;\;\;\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -1.9e9 or 5.8e12 < z

        1. Initial program 93.6%

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

          \[\leadsto \color{blue}{x - -1 \cdot \frac{a \cdot z}{\left(1 + t\right) - z}} \]
        4. Step-by-step derivation
          1. cancel-sign-sub-invN/A

            \[\leadsto \color{blue}{x + \left(\mathsf{neg}\left(-1\right)\right) \cdot \frac{a \cdot z}{\left(1 + t\right) - z}} \]
          2. metadata-evalN/A

            \[\leadsto x + \color{blue}{1} \cdot \frac{a \cdot z}{\left(1 + t\right) - z} \]
          3. *-lft-identityN/A

            \[\leadsto x + \color{blue}{\frac{a \cdot z}{\left(1 + t\right) - z}} \]
          4. +-commutativeN/A

            \[\leadsto \color{blue}{\frac{a \cdot z}{\left(1 + t\right) - z} + x} \]
          5. associate-/l*N/A

            \[\leadsto \color{blue}{a \cdot \frac{z}{\left(1 + t\right) - z}} + x \]
          6. *-commutativeN/A

            \[\leadsto \color{blue}{\frac{z}{\left(1 + t\right) - z} \cdot a} + x \]
          7. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)} \]
          8. lower-/.f64N/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{\left(1 + t\right) - z}}, a, x\right) \]
          9. lower--.f64N/A

            \[\leadsto \mathsf{fma}\left(\frac{z}{\color{blue}{\left(1 + t\right) - z}}, a, x\right) \]
          10. lower-+.f6491.1

            \[\leadsto \mathsf{fma}\left(\frac{z}{\color{blue}{\left(1 + t\right)} - z}, a, x\right) \]
        5. Applied rewrites91.1%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)} \]

        if -1.9e9 < z < 5.8e12

        1. Initial program 99.8%

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

          \[\leadsto \color{blue}{x - \frac{a \cdot y}{1 + t}} \]
        4. Step-by-step derivation
          1. sub-negN/A

            \[\leadsto \color{blue}{x + \left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right)} \]
          2. +-commutativeN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right) + x} \]
          3. *-commutativeN/A

            \[\leadsto \left(\mathsf{neg}\left(\frac{\color{blue}{y \cdot a}}{1 + t}\right)\right) + x \]
          4. associate-/l*N/A

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{y \cdot \frac{a}{1 + t}}\right)\right) + x \]
          5. distribute-lft-neg-inN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot \frac{a}{1 + t}} + x \]
          6. mul-1-negN/A

            \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \frac{a}{1 + t} + x \]
          7. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, \frac{a}{1 + t}, x\right)} \]
          8. mul-1-negN/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, \frac{a}{1 + t}, x\right) \]
          9. lower-neg.f64N/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, \frac{a}{1 + t}, x\right) \]
          10. lower-/.f64N/A

            \[\leadsto \mathsf{fma}\left(-y, \color{blue}{\frac{a}{1 + t}}, x\right) \]
          11. lower-+.f6492.6

            \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{1 + t}}, x\right) \]
        5. Applied rewrites92.6%

          \[\leadsto \color{blue}{\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)} \]
      3. Recombined 2 regimes into one program.
      4. Final simplification91.9%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1900000000 \lor \neg \left(z \leq 5800000000000\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{\left(1 + t\right) - z}, a, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)\\ \end{array} \]
      5. Add Preprocessing

      Alternative 6: 83.7% accurate, 1.0× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.4 \cdot 10^{+15} \lor \neg \left(z \leq 3.8 \cdot 10^{+16}\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (or (<= z -2.4e+15) (not (<= z 3.8e+16)))
         (- x a)
         (fma (- y) (/ a (+ 1.0 t)) x)))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if ((z <= -2.4e+15) || !(z <= 3.8e+16)) {
      		tmp = x - a;
      	} else {
      		tmp = fma(-y, (a / (1.0 + t)), x);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if ((z <= -2.4e+15) || !(z <= 3.8e+16))
      		tmp = Float64(x - a);
      	else
      		tmp = fma(Float64(-y), Float64(a / Float64(1.0 + t)), x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.4e+15], N[Not[LessEqual[z, 3.8e+16]], $MachinePrecision]], N[(x - a), $MachinePrecision], N[((-y) * N[(a / N[(1.0 + t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;z \leq -2.4 \cdot 10^{+15} \lor \neg \left(z \leq 3.8 \cdot 10^{+16}\right):\\
      \;\;\;\;x - a\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if z < -2.4e15 or 3.8e16 < z

        1. Initial program 93.6%

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

          \[\leadsto \color{blue}{x - a} \]
        4. Step-by-step derivation
          1. lower--.f6478.6

            \[\leadsto \color{blue}{x - a} \]
        5. Applied rewrites78.6%

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

        if -2.4e15 < z < 3.8e16

        1. Initial program 99.8%

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

          \[\leadsto \color{blue}{x - \frac{a \cdot y}{1 + t}} \]
        4. Step-by-step derivation
          1. sub-negN/A

            \[\leadsto \color{blue}{x + \left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right)} \]
          2. +-commutativeN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right) + x} \]
          3. *-commutativeN/A

            \[\leadsto \left(\mathsf{neg}\left(\frac{\color{blue}{y \cdot a}}{1 + t}\right)\right) + x \]
          4. associate-/l*N/A

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{y \cdot \frac{a}{1 + t}}\right)\right) + x \]
          5. distribute-lft-neg-inN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot \frac{a}{1 + t}} + x \]
          6. mul-1-negN/A

            \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \frac{a}{1 + t} + x \]
          7. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, \frac{a}{1 + t}, x\right)} \]
          8. mul-1-negN/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, \frac{a}{1 + t}, x\right) \]
          9. lower-neg.f64N/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, \frac{a}{1 + t}, x\right) \]
          10. lower-/.f64N/A

            \[\leadsto \mathsf{fma}\left(-y, \color{blue}{\frac{a}{1 + t}}, x\right) \]
          11. lower-+.f6492.6

            \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{1 + t}}, x\right) \]
        5. Applied rewrites92.6%

          \[\leadsto \color{blue}{\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)} \]
      3. Recombined 2 regimes into one program.
      4. Final simplification86.1%

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

      Alternative 7: 74.5% accurate, 1.0× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -0.00041 \lor \neg \left(t \leq 5 \cdot 10^{-15}\right):\\ \;\;\;\;\mathsf{fma}\left(-a, \frac{y - z}{t}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(a, t, -a\right), x\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (or (<= t -0.00041) (not (<= t 5e-15)))
         (fma (- a) (/ (- y z) t) x)
         (fma y (fma a t (- a)) x)))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if ((t <= -0.00041) || !(t <= 5e-15)) {
      		tmp = fma(-a, ((y - z) / t), x);
      	} else {
      		tmp = fma(y, fma(a, t, -a), x);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if ((t <= -0.00041) || !(t <= 5e-15))
      		tmp = fma(Float64(-a), Float64(Float64(y - z) / t), x);
      	else
      		tmp = fma(y, fma(a, t, Float64(-a)), x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -0.00041], N[Not[LessEqual[t, 5e-15]], $MachinePrecision]], N[((-a) * N[(N[(y - z), $MachinePrecision] / t), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(a * t + (-a)), $MachinePrecision] + x), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;t \leq -0.00041 \lor \neg \left(t \leq 5 \cdot 10^{-15}\right):\\
      \;\;\;\;\mathsf{fma}\left(-a, \frac{y - z}{t}, x\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(a, t, -a\right), x\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t < -4.0999999999999999e-4 or 4.99999999999999999e-15 < t

        1. Initial program 95.6%

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

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

            \[\leadsto x + \color{blue}{\left(\mathsf{neg}\left(\frac{a \cdot \left(y - z\right)}{t}\right)\right)} \]
          2. +-commutativeN/A

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

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{a \cdot \frac{y - z}{t}}\right)\right) + x \]
          4. distribute-lft-neg-inN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(a\right)\right) \cdot \frac{y - z}{t}} + x \]
          5. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), \frac{y - z}{t}, x\right)} \]
          6. lower-neg.f64N/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, \frac{y - z}{t}, x\right) \]
          7. lower-/.f64N/A

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

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

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

        if -4.0999999999999999e-4 < t < 4.99999999999999999e-15

        1. Initial program 98.3%

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

          \[\leadsto \color{blue}{x - \frac{a \cdot y}{1 + t}} \]
        4. Step-by-step derivation
          1. sub-negN/A

            \[\leadsto \color{blue}{x + \left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right)} \]
          2. +-commutativeN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right) + x} \]
          3. *-commutativeN/A

            \[\leadsto \left(\mathsf{neg}\left(\frac{\color{blue}{y \cdot a}}{1 + t}\right)\right) + x \]
          4. associate-/l*N/A

            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{y \cdot \frac{a}{1 + t}}\right)\right) + x \]
          5. distribute-lft-neg-inN/A

            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot \frac{a}{1 + t}} + x \]
          6. mul-1-negN/A

            \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \frac{a}{1 + t} + x \]
          7. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, \frac{a}{1 + t}, x\right)} \]
          8. mul-1-negN/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, \frac{a}{1 + t}, x\right) \]
          9. lower-neg.f64N/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, \frac{a}{1 + t}, x\right) \]
          10. lower-/.f64N/A

            \[\leadsto \mathsf{fma}\left(-y, \color{blue}{\frac{a}{1 + t}}, x\right) \]
          11. lower-+.f6470.4

            \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{1 + t}}, x\right) \]
        5. Applied rewrites70.4%

          \[\leadsto \color{blue}{\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)} \]
        6. Taylor expanded in t around 0

          \[\leadsto x + \color{blue}{\left(-1 \cdot \left(a \cdot y\right) + a \cdot \left(t \cdot y\right)\right)} \]
        7. Step-by-step derivation
          1. Applied rewrites70.1%

            \[\leadsto \mathsf{fma}\left(y, \color{blue}{\mathsf{fma}\left(a, t, -a\right)}, x\right) \]
        8. Recombined 2 regimes into one program.
        9. Final simplification79.2%

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

        Alternative 8: 69.9% accurate, 1.1× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -33500000000000 \lor \neg \left(z \leq 3.6 \cdot 10^{+16}\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, \frac{a}{t}, x\right)\\ \end{array} \end{array} \]
        (FPCore (x y z t a)
         :precision binary64
         (if (or (<= z -33500000000000.0) (not (<= z 3.6e+16)))
           (- x a)
           (fma (- y) (/ a t) x)))
        double code(double x, double y, double z, double t, double a) {
        	double tmp;
        	if ((z <= -33500000000000.0) || !(z <= 3.6e+16)) {
        		tmp = x - a;
        	} else {
        		tmp = fma(-y, (a / t), x);
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a)
        	tmp = 0.0
        	if ((z <= -33500000000000.0) || !(z <= 3.6e+16))
        		tmp = Float64(x - a);
        	else
        		tmp = fma(Float64(-y), Float64(a / t), x);
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -33500000000000.0], N[Not[LessEqual[z, 3.6e+16]], $MachinePrecision]], N[(x - a), $MachinePrecision], N[((-y) * N[(a / t), $MachinePrecision] + x), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;z \leq -33500000000000 \lor \neg \left(z \leq 3.6 \cdot 10^{+16}\right):\\
        \;\;\;\;x - a\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{fma}\left(-y, \frac{a}{t}, x\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if z < -3.35e13 or 3.6e16 < z

          1. Initial program 93.6%

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

            \[\leadsto \color{blue}{x - a} \]
          4. Step-by-step derivation
            1. lower--.f6478.6

              \[\leadsto \color{blue}{x - a} \]
          5. Applied rewrites78.6%

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

          if -3.35e13 < z < 3.6e16

          1. Initial program 99.8%

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

            \[\leadsto \color{blue}{x - \frac{a \cdot y}{1 + t}} \]
          4. Step-by-step derivation
            1. sub-negN/A

              \[\leadsto \color{blue}{x + \left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right)} \]
            2. +-commutativeN/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right) + x} \]
            3. *-commutativeN/A

              \[\leadsto \left(\mathsf{neg}\left(\frac{\color{blue}{y \cdot a}}{1 + t}\right)\right) + x \]
            4. associate-/l*N/A

              \[\leadsto \left(\mathsf{neg}\left(\color{blue}{y \cdot \frac{a}{1 + t}}\right)\right) + x \]
            5. distribute-lft-neg-inN/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot \frac{a}{1 + t}} + x \]
            6. mul-1-negN/A

              \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \frac{a}{1 + t} + x \]
            7. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, \frac{a}{1 + t}, x\right)} \]
            8. mul-1-negN/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, \frac{a}{1 + t}, x\right) \]
            9. lower-neg.f64N/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, \frac{a}{1 + t}, x\right) \]
            10. lower-/.f64N/A

              \[\leadsto \mathsf{fma}\left(-y, \color{blue}{\frac{a}{1 + t}}, x\right) \]
            11. lower-+.f6492.6

              \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{1 + t}}, x\right) \]
          5. Applied rewrites92.6%

            \[\leadsto \color{blue}{\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)} \]
          6. Taylor expanded in t around inf

            \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{t}}, x\right) \]
          7. Step-by-step derivation
            1. Applied rewrites72.3%

              \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{t}}, x\right) \]
          8. Recombined 2 regimes into one program.
          9. Final simplification75.2%

            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -33500000000000 \lor \neg \left(z \leq 3.6 \cdot 10^{+16}\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, \frac{a}{t}, x\right)\\ \end{array} \]
          10. Add Preprocessing

          Alternative 9: 71.4% accurate, 1.1× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -0.00041:\\ \;\;\;\;\mathsf{fma}\left(-y, \frac{a}{t}, x\right)\\ \mathbf{elif}\;t \leq 5 \cdot 10^{-15}:\\ \;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(a, t, -a\right), x\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{t} \cdot a\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (if (<= t -0.00041)
             (fma (- y) (/ a t) x)
             (if (<= t 5e-15) (fma y (fma a t (- a)) x) (- x (* (/ y t) a)))))
          double code(double x, double y, double z, double t, double a) {
          	double tmp;
          	if (t <= -0.00041) {
          		tmp = fma(-y, (a / t), x);
          	} else if (t <= 5e-15) {
          		tmp = fma(y, fma(a, t, -a), x);
          	} else {
          		tmp = x - ((y / t) * a);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a)
          	tmp = 0.0
          	if (t <= -0.00041)
          		tmp = fma(Float64(-y), Float64(a / t), x);
          	elseif (t <= 5e-15)
          		tmp = fma(y, fma(a, t, Float64(-a)), x);
          	else
          		tmp = Float64(x - Float64(Float64(y / t) * a));
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_] := If[LessEqual[t, -0.00041], N[((-y) * N[(a / t), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t, 5e-15], N[(y * N[(a * t + (-a)), $MachinePrecision] + x), $MachinePrecision], N[(x - N[(N[(y / t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;t \leq -0.00041:\\
          \;\;\;\;\mathsf{fma}\left(-y, \frac{a}{t}, x\right)\\
          
          \mathbf{elif}\;t \leq 5 \cdot 10^{-15}:\\
          \;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(a, t, -a\right), x\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;x - \frac{y}{t} \cdot a\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if t < -4.0999999999999999e-4

            1. Initial program 99.9%

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

              \[\leadsto \color{blue}{x - \frac{a \cdot y}{1 + t}} \]
            4. Step-by-step derivation
              1. sub-negN/A

                \[\leadsto \color{blue}{x + \left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right)} \]
              2. +-commutativeN/A

                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right) + x} \]
              3. *-commutativeN/A

                \[\leadsto \left(\mathsf{neg}\left(\frac{\color{blue}{y \cdot a}}{1 + t}\right)\right) + x \]
              4. associate-/l*N/A

                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{y \cdot \frac{a}{1 + t}}\right)\right) + x \]
              5. distribute-lft-neg-inN/A

                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot \frac{a}{1 + t}} + x \]
              6. mul-1-negN/A

                \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \frac{a}{1 + t} + x \]
              7. lower-fma.f64N/A

                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, \frac{a}{1 + t}, x\right)} \]
              8. mul-1-negN/A

                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, \frac{a}{1 + t}, x\right) \]
              9. lower-neg.f64N/A

                \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, \frac{a}{1 + t}, x\right) \]
              10. lower-/.f64N/A

                \[\leadsto \mathsf{fma}\left(-y, \color{blue}{\frac{a}{1 + t}}, x\right) \]
              11. lower-+.f6478.4

                \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{1 + t}}, x\right) \]
            5. Applied rewrites78.4%

              \[\leadsto \color{blue}{\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)} \]
            6. Taylor expanded in t around inf

              \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{t}}, x\right) \]
            7. Step-by-step derivation
              1. Applied rewrites78.1%

                \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{t}}, x\right) \]

              if -4.0999999999999999e-4 < t < 4.99999999999999999e-15

              1. Initial program 98.3%

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

                \[\leadsto \color{blue}{x - \frac{a \cdot y}{1 + t}} \]
              4. Step-by-step derivation
                1. sub-negN/A

                  \[\leadsto \color{blue}{x + \left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right)} \]
                2. +-commutativeN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right) + x} \]
                3. *-commutativeN/A

                  \[\leadsto \left(\mathsf{neg}\left(\frac{\color{blue}{y \cdot a}}{1 + t}\right)\right) + x \]
                4. associate-/l*N/A

                  \[\leadsto \left(\mathsf{neg}\left(\color{blue}{y \cdot \frac{a}{1 + t}}\right)\right) + x \]
                5. distribute-lft-neg-inN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot \frac{a}{1 + t}} + x \]
                6. mul-1-negN/A

                  \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \frac{a}{1 + t} + x \]
                7. lower-fma.f64N/A

                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, \frac{a}{1 + t}, x\right)} \]
                8. mul-1-negN/A

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, \frac{a}{1 + t}, x\right) \]
                9. lower-neg.f64N/A

                  \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, \frac{a}{1 + t}, x\right) \]
                10. lower-/.f64N/A

                  \[\leadsto \mathsf{fma}\left(-y, \color{blue}{\frac{a}{1 + t}}, x\right) \]
                11. lower-+.f6470.4

                  \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{1 + t}}, x\right) \]
              5. Applied rewrites70.4%

                \[\leadsto \color{blue}{\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)} \]
              6. Taylor expanded in t around 0

                \[\leadsto x + \color{blue}{\left(-1 \cdot \left(a \cdot y\right) + a \cdot \left(t \cdot y\right)\right)} \]
              7. Step-by-step derivation
                1. Applied rewrites70.1%

                  \[\leadsto \mathsf{fma}\left(y, \color{blue}{\mathsf{fma}\left(a, t, -a\right)}, x\right) \]

                if 4.99999999999999999e-15 < t

                1. Initial program 91.5%

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

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

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

                    \[\leadsto x - \color{blue}{\frac{y}{\left(1 + t\right) - z} \cdot a} \]
                  3. lower-*.f64N/A

                    \[\leadsto x - \color{blue}{\frac{y}{\left(1 + t\right) - z} \cdot a} \]
                  4. lower-/.f64N/A

                    \[\leadsto x - \color{blue}{\frac{y}{\left(1 + t\right) - z}} \cdot a \]
                  5. lower--.f64N/A

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

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

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

                  \[\leadsto x - \frac{y}{t} \cdot a \]
                7. Step-by-step derivation
                  1. Applied rewrites84.2%

                    \[\leadsto x - \frac{y}{t} \cdot a \]
                8. Recombined 3 regimes into one program.
                9. Add Preprocessing

                Alternative 10: 72.5% accurate, 1.7× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -140 \lor \neg \left(z \leq 75\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, a, x\right)\\ \end{array} \end{array} \]
                (FPCore (x y z t a)
                 :precision binary64
                 (if (or (<= z -140.0) (not (<= z 75.0))) (- x a) (fma (- y) a x)))
                double code(double x, double y, double z, double t, double a) {
                	double tmp;
                	if ((z <= -140.0) || !(z <= 75.0)) {
                		tmp = x - a;
                	} else {
                		tmp = fma(-y, a, x);
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a)
                	tmp = 0.0
                	if ((z <= -140.0) || !(z <= 75.0))
                		tmp = Float64(x - a);
                	else
                		tmp = fma(Float64(-y), a, x);
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -140.0], N[Not[LessEqual[z, 75.0]], $MachinePrecision]], N[(x - a), $MachinePrecision], N[((-y) * a + x), $MachinePrecision]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;z \leq -140 \lor \neg \left(z \leq 75\right):\\
                \;\;\;\;x - a\\
                
                \mathbf{else}:\\
                \;\;\;\;\mathsf{fma}\left(-y, a, x\right)\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if z < -140 or 75 < z

                  1. Initial program 93.8%

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

                    \[\leadsto \color{blue}{x - a} \]
                  4. Step-by-step derivation
                    1. lower--.f6477.7

                      \[\leadsto \color{blue}{x - a} \]
                  5. Applied rewrites77.7%

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

                  if -140 < z < 75

                  1. Initial program 99.8%

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

                    \[\leadsto \color{blue}{x - \frac{a \cdot y}{1 + t}} \]
                  4. Step-by-step derivation
                    1. sub-negN/A

                      \[\leadsto \color{blue}{x + \left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right)} \]
                    2. +-commutativeN/A

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{a \cdot y}{1 + t}\right)\right) + x} \]
                    3. *-commutativeN/A

                      \[\leadsto \left(\mathsf{neg}\left(\frac{\color{blue}{y \cdot a}}{1 + t}\right)\right) + x \]
                    4. associate-/l*N/A

                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{y \cdot \frac{a}{1 + t}}\right)\right) + x \]
                    5. distribute-lft-neg-inN/A

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot \frac{a}{1 + t}} + x \]
                    6. mul-1-negN/A

                      \[\leadsto \color{blue}{\left(-1 \cdot y\right)} \cdot \frac{a}{1 + t} + x \]
                    7. lower-fma.f64N/A

                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, \frac{a}{1 + t}, x\right)} \]
                    8. mul-1-negN/A

                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, \frac{a}{1 + t}, x\right) \]
                    9. lower-neg.f64N/A

                      \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, \frac{a}{1 + t}, x\right) \]
                    10. lower-/.f64N/A

                      \[\leadsto \mathsf{fma}\left(-y, \color{blue}{\frac{a}{1 + t}}, x\right) \]
                    11. lower-+.f6492.4

                      \[\leadsto \mathsf{fma}\left(-y, \frac{a}{\color{blue}{1 + t}}, x\right) \]
                  5. Applied rewrites92.4%

                    \[\leadsto \color{blue}{\mathsf{fma}\left(-y, \frac{a}{1 + t}, x\right)} \]
                  6. Taylor expanded in t around 0

                    \[\leadsto x + \color{blue}{-1 \cdot \left(a \cdot y\right)} \]
                  7. Step-by-step derivation
                    1. Applied rewrites67.2%

                      \[\leadsto \mathsf{fma}\left(-y, \color{blue}{a}, x\right) \]
                  8. Recombined 2 regimes into one program.
                  9. Final simplification72.2%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -140 \lor \neg \left(z \leq 75\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, a, x\right)\\ \end{array} \]
                  10. Add Preprocessing

                  Alternative 11: 59.2% accurate, 8.8× speedup?

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

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

                    \[\leadsto \color{blue}{x - a} \]
                  4. Step-by-step derivation
                    1. lower--.f6457.4

                      \[\leadsto \color{blue}{x - a} \]
                  5. Applied rewrites57.4%

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

                  Alternative 12: 16.6% accurate, 11.7× speedup?

                  \[\begin{array}{l} \\ -a \end{array} \]
                  (FPCore (x y z t a) :precision binary64 (- a))
                  double code(double x, double y, double z, double t, double a) {
                  	return -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 = -a
                  end function
                  
                  public static double code(double x, double y, double z, double t, double a) {
                  	return -a;
                  }
                  
                  def code(x, y, z, t, a):
                  	return -a
                  
                  function code(x, y, z, t, a)
                  	return Float64(-a)
                  end
                  
                  function tmp = code(x, y, z, t, a)
                  	tmp = -a;
                  end
                  
                  code[x_, y_, z_, t_, a_] := (-a)
                  
                  \begin{array}{l}
                  
                  \\
                  -a
                  \end{array}
                  
                  Derivation
                  1. Initial program 96.9%

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

                    \[\leadsto \color{blue}{x - a} \]
                  4. Step-by-step derivation
                    1. lower--.f6457.4

                      \[\leadsto \color{blue}{x - a} \]
                  5. Applied rewrites57.4%

                    \[\leadsto \color{blue}{x - a} \]
                  6. Taylor expanded in x around 0

                    \[\leadsto -1 \cdot \color{blue}{a} \]
                  7. Step-by-step derivation
                    1. Applied rewrites13.3%

                      \[\leadsto -a \]
                    2. Add Preprocessing

                    Developer Target 1: 99.6% accurate, 1.2× 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 2024324 
                    (FPCore (x y z t a)
                      :name "Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3"
                      :precision binary64
                    
                      :alt
                      (! :herbie-platform default (- x (* (/ (- y z) (+ (- t z) 1)) a)))
                    
                      (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))