Rosa's DopplerBench

Percentage Accurate: 72.4% → 98.0%
Time: 7.4s
Alternatives: 16
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 16 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.8× speedup?

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

\\
\frac{\frac{t1}{u + t1} \cdot v}{\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. Step-by-step derivation
    1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\color{blue}{\left(-v\right)} \cdot \frac{t1}{t1 + u}}{t1 + u} \]
    14. lower-/.f6498.8

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

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

      \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{\color{blue}{u + t1}}}{t1 + u} \]
    17. lower-+.f6498.8

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

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

      \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{u + t1}}{\color{blue}{u + t1}} \]
    20. lower-+.f6498.8

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

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

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

Alternative 2: 81.6% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(-t1\right) \cdot v}{\left(u + t1\right) \cdot \left(u + t1\right)}\\ \mathbf{if}\;u \leq -5.5 \cdot 10^{+136}:\\ \;\;\;\;\frac{\frac{t1}{u}}{\frac{-u}{v}}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;u \leq 2.4 \cdot 10^{-136}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\frac{u}{t1}, 2, -1\right) \cdot v}{t1}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (u v t1)
 :precision binary64
 (let* ((t_1 (/ (* (- t1) v) (* (+ u t1) (+ u t1)))))
   (if (<= u -5.5e+136)
     (/ (/ t1 u) (/ (- u) v))
     (if (<= u -8e-137)
       t_1
       (if (<= u 2.4e-136) (/ (* (fma (/ u t1) 2.0 -1.0) v) t1) t_1)))))
