Rosa's DopplerBench

Percentage Accurate: 72.4% → 98.0%
Time: 6.7s
Alternatives: 14
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 14 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.4% 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: 98.0% accurate, 0.5× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{v}{{\color{blue}{\left(u + t1\right)}}^{2}} \cdot \left(\mathsf{neg}\left(t1\right)\right) \]
    10. lower-neg.f6472.0

      \[\leadsto \frac{v}{{\left(u + t1\right)}^{2}} \cdot \color{blue}{\left(-t1\right)} \]
  5. Applied rewrites72.0%

    \[\leadsto \color{blue}{\frac{v}{{\left(u + t1\right)}^{2}} \cdot \left(-t1\right)} \]
  6. Applied rewrites98.4%

    \[\leadsto \frac{\frac{-v}{u + t1} \cdot \frac{t1}{t1 - u}}{\frac{u + t1}{u + t1} \cdot \frac{u - t1}{u - t1}} \cdot \color{blue}{\frac{t1 - u}{u + t1}} \]
  7. Step-by-step derivation
    1. Applied rewrites98.9%

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

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

    Alternative 2: 81.6% accurate, 0.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;u \leq -1.15 \cdot 10^{+154}:\\ \;\;\;\;\frac{\frac{t1}{u} \cdot \left(-v\right)}{u - t1}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 7 \cdot 10^{-135}\right):\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\frac{u}{t1}, -2, 1\right) \cdot \left(-v\right)}{t1}\\ \end{array} \end{array} \]
    (FPCore (u v t1)
     :precision binary64
     (if (<= u -1.15e+154)
       (/ (* (/ t1 u) (- v)) (- u t1))
       (if (or (<= u -8e-137) (not (<= u 7e-135)))
         (/ (* (- t1) v) (* (+ t1 u) (+ t1 u)))
         (/ (* (fma (/ u t1) -2.0 1.0) (- v)) t1))))
    double code(double u, double v, double t1) {
    	double tmp;
    	if (u <= -1.15e+154) {
    		tmp = ((t1 / u) * -v) / (u - t1);
    	} else if ((u <= -8e-137) || !(u <= 7e-135)) {
    		tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
    	} else {
    		tmp = (fma((u / t1), -2.0, 1.0) * -v) / t1;
    	}
    	return tmp;
    }
    
    function code(u, v, t1)
    	tmp = 0.0
    	if (u <= -1.15e+154)
    		tmp = Float64(Float64(Float64(t1 / u) * Float64(-v)) / Float64(u - t1));
    	elseif ((u <= -8e-137) || !(u <= 7e-135))
    		tmp = Float64(Float64(Float64(-t1) * v) / Float64(Float64(t1 + u) * Float64(t1 + u)));
    	else
    		tmp = Float64(Float64(fma(Float64(u / t1), -2.0, 1.0) * Float64(-v)) / t1);
    	end
    	return tmp
    end
    
    code[u_, v_, t1_] := If[LessEqual[u, -1.15e+154], N[(N[(N[(t1 / u), $MachinePrecision] * (-v)), $MachinePrecision] / N[(u - t1), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[u, -8e-137], N[Not[LessEqual[u, 7e-135]], $MachinePrecision]], N[(N[((-t1) * v), $MachinePrecision] / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(u / t1), $MachinePrecision] * -2.0 + 1.0), $MachinePrecision] * (-v)), $MachinePrecision] / t1), $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;u \leq -1.15 \cdot 10^{+154}:\\
    \;\;\;\;\frac{\frac{t1}{u} \cdot \left(-v\right)}{u - t1}\\
    
    \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 7 \cdot 10^{-135}\right):\\
    \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{\mathsf{fma}\left(\frac{u}{t1}, -2, 1\right) \cdot \left(-v\right)}{t1}\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if u < -1.15e154

      1. Initial program 61.8%

        \[\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 inf

        \[\leadsto \frac{\color{blue}{\frac{t1}{u}} \cdot \left(-v\right)}{u - t1} \]
      5. Step-by-step derivation
        1. lower-/.f6492.4

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

        \[\leadsto \frac{\color{blue}{\frac{t1}{u}} \cdot \left(-v\right)}{u - t1} \]

      if -1.15e154 < u < -7.99999999999999982e-137 or 6.9999999999999997e-135 < u

      1. Initial program 85.6%

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

      if -7.99999999999999982e-137 < u < 6.9999999999999997e-135

      1. Initial program 54.3%

        \[\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} + 2 \cdot \frac{u \cdot v}{{t1}^{2}}} \]
      4. Step-by-step derivation
        1. associate-*r/N/A

          \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1}} + 2 \cdot \frac{u \cdot v}{{t1}^{2}} \]
        2. unpow2N/A

          \[\leadsto \frac{-1 \cdot v}{t1} + 2 \cdot \frac{u \cdot v}{\color{blue}{t1 \cdot t1}} \]
        3. associate-/r*N/A

          \[\leadsto \frac{-1 \cdot v}{t1} + 2 \cdot \color{blue}{\frac{\frac{u \cdot v}{t1}}{t1}} \]
        4. associate-/l*N/A

          \[\leadsto \frac{-1 \cdot v}{t1} + \color{blue}{\frac{2 \cdot \frac{u \cdot v}{t1}}{t1}} \]
        5. div-addN/A

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

          \[\leadsto \color{blue}{\frac{-1 \cdot v + 2 \cdot \frac{u \cdot v}{t1}}{t1}} \]
        7. +-commutativeN/A

          \[\leadsto \frac{\color{blue}{2 \cdot \frac{u \cdot v}{t1} + -1 \cdot v}}{t1} \]
        8. *-commutativeN/A

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

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

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

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

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

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

          \[\leadsto \frac{\mathsf{fma}\left(\frac{v}{t1} \cdot u, 2, \color{blue}{\mathsf{neg}\left(v\right)}\right)}{t1} \]
        15. lower-neg.f6487.5

          \[\leadsto \frac{\mathsf{fma}\left(\frac{v}{t1} \cdot u, 2, \color{blue}{-v}\right)}{t1} \]
      5. Applied rewrites87.5%

        \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(\frac{v}{t1} \cdot u, 2, -v\right)}{t1}} \]
      6. Taylor expanded in v around -inf

        \[\leadsto \frac{-1 \cdot \left(v \cdot \left(1 + -2 \cdot \frac{u}{t1}\right)\right)}{t1} \]
      7. Step-by-step derivation
        1. Applied rewrites87.5%

          \[\leadsto \frac{\mathsf{fma}\left(\frac{u}{t1}, -2, 1\right) \cdot \left(-v\right)}{t1} \]
      8. Recombined 3 regimes into one program.
      9. Final simplification87.1%

        \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq -1.15 \cdot 10^{+154}:\\ \;\;\;\;\frac{\frac{t1}{u} \cdot \left(-v\right)}{u - t1}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 7 \cdot 10^{-135}\right):\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\frac{u}{t1}, -2, 1\right) \cdot \left(-v\right)}{t1}\\ \end{array} \]
      10. Add Preprocessing

      Alternative 3: 82.0% accurate, 0.6× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;u \leq -1.15 \cdot 10^{+154}:\\ \;\;\;\;\frac{\frac{t1}{u} \cdot \left(-v\right)}{u - t1}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 1.16 \cdot 10^{-133}\right):\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-v}{t1}\\ \end{array} \end{array} \]
      (FPCore (u v t1)
       :precision binary64
       (if (<= u -1.15e+154)
         (/ (* (/ t1 u) (- v)) (- u t1))
         (if (or (<= u -8e-137) (not (<= u 1.16e-133)))
           (/ (* (- t1) v) (* (+ t1 u) (+ t1 u)))
           (/ (- v) t1))))
      double code(double u, double v, double t1) {
      	double tmp;
      	if (u <= -1.15e+154) {
      		tmp = ((t1 / u) * -v) / (u - t1);
      	} else if ((u <= -8e-137) || !(u <= 1.16e-133)) {
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
      	} 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) :: tmp
          if (u <= (-1.15d+154)) then
              tmp = ((t1 / u) * -v) / (u - t1)
          else if ((u <= (-8d-137)) .or. (.not. (u <= 1.16d-133))) then
              tmp = (-t1 * v) / ((t1 + u) * (t1 + u))
          else
              tmp = -v / t1
          end if
          code = tmp
      end function
      
      public static double code(double u, double v, double t1) {
      	double tmp;
      	if (u <= -1.15e+154) {
      		tmp = ((t1 / u) * -v) / (u - t1);
      	} else if ((u <= -8e-137) || !(u <= 1.16e-133)) {
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
      	} else {
      		tmp = -v / t1;
      	}
      	return tmp;
      }
      
      def code(u, v, t1):
      	tmp = 0
      	if u <= -1.15e+154:
      		tmp = ((t1 / u) * -v) / (u - t1)
      	elif (u <= -8e-137) or not (u <= 1.16e-133):
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u))
      	else:
      		tmp = -v / t1
      	return tmp
      
      function code(u, v, t1)
      	tmp = 0.0
      	if (u <= -1.15e+154)
      		tmp = Float64(Float64(Float64(t1 / u) * Float64(-v)) / Float64(u - t1));
      	elseif ((u <= -8e-137) || !(u <= 1.16e-133))
      		tmp = Float64(Float64(Float64(-t1) * v) / Float64(Float64(t1 + u) * Float64(t1 + u)));
      	else
      		tmp = Float64(Float64(-v) / t1);
      	end
      	return tmp
      end
      
      function tmp_2 = code(u, v, t1)
      	tmp = 0.0;
      	if (u <= -1.15e+154)
      		tmp = ((t1 / u) * -v) / (u - t1);
      	elseif ((u <= -8e-137) || ~((u <= 1.16e-133)))
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
      	else
      		tmp = -v / t1;
      	end
      	tmp_2 = tmp;
      end
      
      code[u_, v_, t1_] := If[LessEqual[u, -1.15e+154], N[(N[(N[(t1 / u), $MachinePrecision] * (-v)), $MachinePrecision] / N[(u - t1), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[u, -8e-137], N[Not[LessEqual[u, 1.16e-133]], $MachinePrecision]], N[(N[((-t1) * v), $MachinePrecision] / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;u \leq -1.15 \cdot 10^{+154}:\\
      \;\;\;\;\frac{\frac{t1}{u} \cdot \left(-v\right)}{u - t1}\\
      
      \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 1.16 \cdot 10^{-133}\right):\\
      \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{-v}{t1}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if u < -1.15e154

        1. Initial program 61.8%

          \[\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 inf

          \[\leadsto \frac{\color{blue}{\frac{t1}{u}} \cdot \left(-v\right)}{u - t1} \]
        5. Step-by-step derivation
          1. lower-/.f6492.4

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

          \[\leadsto \frac{\color{blue}{\frac{t1}{u}} \cdot \left(-v\right)}{u - t1} \]

        if -1.15e154 < u < -7.99999999999999982e-137 or 1.15999999999999997e-133 < u

        1. Initial program 85.6%

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

        if -7.99999999999999982e-137 < u < 1.15999999999999997e-133

        1. Initial program 54.3%

          \[\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.f6486.7

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

          \[\leadsto \color{blue}{\frac{-v}{t1}} \]
      3. Recombined 3 regimes into one program.
      4. Final simplification86.9%

        \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq -1.15 \cdot 10^{+154}:\\ \;\;\;\;\frac{\frac{t1}{u} \cdot \left(-v\right)}{u - t1}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 1.16 \cdot 10^{-133}\right):\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-v}{t1}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 4: 82.2% accurate, 0.6× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;u \leq -8 \cdot 10^{+153}:\\ \;\;\;\;\frac{t1 \cdot \frac{-v}{u}}{u - t1}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 1.16 \cdot 10^{-133}\right):\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-v}{t1}\\ \end{array} \end{array} \]
      (FPCore (u v t1)
       :precision binary64
       (if (<= u -8e+153)
         (/ (* t1 (/ (- v) u)) (- u t1))
         (if (or (<= u -8e-137) (not (<= u 1.16e-133)))
           (/ (* (- t1) v) (* (+ t1 u) (+ t1 u)))
           (/ (- v) t1))))
      double code(double u, double v, double t1) {
      	double tmp;
      	if (u <= -8e+153) {
      		tmp = (t1 * (-v / u)) / (u - t1);
      	} else if ((u <= -8e-137) || !(u <= 1.16e-133)) {
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
      	} 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) :: tmp
          if (u <= (-8d+153)) then
              tmp = (t1 * (-v / u)) / (u - t1)
          else if ((u <= (-8d-137)) .or. (.not. (u <= 1.16d-133))) then
              tmp = (-t1 * v) / ((t1 + u) * (t1 + u))
          else
              tmp = -v / t1
          end if
          code = tmp
      end function
      
      public static double code(double u, double v, double t1) {
      	double tmp;
      	if (u <= -8e+153) {
      		tmp = (t1 * (-v / u)) / (u - t1);
      	} else if ((u <= -8e-137) || !(u <= 1.16e-133)) {
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
      	} else {
      		tmp = -v / t1;
      	}
      	return tmp;
      }
      
      def code(u, v, t1):
      	tmp = 0
      	if u <= -8e+153:
      		tmp = (t1 * (-v / u)) / (u - t1)
      	elif (u <= -8e-137) or not (u <= 1.16e-133):
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u))
      	else:
      		tmp = -v / t1
      	return tmp
      
      function code(u, v, t1)
      	tmp = 0.0
      	if (u <= -8e+153)
      		tmp = Float64(Float64(t1 * Float64(Float64(-v) / u)) / Float64(u - t1));
      	elseif ((u <= -8e-137) || !(u <= 1.16e-133))
      		tmp = Float64(Float64(Float64(-t1) * v) / Float64(Float64(t1 + u) * Float64(t1 + u)));
      	else
      		tmp = Float64(Float64(-v) / t1);
      	end
      	return tmp
      end
      
      function tmp_2 = code(u, v, t1)
      	tmp = 0.0;
      	if (u <= -8e+153)
      		tmp = (t1 * (-v / u)) / (u - t1);
      	elseif ((u <= -8e-137) || ~((u <= 1.16e-133)))
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
      	else
      		tmp = -v / t1;
      	end
      	tmp_2 = tmp;
      end
      
      code[u_, v_, t1_] := If[LessEqual[u, -8e+153], N[(N[(t1 * N[((-v) / u), $MachinePrecision]), $MachinePrecision] / N[(u - t1), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[u, -8e-137], N[Not[LessEqual[u, 1.16e-133]], $MachinePrecision]], N[(N[((-t1) * v), $MachinePrecision] / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;u \leq -8 \cdot 10^{+153}:\\
      \;\;\;\;\frac{t1 \cdot \frac{-v}{u}}{u - t1}\\
      
      \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 1.16 \cdot 10^{-133}\right):\\
      \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{-v}{t1}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if u < -8e153

        1. Initial program 61.8%

          \[\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 inf

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

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

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

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

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

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

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

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

            \[\leadsto \frac{t1 \cdot \frac{\color{blue}{\mathsf{neg}\left(v\right)}}{u}}{u - t1} \]
          9. lower-neg.f6492.3

            \[\leadsto \frac{t1 \cdot \frac{\color{blue}{-v}}{u}}{u - t1} \]
        6. Applied rewrites92.3%

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

        if -8e153 < u < -7.99999999999999982e-137 or 1.15999999999999997e-133 < u

        1. Initial program 85.6%

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

        if -7.99999999999999982e-137 < u < 1.15999999999999997e-133

        1. Initial program 54.3%

          \[\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.f6486.7

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

          \[\leadsto \color{blue}{\frac{-v}{t1}} \]
      3. Recombined 3 regimes into one program.
      4. Final simplification86.9%

        \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq -8 \cdot 10^{+153}:\\ \;\;\;\;\frac{t1 \cdot \frac{-v}{u}}{u - t1}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 1.16 \cdot 10^{-133}\right):\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-v}{t1}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 5: 81.9% accurate, 0.6× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;u \leq -7.2 \cdot 10^{+133}:\\ \;\;\;\;\frac{v}{u} \cdot \frac{-t1}{u}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 1.16 \cdot 10^{-133}\right):\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-v}{t1}\\ \end{array} \end{array} \]
      (FPCore (u v t1)
       :precision binary64
       (if (<= u -7.2e+133)
         (* (/ v u) (/ (- t1) u))
         (if (or (<= u -8e-137) (not (<= u 1.16e-133)))
           (/ (* (- t1) v) (* (+ t1 u) (+ t1 u)))
           (/ (- v) t1))))
      double code(double u, double v, double t1) {
      	double tmp;
      	if (u <= -7.2e+133) {
      		tmp = (v / u) * (-t1 / u);
      	} else if ((u <= -8e-137) || !(u <= 1.16e-133)) {
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
      	} 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) :: tmp
          if (u <= (-7.2d+133)) then
              tmp = (v / u) * (-t1 / u)
          else if ((u <= (-8d-137)) .or. (.not. (u <= 1.16d-133))) then
              tmp = (-t1 * v) / ((t1 + u) * (t1 + u))
          else
              tmp = -v / t1
          end if
          code = tmp
      end function
      
      public static double code(double u, double v, double t1) {
      	double tmp;
      	if (u <= -7.2e+133) {
      		tmp = (v / u) * (-t1 / u);
      	} else if ((u <= -8e-137) || !(u <= 1.16e-133)) {
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
      	} else {
      		tmp = -v / t1;
      	}
      	return tmp;
      }
      
      def code(u, v, t1):
      	tmp = 0
      	if u <= -7.2e+133:
      		tmp = (v / u) * (-t1 / u)
      	elif (u <= -8e-137) or not (u <= 1.16e-133):
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u))
      	else:
      		tmp = -v / t1
      	return tmp
      
      function code(u, v, t1)
      	tmp = 0.0
      	if (u <= -7.2e+133)
      		tmp = Float64(Float64(v / u) * Float64(Float64(-t1) / u));
      	elseif ((u <= -8e-137) || !(u <= 1.16e-133))
      		tmp = Float64(Float64(Float64(-t1) * v) / Float64(Float64(t1 + u) * Float64(t1 + u)));
      	else
      		tmp = Float64(Float64(-v) / t1);
      	end
      	return tmp
      end
      
      function tmp_2 = code(u, v, t1)
      	tmp = 0.0;
      	if (u <= -7.2e+133)
      		tmp = (v / u) * (-t1 / u);
      	elseif ((u <= -8e-137) || ~((u <= 1.16e-133)))
      		tmp = (-t1 * v) / ((t1 + u) * (t1 + u));
      	else
      		tmp = -v / t1;
      	end
      	tmp_2 = tmp;
      end
      
      code[u_, v_, t1_] := If[LessEqual[u, -7.2e+133], N[(N[(v / u), $MachinePrecision] * N[((-t1) / u), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[u, -8e-137], N[Not[LessEqual[u, 1.16e-133]], $MachinePrecision]], N[(N[((-t1) * v), $MachinePrecision] / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;u \leq -7.2 \cdot 10^{+133}:\\
      \;\;\;\;\frac{v}{u} \cdot \frac{-t1}{u}\\
      
      \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 1.16 \cdot 10^{-133}\right):\\
      \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{-v}{t1}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if u < -7.19999999999999956e133

        1. Initial program 63.2%

          \[\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-/.f6490.8

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

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

        if -7.19999999999999956e133 < u < -7.99999999999999982e-137 or 1.15999999999999997e-133 < u

        1. Initial program 85.8%

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

        if -7.99999999999999982e-137 < u < 1.15999999999999997e-133

        1. Initial program 54.3%

          \[\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.f6486.7

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

          \[\leadsto \color{blue}{\frac{-v}{t1}} \]
      3. Recombined 3 regimes into one program.
      4. Final simplification86.9%

        \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq -7.2 \cdot 10^{+133}:\\ \;\;\;\;\frac{v}{u} \cdot \frac{-t1}{u}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137} \lor \neg \left(u \leq 1.16 \cdot 10^{-133}\right):\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{-v}{t1}\\ \end{array} \]
      5. Add Preprocessing

      Alternative 6: 86.3% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t1 \leq -5.4 \cdot 10^{+70}:\\ \;\;\;\;\frac{-v}{u + t1}\\ \mathbf{elif}\;t1 \leq 3.2 \cdot 10^{+109}:\\ \;\;\;\;\frac{-v}{\left(u + t1\right) \cdot \left(u + t1\right)} \cdot t1\\ \mathbf{else}:\\ \;\;\;\;\frac{-1 \cdot v}{\left(-u\right) + t1}\\ \end{array} \end{array} \]
      (FPCore (u v t1)
       :precision binary64
       (if (<= t1 -5.4e+70)
         (/ (- v) (+ u t1))
         (if (<= t1 3.2e+109)
           (* (/ (- v) (* (+ u t1) (+ u t1))) t1)
           (/ (* -1.0 v) (+ (- u) t1)))))
      double code(double u, double v, double t1) {
      	double tmp;
      	if (t1 <= -5.4e+70) {
      		tmp = -v / (u + t1);
      	} else if (t1 <= 3.2e+109) {
      		tmp = (-v / ((u + t1) * (u + t1))) * t1;
      	} else {
      		tmp = (-1.0 * v) / (-u + 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) :: tmp
          if (t1 <= (-5.4d+70)) then
              tmp = -v / (u + t1)
          else if (t1 <= 3.2d+109) then
              tmp = (-v / ((u + t1) * (u + t1))) * t1
          else
              tmp = ((-1.0d0) * v) / (-u + t1)
          end if
          code = tmp
      end function
      
      public static double code(double u, double v, double t1) {
      	double tmp;
      	if (t1 <= -5.4e+70) {
      		tmp = -v / (u + t1);
      	} else if (t1 <= 3.2e+109) {
      		tmp = (-v / ((u + t1) * (u + t1))) * t1;
      	} else {
      		tmp = (-1.0 * v) / (-u + t1);
      	}
      	return tmp;
      }
      
      def code(u, v, t1):
      	tmp = 0
      	if t1 <= -5.4e+70:
      		tmp = -v / (u + t1)
      	elif t1 <= 3.2e+109:
      		tmp = (-v / ((u + t1) * (u + t1))) * t1
      	else:
      		tmp = (-1.0 * v) / (-u + t1)
      	return tmp
      
      function code(u, v, t1)
      	tmp = 0.0
      	if (t1 <= -5.4e+70)
      		tmp = Float64(Float64(-v) / Float64(u + t1));
      	elseif (t1 <= 3.2e+109)
      		tmp = Float64(Float64(Float64(-v) / Float64(Float64(u + t1) * Float64(u + t1))) * t1);
      	else
      		tmp = Float64(Float64(-1.0 * v) / Float64(Float64(-u) + t1));
      	end
      	return tmp
      end
      
      function tmp_2 = code(u, v, t1)
      	tmp = 0.0;
      	if (t1 <= -5.4e+70)
      		tmp = -v / (u + t1);
      	elseif (t1 <= 3.2e+109)
      		tmp = (-v / ((u + t1) * (u + t1))) * t1;
      	else
      		tmp = (-1.0 * v) / (-u + t1);
      	end
      	tmp_2 = tmp;
      end
      
      code[u_, v_, t1_] := If[LessEqual[t1, -5.4e+70], N[((-v) / N[(u + t1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, 3.2e+109], N[(N[((-v) / N[(N[(u + t1), $MachinePrecision] * N[(u + t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t1), $MachinePrecision], N[(N[(-1.0 * v), $MachinePrecision] / N[((-u) + t1), $MachinePrecision]), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;t1 \leq -5.4 \cdot 10^{+70}:\\
      \;\;\;\;\frac{-v}{u + t1}\\
      
      \mathbf{elif}\;t1 \leq 3.2 \cdot 10^{+109}:\\
      \;\;\;\;\frac{-v}{\left(u + t1\right) \cdot \left(u + t1\right)} \cdot t1\\
      
      \mathbf{else}:\\
      \;\;\;\;\frac{-1 \cdot v}{\left(-u\right) + t1}\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if t1 < -5.3999999999999999e70

        1. Initial program 57.5%

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{v}{{\color{blue}{\left(u + t1\right)}}^{2}} \cdot \left(\mathsf{neg}\left(t1\right)\right) \]
          10. lower-neg.f6456.7

            \[\leadsto \frac{v}{{\left(u + t1\right)}^{2}} \cdot \color{blue}{\left(-t1\right)} \]
        5. Applied rewrites56.7%

          \[\leadsto \color{blue}{\frac{v}{{\left(u + t1\right)}^{2}} \cdot \left(-t1\right)} \]
        6. Step-by-step derivation
          1. Applied rewrites99.9%

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

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

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

            if -5.3999999999999999e70 < t1 < 3.2000000000000001e109

            1. Initial program 82.8%

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{v}{{\color{blue}{\left(u + t1\right)}}^{2}} \cdot \left(\mathsf{neg}\left(t1\right)\right) \]
              10. lower-neg.f6482.0

                \[\leadsto \frac{v}{{\left(u + t1\right)}^{2}} \cdot \color{blue}{\left(-t1\right)} \]
            5. Applied rewrites82.0%

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

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

              if 3.2000000000000001e109 < t1

              1. Initial program 55.9%

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

                \[\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 rewrites88.5%

                  \[\leadsto \frac{\color{blue}{-1} \cdot \left(-v\right)}{u - t1} \]
              6. Recombined 3 regimes into one program.
              7. Final simplification83.3%

                \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -5.4 \cdot 10^{+70}:\\ \;\;\;\;\frac{-v}{u + t1}\\ \mathbf{elif}\;t1 \leq 3.2 \cdot 10^{+109}:\\ \;\;\;\;\frac{-v}{\left(u + t1\right) \cdot \left(u + t1\right)} \cdot t1\\ \mathbf{else}:\\ \;\;\;\;\frac{-1 \cdot v}{\left(-u\right) + t1}\\ \end{array} \]
              8. Add Preprocessing

              Alternative 7: 77.1% accurate, 0.8× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t1 \leq -1.5 \cdot 10^{-90} \lor \neg \left(t1 \leq 6.5 \cdot 10^{-44}\right):\\ \;\;\;\;\frac{-v}{u + t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{u \cdot u}\\ \end{array} \end{array} \]
              (FPCore (u v t1)
               :precision binary64
               (if (or (<= t1 -1.5e-90) (not (<= t1 6.5e-44)))
                 (/ (- v) (+ u t1))
                 (/ (* (- t1) v) (* u u))))
              double code(double u, double v, double t1) {
              	double tmp;
              	if ((t1 <= -1.5e-90) || !(t1 <= 6.5e-44)) {
              		tmp = -v / (u + t1);
              	} 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.5d-90)) .or. (.not. (t1 <= 6.5d-44))) then
                      tmp = -v / (u + t1)
                  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.5e-90) || !(t1 <= 6.5e-44)) {
              		tmp = -v / (u + t1);
              	} else {
              		tmp = (-t1 * v) / (u * u);
              	}
              	return tmp;
              }
              
              def code(u, v, t1):
              	tmp = 0
              	if (t1 <= -1.5e-90) or not (t1 <= 6.5e-44):
              		tmp = -v / (u + t1)
              	else:
              		tmp = (-t1 * v) / (u * u)
              	return tmp
              
              function code(u, v, t1)
              	tmp = 0.0
              	if ((t1 <= -1.5e-90) || !(t1 <= 6.5e-44))
              		tmp = Float64(Float64(-v) / Float64(u + t1));
              	else
              		tmp = Float64(Float64(Float64(-t1) * v) / Float64(u * u));
              	end
              	return tmp
              end
              
              function tmp_2 = code(u, v, t1)
              	tmp = 0.0;
              	if ((t1 <= -1.5e-90) || ~((t1 <= 6.5e-44)))
              		tmp = -v / (u + t1);
              	else
              		tmp = (-t1 * v) / (u * u);
              	end
              	tmp_2 = tmp;
              end
              
              code[u_, v_, t1_] := If[Or[LessEqual[t1, -1.5e-90], N[Not[LessEqual[t1, 6.5e-44]], $MachinePrecision]], N[((-v) / N[(u + t1), $MachinePrecision]), $MachinePrecision], N[(N[((-t1) * v), $MachinePrecision] / N[(u * u), $MachinePrecision]), $MachinePrecision]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;t1 \leq -1.5 \cdot 10^{-90} \lor \neg \left(t1 \leq 6.5 \cdot 10^{-44}\right):\\
              \;\;\;\;\frac{-v}{u + t1}\\
              
              \mathbf{else}:\\
              \;\;\;\;\frac{\left(-t1\right) \cdot v}{u \cdot u}\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if t1 < -1.5000000000000001e-90 or 6.5e-44 < t1

                1. Initial program 69.5%

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \frac{v}{{\color{blue}{\left(u + t1\right)}}^{2}} \cdot \left(\mathsf{neg}\left(t1\right)\right) \]
                  10. lower-neg.f6469.6

                    \[\leadsto \frac{v}{{\left(u + t1\right)}^{2}} \cdot \color{blue}{\left(-t1\right)} \]
                5. Applied rewrites69.6%

                  \[\leadsto \color{blue}{\frac{v}{{\left(u + t1\right)}^{2}} \cdot \left(-t1\right)} \]
                6. Step-by-step derivation
                  1. Applied rewrites99.8%

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

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

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

                    if -1.5000000000000001e-90 < t1 < 6.5e-44

                    1. Initial program 79.4%

                      \[\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 \frac{\left(-t1\right) \cdot v}{\color{blue}{{u}^{2}}} \]
                    4. Step-by-step derivation
                      1. unpow2N/A

                        \[\leadsto \frac{\left(-t1\right) \cdot v}{\color{blue}{u \cdot u}} \]
                      2. lower-*.f6474.8

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

                      \[\leadsto \frac{\left(-t1\right) \cdot v}{\color{blue}{u \cdot u}} \]
                  4. Recombined 2 regimes into one program.
                  5. Final simplification76.5%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -1.5 \cdot 10^{-90} \lor \neg \left(t1 \leq 6.5 \cdot 10^{-44}\right):\\ \;\;\;\;\frac{-v}{u + t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{u \cdot u}\\ \end{array} \]
                  6. Add Preprocessing

                  Alternative 8: 76.7% accurate, 0.8× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t1 \leq -1.5 \cdot 10^{-90} \lor \neg \left(t1 \leq 6.5 \cdot 10^{-44}\right):\\ \;\;\;\;\frac{-v}{u + t1}\\ \mathbf{else}:\\ \;\;\;\;v \cdot \frac{-t1}{u \cdot u}\\ \end{array} \end{array} \]
                  (FPCore (u v t1)
                   :precision binary64
                   (if (or (<= t1 -1.5e-90) (not (<= t1 6.5e-44)))
                     (/ (- v) (+ u t1))
                     (* v (/ (- t1) (* u u)))))
                  double code(double u, double v, double t1) {
                  	double tmp;
                  	if ((t1 <= -1.5e-90) || !(t1 <= 6.5e-44)) {
                  		tmp = -v / (u + t1);
                  	} 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.5d-90)) .or. (.not. (t1 <= 6.5d-44))) then
                          tmp = -v / (u + t1)
                      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.5e-90) || !(t1 <= 6.5e-44)) {
                  		tmp = -v / (u + t1);
                  	} else {
                  		tmp = v * (-t1 / (u * u));
                  	}
                  	return tmp;
                  }
                  
                  def code(u, v, t1):
                  	tmp = 0
                  	if (t1 <= -1.5e-90) or not (t1 <= 6.5e-44):
                  		tmp = -v / (u + t1)
                  	else:
                  		tmp = v * (-t1 / (u * u))
                  	return tmp
                  
                  function code(u, v, t1)
                  	tmp = 0.0
                  	if ((t1 <= -1.5e-90) || !(t1 <= 6.5e-44))
                  		tmp = Float64(Float64(-v) / Float64(u + t1));
                  	else
                  		tmp = Float64(v * Float64(Float64(-t1) / Float64(u * u)));
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(u, v, t1)
                  	tmp = 0.0;
                  	if ((t1 <= -1.5e-90) || ~((t1 <= 6.5e-44)))
                  		tmp = -v / (u + t1);
                  	else
                  		tmp = v * (-t1 / (u * u));
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[u_, v_, t1_] := If[Or[LessEqual[t1, -1.5e-90], N[Not[LessEqual[t1, 6.5e-44]], $MachinePrecision]], N[((-v) / N[(u + t1), $MachinePrecision]), $MachinePrecision], N[(v * N[((-t1) / N[(u * u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;t1 \leq -1.5 \cdot 10^{-90} \lor \neg \left(t1 \leq 6.5 \cdot 10^{-44}\right):\\
                  \;\;\;\;\frac{-v}{u + t1}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;v \cdot \frac{-t1}{u \cdot u}\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if t1 < -1.5000000000000001e-90 or 6.5e-44 < t1

                    1. Initial program 69.5%

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{v}{{\color{blue}{\left(u + t1\right)}}^{2}} \cdot \left(\mathsf{neg}\left(t1\right)\right) \]
                      10. lower-neg.f6469.6

                        \[\leadsto \frac{v}{{\left(u + t1\right)}^{2}} \cdot \color{blue}{\left(-t1\right)} \]
                    5. Applied rewrites69.6%

                      \[\leadsto \color{blue}{\frac{v}{{\left(u + t1\right)}^{2}} \cdot \left(-t1\right)} \]
                    6. Step-by-step derivation
                      1. Applied rewrites99.8%

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

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

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

                        if -1.5000000000000001e-90 < t1 < 6.5e-44

                        1. Initial program 79.4%

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

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

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

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

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

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

                            \[\leadsto \color{blue}{v \cdot \frac{-t1}{\mathsf{fma}\left(u, u, \mathsf{fma}\left(u, t1, \left(u - t1\right) \cdot t1\right)\right)}} \]
                          6. lower-/.f6474.3

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

                            \[\leadsto v \cdot \frac{-t1}{\color{blue}{u \cdot u + \mathsf{fma}\left(u, t1, \left(u - t1\right) \cdot t1\right)}} \]
                          8. lift-fma.f64N/A

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

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

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

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

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

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

                            \[\leadsto v \cdot \frac{-t1}{\mathsf{fma}\left(\color{blue}{u + t1}, u, \left(u - t1\right) \cdot t1\right)} \]
                          15. lift-+.f6473.0

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

                          \[\leadsto \color{blue}{v \cdot \frac{-t1}{\mathsf{fma}\left(u + t1, u, \left(u - t1\right) \cdot t1\right)}} \]
                        6. Taylor expanded in u around inf

                          \[\leadsto v \cdot \color{blue}{\left(-1 \cdot \frac{t1}{{u}^{2}}\right)} \]
                        7. Step-by-step derivation
                          1. associate-*r/N/A

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

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

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

                            \[\leadsto v \cdot \frac{\color{blue}{-t1}}{{u}^{2}} \]
                          5. unpow2N/A

                            \[\leadsto v \cdot \frac{-t1}{\color{blue}{u \cdot u}} \]
                          6. lower-*.f6474.6

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

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

                        \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -1.5 \cdot 10^{-90} \lor \neg \left(t1 \leq 6.5 \cdot 10^{-44}\right):\\ \;\;\;\;\frac{-v}{u + t1}\\ \mathbf{else}:\\ \;\;\;\;v \cdot \frac{-t1}{u \cdot u}\\ \end{array} \]
                      6. Add Preprocessing

                      Alternative 9: 77.2% accurate, 0.8× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t1 \leq -1.5 \cdot 10^{-90} \lor \neg \left(t1 \leq 6.5 \cdot 10^{-44}\right):\\ \;\;\;\;\frac{-v}{u + t1}\\ \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.5e-90) (not (<= t1 6.5e-44)))
                         (/ (- v) (+ u t1))
                         (* (- t1) (/ v (* u u)))))
                      double code(double u, double v, double t1) {
                      	double tmp;
                      	if ((t1 <= -1.5e-90) || !(t1 <= 6.5e-44)) {
                      		tmp = -v / (u + t1);
                      	} 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.5d-90)) .or. (.not. (t1 <= 6.5d-44))) then
                              tmp = -v / (u + t1)
                          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.5e-90) || !(t1 <= 6.5e-44)) {
                      		tmp = -v / (u + t1);
                      	} else {
                      		tmp = -t1 * (v / (u * u));
                      	}
                      	return tmp;
                      }
                      
                      def code(u, v, t1):
                      	tmp = 0
                      	if (t1 <= -1.5e-90) or not (t1 <= 6.5e-44):
                      		tmp = -v / (u + t1)
                      	else:
                      		tmp = -t1 * (v / (u * u))
                      	return tmp
                      
                      function code(u, v, t1)
                      	tmp = 0.0
                      	if ((t1 <= -1.5e-90) || !(t1 <= 6.5e-44))
                      		tmp = Float64(Float64(-v) / Float64(u + t1));
                      	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.5e-90) || ~((t1 <= 6.5e-44)))
                      		tmp = -v / (u + t1);
                      	else
                      		tmp = -t1 * (v / (u * u));
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[u_, v_, t1_] := If[Or[LessEqual[t1, -1.5e-90], N[Not[LessEqual[t1, 6.5e-44]], $MachinePrecision]], N[((-v) / N[(u + t1), $MachinePrecision]), $MachinePrecision], N[((-t1) * N[(v / N[(u * u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;t1 \leq -1.5 \cdot 10^{-90} \lor \neg \left(t1 \leq 6.5 \cdot 10^{-44}\right):\\
                      \;\;\;\;\frac{-v}{u + t1}\\
                      
                      \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.5000000000000001e-90 or 6.5e-44 < t1

                        1. Initial program 69.5%

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{v}{{\color{blue}{\left(u + t1\right)}}^{2}} \cdot \left(\mathsf{neg}\left(t1\right)\right) \]
                          10. lower-neg.f6469.6

                            \[\leadsto \frac{v}{{\left(u + t1\right)}^{2}} \cdot \color{blue}{\left(-t1\right)} \]
                        5. Applied rewrites69.6%

                          \[\leadsto \color{blue}{\frac{v}{{\left(u + t1\right)}^{2}} \cdot \left(-t1\right)} \]
                        6. Step-by-step derivation
                          1. Applied rewrites99.8%

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

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

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

                            if -1.5000000000000001e-90 < t1 < 6.5e-44

                            1. Initial program 79.4%

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{u \cdot u}} \]
                          4. Recombined 2 regimes into one program.
                          5. Final simplification75.4%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -1.5 \cdot 10^{-90} \lor \neg \left(t1 \leq 6.5 \cdot 10^{-44}\right):\\ \;\;\;\;\frac{-v}{u + t1}\\ \mathbf{else}:\\ \;\;\;\;\left(-t1\right) \cdot \frac{v}{u \cdot u}\\ \end{array} \]
                          6. Add Preprocessing

                          Alternative 10: 98.2% accurate, 0.8× speedup?

                          \[\begin{array}{l} \\ \frac{t1 \cdot \frac{v}{u + t1}}{\left(-u\right) - t1} \end{array} \]
                          (FPCore (u v t1) :precision binary64 (/ (* t1 (/ v (+ u t1))) (- (- u) t1)))
                          double code(double u, double v, double t1) {
                          	return (t1 * (v / (u + t1))) / (-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 * (v / (u + t1))) / (-u - t1)
                          end function
                          
                          public static double code(double u, double v, double t1) {
                          	return (t1 * (v / (u + t1))) / (-u - t1);
                          }
                          
                          def code(u, v, t1):
                          	return (t1 * (v / (u + t1))) / (-u - t1)
                          
                          function code(u, v, t1)
                          	return Float64(Float64(t1 * Float64(v / Float64(u + t1))) / Float64(Float64(-u) - t1))
                          end
                          
                          function tmp = code(u, v, t1)
                          	tmp = (t1 * (v / (u + t1))) / (-u - t1);
                          end
                          
                          code[u_, v_, t1_] := N[(N[(t1 * N[(v / N[(u + t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[((-u) - t1), $MachinePrecision]), $MachinePrecision]
                          
                          \begin{array}{l}
                          
                          \\
                          \frac{t1 \cdot \frac{v}{u + t1}}{\left(-u\right) - t1}
                          \end{array}
                          
                          Derivation
                          1. Initial program 73.3%

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \frac{v}{{\color{blue}{\left(u + t1\right)}}^{2}} \cdot \left(\mathsf{neg}\left(t1\right)\right) \]
                            10. lower-neg.f6472.0

                              \[\leadsto \frac{v}{{\left(u + t1\right)}^{2}} \cdot \color{blue}{\left(-t1\right)} \]
                          5. Applied rewrites72.0%

                            \[\leadsto \color{blue}{\frac{v}{{\left(u + t1\right)}^{2}} \cdot \left(-t1\right)} \]
                          6. Step-by-step derivation
                            1. Applied rewrites98.7%

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

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

                            Alternative 11: 60.4% accurate, 1.4× speedup?

                            \[\begin{array}{l} \\ \frac{-1 \cdot v}{\left(-u\right) + t1} \end{array} \]
                            (FPCore (u v t1) :precision binary64 (/ (* -1.0 v) (+ (- u) t1)))
                            double code(double u, double v, double t1) {
                            	return (-1.0 * 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 = ((-1.0d0) * v) / (-u + t1)
                            end function
                            
                            public static double code(double u, double v, double t1) {
                            	return (-1.0 * v) / (-u + t1);
                            }
                            
                            def code(u, v, t1):
                            	return (-1.0 * v) / (-u + t1)
                            
                            function code(u, v, t1)
                            	return Float64(Float64(-1.0 * v) / Float64(Float64(-u) + t1))
                            end
                            
                            function tmp = code(u, v, t1)
                            	tmp = (-1.0 * v) / (-u + t1);
                            end
                            
                            code[u_, v_, t1_] := N[(N[(-1.0 * v), $MachinePrecision] / N[((-u) + t1), $MachinePrecision]), $MachinePrecision]
                            
                            \begin{array}{l}
                            
                            \\
                            \frac{-1 \cdot v}{\left(-u\right) + t1}
                            \end{array}
                            
                            Derivation
                            1. Initial program 73.3%

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

                              \[\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 rewrites58.4%

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

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

                              Alternative 12: 60.4% accurate, 1.8× speedup?

                              \[\begin{array}{l} \\ \frac{-v}{u + t1} \end{array} \]
                              (FPCore (u v t1) :precision binary64 (/ (- v) (+ u t1)))
                              double code(double u, double v, double t1) {
                              	return -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 = -v / (u + t1)
                              end function
                              
                              public static double code(double u, double v, double t1) {
                              	return -v / (u + t1);
                              }
                              
                              def code(u, v, t1):
                              	return -v / (u + t1)
                              
                              function code(u, v, t1)
                              	return Float64(Float64(-v) / Float64(u + t1))
                              end
                              
                              function tmp = code(u, v, t1)
                              	tmp = -v / (u + t1);
                              end
                              
                              code[u_, v_, t1_] := N[((-v) / N[(u + t1), $MachinePrecision]), $MachinePrecision]
                              
                              \begin{array}{l}
                              
                              \\
                              \frac{-v}{u + t1}
                              \end{array}
                              
                              Derivation
                              1. Initial program 73.3%

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{v}{{\color{blue}{\left(u + t1\right)}}^{2}} \cdot \left(\mathsf{neg}\left(t1\right)\right) \]
                                10. lower-neg.f6472.0

                                  \[\leadsto \frac{v}{{\left(u + t1\right)}^{2}} \cdot \color{blue}{\left(-t1\right)} \]
                              5. Applied rewrites72.0%

                                \[\leadsto \color{blue}{\frac{v}{{\left(u + t1\right)}^{2}} \cdot \left(-t1\right)} \]
                              6. Step-by-step derivation
                                1. Applied rewrites98.7%

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

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

                                    \[\leadsto \frac{-v}{\color{blue}{u} + t1} \]
                                  2. Add Preprocessing

                                  Alternative 13: 53.1% 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.3%

                                    \[\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.f6452.2

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

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

                                  Alternative 14: 14.2% accurate, 2.5× 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(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.3%

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

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

                                    \[\leadsto \color{blue}{\frac{v}{t1}} \]
                                  5. Step-by-step derivation
                                    1. lower-/.f6415.9

                                      \[\leadsto \color{blue}{\frac{v}{t1}} \]
                                  6. Applied rewrites15.9%

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

                                  Reproduce

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