Rosa's DopplerBench

Percentage Accurate: 72.7% → 96.5%
Time: 5.8s
Alternatives: 9
Speedup: 0.8×

Specification

?
\[\begin{array}{l} \\ \frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \end{array} \]
(FPCore (u v t1) :precision binary64 (/ (* (- t1) v) (* (+ t1 u) (+ t1 u))))
double code(double u, double v, double t1) {
	return (-t1 * v) / ((t1 + u) * (t1 + u));
}
real(8) function code(u, v, t1)
    real(8), intent (in) :: u
    real(8), intent (in) :: v
    real(8), intent (in) :: t1
    code = (-t1 * v) / ((t1 + u) * (t1 + u))
end function
public static double code(double u, double v, double t1) {
	return (-t1 * v) / ((t1 + u) * (t1 + u));
}
def code(u, v, t1):
	return (-t1 * v) / ((t1 + u) * (t1 + u))
function code(u, v, t1)
	return Float64(Float64(Float64(-t1) * v) / Float64(Float64(t1 + u) * Float64(t1 + u)))
end
function tmp = code(u, v, t1)
	tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
end
code[u_, v_, t1_] := N[(N[((-t1) * v), $MachinePrecision] / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}
\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 9 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: 72.7% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \end{array} \]
(FPCore (u v t1) :precision binary64 (/ (* (- t1) v) (* (+ t1 u) (+ t1 u))))
double code(double u, double v, double t1) {
	return (-t1 * v) / ((t1 + u) * (t1 + u));
}
real(8) function code(u, v, t1)
    real(8), intent (in) :: u
    real(8), intent (in) :: v
    real(8), intent (in) :: t1
    code = (-t1 * v) / ((t1 + u) * (t1 + u))
end function
public static double code(double u, double v, double t1) {
	return (-t1 * v) / ((t1 + u) * (t1 + u));
}
def code(u, v, t1):
	return (-t1 * v) / ((t1 + u) * (t1 + u))
function code(u, v, t1)
	return Float64(Float64(Float64(-t1) * v) / Float64(Float64(t1 + u) * Float64(t1 + u)))
end
function tmp = code(u, v, t1)
	tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
end
code[u_, v_, t1_] := N[(N[((-t1) * v), $MachinePrecision] / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}
\end{array}

Alternative 1: 96.5% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \frac{\frac{t1}{u - t1} \cdot v}{\left(-u\right) + t1} \end{array} \]
(FPCore (u v t1) :precision binary64 (/ (* (/ t1 (- u t1)) v) (+ (- u) t1)))
double code(double u, double v, double t1) {
	return ((t1 / (u - t1)) * v) / (-u + t1);
}
real(8) function code(u, v, t1)
    real(8), intent (in) :: u
    real(8), intent (in) :: v
    real(8), intent (in) :: t1
    code = ((t1 / (u - t1)) * v) / (-u + t1)
end function
public static double code(double u, double v, double t1) {
	return ((t1 / (u - t1)) * v) / (-u + t1);
}
def code(u, v, t1):
	return ((t1 / (u - t1)) * v) / (-u + t1)
function code(u, v, t1)
	return Float64(Float64(Float64(t1 / Float64(u - t1)) * v) / Float64(Float64(-u) + t1))
end
function tmp = code(u, v, t1)
	tmp = ((t1 / (u - t1)) * v) / (-u + t1);