double code(double u, double v, double t1) {
	double t_1 = (-t1 * v) / ((u + t1) * (u + t1));
	double tmp;
	if (u <= -5.5e+136) {
		tmp = (t1 / u) / (-u / v);
	} else if (u <= -8e-137) {
		tmp = t_1;
	} else if (u <= 2.4e-136) {
		tmp = (fma((u / t1), 2.0, -1.0) * v) / t1;
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(u, v, t1)
	t_1 = Float64(Float64(Float64(-t1) * v) / Float64(Float64(u + t1) * Float64(u + t1)))
	tmp = 0.0
	if (u <= -5.5e+136)
		tmp = Float64(Float64(t1 / u) / Float64(Float64(-u) / v));
	elseif (u <= -8e-137)
		tmp = t_1;
	elseif (u <= 2.4e-136)
		tmp = Float64(Float64(fma(Float64(u / t1), 2.0, -1.0) * v) / t1);
	else
		tmp = t_1;
	end
	return tmp
end
code[u_, v_, t1_] := Block[{t$95$1 = N[(N[((-t1) * v), $MachinePrecision] / N[(N[(u + t1), $MachinePrecision] * N[(u + t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[u, -5.5e+136], N[(N[(t1 / u), $MachinePrecision] / N[((-u) / v), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, -8e-137], t$95$1, If[LessEqual[u, 2.4e-136], N[(N[(N[(N[(u / t1), $MachinePrecision] * 2.0 + -1.0), $MachinePrecision] * v), $MachinePrecision] / t1), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

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

\mathbf{elif}\;u \leq -8 \cdot 10^{-137}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;u \leq 2.4 \cdot 10^{-136}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\frac{u}{t1}, 2, -1\right) \cdot v}{t1}\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if u < -5.50000000000000039e136

    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. distribute-neg-frac2N/A

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

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

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

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

        \[\leadsto \color{blue}{\frac{t1}{-1 \cdot u} \cdot \frac{v}{u}} \]
      7. neg-mul-1N/A

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

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

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

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

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

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

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

      if -5.50000000000000039e136 < u < -7.99999999999999982e-137 or 2.3999999999999999e-136 < 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 < 2.3999999999999999e-136

      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. +-commutativeN/A

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

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

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

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

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

          \[\leadsto \color{blue}{\frac{2 \cdot \frac{u \cdot v}{t1}}{t1}} - \frac{v}{t1} \]
        7. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\mathsf{fma}\left(\frac{v}{t1} \cdot u, 2, \color{blue}{\mathsf{neg}\left(v\right)}\right)}{t1} \]
        20. 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 0

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

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

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

      Alternative 3: 81.8% accurate, 0.6× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(-t1\right) \cdot v}{\left(u + t1\right) \cdot \left(u + t1\right)}\\ \mathbf{if}\;u \leq -5.5 \cdot 10^{+136}:\\ \;\;\;\;\left(\frac{v}{u} \cdot t1\right) \cdot \frac{-1}{u}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;u \leq 2.4 \cdot 10^{-136}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\frac{u}{t1}, 2, -1\right) \cdot v}{t1}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (u v t1)
       :precision binary64
       (let* ((t_1 (/ (* (- t1) v) (* (+ u t1) (+ u t1)))))
         (if (<= u -5.5e+136)
           (* (* (/ v u) t1) (/ -1.0 u))
           (if (<= u -8e-137)
             t_1
             (if (<= u 2.4e-136) (/ (* (fma (/ u t1) 2.0 -1.0) v) t1) t_1)))))
      double code(double u, double v, double t1) {
      	double t_1 = (-t1 * v) / ((u + t1) * (u + t1));
      	double tmp;
      	if (u <= -5.5e+136) {
      		tmp = ((v / u) * t1) * (-1.0 / u);
      	} else if (u <= -8e-137) {
      		tmp = t_1;
      	} else if (u <= 2.4e-136) {
      		tmp = (fma((u / t1), 2.0, -1.0) * v) / t1;
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(u, v, t1)
      	t_1 = Float64(Float64(Float64(-t1) * v) / Float64(Float64(u + t1) * Float64(u + t1)))
      	tmp = 0.0
      	if (u <= -5.5e+136)
      		tmp = Float64(Float64(Float64(v / u) * t1) * Float64(-1.0 / u));
      	elseif (u <= -8e-137)
      		tmp = t_1;
      	elseif (u <= 2.4e-136)
      		tmp = Float64(Float64(fma(Float64(u / t1), 2.0, -1.0) * v) / t1);
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[u_, v_, t1_] := Block[{t$95$1 = N[(N[((-t1) * v), $MachinePrecision] / N[(N[(u + t1), $MachinePrecision] * N[(u + t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[u, -5.5e+136], N[(N[(N[(v / u), $MachinePrecision] * t1), $MachinePrecision] * N[(-1.0 / u), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, -8e-137], t$95$1, If[LessEqual[u, 2.4e-136], N[(N[(N[(N[(u / t1), $MachinePrecision] * 2.0 + -1.0), $MachinePrecision] * v), $MachinePrecision] / t1), $MachinePrecision], t$95$1]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{\left(-t1\right) \cdot v}{\left(u + t1\right) \cdot \left(u + t1\right)}\\
      \mathbf{if}\;u \leq -5.5 \cdot 10^{+136}:\\
      \;\;\;\;\left(\frac{v}{u} \cdot t1\right) \cdot \frac{-1}{u}\\
      
      \mathbf{elif}\;u \leq -8 \cdot 10^{-137}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;u \leq 2.4 \cdot 10^{-136}:\\
      \;\;\;\;\frac{\mathsf{fma}\left(\frac{u}{t1}, 2, -1\right) \cdot v}{t1}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if u < -5.50000000000000039e136

        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. distribute-neg-frac2N/A

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

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

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

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

            \[\leadsto \color{blue}{\frac{t1}{-1 \cdot u} \cdot \frac{v}{u}} \]
          7. neg-mul-1N/A

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

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

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

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

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

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

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

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

            if -5.50000000000000039e136 < u < -7.99999999999999982e-137 or 2.3999999999999999e-136 < 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 < 2.3999999999999999e-136

            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. +-commutativeN/A

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

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

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

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

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

                \[\leadsto \color{blue}{\frac{2 \cdot \frac{u \cdot v}{t1}}{t1}} - \frac{v}{t1} \]
              7. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{\mathsf{fma}\left(\frac{v}{t1} \cdot u, 2, \color{blue}{\mathsf{neg}\left(v\right)}\right)}{t1} \]
              20. 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 0

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

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

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

            Alternative 4: 82.1% accurate, 0.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(-t1\right) \cdot v}{\left(u + t1\right) \cdot \left(u + t1\right)}\\ \mathbf{if}\;u \leq -5.5 \cdot 10^{+136}:\\ \;\;\;\;\left(\frac{v}{u} \cdot t1\right) \cdot \frac{-1}{u}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;u \leq 7.5 \cdot 10^{-134}:\\ \;\;\;\;\frac{-v}{t1}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (u v t1)
             :precision binary64
             (let* ((t_1 (/ (* (- t1) v) (* (+ u t1) (+ u t1)))))
               (if (<= u -5.5e+136)
                 (* (* (/ v u) t1) (/ -1.0 u))
                 (if (<= u -8e-137) t_1 (if (<= u 7.5e-134) (/ (- v) t1) t_1)))))
            double code(double u, double v, double t1) {
            	double t_1 = (-t1 * v) / ((u + t1) * (u + t1));
            	double tmp;
            	if (u <= -5.5e+136) {
            		tmp = ((v / u) * t1) * (-1.0 / u);
            	} else if (u <= -8e-137) {
            		tmp = t_1;
            	} else if (u <= 7.5e-134) {
            		tmp = -v / t1;
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            real(8) function code(u, v, t1)
                real(8), intent (in) :: u
                real(8), intent (in) :: v
                real(8), intent (in) :: t1
                real(8) :: t_1
                real(8) :: tmp
                t_1 = (-t1 * v) / ((u + t1) * (u + t1))
                if (u <= (-5.5d+136)) then
                    tmp = ((v / u) * t1) * ((-1.0d0) / u)
                else if (u <= (-8d-137)) then
                    tmp = t_1
                else if (u <= 7.5d-134) then
                    tmp = -v / t1
                else
                    tmp = t_1
                end if
                code = tmp
            end function
            
            public static double code(double u, double v, double t1) {
            	double t_1 = (-t1 * v) / ((u + t1) * (u + t1));
            	double tmp;
            	if (u <= -5.5e+136) {
            		tmp = ((v / u) * t1) * (-1.0 / u);
            	} else if (u <= -8e-137) {
            		tmp = t_1;
            	} else if (u <= 7.5e-134) {
            		tmp = -v / t1;
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            def code(u, v, t1):
            	t_1 = (-t1 * v) / ((u + t1) * (u + t1))
            	tmp = 0
            	if u <= -5.5e+136:
            		tmp = ((v / u) * t1) * (-1.0 / u)
            	elif u <= -8e-137:
            		tmp = t_1
            	elif u <= 7.5e-134:
            		tmp = -v / t1
            	else:
            		tmp = t_1
            	return tmp
            
            function code(u, v, t1)
            	t_1 = Float64(Float64(Float64(-t1) * v) / Float64(Float64(u + t1) * Float64(u + t1)))
            	tmp = 0.0
            	if (u <= -5.5e+136)
            		tmp = Float64(Float64(Float64(v / u) * t1) * Float64(-1.0 / u));
            	elseif (u <= -8e-137)
            		tmp = t_1;
            	elseif (u <= 7.5e-134)
            		tmp = Float64(Float64(-v) / t1);
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            function tmp_2 = code(u, v, t1)
            	t_1 = (-t1 * v) / ((u + t1) * (u + t1));
            	tmp = 0.0;
            	if (u <= -5.5e+136)
            		tmp = ((v / u) * t1) * (-1.0 / u);
            	elseif (u <= -8e-137)
            		tmp = t_1;
            	elseif (u <= 7.5e-134)
            		tmp = -v / t1;
            	else
            		tmp = t_1;
            	end
            	tmp_2 = tmp;
            end
            
            code[u_, v_, t1_] := Block[{t$95$1 = N[(N[((-t1) * v), $MachinePrecision] / N[(N[(u + t1), $MachinePrecision] * N[(u + t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[u, -5.5e+136], N[(N[(N[(v / u), $MachinePrecision] * t1), $MachinePrecision] * N[(-1.0 / u), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, -8e-137], t$95$1, If[LessEqual[u, 7.5e-134], N[((-v) / t1), $MachinePrecision], t$95$1]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \frac{\left(-t1\right) \cdot v}{\left(u + t1\right) \cdot \left(u + t1\right)}\\
            \mathbf{if}\;u \leq -5.5 \cdot 10^{+136}:\\
            \;\;\;\;\left(\frac{v}{u} \cdot t1\right) \cdot \frac{-1}{u}\\
            
            \mathbf{elif}\;u \leq -8 \cdot 10^{-137}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;u \leq 7.5 \cdot 10^{-134}:\\
            \;\;\;\;\frac{-v}{t1}\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if u < -5.50000000000000039e136

              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. distribute-neg-frac2N/A

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

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

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

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

                  \[\leadsto \color{blue}{\frac{t1}{-1 \cdot u} \cdot \frac{v}{u}} \]
                7. neg-mul-1N/A

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

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

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

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

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

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

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

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

                  if -5.50000000000000039e136 < u < -7.99999999999999982e-137 or 7.50000000000000048e-134 < 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 < 7.50000000000000048e-134

                  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 -5.5 \cdot 10^{+136}:\\ \;\;\;\;\left(\frac{v}{u} \cdot t1\right) \cdot \frac{-1}{u}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137}:\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(u + t1\right) \cdot \left(u + t1\right)}\\ \mathbf{elif}\;u \leq 7.5 \cdot 10^{-134}:\\ \;\;\;\;\frac{-v}{t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(u + t1\right) \cdot \left(u + t1\right)}\\ \end{array} \]
                5. Add Preprocessing

                Alternative 5: 82.1% accurate, 0.6× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(-t1\right) \cdot v}{\left(u + t1\right) \cdot \left(u + t1\right)}\\ \mathbf{if}\;u \leq -5.5 \cdot 10^{+136}:\\ \;\;\;\;\frac{\frac{v}{u} \cdot t1}{-u}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;u \leq 7.5 \cdot 10^{-134}:\\ \;\;\;\;\frac{-v}{t1}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (u v t1)
                 :precision binary64
                 (let* ((t_1 (/ (* (- t1) v) (* (+ u t1) (+ u t1)))))
                   (if (<= u -5.5e+136)
                     (/ (* (/ v u) t1) (- u))
                     (if (<= u -8e-137) t_1 (if (<= u 7.5e-134) (/ (- v) t1) t_1)))))
                double code(double u, double v, double t1) {
                	double t_1 = (-t1 * v) / ((u + t1) * (u + t1));
                	double tmp;
                	if (u <= -5.5e+136) {
                		tmp = ((v / u) * t1) / -u;
                	} else if (u <= -8e-137) {
                		tmp = t_1;
                	} else if (u <= 7.5e-134) {
                		tmp = -v / t1;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                real(8) function code(u, v, t1)
                    real(8), intent (in) :: u
                    real(8), intent (in) :: v
                    real(8), intent (in) :: t1
                    real(8) :: t_1
                    real(8) :: tmp
                    t_1 = (-t1 * v) / ((u + t1) * (u + t1))
                    if (u <= (-5.5d+136)) then
                        tmp = ((v / u) * t1) / -u
                    else if (u <= (-8d-137)) then
                        tmp = t_1
                    else if (u <= 7.5d-134) then
                        tmp = -v / t1
                    else
                        tmp = t_1
                    end if
                    code = tmp
                end function
                
                public static double code(double u, double v, double t1) {
                	double t_1 = (-t1 * v) / ((u + t1) * (u + t1));
                	double tmp;
                	if (u <= -5.5e+136) {
                		tmp = ((v / u) * t1) / -u;
                	} else if (u <= -8e-137) {
                		tmp = t_1;
                	} else if (u <= 7.5e-134) {
                		tmp = -v / t1;
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                def code(u, v, t1):
                	t_1 = (-t1 * v) / ((u + t1) * (u + t1))
                	tmp = 0
                	if u <= -5.5e+136:
                		tmp = ((v / u) * t1) / -u
                	elif u <= -8e-137:
                		tmp = t_1
                	elif u <= 7.5e-134:
                		tmp = -v / t1
                	else:
                		tmp = t_1
                	return tmp
                
                function code(u, v, t1)
                	t_1 = Float64(Float64(Float64(-t1) * v) / Float64(Float64(u + t1) * Float64(u + t1)))
                	tmp = 0.0
                	if (u <= -5.5e+136)
                		tmp = Float64(Float64(Float64(v / u) * t1) / Float64(-u));
                	elseif (u <= -8e-137)
                		tmp = t_1;
                	elseif (u <= 7.5e-134)
                		tmp = Float64(Float64(-v) / t1);
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                function tmp_2 = code(u, v, t1)
                	t_1 = (-t1 * v) / ((u + t1) * (u + t1));
                	tmp = 0.0;
                	if (u <= -5.5e+136)
                		tmp = ((v / u) * t1) / -u;
                	elseif (u <= -8e-137)
                		tmp = t_1;
                	elseif (u <= 7.5e-134)
                		tmp = -v / t1;
                	else
                		tmp = t_1;
                	end
                	tmp_2 = tmp;
                end
                
                code[u_, v_, t1_] := Block[{t$95$1 = N[(N[((-t1) * v), $MachinePrecision] / N[(N[(u + t1), $MachinePrecision] * N[(u + t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[u, -5.5e+136], N[(N[(N[(v / u), $MachinePrecision] * t1), $MachinePrecision] / (-u)), $MachinePrecision], If[LessEqual[u, -8e-137], t$95$1, If[LessEqual[u, 7.5e-134], N[((-v) / t1), $MachinePrecision], t$95$1]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \frac{\left(-t1\right) \cdot v}{\left(u + t1\right) \cdot \left(u + t1\right)}\\
                \mathbf{if}\;u \leq -5.5 \cdot 10^{+136}:\\
                \;\;\;\;\frac{\frac{v}{u} \cdot t1}{-u}\\
                
                \mathbf{elif}\;u \leq -8 \cdot 10^{-137}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;u \leq 7.5 \cdot 10^{-134}:\\
                \;\;\;\;\frac{-v}{t1}\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if u < -5.50000000000000039e136

                  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. distribute-neg-frac2N/A

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

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

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

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

                      \[\leadsto \color{blue}{\frac{t1}{-1 \cdot u} \cdot \frac{v}{u}} \]
                    7. neg-mul-1N/A

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

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

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

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

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

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

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

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

                      if -5.50000000000000039e136 < u < -7.99999999999999982e-137 or 7.50000000000000048e-134 < 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 < 7.50000000000000048e-134

                      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 -5.5 \cdot 10^{+136}:\\ \;\;\;\;\frac{\frac{v}{u} \cdot t1}{-u}\\ \mathbf{elif}\;u \leq -8 \cdot 10^{-137}:\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(u + t1\right) \cdot \left(u + t1\right)}\\ \mathbf{elif}\;u \leq 7.5 \cdot 10^{-134}:\\ \;\;\;\;\frac{-v}{t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{\left(u + t1\right) \cdot \left(u + t1\right)}\\ \end{array} \]
                    5. Add Preprocessing

                    Alternative 6: 90.3% accurate, 0.6× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t1 \leq -2.1 \cdot 10^{+167}:\\ \;\;\;\;\frac{-v}{u + t1}\\ \mathbf{elif}\;t1 \leq 2.6 \cdot 10^{+107}:\\ \;\;\;\;\frac{-t1}{\frac{u + t1}{v} \cdot \left(u + t1\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\frac{v}{t1} \cdot u, 2, -v\right)}{t1}\\ \end{array} \end{array} \]
                    (FPCore (u v t1)
                     :precision binary64
                     (if (<= t1 -2.1e+167)
                       (/ (- v) (+ u t1))
                       (if (<= t1 2.6e+107)
                         (/ (- t1) (* (/ (+ u t1) v) (+ u t1)))
                         (/ (fma (* (/ v t1) u) 2.0 (- v)) t1))))
                    double code(double u, double v, double t1) {
                    	double tmp;
                    	if (t1 <= -2.1e+167) {
                    		tmp = -v / (u + t1);
                    	} else if (t1 <= 2.6e+107) {
                    		tmp = -t1 / (((u + t1) / v) * (u + t1));
                    	} else {
                    		tmp = fma(((v / t1) * u), 2.0, -v) / t1;
                    	}
                    	return tmp;
                    }
                    
                    function code(u, v, t1)
                    	tmp = 0.0
                    	if (t1 <= -2.1e+167)
                    		tmp = Float64(Float64(-v) / Float64(u + t1));
                    	elseif (t1 <= 2.6e+107)
                    		tmp = Float64(Float64(-t1) / Float64(Float64(Float64(u + t1) / v) * Float64(u + t1)));
                    	else
                    		tmp = Float64(fma(Float64(Float64(v / t1) * u), 2.0, Float64(-v)) / t1);
                    	end
                    	return tmp
                    end
                    
                    code[u_, v_, t1_] := If[LessEqual[t1, -2.1e+167], N[((-v) / N[(u + t1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, 2.6e+107], N[((-t1) / N[(N[(N[(u + t1), $MachinePrecision] / v), $MachinePrecision] * N[(u + t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(v / t1), $MachinePrecision] * u), $MachinePrecision] * 2.0 + (-v)), $MachinePrecision] / t1), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;t1 \leq -2.1 \cdot 10^{+167}:\\
                    \;\;\;\;\frac{-v}{u + t1}\\
                    
                    \mathbf{elif}\;t1 \leq 2.6 \cdot 10^{+107}:\\
                    \;\;\;\;\frac{-t1}{\frac{u + t1}{v} \cdot \left(u + t1\right)}\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;\frac{\mathsf{fma}\left(\frac{v}{t1} \cdot u, 2, -v\right)}{t1}\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if t1 < -2.0999999999999999e167

                      1. Initial program 41.8%

                        \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                      2. Add Preprocessing
                      3. Step-by-step derivation
                        1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{\color{blue}{\left(-v\right)} \cdot \frac{t1}{t1 + u}}{t1 + u} \]
                        14. lower-/.f6499.9

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

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

                          \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{\color{blue}{u + t1}}}{t1 + u} \]
                        17. lower-+.f6499.9

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

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

                          \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{u + t1}}{\color{blue}{u + t1}} \]
                        20. lower-+.f6499.9

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

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

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

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

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

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

                      if -2.0999999999999999e167 < t1 < 2.6000000000000001e107

                      1. Initial program 82.1%

                        \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                      2. Add Preprocessing
                      3. Step-by-step derivation
                        1. lift-/.f64N/A

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

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

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

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

                          \[\leadsto \color{blue}{\frac{v}{t1 + u} \cdot \frac{-t1}{t1 + u}} \]
                        6. clear-numN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \frac{t1}{\frac{u + t1}{v} \cdot \left(-\color{blue}{\left(u + t1\right)}\right)} \]
                        24. lower-+.f6488.3

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

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

                      if 2.6000000000000001e107 < 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. 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. +-commutativeN/A

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

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

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

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

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

                          \[\leadsto \color{blue}{\frac{2 \cdot \frac{u \cdot v}{t1}}{t1}} - \frac{v}{t1} \]
                        7. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -2.1 \cdot 10^{+167}:\\ \;\;\;\;\frac{-v}{u + t1}\\ \mathbf{elif}\;t1 \leq 2.6 \cdot 10^{+107}:\\ \;\;\;\;\frac{-t1}{\frac{u + t1}{v} \cdot \left(u + t1\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\mathsf{fma}\left(\frac{v}{t1} \cdot u, 2, -v\right)}{t1}\\ \end{array} \]
                    5. Add Preprocessing

                    Alternative 7: 78.5% accurate, 0.7× speedup?

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

                      1. Initial program 74.5%

                        \[\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. distribute-neg-frac2N/A

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

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

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

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

                          \[\leadsto \color{blue}{\frac{t1}{-1 \cdot u} \cdot \frac{v}{u}} \]
                        7. neg-mul-1N/A

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

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

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

                          \[\leadsto \frac{t1}{\color{blue}{-u}} \cdot \frac{v}{u} \]
                        11. lower-/.f6480.3

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

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

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

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

                          if -0.165000000000000008 < u < 4.5e-13

                          1. Initial program 65.5%

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

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

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

                          if 4.5e-13 < u

                          1. Initial program 84.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. distribute-neg-frac2N/A

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

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

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

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

                              \[\leadsto \color{blue}{\frac{t1}{-1 \cdot u} \cdot \frac{v}{u}} \]
                            7. neg-mul-1N/A

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

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

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

                              \[\leadsto \frac{t1}{\color{blue}{-u}} \cdot \frac{v}{u} \]
                            11. lower-/.f6479.3

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

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

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

                          Alternative 8: 78.0% accurate, 0.7× speedup?

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

                            1. Initial program 74.5%

                              \[\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. distribute-neg-frac2N/A

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

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

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

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

                                \[\leadsto \color{blue}{\frac{t1}{-1 \cdot u} \cdot \frac{v}{u}} \]
                              7. neg-mul-1N/A

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

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

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

                                \[\leadsto \frac{t1}{\color{blue}{-u}} \cdot \frac{v}{u} \]
                              11. lower-/.f6480.3

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

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

                            if -0.165000000000000008 < u < 4.5e-13

                            1. Initial program 65.5%

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

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

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

                            if 4.5e-13 < u

                            1. Initial program 84.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. distribute-neg-frac2N/A

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

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

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

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

                                \[\leadsto \color{blue}{\frac{t1}{-1 \cdot u} \cdot \frac{v}{u}} \]
                              7. neg-mul-1N/A

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

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

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

                                \[\leadsto \frac{t1}{\color{blue}{-u}} \cdot \frac{v}{u} \]
                              11. lower-/.f6479.3

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

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

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

                              \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq -0.165:\\ \;\;\;\;\frac{-v}{u} \cdot \frac{t1}{u}\\ \mathbf{elif}\;u \leq 4.5 \cdot 10^{-13}:\\ \;\;\;\;\frac{-v}{t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{-t1}{\frac{u}{v} \cdot u}\\ \end{array} \]
                            9. Add Preprocessing

                            Alternative 9: 79.4% accurate, 0.7× speedup?

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

                              1. Initial program 70.1%

                                \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                              2. Add Preprocessing
                              3. Step-by-step derivation
                                1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{\left(-v\right)} \cdot \frac{t1}{t1 + u}}{t1 + u} \]
                                14. lower-/.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{\color{blue}{u + t1}}}{t1 + u} \]
                                17. lower-+.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{u + t1}}{\color{blue}{u + t1}} \]
                                20. lower-+.f6499.8

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{-v}}{u + t1} \]
                              7. Applied rewrites74.9%

                                \[\leadsto \frac{\color{blue}{-v}}{u + t1} \]
                              8. Step-by-step derivation
                                1. lift-/.f64N/A

                                  \[\leadsto \color{blue}{\frac{-v}{u + t1}} \]
                                2. clear-numN/A

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

                                  \[\leadsto \color{blue}{\frac{1}{\frac{u + t1}{-v}}} \]
                                4. lower-/.f6475.1

                                  \[\leadsto \frac{1}{\color{blue}{\frac{u + t1}{-v}}} \]
                              9. Applied rewrites75.1%

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

                              if -4.5999999999999996e-90 < t1 < 1.90000000000000009e-42

                              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 \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. distribute-neg-frac2N/A

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

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

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

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

                                  \[\leadsto \color{blue}{\frac{t1}{-1 \cdot u} \cdot \frac{v}{u}} \]
                                7. neg-mul-1N/A

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

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

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

                                  \[\leadsto \frac{t1}{\color{blue}{-u}} \cdot \frac{v}{u} \]
                                11. lower-/.f6479.3

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

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

                              if 1.90000000000000009e-42 < t1

                              1. Initial program 68.9%

                                \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                              2. Add Preprocessing
                              3. Step-by-step derivation
                                1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{\left(-v\right)} \cdot \frac{t1}{t1 + u}}{t1 + u} \]
                                14. lower-/.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{\color{blue}{u + t1}}}{t1 + u} \]
                                17. lower-+.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{u + t1}}{\color{blue}{u + t1}} \]
                                20. lower-+.f6499.8

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{-v}}{u + t1} \]
                              7. Applied rewrites80.6%

                                \[\leadsto \frac{\color{blue}{-v}}{u + t1} \]
                            3. Recombined 3 regimes into one program.
                            4. Final simplification78.2%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -4.6 \cdot 10^{-90}:\\ \;\;\;\;\frac{1}{\frac{u + t1}{-v}}\\ \mathbf{elif}\;t1 \leq 1.9 \cdot 10^{-42}:\\ \;\;\;\;\frac{-v}{u} \cdot \frac{t1}{u}\\ \mathbf{else}:\\ \;\;\;\;\frac{-v}{u + t1}\\ \end{array} \]
                            5. Add Preprocessing

                            Alternative 10: 77.0% accurate, 0.8× speedup?

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

                              1. Initial program 70.1%

                                \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                              2. Add Preprocessing
                              3. Step-by-step derivation
                                1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{\left(-v\right)} \cdot \frac{t1}{t1 + u}}{t1 + u} \]
                                14. lower-/.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{\color{blue}{u + t1}}}{t1 + u} \]
                                17. lower-+.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{u + t1}}{\color{blue}{u + t1}} \]
                                20. lower-+.f6499.8

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{-v}}{u + t1} \]
                              7. Applied rewrites74.9%

                                \[\leadsto \frac{\color{blue}{-v}}{u + t1} \]
                              8. Step-by-step derivation
                                1. lift-/.f64N/A

                                  \[\leadsto \color{blue}{\frac{-v}{u + t1}} \]
                                2. clear-numN/A

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

                                  \[\leadsto \color{blue}{\frac{1}{\frac{u + t1}{-v}}} \]
                                4. lower-/.f6475.1

                                  \[\leadsto \frac{1}{\color{blue}{\frac{u + t1}{-v}}} \]
                              9. Applied rewrites75.1%

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

                              if -4.5999999999999996e-90 < t1 < 1.8000000000000001e-42

                              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}} \]

                              if 1.8000000000000001e-42 < t1

                              1. Initial program 68.9%

                                \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                              2. Add Preprocessing
                              3. Step-by-step derivation
                                1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{\left(-v\right)} \cdot \frac{t1}{t1 + u}}{t1 + u} \]
                                14. lower-/.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{\color{blue}{u + t1}}}{t1 + u} \]
                                17. lower-+.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{u + t1}}{\color{blue}{u + t1}} \]
                                20. lower-+.f6499.8

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{-v}}{u + t1} \]
                              7. Applied rewrites80.6%

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

                            Alternative 11: 77.1% accurate, 0.8× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{-v}{u + t1}\\ \mathbf{if}\;t1 \leq -4.6 \cdot 10^{-90}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t1 \leq 1.8 \cdot 10^{-42}:\\ \;\;\;\;\frac{\left(-t1\right) \cdot v}{u \cdot u}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (u v t1)
                             :precision binary64
                             (let* ((t_1 (/ (- v) (+ u t1))))
                               (if (<= t1 -4.6e-90)
                                 t_1
                                 (if (<= t1 1.8e-42) (/ (* (- t1) v) (* u u)) t_1))))
                            double code(double u, double v, double t1) {
                            	double t_1 = -v / (u + t1);
                            	double tmp;
                            	if (t1 <= -4.6e-90) {
                            		tmp = t_1;
                            	} else if (t1 <= 1.8e-42) {
                            		tmp = (-t1 * v) / (u * u);
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            real(8) function code(u, v, t1)
                                real(8), intent (in) :: u
                                real(8), intent (in) :: v
                                real(8), intent (in) :: t1
                                real(8) :: t_1
                                real(8) :: tmp
                                t_1 = -v / (u + t1)
                                if (t1 <= (-4.6d-90)) then
                                    tmp = t_1
                                else if (t1 <= 1.8d-42) then
                                    tmp = (-t1 * v) / (u * u)
                                else
                                    tmp = t_1
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double u, double v, double t1) {
                            	double t_1 = -v / (u + t1);
                            	double tmp;
                            	if (t1 <= -4.6e-90) {
                            		tmp = t_1;
                            	} else if (t1 <= 1.8e-42) {
                            		tmp = (-t1 * v) / (u * u);
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            def code(u, v, t1):
                            	t_1 = -v / (u + t1)
                            	tmp = 0
                            	if t1 <= -4.6e-90:
                            		tmp = t_1
                            	elif t1 <= 1.8e-42:
                            		tmp = (-t1 * v) / (u * u)
                            	else:
                            		tmp = t_1
                            	return tmp
                            
                            function code(u, v, t1)
                            	t_1 = Float64(Float64(-v) / Float64(u + t1))
                            	tmp = 0.0
                            	if (t1 <= -4.6e-90)
                            		tmp = t_1;
                            	elseif (t1 <= 1.8e-42)
                            		tmp = Float64(Float64(Float64(-t1) * v) / Float64(u * u));
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(u, v, t1)
                            	t_1 = -v / (u + t1);
                            	tmp = 0.0;
                            	if (t1 <= -4.6e-90)
                            		tmp = t_1;
                            	elseif (t1 <= 1.8e-42)
                            		tmp = (-t1 * v) / (u * u);
                            	else
                            		tmp = t_1;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[u_, v_, t1_] := Block[{t$95$1 = N[((-v) / N[(u + t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -4.6e-90], t$95$1, If[LessEqual[t1, 1.8e-42], N[(N[((-t1) * v), $MachinePrecision] / N[(u * u), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \frac{-v}{u + t1}\\
                            \mathbf{if}\;t1 \leq -4.6 \cdot 10^{-90}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;t1 \leq 1.8 \cdot 10^{-42}:\\
                            \;\;\;\;\frac{\left(-t1\right) \cdot v}{u \cdot u}\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if t1 < -4.5999999999999996e-90 or 1.8000000000000001e-42 < 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. Step-by-step derivation
                                1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{\left(-v\right)} \cdot \frac{t1}{t1 + u}}{t1 + u} \]
                                14. lower-/.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{\color{blue}{u + t1}}}{t1 + u} \]
                                17. lower-+.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{u + t1}}{\color{blue}{u + t1}} \]
                                20. lower-+.f6499.8

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

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

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

                                  \[\leadsto \frac{\color{blue}{\mathsf{neg}\left(v\right)}}{u + t1} \]
                                2. lower-neg.f6477.5

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

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

                              if -4.5999999999999996e-90 < t1 < 1.8000000000000001e-42

                              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}} \]
                            3. Recombined 2 regimes into one program.
                            4. Add Preprocessing

                            Alternative 12: 76.7% accurate, 0.8× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{-v}{u + t1}\\ \mathbf{if}\;t1 \leq -4.6 \cdot 10^{-90}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t1 \leq 1.8 \cdot 10^{-42}:\\ \;\;\;\;\frac{-t1}{u \cdot u} \cdot v\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (u v t1)
                             :precision binary64
                             (let* ((t_1 (/ (- v) (+ u t1))))
                               (if (<= t1 -4.6e-90)
                                 t_1
                                 (if (<= t1 1.8e-42) (* (/ (- t1) (* u u)) v) t_1))))
                            double code(double u, double v, double t1) {
                            	double t_1 = -v / (u + t1);
                            	double tmp;
                            	if (t1 <= -4.6e-90) {
                            		tmp = t_1;
                            	} else if (t1 <= 1.8e-42) {
                            		tmp = (-t1 / (u * u)) * v;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            real(8) function code(u, v, t1)
                                real(8), intent (in) :: u
                                real(8), intent (in) :: v
                                real(8), intent (in) :: t1
                                real(8) :: t_1
                                real(8) :: tmp
                                t_1 = -v / (u + t1)
                                if (t1 <= (-4.6d-90)) then
                                    tmp = t_1
                                else if (t1 <= 1.8d-42) then
                                    tmp = (-t1 / (u * u)) * v
                                else
                                    tmp = t_1
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double u, double v, double t1) {
                            	double t_1 = -v / (u + t1);
                            	double tmp;
                            	if (t1 <= -4.6e-90) {
                            		tmp = t_1;
                            	} else if (t1 <= 1.8e-42) {
                            		tmp = (-t1 / (u * u)) * v;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            def code(u, v, t1):
                            	t_1 = -v / (u + t1)
                            	tmp = 0
                            	if t1 <= -4.6e-90:
                            		tmp = t_1
                            	elif t1 <= 1.8e-42:
                            		tmp = (-t1 / (u * u)) * v
                            	else:
                            		tmp = t_1
                            	return tmp
                            
                            function code(u, v, t1)
                            	t_1 = Float64(Float64(-v) / Float64(u + t1))
                            	tmp = 0.0
                            	if (t1 <= -4.6e-90)
                            		tmp = t_1;
                            	elseif (t1 <= 1.8e-42)
                            		tmp = Float64(Float64(Float64(-t1) / Float64(u * u)) * v);
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(u, v, t1)
                            	t_1 = -v / (u + t1);
                            	tmp = 0.0;
                            	if (t1 <= -4.6e-90)
                            		tmp = t_1;
                            	elseif (t1 <= 1.8e-42)
                            		tmp = (-t1 / (u * u)) * v;
                            	else
                            		tmp = t_1;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[u_, v_, t1_] := Block[{t$95$1 = N[((-v) / N[(u + t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -4.6e-90], t$95$1, If[LessEqual[t1, 1.8e-42], N[(N[((-t1) / N[(u * u), $MachinePrecision]), $MachinePrecision] * v), $MachinePrecision], t$95$1]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \frac{-v}{u + t1}\\
                            \mathbf{if}\;t1 \leq -4.6 \cdot 10^{-90}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;t1 \leq 1.8 \cdot 10^{-42}:\\
                            \;\;\;\;\frac{-t1}{u \cdot u} \cdot v\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if t1 < -4.5999999999999996e-90 or 1.8000000000000001e-42 < 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. Step-by-step derivation
                                1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{\left(-v\right)} \cdot \frac{t1}{t1 + u}}{t1 + u} \]
                                14. lower-/.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{\color{blue}{u + t1}}}{t1 + u} \]
                                17. lower-+.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{u + t1}}{\color{blue}{u + t1}} \]
                                20. lower-+.f6499.8

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

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

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

                                  \[\leadsto \frac{\color{blue}{\mathsf{neg}\left(v\right)}}{u + t1} \]
                                2. lower-neg.f6477.5

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

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

                              if -4.5999999999999996e-90 < t1 < 1.8000000000000001e-42

                              1. Initial program 79.4%

                                \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
                              2. Add Preprocessing
                              3. Step-by-step derivation
                                1. lift-*.f64N/A

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\left(-t1\right) \cdot v}{\mathsf{fma}\left(\color{blue}{u + t1}, u, \left(t1 + u\right) \cdot t1\right)} \]
                                9. lower-*.f6478.2

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

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

                                  \[\leadsto \frac{\left(-t1\right) \cdot v}{\mathsf{fma}\left(u + t1, u, \color{blue}{\left(u + t1\right)} \cdot t1\right)} \]
                                12. lower-+.f6478.2

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

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

                                \[\leadsto \frac{\left(-t1\right) \cdot v}{\color{blue}{{u}^{2}}} \]
                              6. 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}} \]
                              7. Applied rewrites74.8%

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

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

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

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

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

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

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

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

                              \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -4.6 \cdot 10^{-90}:\\ \;\;\;\;\frac{-v}{u + t1}\\ \mathbf{elif}\;t1 \leq 1.8 \cdot 10^{-42}:\\ \;\;\;\;\frac{-t1}{u \cdot u} \cdot v\\ \mathbf{else}:\\ \;\;\;\;\frac{-v}{u + t1}\\ \end{array} \]
                            5. Add Preprocessing

                            Alternative 13: 77.3% accurate, 0.8× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{-v}{u + t1}\\ \mathbf{if}\;t1 \leq -4.6 \cdot 10^{-90}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t1 \leq 1.8 \cdot 10^{-42}:\\ \;\;\;\;\frac{v}{\left(-u\right) \cdot u} \cdot t1\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (u v t1)
                             :precision binary64
                             (let* ((t_1 (/ (- v) (+ u t1))))
                               (if (<= t1 -4.6e-90)
                                 t_1
                                 (if (<= t1 1.8e-42) (* (/ v (* (- u) u)) t1) t_1))))
                            double code(double u, double v, double t1) {
                            	double t_1 = -v / (u + t1);
                            	double tmp;
                            	if (t1 <= -4.6e-90) {
                            		tmp = t_1;
                            	} else if (t1 <= 1.8e-42) {
                            		tmp = (v / (-u * u)) * t1;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            real(8) function code(u, v, t1)
                                real(8), intent (in) :: u
                                real(8), intent (in) :: v
                                real(8), intent (in) :: t1
                                real(8) :: t_1
                                real(8) :: tmp
                                t_1 = -v / (u + t1)
                                if (t1 <= (-4.6d-90)) then
                                    tmp = t_1
                                else if (t1 <= 1.8d-42) then
                                    tmp = (v / (-u * u)) * t1
                                else
                                    tmp = t_1
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double u, double v, double t1) {
                            	double t_1 = -v / (u + t1);
                            	double tmp;
                            	if (t1 <= -4.6e-90) {
                            		tmp = t_1;
                            	} else if (t1 <= 1.8e-42) {
                            		tmp = (v / (-u * u)) * t1;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            def code(u, v, t1):
                            	t_1 = -v / (u + t1)
                            	tmp = 0
                            	if t1 <= -4.6e-90:
                            		tmp = t_1
                            	elif t1 <= 1.8e-42:
                            		tmp = (v / (-u * u)) * t1
                            	else:
                            		tmp = t_1
                            	return tmp
                            
                            function code(u, v, t1)
                            	t_1 = Float64(Float64(-v) / Float64(u + t1))
                            	tmp = 0.0
                            	if (t1 <= -4.6e-90)
                            		tmp = t_1;
                            	elseif (t1 <= 1.8e-42)
                            		tmp = Float64(Float64(v / Float64(Float64(-u) * u)) * t1);
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(u, v, t1)
                            	t_1 = -v / (u + t1);
                            	tmp = 0.0;
                            	if (t1 <= -4.6e-90)
                            		tmp = t_1;
                            	elseif (t1 <= 1.8e-42)
                            		tmp = (v / (-u * u)) * t1;
                            	else
                            		tmp = t_1;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[u_, v_, t1_] := Block[{t$95$1 = N[((-v) / N[(u + t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -4.6e-90], t$95$1, If[LessEqual[t1, 1.8e-42], N[(N[(v / N[((-u) * u), $MachinePrecision]), $MachinePrecision] * t1), $MachinePrecision], t$95$1]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \frac{-v}{u + t1}\\
                            \mathbf{if}\;t1 \leq -4.6 \cdot 10^{-90}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;t1 \leq 1.8 \cdot 10^{-42}:\\
                            \;\;\;\;\frac{v}{\left(-u\right) \cdot u} \cdot t1\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if t1 < -4.5999999999999996e-90 or 1.8000000000000001e-42 < 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. Step-by-step derivation
                                1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{\left(-v\right)} \cdot \frac{t1}{t1 + u}}{t1 + u} \]
                                14. lower-/.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{\color{blue}{u + t1}}}{t1 + u} \]
                                17. lower-+.f6499.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{u + t1}}{\color{blue}{u + t1}} \]
                                20. lower-+.f6499.8

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

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

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

                                  \[\leadsto \frac{\color{blue}{\mathsf{neg}\left(v\right)}}{u + t1} \]
                                2. lower-neg.f6477.5

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

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

                              if -4.5999999999999996e-90 < t1 < 1.8000000000000001e-42

                              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 \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. distribute-neg-frac2N/A

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

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

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

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

                                  \[\leadsto \color{blue}{\frac{t1}{-1 \cdot u} \cdot \frac{v}{u}} \]
                                7. neg-mul-1N/A

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

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

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

                                  \[\leadsto \frac{t1}{\color{blue}{-u}} \cdot \frac{v}{u} \]
                                11. lower-/.f6479.3

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

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

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

                                \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -4.6 \cdot 10^{-90}:\\ \;\;\;\;\frac{-v}{u + t1}\\ \mathbf{elif}\;t1 \leq 1.8 \cdot 10^{-42}:\\ \;\;\;\;\frac{v}{\left(-u\right) \cdot u} \cdot t1\\ \mathbf{else}:\\ \;\;\;\;\frac{-v}{u + t1}\\ \end{array} \]
                              9. Add Preprocessing

                              Alternative 14: 98.2% accurate, 0.8× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{\left(-v\right)} \cdot \frac{t1}{t1 + u}}{t1 + u} \]
                                14. lower-/.f6498.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{\color{blue}{u + t1}}}{t1 + u} \]
                                17. lower-+.f6498.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{u + t1}}{\color{blue}{u + t1}} \]
                                20. lower-+.f6498.8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\left(-t1\right) \cdot \frac{v}{\color{blue}{u + t1}}}{u + t1} \]
                                15. lower-/.f6498.7

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

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

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

                              Alternative 15: 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. Step-by-step derivation
                                1. lift-/.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{\left(-v\right)} \cdot \frac{t1}{t1 + u}}{t1 + u} \]
                                14. lower-/.f6498.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{\color{blue}{u + t1}}}{t1 + u} \]
                                17. lower-+.f6498.8

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

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

                                  \[\leadsto \frac{\left(-v\right) \cdot \frac{t1}{u + t1}}{\color{blue}{u + t1}} \]
                                20. lower-+.f6498.8

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

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

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

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

                                  \[\leadsto \frac{\color{blue}{-v}}{u + t1} \]
                              7. Applied rewrites58.4%

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

                              Alternative 16: 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

                              Reproduce

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