end
code[u_, v_, t1_] := N[(N[(N[(t1 / N[(u - t1), $MachinePrecision]), $MachinePrecision] * v), $MachinePrecision] / N[((-u) + t1), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{\frac{t1}{u - t1} \cdot v}{\left(-u\right) + t1}
\end{array}
Derivation
  1. Initial program 73.9%

    \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
  2. Add Preprocessing
  3. Applied rewrites97.2%

    \[\leadsto \color{blue}{\frac{\frac{t1}{u - t1} \cdot \left(-v\right)}{u - t1}} \]
  4. Final simplification97.2%

    \[\leadsto \frac{\frac{t1}{u - t1} \cdot v}{\left(-u\right) + t1} \]
  5. Add Preprocessing

Alternative 2: 86.7% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{if}\;t1 \leq -1.2 \cdot 10^{+154}:\\ \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\ \mathbf{elif}\;t1 \leq -3 \cdot 10^{-102}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t1 \leq 2.7 \cdot 10^{-138}:\\ \;\;\;\;\frac{\frac{-v}{u} \cdot t1}{u}\\ \mathbf{elif}\;t1 \leq 1.3 \cdot 10^{+110}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\frac{-v}{t1}\\ \end{array} \end{array} \]
(FPCore (u v t1)
 :precision binary64
 (let* ((t_1 (/ (* (- t1) v) (* (+ t1 u) (+ t1 u)))))
   (if (<= t1 -1.2e+154)
     (/ (* -1.0 v) (- t1 u))
     (if (<= t1 -3e-102)
       t_1
       (if (<= t1 2.7e-138)
         (/ (* (/ (- v) u) t1) u)
         (if (<= t1 1.3e+110) t_1 (/ (- v) t1)))))))
double code(double u, double v, double t1) {
	double t_1 = (-t1 * v) / ((t1 + u) * (t1 + u));
	double tmp;
	if (t1 <= -1.2e+154) {
		tmp = (-1.0 * v) / (t1 - u);
	} else if (t1 <= -3e-102) {
		tmp = t_1;
	} else if (t1 <= 2.7e-138) {
		tmp = ((-v / u) * t1) / u;
	} else if (t1 <= 1.3e+110) {
		tmp = t_1;
	} else {
		tmp = -v / t1;
	}
	return tmp;
}
real(8) function code(u, v, t1)
    real(8), intent (in) :: u
    real(8), intent (in) :: v
    real(8), intent (in) :: t1
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (-t1 * v) / ((t1 + u) * (t1 + u))
    if (t1 <= (-1.2d+154)) then
        tmp = ((-1.0d0) * v) / (t1 - u)
    else if (t1 <= (-3d-102)) then
        tmp = t_1
    else if (t1 <= 2.7d-138) then
        tmp = ((-v / u) * t1) / u
    else if (t1 <= 1.3d+110) then
        tmp = t_1
    else
        tmp = -v / t1
    end if
    code = tmp
end function
public static double code(double u, double v, double t1) {
	double t_1 = (-t1 * v) / ((t1 + u) * (t1 + u));
	double tmp;
	if (t1 <= -1.2e+154) {
		tmp = (-1.0 * v) / (t1 - u);
	} else if (t1 <= -3e-102) {
		tmp = t_1;
	} else if (t1 <= 2.7e-138) {
		tmp = ((-v / u) * t1) / u;
	} else if (t1 <= 1.3e+110) {
		tmp = t_1;
	} else {
		tmp = -v / t1;
	}
	return tmp;
}
def code(u, v, t1):
	t_1 = (-t1 * v) / ((t1 + u) * (t1 + u))
	tmp = 0
	if t1 <= -1.2e+154:
		tmp = (-1.0 * v) / (t1 - u)
	elif t1 <= -3e-102:
		tmp = t_1
	elif t1 <= 2.7e-138:
		tmp = ((-v / u) * t1) / u
	elif t1 <= 1.3e+110:
		tmp = t_1
	else:
		tmp = -v / t1
	return tmp
function code(u, v, t1)
	t_1 = Float64(Float64(Float64(-t1) * v) / Float64(Float64(t1 + u) * Float64(t1 + u)))
	tmp = 0.0
	if (t1 <= -1.2e+154)
		tmp = Float64(Float64(-1.0 * v) / Float64(t1 - u));
	elseif (t1 <= -3e-102)
		tmp = t_1;
	elseif (t1 <= 2.7e-138)
		tmp = Float64(Float64(Float64(Float64(-v) / u) * t1) / u);
	elseif (t1 <= 1.3e+110)
		tmp = t_1;
	else
		tmp = Float64(Float64(-v) / t1);
	end
	return tmp
end
function tmp_2 = code(u, v, t1)
	t_1 = (-t1 * v) / ((t1 + u) * (t1 + u));
	tmp = 0.0;
	if (t1 <= -1.2e+154)
		tmp = (-1.0 * v) / (t1 - u);
	elseif (t1 <= -3e-102)
		tmp = t_1;
	elseif (t1 <= 2.7e-138)
		tmp = ((-v / u) * t1) / u;
	elseif (t1 <= 1.3e+110)
		tmp = t_1;
	else
		tmp = -v / t1;
	end
	tmp_2 = tmp;
end
code[u_, v_, t1_] := Block[{t$95$1 = N[(N[((-t1) * v), $MachinePrecision] / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -1.2e+154], N[(N[(-1.0 * v), $MachinePrecision] / N[(t1 - u), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, -3e-102], t$95$1, If[LessEqual[t1, 2.7e-138], N[(N[(N[((-v) / u), $MachinePrecision] * t1), $MachinePrecision] / u), $MachinePrecision], If[LessEqual[t1, 1.3e+110], t$95$1, N[((-v) / t1), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\
\mathbf{if}\;t1 \leq -1.2 \cdot 10^{+154}:\\
\;\;\;\;\frac{-1 \cdot v}{t1 - u}\\

\mathbf{elif}\;t1 \leq -3 \cdot 10^{-102}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t1 \leq 2.7 \cdot 10^{-138}:\\
\;\;\;\;\frac{\frac{-v}{u} \cdot t1}{u}\\

\mathbf{elif}\;t1 \leq 1.3 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t1 < -1.20000000000000007e154

    1. Initial program 36.5%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Add Preprocessing
    3. Applied rewrites100.0%

      \[\leadsto \color{blue}{\frac{\frac{t1}{u - t1} \cdot \left(-v\right)}{u - t1}} \]
    4. Taylor expanded in u around 0

      \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
    5. Step-by-step derivation
      1. Applied rewrites96.8%

        \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
      2. Step-by-step derivation
        1. lift--.f64N/A

          \[\leadsto \frac{-1 \cdot \left(-v\right)}{\color{blue}{u - t1}} \]
        2. lift-/.f64N/A

          \[\leadsto \color{blue}{\frac{-1 \cdot \left(-v\right)}{u - t1}} \]
        3. lift-*.f64N/A

          \[\leadsto \frac{\color{blue}{-1 \cdot \left(-v\right)}}{u - t1} \]
        4. *-commutativeN/A

          \[\leadsto \frac{\color{blue}{\left(-v\right) \cdot -1}}{u - t1} \]
        5. associate-/l*N/A

          \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
        6. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
        7. lower-/.f64N/A

          \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
        8. lift--.f6496.6

          \[\leadsto \left(-v\right) \cdot \frac{-1}{\color{blue}{u - t1}} \]
      3. Applied rewrites96.6%

        \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
      4. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
        2. lift-/.f64N/A

          \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
        3. associate-*r/N/A

          \[\leadsto \color{blue}{\frac{\left(-v\right) \cdot -1}{u - t1}} \]
        4. frac-2negN/A

          \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\left(u - t1\right)\right)}} \]
        5. lift--.f64N/A

          \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\left(u - t1\right)}\right)} \]
        6. flip--N/A

          \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\frac{u \cdot u - t1 \cdot t1}{u + t1}}\right)} \]
        7. +-commutativeN/A

          \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\frac{u \cdot u - t1 \cdot t1}{\color{blue}{t1 + u}}\right)} \]
        8. distribute-neg-fracN/A

          \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\color{blue}{\frac{\mathsf{neg}\left(\left(u \cdot u - t1 \cdot t1\right)\right)}{t1 + u}}} \]
      5. Applied rewrites96.8%

        \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1 - u}} \]

      if -1.20000000000000007e154 < t1 < -3e-102 or 2.70000000000000029e-138 < t1 < 1.3e110

      1. Initial program 88.5%

        \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
      2. Add Preprocessing

      if -3e-102 < t1 < 2.70000000000000029e-138

      1. Initial program 77.7%

        \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
      2. Add Preprocessing
      3. Taylor expanded in u around inf

        \[\leadsto \color{blue}{-1 \cdot \frac{t1 \cdot v}{{u}^{2}}} \]
      4. Step-by-step derivation
        1. mul-1-negN/A

          \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{t1 \cdot v}{{u}^{2}}\right)} \]
        2. *-commutativeN/A

          \[\leadsto \mathsf{neg}\left(\frac{\color{blue}{v \cdot t1}}{{u}^{2}}\right) \]
        3. unpow2N/A

          \[\leadsto \mathsf{neg}\left(\frac{v \cdot t1}{\color{blue}{u \cdot u}}\right) \]
        4. times-fracN/A

          \[\leadsto \mathsf{neg}\left(\color{blue}{\frac{v}{u} \cdot \frac{t1}{u}}\right) \]
        5. distribute-lft-neg-inN/A

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{v}{u}\right)\right) \cdot \frac{t1}{u}} \]
        6. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{v}{u}\right)\right) \cdot \frac{t1}{u}} \]
        7. distribute-frac-negN/A

          \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(v\right)}{u}} \cdot \frac{t1}{u} \]
        8. mul-1-negN/A

          \[\leadsto \frac{\color{blue}{-1 \cdot v}}{u} \cdot \frac{t1}{u} \]
        9. lower-/.f64N/A

          \[\leadsto \color{blue}{\frac{-1 \cdot v}{u}} \cdot \frac{t1}{u} \]
        10. mul-1-negN/A

          \[\leadsto \frac{\color{blue}{\mathsf{neg}\left(v\right)}}{u} \cdot \frac{t1}{u} \]
        11. lower-neg.f64N/A

          \[\leadsto \frac{\color{blue}{-v}}{u} \cdot \frac{t1}{u} \]
        12. lower-/.f6487.8

          \[\leadsto \frac{-v}{u} \cdot \color{blue}{\frac{t1}{u}} \]
      5. Applied rewrites87.8%

        \[\leadsto \color{blue}{\frac{-v}{u} \cdot \frac{t1}{u}} \]
      6. Step-by-step derivation
        1. Applied rewrites89.3%

          \[\leadsto \frac{\frac{-v}{u} \cdot t1}{\color{blue}{u}} \]

        if 1.3e110 < t1

        1. Initial program 55.8%

          \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
        2. Add Preprocessing
        3. Taylor expanded in u around 0

          \[\leadsto \color{blue}{-1 \cdot \frac{v}{t1}} \]
        4. Step-by-step derivation
          1. associate-*r/N/A

            \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1}} \]
          2. lower-/.f64N/A

            \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1}} \]
          3. mul-1-negN/A

            \[\leadsto \frac{\color{blue}{\mathsf{neg}\left(v\right)}}{t1} \]
          4. lower-neg.f6491.8

            \[\leadsto \frac{\color{blue}{-v}}{t1} \]
        5. Applied rewrites91.8%

          \[\leadsto \color{blue}{\frac{-v}{t1}} \]
      7. Recombined 4 regimes into one program.
      8. Add Preprocessing

      Alternative 3: 79.1% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 8 \cdot 10^{-19}\right):\\ \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{-v}{u} \cdot t1}{u}\\ \end{array} \end{array} \]
      (FPCore (u v t1)
       :precision binary64
       (if (or (<= t1 -1.25e-70) (not (<= t1 8e-19)))
         (/ (* -1.0 v) (- t1 u))
         (/ (* (/ (- v) u) t1) u)))
      double code(double u, double v, double t1) {
      	double tmp;
      	if ((t1 <= -1.25e-70) || !(t1 <= 8e-19)) {
      		tmp = (-1.0 * v) / (t1 - u);
      	} else {
      		tmp = ((-v / u) * t1) / u;
      	}
      	return tmp;
      }
      
      real(8) function code(u, v, t1)
          real(8), intent (in) :: u
          real(8), intent (in) :: v
          real(8), intent (in) :: t1
          real(8) :: tmp
          if ((t1 <= (-1.25d-70)) .or. (.not. (t1 <= 8d-19))) then
              tmp = ((-1.0d0) * v) / (t1 - u)
          else
              tmp = ((-v / u) * t1) / u
          end if
          code = tmp
      end function
      
      public static double code(double u, double v, double t1) {
      	double tmp;
      	if ((t1 <= -1.25e-70) || !(t1 <= 8e-19)) {
      		tmp = (-1.0 * v) / (t1 - u);
      	} else {
      		tmp = ((-v / u) * t1) / u;
      	}
      	return tmp;
      }
      
      def code(u, v, t1):
      	tmp = 0
      	if (t1 <= -1.25e-70) or not (t1 <= 8e-19):
      		tmp = (-1.0 * v) / (t1 - u)
      	else:
      		tmp = ((-v / u) * t1) / u
      	return tmp
      
      function code(u, v, t1)
      	tmp = 0.0
      	if ((t1 <= -1.25e-70) || !(t1 <= 8e-19))
      		tmp = Float64(Float64(-1.0 * v) / Float64(t1 - u));
      	else
      		tmp = Float64(Float64(Float64(Float64(-v) / u) * t1) / u);
      	end
      	return tmp
      end
      
      function tmp_2 = code(u, v, t1)
      	tmp = 0.0;
      	if ((t1 <= -1.25e-70) || ~((t1 <= 8e-19)))
      		tmp = (-1.0 * v) / (t1 - u);
      	else
      		tmp = ((-v / u) * t1) / u;
      	end
      	tmp_2 = tmp;
      end
      
      code[u_, v_, t1_] := If[Or[LessEqual[t1, -1.25e-70], N[Not[LessEqual[t1, 8e-19]], $MachinePrecision]], N[(N[(-1.0 * v), $MachinePrecision] / N[(t1 - u), $MachinePrecision]), $MachinePrecision], N[(N[(N[((-v) / u), $MachinePrecision] * t1), $MachinePrecision] / u), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 8 \cdot 10^{-19}\right):\\
      \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{\frac{-v}{u} \cdot t1}{u}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t1 < -1.25e-70 or 7.9999999999999998e-19 < t1

        1. Initial program 69.9%

          \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
        2. Add Preprocessing
        3. Applied rewrites99.6%

          \[\leadsto \color{blue}{\frac{\frac{t1}{u - t1} \cdot \left(-v\right)}{u - t1}} \]
        4. Taylor expanded in u around 0

          \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
        5. Step-by-step derivation
          1. Applied rewrites82.6%

            \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
          2. Step-by-step derivation
            1. lift--.f64N/A

              \[\leadsto \frac{-1 \cdot \left(-v\right)}{\color{blue}{u - t1}} \]
            2. lift-/.f64N/A

              \[\leadsto \color{blue}{\frac{-1 \cdot \left(-v\right)}{u - t1}} \]
            3. lift-*.f64N/A

              \[\leadsto \frac{\color{blue}{-1 \cdot \left(-v\right)}}{u - t1} \]
            4. *-commutativeN/A

              \[\leadsto \frac{\color{blue}{\left(-v\right) \cdot -1}}{u - t1} \]
            5. associate-/l*N/A

              \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
            6. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
            7. lower-/.f64N/A

              \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
            8. lift--.f6482.4

              \[\leadsto \left(-v\right) \cdot \frac{-1}{\color{blue}{u - t1}} \]
          3. Applied rewrites82.4%

            \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
          4. Step-by-step derivation
            1. lift-*.f64N/A

              \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
            2. lift-/.f64N/A

              \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
            3. associate-*r/N/A

              \[\leadsto \color{blue}{\frac{\left(-v\right) \cdot -1}{u - t1}} \]
            4. frac-2negN/A

              \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\left(u - t1\right)\right)}} \]
            5. lift--.f64N/A

              \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\left(u - t1\right)}\right)} \]
            6. flip--N/A

              \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\frac{u \cdot u - t1 \cdot t1}{u + t1}}\right)} \]
            7. +-commutativeN/A

              \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\frac{u \cdot u - t1 \cdot t1}{\color{blue}{t1 + u}}\right)} \]
            8. distribute-neg-fracN/A

              \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\color{blue}{\frac{\mathsf{neg}\left(\left(u \cdot u - t1 \cdot t1\right)\right)}{t1 + u}}} \]
          5. Applied rewrites82.6%

            \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1 - u}} \]

          if -1.25e-70 < t1 < 7.9999999999999998e-19

          1. Initial program 79.1%

            \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
          2. Add Preprocessing
          3. Taylor expanded in u around inf

            \[\leadsto \color{blue}{-1 \cdot \frac{t1 \cdot v}{{u}^{2}}} \]
          4. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{t1 \cdot v}{{u}^{2}}\right)} \]
            2. *-commutativeN/A

              \[\leadsto \mathsf{neg}\left(\frac{\color{blue}{v \cdot t1}}{{u}^{2}}\right) \]
            3. unpow2N/A

              \[\leadsto \mathsf{neg}\left(\frac{v \cdot t1}{\color{blue}{u \cdot u}}\right) \]
            4. times-fracN/A

              \[\leadsto \mathsf{neg}\left(\color{blue}{\frac{v}{u} \cdot \frac{t1}{u}}\right) \]
            5. distribute-lft-neg-inN/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{v}{u}\right)\right) \cdot \frac{t1}{u}} \]
            6. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{v}{u}\right)\right) \cdot \frac{t1}{u}} \]
            7. distribute-frac-negN/A

              \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(v\right)}{u}} \cdot \frac{t1}{u} \]
            8. mul-1-negN/A

              \[\leadsto \frac{\color{blue}{-1 \cdot v}}{u} \cdot \frac{t1}{u} \]
            9. lower-/.f64N/A

              \[\leadsto \color{blue}{\frac{-1 \cdot v}{u}} \cdot \frac{t1}{u} \]
            10. mul-1-negN/A

              \[\leadsto \frac{\color{blue}{\mathsf{neg}\left(v\right)}}{u} \cdot \frac{t1}{u} \]
            11. lower-neg.f64N/A

              \[\leadsto \frac{\color{blue}{-v}}{u} \cdot \frac{t1}{u} \]
            12. lower-/.f6484.5

              \[\leadsto \frac{-v}{u} \cdot \color{blue}{\frac{t1}{u}} \]
          5. Applied rewrites84.5%

            \[\leadsto \color{blue}{\frac{-v}{u} \cdot \frac{t1}{u}} \]
          6. Step-by-step derivation
            1. Applied rewrites85.6%

              \[\leadsto \frac{\frac{-v}{u} \cdot t1}{\color{blue}{u}} \]
          7. Recombined 2 regimes into one program.
          8. Final simplification83.9%

            \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 8 \cdot 10^{-19}\right):\\ \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{-v}{u} \cdot t1}{u}\\ \end{array} \]
          9. Add Preprocessing

          Alternative 4: 79.1% accurate, 0.7× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 8 \cdot 10^{-19}\right):\\ \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{u} \cdot \frac{-t1}{u}\\ \end{array} \end{array} \]
          (FPCore (u v t1)
           :precision binary64
           (if (or (<= t1 -1.25e-70) (not (<= t1 8e-19)))
             (/ (* -1.0 v) (- t1 u))
             (* (/ v u) (/ (- t1) u))))
          double code(double u, double v, double t1) {
          	double tmp;
          	if ((t1 <= -1.25e-70) || !(t1 <= 8e-19)) {
          		tmp = (-1.0 * v) / (t1 - u);
          	} else {
          		tmp = (v / u) * (-t1 / u);
          	}
          	return tmp;
          }
          
          real(8) function code(u, v, t1)
              real(8), intent (in) :: u
              real(8), intent (in) :: v
              real(8), intent (in) :: t1
              real(8) :: tmp
              if ((t1 <= (-1.25d-70)) .or. (.not. (t1 <= 8d-19))) then
                  tmp = ((-1.0d0) * v) / (t1 - u)
              else
                  tmp = (v / u) * (-t1 / u)
              end if
              code = tmp
          end function
          
          public static double code(double u, double v, double t1) {
          	double tmp;
          	if ((t1 <= -1.25e-70) || !(t1 <= 8e-19)) {
          		tmp = (-1.0 * v) / (t1 - u);
          	} else {
          		tmp = (v / u) * (-t1 / u);
          	}
          	return tmp;
          }
          
          def code(u, v, t1):
          	tmp = 0
          	if (t1 <= -1.25e-70) or not (t1 <= 8e-19):
          		tmp = (-1.0 * v) / (t1 - u)
          	else:
          		tmp = (v / u) * (-t1 / u)
          	return tmp
          
          function code(u, v, t1)
          	tmp = 0.0
          	if ((t1 <= -1.25e-70) || !(t1 <= 8e-19))
          		tmp = Float64(Float64(-1.0 * v) / Float64(t1 - u));
          	else
          		tmp = Float64(Float64(v / u) * Float64(Float64(-t1) / u));
          	end
          	return tmp
          end
          
          function tmp_2 = code(u, v, t1)
          	tmp = 0.0;
          	if ((t1 <= -1.25e-70) || ~((t1 <= 8e-19)))
          		tmp = (-1.0 * v) / (t1 - u);
          	else
          		tmp = (v / u) * (-t1 / u);
          	end
          	tmp_2 = tmp;
          end
          
          code[u_, v_, t1_] := If[Or[LessEqual[t1, -1.25e-70], N[Not[LessEqual[t1, 8e-19]], $MachinePrecision]], N[(N[(-1.0 * v), $MachinePrecision] / N[(t1 - u), $MachinePrecision]), $MachinePrecision], N[(N[(v / u), $MachinePrecision] * N[((-t1) / u), $MachinePrecision]), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 8 \cdot 10^{-19}\right):\\
          \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\
          
          \mathbf{else}:\\
          \;\;\;\;\frac{v}{u} \cdot \frac{-t1}{u}\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if t1 < -1.25e-70 or 7.9999999999999998e-19 < t1

            1. Initial program 69.9%

              \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
            2. Add Preprocessing
            3. Applied rewrites99.6%

              \[\leadsto \color{blue}{\frac{\frac{t1}{u - t1} \cdot \left(-v\right)}{u - t1}} \]
            4. Taylor expanded in u around 0

              \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
            5. Step-by-step derivation
              1. Applied rewrites82.6%

                \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
              2. Step-by-step derivation
                1. lift--.f64N/A

                  \[\leadsto \frac{-1 \cdot \left(-v\right)}{\color{blue}{u - t1}} \]
                2. lift-/.f64N/A

                  \[\leadsto \color{blue}{\frac{-1 \cdot \left(-v\right)}{u - t1}} \]
                3. lift-*.f64N/A

                  \[\leadsto \frac{\color{blue}{-1 \cdot \left(-v\right)}}{u - t1} \]
                4. *-commutativeN/A

                  \[\leadsto \frac{\color{blue}{\left(-v\right) \cdot -1}}{u - t1} \]
                5. associate-/l*N/A

                  \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                6. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                7. lower-/.f64N/A

                  \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
                8. lift--.f6482.4

                  \[\leadsto \left(-v\right) \cdot \frac{-1}{\color{blue}{u - t1}} \]
              3. Applied rewrites82.4%

                \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
              4. Step-by-step derivation
                1. lift-*.f64N/A

                  \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                2. lift-/.f64N/A

                  \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
                3. associate-*r/N/A

                  \[\leadsto \color{blue}{\frac{\left(-v\right) \cdot -1}{u - t1}} \]
                4. frac-2negN/A

                  \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\left(u - t1\right)\right)}} \]
                5. lift--.f64N/A

                  \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\left(u - t1\right)}\right)} \]
                6. flip--N/A

                  \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\frac{u \cdot u - t1 \cdot t1}{u + t1}}\right)} \]
                7. +-commutativeN/A

                  \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\frac{u \cdot u - t1 \cdot t1}{\color{blue}{t1 + u}}\right)} \]
                8. distribute-neg-fracN/A

                  \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\color{blue}{\frac{\mathsf{neg}\left(\left(u \cdot u - t1 \cdot t1\right)\right)}{t1 + u}}} \]
              5. Applied rewrites82.6%

                \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1 - u}} \]

              if -1.25e-70 < t1 < 7.9999999999999998e-19

              1. Initial program 79.1%

                \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
              2. Add Preprocessing
              3. Taylor expanded in u around inf

                \[\leadsto \color{blue}{-1 \cdot \frac{t1 \cdot v}{{u}^{2}}} \]
              4. Step-by-step derivation
                1. mul-1-negN/A

                  \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{t1 \cdot v}{{u}^{2}}\right)} \]
                2. *-commutativeN/A

                  \[\leadsto \mathsf{neg}\left(\frac{\color{blue}{v \cdot t1}}{{u}^{2}}\right) \]
                3. unpow2N/A

                  \[\leadsto \mathsf{neg}\left(\frac{v \cdot t1}{\color{blue}{u \cdot u}}\right) \]
                4. times-fracN/A

                  \[\leadsto \mathsf{neg}\left(\color{blue}{\frac{v}{u} \cdot \frac{t1}{u}}\right) \]
                5. distribute-lft-neg-inN/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{v}{u}\right)\right) \cdot \frac{t1}{u}} \]
                6. lower-*.f64N/A

                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{v}{u}\right)\right) \cdot \frac{t1}{u}} \]
                7. distribute-frac-negN/A

                  \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(v\right)}{u}} \cdot \frac{t1}{u} \]
                8. mul-1-negN/A

                  \[\leadsto \frac{\color{blue}{-1 \cdot v}}{u} \cdot \frac{t1}{u} \]
                9. lower-/.f64N/A

                  \[\leadsto \color{blue}{\frac{-1 \cdot v}{u}} \cdot \frac{t1}{u} \]
                10. mul-1-negN/A

                  \[\leadsto \frac{\color{blue}{\mathsf{neg}\left(v\right)}}{u} \cdot \frac{t1}{u} \]
                11. lower-neg.f64N/A

                  \[\leadsto \frac{\color{blue}{-v}}{u} \cdot \frac{t1}{u} \]
                12. lower-/.f6484.5

                  \[\leadsto \frac{-v}{u} \cdot \color{blue}{\frac{t1}{u}} \]
              5. Applied rewrites84.5%

                \[\leadsto \color{blue}{\frac{-v}{u} \cdot \frac{t1}{u}} \]
            6. Recombined 2 regimes into one program.
            7. Final simplification83.4%

              \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 8 \cdot 10^{-19}\right):\\ \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{u} \cdot \frac{-t1}{u}\\ \end{array} \]
            8. Add Preprocessing

            Alternative 5: 78.7% accurate, 0.7× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 1.05 \cdot 10^{-19}\right):\\ \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\ \mathbf{else}:\\ \;\;\;\;\left(-v\right) \cdot \frac{\frac{t1}{u}}{u}\\ \end{array} \end{array} \]
            (FPCore (u v t1)
             :precision binary64
             (if (or (<= t1 -1.25e-70) (not (<= t1 1.05e-19)))
               (/ (* -1.0 v) (- t1 u))
               (* (- v) (/ (/ t1 u) u))))
            double code(double u, double v, double t1) {
            	double tmp;
            	if ((t1 <= -1.25e-70) || !(t1 <= 1.05e-19)) {
            		tmp = (-1.0 * v) / (t1 - u);
            	} else {
            		tmp = -v * ((t1 / u) / u);
            	}
            	return tmp;
            }
            
            real(8) function code(u, v, t1)
                real(8), intent (in) :: u
                real(8), intent (in) :: v
                real(8), intent (in) :: t1
                real(8) :: tmp
                if ((t1 <= (-1.25d-70)) .or. (.not. (t1 <= 1.05d-19))) then
                    tmp = ((-1.0d0) * v) / (t1 - u)
                else
                    tmp = -v * ((t1 / u) / u)
                end if
                code = tmp
            end function
            
            public static double code(double u, double v, double t1) {
            	double tmp;
            	if ((t1 <= -1.25e-70) || !(t1 <= 1.05e-19)) {
            		tmp = (-1.0 * v) / (t1 - u);
            	} else {
            		tmp = -v * ((t1 / u) / u);
            	}
            	return tmp;
            }
            
            def code(u, v, t1):
            	tmp = 0
            	if (t1 <= -1.25e-70) or not (t1 <= 1.05e-19):
            		tmp = (-1.0 * v) / (t1 - u)
            	else:
            		tmp = -v * ((t1 / u) / u)
            	return tmp
            
            function code(u, v, t1)
            	tmp = 0.0
            	if ((t1 <= -1.25e-70) || !(t1 <= 1.05e-19))
            		tmp = Float64(Float64(-1.0 * v) / Float64(t1 - u));
            	else
            		tmp = Float64(Float64(-v) * Float64(Float64(t1 / u) / u));
            	end
            	return tmp
            end
            
            function tmp_2 = code(u, v, t1)
            	tmp = 0.0;
            	if ((t1 <= -1.25e-70) || ~((t1 <= 1.05e-19)))
            		tmp = (-1.0 * v) / (t1 - u);
            	else
            		tmp = -v * ((t1 / u) / u);
            	end
            	tmp_2 = tmp;
            end
            
            code[u_, v_, t1_] := If[Or[LessEqual[t1, -1.25e-70], N[Not[LessEqual[t1, 1.05e-19]], $MachinePrecision]], N[(N[(-1.0 * v), $MachinePrecision] / N[(t1 - u), $MachinePrecision]), $MachinePrecision], N[((-v) * N[(N[(t1 / u), $MachinePrecision] / u), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 1.05 \cdot 10^{-19}\right):\\
            \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\
            
            \mathbf{else}:\\
            \;\;\;\;\left(-v\right) \cdot \frac{\frac{t1}{u}}{u}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if t1 < -1.25e-70 or 1.0499999999999999e-19 < t1

              1. Initial program 69.9%

                \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
              2. Add Preprocessing
              3. Applied rewrites99.6%

                \[\leadsto \color{blue}{\frac{\frac{t1}{u - t1} \cdot \left(-v\right)}{u - t1}} \]
              4. Taylor expanded in u around 0

                \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
              5. Step-by-step derivation
                1. Applied rewrites82.6%

                  \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
                2. Step-by-step derivation
                  1. lift--.f64N/A

                    \[\leadsto \frac{-1 \cdot \left(-v\right)}{\color{blue}{u - t1}} \]
                  2. lift-/.f64N/A

                    \[\leadsto \color{blue}{\frac{-1 \cdot \left(-v\right)}{u - t1}} \]
                  3. lift-*.f64N/A

                    \[\leadsto \frac{\color{blue}{-1 \cdot \left(-v\right)}}{u - t1} \]
                  4. *-commutativeN/A

                    \[\leadsto \frac{\color{blue}{\left(-v\right) \cdot -1}}{u - t1} \]
                  5. associate-/l*N/A

                    \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                  6. lower-*.f64N/A

                    \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                  7. lower-/.f64N/A

                    \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
                  8. lift--.f6482.4

                    \[\leadsto \left(-v\right) \cdot \frac{-1}{\color{blue}{u - t1}} \]
                3. Applied rewrites82.4%

                  \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                4. Step-by-step derivation
                  1. lift-*.f64N/A

                    \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                  2. lift-/.f64N/A

                    \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
                  3. associate-*r/N/A

                    \[\leadsto \color{blue}{\frac{\left(-v\right) \cdot -1}{u - t1}} \]
                  4. frac-2negN/A

                    \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\left(u - t1\right)\right)}} \]
                  5. lift--.f64N/A

                    \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\left(u - t1\right)}\right)} \]
                  6. flip--N/A

                    \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\frac{u \cdot u - t1 \cdot t1}{u + t1}}\right)} \]
                  7. +-commutativeN/A

                    \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\frac{u \cdot u - t1 \cdot t1}{\color{blue}{t1 + u}}\right)} \]
                  8. distribute-neg-fracN/A

                    \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\color{blue}{\frac{\mathsf{neg}\left(\left(u \cdot u - t1 \cdot t1\right)\right)}{t1 + u}}} \]
                5. Applied rewrites82.6%

                  \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1 - u}} \]

                if -1.25e-70 < t1 < 1.0499999999999999e-19

                1. Initial program 79.1%

                  \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                2. Add Preprocessing
                3. Taylor expanded in u around inf

                  \[\leadsto \color{blue}{-1 \cdot \frac{t1 \cdot v}{{u}^{2}}} \]
                4. Step-by-step derivation
                  1. mul-1-negN/A

                    \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{t1 \cdot v}{{u}^{2}}\right)} \]
                  2. *-commutativeN/A

                    \[\leadsto \mathsf{neg}\left(\frac{\color{blue}{v \cdot t1}}{{u}^{2}}\right) \]
                  3. unpow2N/A

                    \[\leadsto \mathsf{neg}\left(\frac{v \cdot t1}{\color{blue}{u \cdot u}}\right) \]
                  4. times-fracN/A

                    \[\leadsto \mathsf{neg}\left(\color{blue}{\frac{v}{u} \cdot \frac{t1}{u}}\right) \]
                  5. distribute-lft-neg-inN/A

                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{v}{u}\right)\right) \cdot \frac{t1}{u}} \]
                  6. lower-*.f64N/A

                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{v}{u}\right)\right) \cdot \frac{t1}{u}} \]
                  7. distribute-frac-negN/A

                    \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(v\right)}{u}} \cdot \frac{t1}{u} \]
                  8. mul-1-negN/A

                    \[\leadsto \frac{\color{blue}{-1 \cdot v}}{u} \cdot \frac{t1}{u} \]
                  9. lower-/.f64N/A

                    \[\leadsto \color{blue}{\frac{-1 \cdot v}{u}} \cdot \frac{t1}{u} \]
                  10. mul-1-negN/A

                    \[\leadsto \frac{\color{blue}{\mathsf{neg}\left(v\right)}}{u} \cdot \frac{t1}{u} \]
                  11. lower-neg.f64N/A

                    \[\leadsto \frac{\color{blue}{-v}}{u} \cdot \frac{t1}{u} \]
                  12. lower-/.f6484.5

                    \[\leadsto \frac{-v}{u} \cdot \color{blue}{\frac{t1}{u}} \]
                5. Applied rewrites84.5%

                  \[\leadsto \color{blue}{\frac{-v}{u} \cdot \frac{t1}{u}} \]
                6. Step-by-step derivation
                  1. Applied rewrites81.1%

                    \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{\frac{t1}{u}}{u}} \]
                7. Recombined 2 regimes into one program.
                8. Final simplification81.9%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 1.05 \cdot 10^{-19}\right):\\ \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\ \mathbf{else}:\\ \;\;\;\;\left(-v\right) \cdot \frac{\frac{t1}{u}}{u}\\ \end{array} \]
                9. Add Preprocessing

                Alternative 6: 76.7% accurate, 0.8× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 1.05 \cdot 10^{-19}\right):\\ \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\ \mathbf{else}:\\ \;\;\;\;\left(-t1\right) \cdot \frac{v}{u \cdot u}\\ \end{array} \end{array} \]
                (FPCore (u v t1)
                 :precision binary64
                 (if (or (<= t1 -1.25e-70) (not (<= t1 1.05e-19)))
                   (/ (* -1.0 v) (- t1 u))
                   (* (- t1) (/ v (* u u)))))
                double code(double u, double v, double t1) {
                	double tmp;
                	if ((t1 <= -1.25e-70) || !(t1 <= 1.05e-19)) {
                		tmp = (-1.0 * v) / (t1 - u);
                	} else {
                		tmp = -t1 * (v / (u * u));
                	}
                	return tmp;
                }
                
                real(8) function code(u, v, t1)
                    real(8), intent (in) :: u
                    real(8), intent (in) :: v
                    real(8), intent (in) :: t1
                    real(8) :: tmp
                    if ((t1 <= (-1.25d-70)) .or. (.not. (t1 <= 1.05d-19))) then
                        tmp = ((-1.0d0) * v) / (t1 - u)
                    else
                        tmp = -t1 * (v / (u * u))
                    end if
                    code = tmp
                end function
                
                public static double code(double u, double v, double t1) {
                	double tmp;
                	if ((t1 <= -1.25e-70) || !(t1 <= 1.05e-19)) {
                		tmp = (-1.0 * v) / (t1 - u);
                	} else {
                		tmp = -t1 * (v / (u * u));
                	}
                	return tmp;
                }
                
                def code(u, v, t1):
                	tmp = 0
                	if (t1 <= -1.25e-70) or not (t1 <= 1.05e-19):
                		tmp = (-1.0 * v) / (t1 - u)
                	else:
                		tmp = -t1 * (v / (u * u))
                	return tmp
                
                function code(u, v, t1)
                	tmp = 0.0
                	if ((t1 <= -1.25e-70) || !(t1 <= 1.05e-19))
                		tmp = Float64(Float64(-1.0 * v) / Float64(t1 - u));
                	else
                		tmp = Float64(Float64(-t1) * Float64(v / Float64(u * u)));
                	end
                	return tmp
                end
                
                function tmp_2 = code(u, v, t1)
                	tmp = 0.0;
                	if ((t1 <= -1.25e-70) || ~((t1 <= 1.05e-19)))
                		tmp = (-1.0 * v) / (t1 - u);
                	else
                		tmp = -t1 * (v / (u * u));
                	end
                	tmp_2 = tmp;
                end
                
                code[u_, v_, t1_] := If[Or[LessEqual[t1, -1.25e-70], N[Not[LessEqual[t1, 1.05e-19]], $MachinePrecision]], N[(N[(-1.0 * v), $MachinePrecision] / N[(t1 - u), $MachinePrecision]), $MachinePrecision], N[((-t1) * N[(v / N[(u * u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 1.05 \cdot 10^{-19}\right):\\
                \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\
                
                \mathbf{else}:\\
                \;\;\;\;\left(-t1\right) \cdot \frac{v}{u \cdot u}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if t1 < -1.25e-70 or 1.0499999999999999e-19 < t1

                  1. Initial program 69.9%

                    \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                  2. Add Preprocessing
                  3. Applied rewrites99.6%

                    \[\leadsto \color{blue}{\frac{\frac{t1}{u - t1} \cdot \left(-v\right)}{u - t1}} \]
                  4. Taylor expanded in u around 0

                    \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
                  5. Step-by-step derivation
                    1. Applied rewrites82.6%

                      \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
                    2. Step-by-step derivation
                      1. lift--.f64N/A

                        \[\leadsto \frac{-1 \cdot \left(-v\right)}{\color{blue}{u - t1}} \]
                      2. lift-/.f64N/A

                        \[\leadsto \color{blue}{\frac{-1 \cdot \left(-v\right)}{u - t1}} \]
                      3. lift-*.f64N/A

                        \[\leadsto \frac{\color{blue}{-1 \cdot \left(-v\right)}}{u - t1} \]
                      4. *-commutativeN/A

                        \[\leadsto \frac{\color{blue}{\left(-v\right) \cdot -1}}{u - t1} \]
                      5. associate-/l*N/A

                        \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                      6. lower-*.f64N/A

                        \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                      7. lower-/.f64N/A

                        \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
                      8. lift--.f6482.4

                        \[\leadsto \left(-v\right) \cdot \frac{-1}{\color{blue}{u - t1}} \]
                    3. Applied rewrites82.4%

                      \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                    4. Step-by-step derivation
                      1. lift-*.f64N/A

                        \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                      2. lift-/.f64N/A

                        \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
                      3. associate-*r/N/A

                        \[\leadsto \color{blue}{\frac{\left(-v\right) \cdot -1}{u - t1}} \]
                      4. frac-2negN/A

                        \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\left(u - t1\right)\right)}} \]
                      5. lift--.f64N/A

                        \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\left(u - t1\right)}\right)} \]
                      6. flip--N/A

                        \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\frac{u \cdot u - t1 \cdot t1}{u + t1}}\right)} \]
                      7. +-commutativeN/A

                        \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\frac{u \cdot u - t1 \cdot t1}{\color{blue}{t1 + u}}\right)} \]
                      8. distribute-neg-fracN/A

                        \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\color{blue}{\frac{\mathsf{neg}\left(\left(u \cdot u - t1 \cdot t1\right)\right)}{t1 + u}}} \]
                    5. Applied rewrites82.6%

                      \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1 - u}} \]

                    if -1.25e-70 < t1 < 1.0499999999999999e-19

                    1. Initial program 79.1%

                      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                    2. Add Preprocessing
                    3. Taylor expanded in u around inf

                      \[\leadsto \color{blue}{-1 \cdot \frac{t1 \cdot v}{{u}^{2}}} \]
                    4. Step-by-step derivation
                      1. mul-1-negN/A

                        \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{t1 \cdot v}{{u}^{2}}\right)} \]
                      2. *-commutativeN/A

                        \[\leadsto \mathsf{neg}\left(\frac{\color{blue}{v \cdot t1}}{{u}^{2}}\right) \]
                      3. unpow2N/A

                        \[\leadsto \mathsf{neg}\left(\frac{v \cdot t1}{\color{blue}{u \cdot u}}\right) \]
                      4. times-fracN/A

                        \[\leadsto \mathsf{neg}\left(\color{blue}{\frac{v}{u} \cdot \frac{t1}{u}}\right) \]
                      5. distribute-lft-neg-inN/A

                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{v}{u}\right)\right) \cdot \frac{t1}{u}} \]
                      6. lower-*.f64N/A

                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{v}{u}\right)\right) \cdot \frac{t1}{u}} \]
                      7. distribute-frac-negN/A

                        \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(v\right)}{u}} \cdot \frac{t1}{u} \]
                      8. mul-1-negN/A

                        \[\leadsto \frac{\color{blue}{-1 \cdot v}}{u} \cdot \frac{t1}{u} \]
                      9. lower-/.f64N/A

                        \[\leadsto \color{blue}{\frac{-1 \cdot v}{u}} \cdot \frac{t1}{u} \]
                      10. mul-1-negN/A

                        \[\leadsto \frac{\color{blue}{\mathsf{neg}\left(v\right)}}{u} \cdot \frac{t1}{u} \]
                      11. lower-neg.f64N/A

                        \[\leadsto \frac{\color{blue}{-v}}{u} \cdot \frac{t1}{u} \]
                      12. lower-/.f6484.5

                        \[\leadsto \frac{-v}{u} \cdot \color{blue}{\frac{t1}{u}} \]
                    5. Applied rewrites84.5%

                      \[\leadsto \color{blue}{\frac{-v}{u} \cdot \frac{t1}{u}} \]
                    6. Taylor expanded in u around 0

                      \[\leadsto -1 \cdot \color{blue}{\frac{t1 \cdot v}{{u}^{2}}} \]
                    7. Step-by-step derivation
                      1. Applied rewrites79.2%

                        \[\leadsto \left(-t1\right) \cdot \color{blue}{\frac{v}{u \cdot u}} \]
                    8. Recombined 2 regimes into one program.
                    9. Final simplification81.1%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -1.25 \cdot 10^{-70} \lor \neg \left(t1 \leq 1.05 \cdot 10^{-19}\right):\\ \;\;\;\;\frac{-1 \cdot v}{t1 - u}\\ \mathbf{else}:\\ \;\;\;\;\left(-t1\right) \cdot \frac{v}{u \cdot u}\\ \end{array} \]
                    10. Add Preprocessing

                    Alternative 7: 60.9% accurate, 1.5× speedup?

                    \[\begin{array}{l} \\ \frac{-1 \cdot v}{t1 - u} \end{array} \]
                    (FPCore (u v t1) :precision binary64 (/ (* -1.0 v) (- t1 u)))
                    double code(double u, double v, double t1) {
                    	return (-1.0 * v) / (t1 - u);
                    }
                    
                    real(8) function code(u, v, t1)
                        real(8), intent (in) :: u
                        real(8), intent (in) :: v
                        real(8), intent (in) :: t1
                        code = ((-1.0d0) * v) / (t1 - u)
                    end function
                    
                    public static double code(double u, double v, double t1) {
                    	return (-1.0 * v) / (t1 - u);
                    }
                    
                    def code(u, v, t1):
                    	return (-1.0 * v) / (t1 - u)
                    
                    function code(u, v, t1)
                    	return Float64(Float64(-1.0 * v) / Float64(t1 - u))
                    end
                    
                    function tmp = code(u, v, t1)
                    	tmp = (-1.0 * v) / (t1 - u);
                    end
                    
                    code[u_, v_, t1_] := N[(N[(-1.0 * v), $MachinePrecision] / N[(t1 - u), $MachinePrecision]), $MachinePrecision]
                    
                    \begin{array}{l}
                    
                    \\
                    \frac{-1 \cdot v}{t1 - u}
                    \end{array}
                    
                    Derivation
                    1. Initial program 73.9%

                      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                    2. Add Preprocessing
                    3. Applied rewrites97.2%

                      \[\leadsto \color{blue}{\frac{\frac{t1}{u - t1} \cdot \left(-v\right)}{u - t1}} \]
                    4. Taylor expanded in u around 0

                      \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
                    5. Step-by-step derivation
                      1. Applied rewrites62.0%

                        \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
                      2. Step-by-step derivation
                        1. lift--.f64N/A

                          \[\leadsto \frac{-1 \cdot \left(-v\right)}{\color{blue}{u - t1}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \color{blue}{\frac{-1 \cdot \left(-v\right)}{u - t1}} \]
                        3. lift-*.f64N/A

                          \[\leadsto \frac{\color{blue}{-1 \cdot \left(-v\right)}}{u - t1} \]
                        4. *-commutativeN/A

                          \[\leadsto \frac{\color{blue}{\left(-v\right) \cdot -1}}{u - t1} \]
                        5. associate-/l*N/A

                          \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                        6. lower-*.f64N/A

                          \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                        7. lower-/.f64N/A

                          \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
                        8. lift--.f6461.8

                          \[\leadsto \left(-v\right) \cdot \frac{-1}{\color{blue}{u - t1}} \]
                      3. Applied rewrites61.8%

                        \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                      4. Step-by-step derivation
                        1. lift-*.f64N/A

                          \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                        2. lift-/.f64N/A

                          \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
                        3. associate-*r/N/A

                          \[\leadsto \color{blue}{\frac{\left(-v\right) \cdot -1}{u - t1}} \]
                        4. frac-2negN/A

                          \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\left(u - t1\right)\right)}} \]
                        5. lift--.f64N/A

                          \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\left(u - t1\right)}\right)} \]
                        6. flip--N/A

                          \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\color{blue}{\frac{u \cdot u - t1 \cdot t1}{u + t1}}\right)} \]
                        7. +-commutativeN/A

                          \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\mathsf{neg}\left(\frac{u \cdot u - t1 \cdot t1}{\color{blue}{t1 + u}}\right)} \]
                        8. distribute-neg-fracN/A

                          \[\leadsto \frac{\mathsf{neg}\left(\left(-v\right) \cdot -1\right)}{\color{blue}{\frac{\mathsf{neg}\left(\left(u \cdot u - t1 \cdot t1\right)\right)}{t1 + u}}} \]
                      5. Applied rewrites62.0%

                        \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1 - u}} \]
                      6. Add Preprocessing

                      Alternative 8: 60.8% accurate, 1.5× speedup?

                      \[\begin{array}{l} \\ \frac{-1}{t1 - u} \cdot v \end{array} \]
                      (FPCore (u v t1) :precision binary64 (* (/ -1.0 (- t1 u)) v))
                      double code(double u, double v, double t1) {
                      	return (-1.0 / (t1 - u)) * v;
                      }
                      
                      real(8) function code(u, v, t1)
                          real(8), intent (in) :: u
                          real(8), intent (in) :: v
                          real(8), intent (in) :: t1
                          code = ((-1.0d0) / (t1 - u)) * v
                      end function
                      
                      public static double code(double u, double v, double t1) {
                      	return (-1.0 / (t1 - u)) * v;
                      }
                      
                      def code(u, v, t1):
                      	return (-1.0 / (t1 - u)) * v
                      
                      function code(u, v, t1)
                      	return Float64(Float64(-1.0 / Float64(t1 - u)) * v)
                      end
                      
                      function tmp = code(u, v, t1)
                      	tmp = (-1.0 / (t1 - u)) * v;
                      end
                      
                      code[u_, v_, t1_] := N[(N[(-1.0 / N[(t1 - u), $MachinePrecision]), $MachinePrecision] * v), $MachinePrecision]
                      
                      \begin{array}{l}
                      
                      \\
                      \frac{-1}{t1 - u} \cdot v
                      \end{array}
                      
                      Derivation
                      1. Initial program 73.9%

                        \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                      2. Add Preprocessing
                      3. Applied rewrites97.2%

                        \[\leadsto \color{blue}{\frac{\frac{t1}{u - t1} \cdot \left(-v\right)}{u - t1}} \]
                      4. Taylor expanded in u around 0

                        \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
                      5. Step-by-step derivation
                        1. Applied rewrites62.0%

                          \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
                        2. Step-by-step derivation
                          1. lift--.f64N/A

                            \[\leadsto \frac{-1 \cdot \left(-v\right)}{\color{blue}{u - t1}} \]
                          2. lift-/.f64N/A

                            \[\leadsto \color{blue}{\frac{-1 \cdot \left(-v\right)}{u - t1}} \]
                          3. lift-*.f64N/A

                            \[\leadsto \frac{\color{blue}{-1 \cdot \left(-v\right)}}{u - t1} \]
                          4. *-commutativeN/A

                            \[\leadsto \frac{\color{blue}{\left(-v\right) \cdot -1}}{u - t1} \]
                          5. associate-/l*N/A

                            \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                          6. lower-*.f64N/A

                            \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                          7. lower-/.f64N/A

                            \[\leadsto \left(-v\right) \cdot \color{blue}{\frac{-1}{u - t1}} \]
                          8. lift--.f6461.8

                            \[\leadsto \left(-v\right) \cdot \frac{-1}{\color{blue}{u - t1}} \]
                        3. Applied rewrites61.8%

                          \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                        4. Step-by-step derivation
                          1. lift-*.f64N/A

                            \[\leadsto \color{blue}{\left(-v\right) \cdot \frac{-1}{u - t1}} \]
                          2. lift-neg.f64N/A

                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(v\right)\right)} \cdot \frac{-1}{u - t1} \]
                          3. distribute-lft-neg-outN/A

                            \[\leadsto \color{blue}{\mathsf{neg}\left(v \cdot \frac{-1}{u - t1}\right)} \]
                          4. distribute-rgt-neg-inN/A

                            \[\leadsto \color{blue}{v \cdot \left(\mathsf{neg}\left(\frac{-1}{u - t1}\right)\right)} \]
                          5. lift-/.f64N/A

                            \[\leadsto v \cdot \left(\mathsf{neg}\left(\color{blue}{\frac{-1}{u - t1}}\right)\right) \]
                          6. distribute-frac-negN/A

                            \[\leadsto v \cdot \color{blue}{\frac{\mathsf{neg}\left(-1\right)}{u - t1}} \]
                          7. *-commutativeN/A

                            \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(-1\right)}{u - t1} \cdot v} \]
                          8. lower-*.f64N/A

                            \[\leadsto \color{blue}{\frac{\mathsf{neg}\left(-1\right)}{u - t1} \cdot v} \]
                        5. Applied rewrites61.8%

                          \[\leadsto \color{blue}{\frac{-1}{t1 - u} \cdot v} \]
                        6. Add Preprocessing

                        Alternative 9: 53.8% accurate, 2.1× speedup?

                        \[\begin{array}{l} \\ \frac{-v}{t1} \end{array} \]
                        (FPCore (u v t1) :precision binary64 (/ (- v) t1))
                        double code(double u, double v, double t1) {
                        	return -v / t1;
                        }
                        
                        real(8) function code(u, v, t1)
                            real(8), intent (in) :: u
                            real(8), intent (in) :: v
                            real(8), intent (in) :: t1
                            code = -v / t1
                        end function
                        
                        public static double code(double u, double v, double t1) {
                        	return -v / t1;
                        }
                        
                        def code(u, v, t1):
                        	return -v / t1
                        
                        function code(u, v, t1)
                        	return Float64(Float64(-v) / t1)
                        end
                        
                        function tmp = code(u, v, t1)
                        	tmp = -v / t1;
                        end
                        
                        code[u_, v_, t1_] := N[((-v) / t1), $MachinePrecision]
                        
                        \begin{array}{l}
                        
                        \\
                        \frac{-v}{t1}
                        \end{array}
                        
                        Derivation
                        1. Initial program 73.9%

                          \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                        2. Add Preprocessing
                        3. Taylor expanded in u around 0

                          \[\leadsto \color{blue}{-1 \cdot \frac{v}{t1}} \]
                        4. Step-by-step derivation
                          1. associate-*r/N/A

                            \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1}} \]
                          2. lower-/.f64N/A

                            \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1}} \]
                          3. mul-1-negN/A

                            \[\leadsto \frac{\color{blue}{\mathsf{neg}\left(v\right)}}{t1} \]
                          4. lower-neg.f6449.4

                            \[\leadsto \frac{\color{blue}{-v}}{t1} \]
                        5. Applied rewrites49.4%

                          \[\leadsto \color{blue}{\frac{-v}{t1}} \]
                        6. Add Preprocessing

                        Reproduce

                        ?
                        herbie shell --seed 2024343 
                        (FPCore (u v t1)
                          :name "Rosa's DopplerBench"
                          :precision binary64
                          (/ (* (- t1) v) (* (+ t1 u) (+ t1 u))))