Rosa's DopplerBench

Percentage Accurate: 72.6% → 98.3%
Time: 10.6s
Alternatives: 11
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 11 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 72.6% 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.3% accurate, 0.8× speedup?

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

\\
\frac{t1 \cdot \frac{v}{t1 + u}}{\left(-u\right) - t1}
\end{array}
Derivation
  1. Initial program 73.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{\frac{v}{t1 + u} \cdot t1}{\color{blue}{\mathsf{neg}\left(\left(t1 + u\right)\right)}} \]
    11. +-lowering-+.f6499.0

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

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

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

Alternative 2: 89.8% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := v \cdot \frac{-t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ t_2 := \frac{v}{u \cdot -2 - t1}\\ \mathbf{if}\;t1 \leq -5 \cdot 10^{+112}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t1 \leq -1.7 \cdot 10^{-150}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t1 \leq 2.2 \cdot 10^{-163}:\\ \;\;\;\;-\frac{t1 \cdot \frac{v}{u}}{u}\\ \mathbf{elif}\;t1 \leq 3.2 \cdot 10^{+72}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (u v t1)
 :precision binary64
 (let* ((t_1 (* v (/ (- t1) (* (+ t1 u) (+ t1 u)))))
        (t_2 (/ v (- (* u -2.0) t1))))
   (if (<= t1 -5e+112)
     t_2
     (if (<= t1 -1.7e-150)
       t_1
       (if (<= t1 2.2e-163)
         (- (/ (* t1 (/ v u)) u))
         (if (<= t1 3.2e+72) t_1 t_2))))))
double code(double u, double v, double t1) {
	double t_1 = v * (-t1 / ((t1 + u) * (t1 + u)));
	double t_2 = v / ((u * -2.0) - t1);
	double tmp;
	if (t1 <= -5e+112) {
		tmp = t_2;
	} else if (t1 <= -1.7e-150) {
		tmp = t_1;
	} else if (t1 <= 2.2e-163) {
		tmp = -((t1 * (v / u)) / u);
	} else if (t1 <= 3.2e+72) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	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) :: t_2
    real(8) :: tmp
    t_1 = v * (-t1 / ((t1 + u) * (t1 + u)))
    t_2 = v / ((u * (-2.0d0)) - t1)
    if (t1 <= (-5d+112)) then
        tmp = t_2
    else if (t1 <= (-1.7d-150)) then
        tmp = t_1
    else if (t1 <= 2.2d-163) then
        tmp = -((t1 * (v / u)) / u)
    else if (t1 <= 3.2d+72) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double u, double v, double t1) {
	double t_1 = v * (-t1 / ((t1 + u) * (t1 + u)));
	double t_2 = v / ((u * -2.0) - t1);
	double tmp;
	if (t1 <= -5e+112) {
		tmp = t_2;
	} else if (t1 <= -1.7e-150) {
		tmp = t_1;
	} else if (t1 <= 2.2e-163) {
		tmp = -((t1 * (v / u)) / u);
	} else if (t1 <= 3.2e+72) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(u, v, t1):
	t_1 = v * (-t1 / ((t1 + u) * (t1 + u)))
	t_2 = v / ((u * -2.0) - t1)
	tmp = 0
	if t1 <= -5e+112:
		tmp = t_2
	elif t1 <= -1.7e-150:
		tmp = t_1
	elif t1 <= 2.2e-163:
		tmp = -((t1 * (v / u)) / u)
	elif t1 <= 3.2e+72:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(u, v, t1)
	t_1 = Float64(v * Float64(Float64(-t1) / Float64(Float64(t1 + u) * Float64(t1 + u))))
	t_2 = Float64(v / Float64(Float64(u * -2.0) - t1))
	tmp = 0.0
	if (t1 <= -5e+112)
		tmp = t_2;
	elseif (t1 <= -1.7e-150)
		tmp = t_1;
	elseif (t1 <= 2.2e-163)
		tmp = Float64(-Float64(Float64(t1 * Float64(v / u)) / u));
	elseif (t1 <= 3.2e+72)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(u, v, t1)
	t_1 = v * (-t1 / ((t1 + u) * (t1 + u)));
	t_2 = v / ((u * -2.0) - t1);
	tmp = 0.0;
	if (t1 <= -5e+112)
		tmp = t_2;
	elseif (t1 <= -1.7e-150)
		tmp = t_1;
	elseif (t1 <= 2.2e-163)
		tmp = -((t1 * (v / u)) / u);
	elseif (t1 <= 3.2e+72)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[u_, v_, t1_] := Block[{t$95$1 = N[(v * N[((-t1) / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(v / N[(N[(u * -2.0), $MachinePrecision] - t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -5e+112], t$95$2, If[LessEqual[t1, -1.7e-150], t$95$1, If[LessEqual[t1, 2.2e-163], (-N[(N[(t1 * N[(v / u), $MachinePrecision]), $MachinePrecision] / u), $MachinePrecision]), If[LessEqual[t1, 3.2e+72], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := v \cdot \frac{-t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\
t_2 := \frac{v}{u \cdot -2 - t1}\\
\mathbf{if}\;t1 \leq -5 \cdot 10^{+112}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t1 \leq -1.7 \cdot 10^{-150}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;t1 \leq 3.2 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t1 < -5e112 or 3.2000000000000001e72 < t1

    1. Initial program 46.2%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{v}{t1 + u} \cdot t1}{\color{blue}{\mathsf{neg}\left(\left(t1 + u\right)\right)}} \]
      11. +-lowering-+.f6499.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\left(-1 - \frac{u}{t1}\right)}} \]
      21. /-lowering-/.f6496.5

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

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

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

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

        \[\leadsto \frac{v}{\color{blue}{-2 \cdot u - t1}} \]
      3. --lowering--.f64N/A

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

        \[\leadsto \frac{v}{\color{blue}{u \cdot -2} - t1} \]
      5. *-lowering-*.f6492.0

        \[\leadsto \frac{v}{\color{blue}{u \cdot -2} - t1} \]
    9. Simplified92.0%

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

    if -5e112 < t1 < -1.7e-150 or 2.20000000000000011e-163 < t1 < 3.2000000000000001e72

    1. Initial program 92.2%

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

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

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

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

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

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

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

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

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

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

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

    if -1.7e-150 < t1 < 2.20000000000000011e-163

    1. Initial program 77.6%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{\frac{v}{t1 + u} \cdot t1}{\color{blue}{\mathsf{neg}\left(\left(t1 + u\right)\right)}} \]
      11. +-lowering-+.f6497.0

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

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

      \[\leadsto \frac{\color{blue}{\frac{v}{u}} \cdot t1}{\mathsf{neg}\left(\left(t1 + u\right)\right)} \]
    6. Step-by-step derivation
      1. /-lowering-/.f6492.6

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

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

      \[\leadsto \frac{\frac{v}{u} \cdot t1}{\mathsf{neg}\left(\color{blue}{u}\right)} \]
    9. Step-by-step derivation
      1. Simplified92.6%

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -5 \cdot 10^{+112}:\\ \;\;\;\;\frac{v}{u \cdot -2 - t1}\\ \mathbf{elif}\;t1 \leq -1.7 \cdot 10^{-150}:\\ \;\;\;\;v \cdot \frac{-t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{elif}\;t1 \leq 2.2 \cdot 10^{-163}:\\ \;\;\;\;-\frac{t1 \cdot \frac{v}{u}}{u}\\ \mathbf{elif}\;t1 \leq 3.2 \cdot 10^{+72}:\\ \;\;\;\;v \cdot \frac{-t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{u \cdot -2 - t1}\\ \end{array} \]
    12. Add Preprocessing

    Alternative 3: 89.6% accurate, 0.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := v \cdot \frac{-t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ t_2 := \frac{v}{u \cdot -2 - t1}\\ \mathbf{if}\;t1 \leq -5.5 \cdot 10^{+112}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t1 \leq -3.25 \cdot 10^{-180}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t1 \leq 5 \cdot 10^{-164}:\\ \;\;\;\;\frac{v}{u} \cdot \frac{t1}{-u}\\ \mathbf{elif}\;t1 \leq 3.2 \cdot 10^{+72}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
    (FPCore (u v t1)
     :precision binary64
     (let* ((t_1 (* v (/ (- t1) (* (+ t1 u) (+ t1 u)))))
            (t_2 (/ v (- (* u -2.0) t1))))
       (if (<= t1 -5.5e+112)
         t_2
         (if (<= t1 -3.25e-180)
           t_1
           (if (<= t1 5e-164)
             (* (/ v u) (/ t1 (- u)))
             (if (<= t1 3.2e+72) t_1 t_2))))))
    double code(double u, double v, double t1) {
    	double t_1 = v * (-t1 / ((t1 + u) * (t1 + u)));
    	double t_2 = v / ((u * -2.0) - t1);
    	double tmp;
    	if (t1 <= -5.5e+112) {
    		tmp = t_2;
    	} else if (t1 <= -3.25e-180) {
    		tmp = t_1;
    	} else if (t1 <= 5e-164) {
    		tmp = (v / u) * (t1 / -u);
    	} else if (t1 <= 3.2e+72) {
    		tmp = t_1;
    	} else {
    		tmp = t_2;
    	}
    	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) :: t_2
        real(8) :: tmp
        t_1 = v * (-t1 / ((t1 + u) * (t1 + u)))
        t_2 = v / ((u * (-2.0d0)) - t1)
        if (t1 <= (-5.5d+112)) then
            tmp = t_2
        else if (t1 <= (-3.25d-180)) then
            tmp = t_1
        else if (t1 <= 5d-164) then
            tmp = (v / u) * (t1 / -u)
        else if (t1 <= 3.2d+72) then
            tmp = t_1
        else
            tmp = t_2
        end if
        code = tmp
    end function
    
    public static double code(double u, double v, double t1) {
    	double t_1 = v * (-t1 / ((t1 + u) * (t1 + u)));
    	double t_2 = v / ((u * -2.0) - t1);
    	double tmp;
    	if (t1 <= -5.5e+112) {
    		tmp = t_2;
    	} else if (t1 <= -3.25e-180) {
    		tmp = t_1;
    	} else if (t1 <= 5e-164) {
    		tmp = (v / u) * (t1 / -u);
    	} else if (t1 <= 3.2e+72) {
    		tmp = t_1;
    	} else {
    		tmp = t_2;
    	}
    	return tmp;
    }
    
    def code(u, v, t1):
    	t_1 = v * (-t1 / ((t1 + u) * (t1 + u)))
    	t_2 = v / ((u * -2.0) - t1)
    	tmp = 0
    	if t1 <= -5.5e+112:
    		tmp = t_2
    	elif t1 <= -3.25e-180:
    		tmp = t_1
    	elif t1 <= 5e-164:
    		tmp = (v / u) * (t1 / -u)
    	elif t1 <= 3.2e+72:
    		tmp = t_1
    	else:
    		tmp = t_2
    	return tmp
    
    function code(u, v, t1)
    	t_1 = Float64(v * Float64(Float64(-t1) / Float64(Float64(t1 + u) * Float64(t1 + u))))
    	t_2 = Float64(v / Float64(Float64(u * -2.0) - t1))
    	tmp = 0.0
    	if (t1 <= -5.5e+112)
    		tmp = t_2;
    	elseif (t1 <= -3.25e-180)
    		tmp = t_1;
    	elseif (t1 <= 5e-164)
    		tmp = Float64(Float64(v / u) * Float64(t1 / Float64(-u)));
    	elseif (t1 <= 3.2e+72)
    		tmp = t_1;
    	else
    		tmp = t_2;
    	end
    	return tmp
    end
    
    function tmp_2 = code(u, v, t1)
    	t_1 = v * (-t1 / ((t1 + u) * (t1 + u)));
    	t_2 = v / ((u * -2.0) - t1);
    	tmp = 0.0;
    	if (t1 <= -5.5e+112)
    		tmp = t_2;
    	elseif (t1 <= -3.25e-180)
    		tmp = t_1;
    	elseif (t1 <= 5e-164)
    		tmp = (v / u) * (t1 / -u);
    	elseif (t1 <= 3.2e+72)
    		tmp = t_1;
    	else
    		tmp = t_2;
    	end
    	tmp_2 = tmp;
    end
    
    code[u_, v_, t1_] := Block[{t$95$1 = N[(v * N[((-t1) / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(v / N[(N[(u * -2.0), $MachinePrecision] - t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -5.5e+112], t$95$2, If[LessEqual[t1, -3.25e-180], t$95$1, If[LessEqual[t1, 5e-164], N[(N[(v / u), $MachinePrecision] * N[(t1 / (-u)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, 3.2e+72], t$95$1, t$95$2]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := v \cdot \frac{-t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\
    t_2 := \frac{v}{u \cdot -2 - t1}\\
    \mathbf{if}\;t1 \leq -5.5 \cdot 10^{+112}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t1 \leq -3.25 \cdot 10^{-180}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t1 \leq 5 \cdot 10^{-164}:\\
    \;\;\;\;\frac{v}{u} \cdot \frac{t1}{-u}\\
    
    \mathbf{elif}\;t1 \leq 3.2 \cdot 10^{+72}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_2\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if t1 < -5.50000000000000026e112 or 3.2000000000000001e72 < t1

      1. Initial program 46.2%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\frac{v}{t1 + u} \cdot t1}{\color{blue}{\mathsf{neg}\left(\left(t1 + u\right)\right)}} \]
        11. +-lowering-+.f6499.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\left(-1 - \frac{u}{t1}\right)}} \]
        21. /-lowering-/.f6496.5

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

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

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

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

          \[\leadsto \frac{v}{\color{blue}{-2 \cdot u - t1}} \]
        3. --lowering--.f64N/A

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

          \[\leadsto \frac{v}{\color{blue}{u \cdot -2} - t1} \]
        5. *-lowering-*.f6492.0

          \[\leadsto \frac{v}{\color{blue}{u \cdot -2} - t1} \]
      9. Simplified92.0%

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

      if -5.50000000000000026e112 < t1 < -3.25000000000000007e-180 or 4.99999999999999962e-164 < t1 < 3.2000000000000001e72

      1. Initial program 91.7%

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\mathsf{neg}\left(t1\right)}{\color{blue}{\left(t1 + u\right)} \cdot \left(t1 + u\right)} \cdot v \]
        9. +-lowering-+.f6494.4

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

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

      if -3.25000000000000007e-180 < t1 < 4.99999999999999962e-164

      1. Initial program 77.3%

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

        \[\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. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto t1 \cdot \frac{v}{\color{blue}{u \cdot \left(\mathsf{neg}\left(u\right)\right)}} \]
        14. neg-lowering-neg.f6478.8

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

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

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

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

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

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

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

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

          \[\leadsto \frac{v}{\color{blue}{\mathsf{neg}\left(u\right)}} \cdot \frac{t1}{u} \]
        8. /-lowering-/.f6490.6

          \[\leadsto \frac{v}{-u} \cdot \color{blue}{\frac{t1}{u}} \]
      7. Applied egg-rr90.6%

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -5.5 \cdot 10^{+112}:\\ \;\;\;\;\frac{v}{u \cdot -2 - t1}\\ \mathbf{elif}\;t1 \leq -3.25 \cdot 10^{-180}:\\ \;\;\;\;v \cdot \frac{-t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{elif}\;t1 \leq 5 \cdot 10^{-164}:\\ \;\;\;\;\frac{v}{u} \cdot \frac{t1}{-u}\\ \mathbf{elif}\;t1 \leq 3.2 \cdot 10^{+72}:\\ \;\;\;\;v \cdot \frac{-t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{u \cdot -2 - t1}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 4: 79.0% accurate, 0.7× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{v}{u \cdot -2 - t1}\\ \mathbf{if}\;t1 \leq -2.15 \cdot 10^{-63}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t1 \leq 2.9 \cdot 10^{-80}:\\ \;\;\;\;\frac{v}{u} \cdot \frac{t1}{-u}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (u v t1)
     :precision binary64
     (let* ((t_1 (/ v (- (* u -2.0) t1))))
       (if (<= t1 -2.15e-63)
         t_1
         (if (<= t1 2.9e-80) (* (/ v u) (/ t1 (- u))) t_1))))
    double code(double u, double v, double t1) {
    	double t_1 = v / ((u * -2.0) - t1);
    	double tmp;
    	if (t1 <= -2.15e-63) {
    		tmp = t_1;
    	} else if (t1 <= 2.9e-80) {
    		tmp = (v / u) * (t1 / -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 * (-2.0d0)) - t1)
        if (t1 <= (-2.15d-63)) then
            tmp = t_1
        else if (t1 <= 2.9d-80) then
            tmp = (v / u) * (t1 / -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 * -2.0) - t1);
    	double tmp;
    	if (t1 <= -2.15e-63) {
    		tmp = t_1;
    	} else if (t1 <= 2.9e-80) {
    		tmp = (v / u) * (t1 / -u);
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    def code(u, v, t1):
    	t_1 = v / ((u * -2.0) - t1)
    	tmp = 0
    	if t1 <= -2.15e-63:
    		tmp = t_1
    	elif t1 <= 2.9e-80:
    		tmp = (v / u) * (t1 / -u)
    	else:
    		tmp = t_1
    	return tmp
    
    function code(u, v, t1)
    	t_1 = Float64(v / Float64(Float64(u * -2.0) - t1))
    	tmp = 0.0
    	if (t1 <= -2.15e-63)
    		tmp = t_1;
    	elseif (t1 <= 2.9e-80)
    		tmp = Float64(Float64(v / u) * Float64(t1 / Float64(-u)));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    function tmp_2 = code(u, v, t1)
    	t_1 = v / ((u * -2.0) - t1);
    	tmp = 0.0;
    	if (t1 <= -2.15e-63)
    		tmp = t_1;
    	elseif (t1 <= 2.9e-80)
    		tmp = (v / u) * (t1 / -u);
    	else
    		tmp = t_1;
    	end
    	tmp_2 = tmp;
    end
    
    code[u_, v_, t1_] := Block[{t$95$1 = N[(v / N[(N[(u * -2.0), $MachinePrecision] - t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -2.15e-63], t$95$1, If[LessEqual[t1, 2.9e-80], N[(N[(v / u), $MachinePrecision] * N[(t1 / (-u)), $MachinePrecision]), $MachinePrecision], t$95$1]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{v}{u \cdot -2 - t1}\\
    \mathbf{if}\;t1 \leq -2.15 \cdot 10^{-63}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t1 \leq 2.9 \cdot 10^{-80}:\\
    \;\;\;\;\frac{v}{u} \cdot \frac{t1}{-u}\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if t1 < -2.1499999999999999e-63 or 2.89999999999999998e-80 < t1

      1. Initial program 66.0%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\frac{v}{t1 + u} \cdot t1}{\color{blue}{\mathsf{neg}\left(\left(t1 + u\right)\right)}} \]
        11. +-lowering-+.f6499.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\left(-1 - \frac{u}{t1}\right)}} \]
        21. /-lowering-/.f6495.4

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

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

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

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

          \[\leadsto \frac{v}{\color{blue}{-2 \cdot u - t1}} \]
        3. --lowering--.f64N/A

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

          \[\leadsto \frac{v}{\color{blue}{u \cdot -2} - t1} \]
        5. *-lowering-*.f6484.8

          \[\leadsto \frac{v}{\color{blue}{u \cdot -2} - t1} \]
      9. Simplified84.8%

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

      if -2.1499999999999999e-63 < t1 < 2.89999999999999998e-80

      1. Initial program 82.6%

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

        \[\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. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto t1 \cdot \frac{v}{\color{blue}{u \cdot \left(\mathsf{neg}\left(u\right)\right)}} \]
        14. neg-lowering-neg.f6479.2

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

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

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

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

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

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

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

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

          \[\leadsto \frac{v}{\color{blue}{\mathsf{neg}\left(u\right)}} \cdot \frac{t1}{u} \]
        8. /-lowering-/.f6487.4

          \[\leadsto \frac{v}{-u} \cdot \color{blue}{\frac{t1}{u}} \]
      7. Applied egg-rr87.4%

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -2.15 \cdot 10^{-63}:\\ \;\;\;\;\frac{v}{u \cdot -2 - t1}\\ \mathbf{elif}\;t1 \leq 2.9 \cdot 10^{-80}:\\ \;\;\;\;\frac{v}{u} \cdot \frac{t1}{-u}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{u \cdot -2 - t1}\\ \end{array} \]
    5. Add Preprocessing

    Alternative 5: 94.7% accurate, 0.7× speedup?

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

      1. Initial program 72.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\frac{v}{t1 + u} \cdot t1}{\color{blue}{\mathsf{neg}\left(\left(t1 + u\right)\right)}} \]
        11. +-lowering-+.f6498.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\left(-1 - \frac{u}{t1}\right)}} \]
        21. /-lowering-/.f6495.8

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

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

      if 4.79999999999999977e210 < u

      1. Initial program 82.2%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\frac{v}{t1 + u} \cdot t1}{\color{blue}{\mathsf{neg}\left(\left(t1 + u\right)\right)}} \]
        11. +-lowering-+.f6499.9

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

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

        \[\leadsto \frac{\color{blue}{\frac{v}{u}} \cdot t1}{\mathsf{neg}\left(\left(t1 + u\right)\right)} \]
      6. Step-by-step derivation
        1. /-lowering-/.f6499.9

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

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

        \[\leadsto \frac{\frac{v}{u} \cdot t1}{\mathsf{neg}\left(\color{blue}{u}\right)} \]
      9. Step-by-step derivation
        1. Simplified99.9%

          \[\leadsto \frac{\frac{v}{u} \cdot t1}{-\color{blue}{u}} \]
      10. Recombined 2 regimes into one program.
      11. Final simplification96.2%

        \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq 4.8 \cdot 10^{+210}:\\ \;\;\;\;\frac{v}{\left(t1 + u\right) \cdot \left(-1 - \frac{u}{t1}\right)}\\ \mathbf{else}:\\ \;\;\;\;-\frac{t1 \cdot \frac{v}{u}}{u}\\ \end{array} \]
      12. Add Preprocessing

      Alternative 6: 76.7% accurate, 0.8× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{v}{u \cdot -2 - t1}\\ \mathbf{if}\;t1 \leq -2.6 \cdot 10^{-63}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t1 \leq 1.26 \cdot 10^{-79}:\\ \;\;\;\;t1 \cdot \frac{v}{u \cdot \left(-u\right)}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (u v t1)
       :precision binary64
       (let* ((t_1 (/ v (- (* u -2.0) t1))))
         (if (<= t1 -2.6e-63)
           t_1
           (if (<= t1 1.26e-79) (* t1 (/ v (* u (- u)))) t_1))))
      double code(double u, double v, double t1) {
      	double t_1 = v / ((u * -2.0) - t1);
      	double tmp;
      	if (t1 <= -2.6e-63) {
      		tmp = t_1;
      	} else if (t1 <= 1.26e-79) {
      		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 * (-2.0d0)) - t1)
          if (t1 <= (-2.6d-63)) then
              tmp = t_1
          else if (t1 <= 1.26d-79) 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 * -2.0) - t1);
      	double tmp;
      	if (t1 <= -2.6e-63) {
      		tmp = t_1;
      	} else if (t1 <= 1.26e-79) {
      		tmp = t1 * (v / (u * -u));
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(u, v, t1):
      	t_1 = v / ((u * -2.0) - t1)
      	tmp = 0
      	if t1 <= -2.6e-63:
      		tmp = t_1
      	elif t1 <= 1.26e-79:
      		tmp = t1 * (v / (u * -u))
      	else:
      		tmp = t_1
      	return tmp
      
      function code(u, v, t1)
      	t_1 = Float64(v / Float64(Float64(u * -2.0) - t1))
      	tmp = 0.0
      	if (t1 <= -2.6e-63)
      		tmp = t_1;
      	elseif (t1 <= 1.26e-79)
      		tmp = Float64(t1 * Float64(v / Float64(u * Float64(-u))));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      function tmp_2 = code(u, v, t1)
      	t_1 = v / ((u * -2.0) - t1);
      	tmp = 0.0;
      	if (t1 <= -2.6e-63)
      		tmp = t_1;
      	elseif (t1 <= 1.26e-79)
      		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[(N[(u * -2.0), $MachinePrecision] - t1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -2.6e-63], t$95$1, If[LessEqual[t1, 1.26e-79], N[(t1 * N[(v / N[(u * (-u)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{v}{u \cdot -2 - t1}\\
      \mathbf{if}\;t1 \leq -2.6 \cdot 10^{-63}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;t1 \leq 1.26 \cdot 10^{-79}:\\
      \;\;\;\;t1 \cdot \frac{v}{u \cdot \left(-u\right)}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t1 < -2.6000000000000001e-63 or 1.25999999999999993e-79 < t1

        1. Initial program 66.0%

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\frac{v}{t1 + u} \cdot t1}{\color{blue}{\mathsf{neg}\left(\left(t1 + u\right)\right)}} \]
          11. +-lowering-+.f6499.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\left(-1 - \frac{u}{t1}\right)}} \]
          21. /-lowering-/.f6495.4

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

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

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

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

            \[\leadsto \frac{v}{\color{blue}{-2 \cdot u - t1}} \]
          3. --lowering--.f64N/A

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

            \[\leadsto \frac{v}{\color{blue}{u \cdot -2} - t1} \]
          5. *-lowering-*.f6484.8

            \[\leadsto \frac{v}{\color{blue}{u \cdot -2} - t1} \]
        9. Simplified84.8%

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

        if -2.6000000000000001e-63 < t1 < 1.25999999999999993e-79

        1. Initial program 82.6%

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

          \[\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. associate-/l*N/A

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto t1 \cdot \frac{v}{\color{blue}{u \cdot \left(\mathsf{neg}\left(u\right)\right)}} \]
          14. neg-lowering-neg.f6479.2

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

          \[\leadsto \color{blue}{t1 \cdot \frac{v}{u \cdot \left(-u\right)}} \]
      3. Recombined 2 regimes into one program.
      4. Add Preprocessing

      Alternative 7: 98.1% accurate, 0.8× speedup?

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \frac{\mathsf{neg}\left(v\right)}{t1 + u} \cdot \color{blue}{\frac{t1}{t1 + u}} \]
        12. +-lowering-+.f6498.0

          \[\leadsto \frac{-v}{t1 + u} \cdot \frac{t1}{\color{blue}{t1 + u}} \]
      4. Applied egg-rr98.0%

        \[\leadsto \color{blue}{\frac{-v}{t1 + u} \cdot \frac{t1}{t1 + u}} \]
      5. Final simplification98.0%

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

      Alternative 8: 57.6% accurate, 1.2× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := -\frac{v}{u}\\ \mathbf{if}\;u \leq -8.4 \cdot 10^{+193}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;u \leq 9.6 \cdot 10^{+208}:\\ \;\;\;\;\frac{v}{-t1}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (u v t1)
       :precision binary64
       (let* ((t_1 (- (/ v u))))
         (if (<= u -8.4e+193) t_1 (if (<= u 9.6e+208) (/ v (- t1)) t_1))))
      double code(double u, double v, double t1) {
      	double t_1 = -(v / u);
      	double tmp;
      	if (u <= -8.4e+193) {
      		tmp = t_1;
      	} else if (u <= 9.6e+208) {
      		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 = -(v / u)
          if (u <= (-8.4d+193)) then
              tmp = t_1
          else if (u <= 9.6d+208) 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 = -(v / u);
      	double tmp;
      	if (u <= -8.4e+193) {
      		tmp = t_1;
      	} else if (u <= 9.6e+208) {
      		tmp = v / -t1;
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(u, v, t1):
      	t_1 = -(v / u)
      	tmp = 0
      	if u <= -8.4e+193:
      		tmp = t_1
      	elif u <= 9.6e+208:
      		tmp = v / -t1
      	else:
      		tmp = t_1
      	return tmp
      
      function code(u, v, t1)
      	t_1 = Float64(-Float64(v / u))
      	tmp = 0.0
      	if (u <= -8.4e+193)
      		tmp = t_1;
      	elseif (u <= 9.6e+208)
      		tmp = Float64(v / Float64(-t1));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      function tmp_2 = code(u, v, t1)
      	t_1 = -(v / u);
      	tmp = 0.0;
      	if (u <= -8.4e+193)
      		tmp = t_1;
      	elseif (u <= 9.6e+208)
      		tmp = v / -t1;
      	else
      		tmp = t_1;
      	end
      	tmp_2 = tmp;
      end
      
      code[u_, v_, t1_] := Block[{t$95$1 = (-N[(v / u), $MachinePrecision])}, If[LessEqual[u, -8.4e+193], t$95$1, If[LessEqual[u, 9.6e+208], N[(v / (-t1)), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := -\frac{v}{u}\\
      \mathbf{if}\;u \leq -8.4 \cdot 10^{+193}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;u \leq 9.6 \cdot 10^{+208}:\\
      \;\;\;\;\frac{v}{-t1}\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if u < -8.4e193 or 9.59999999999999946e208 < u

        1. Initial program 82.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. *-commutativeN/A

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

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

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

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

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

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

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

            \[\leadsto \frac{\mathsf{neg}\left(t1\right)}{\color{blue}{\left(t1 + u\right)} \cdot \left(t1 + u\right)} \cdot v \]
          9. +-lowering-+.f6482.9

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

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

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

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

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

              \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{v}{u}\right)} \]
            2. distribute-neg-frac2N/A

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

              \[\leadsto \frac{v}{\color{blue}{-1 \cdot u}} \]
            4. /-lowering-/.f64N/A

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

              \[\leadsto \frac{v}{\color{blue}{\mathsf{neg}\left(u\right)}} \]
            6. neg-lowering-neg.f6436.7

              \[\leadsto \frac{v}{\color{blue}{-u}} \]
          4. Simplified36.7%

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

          if -8.4e193 < u < 9.59999999999999946e208

          1. Initial program 71.2%

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

            \[\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. /-lowering-/.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. neg-lowering-neg.f6462.4

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

            \[\leadsto \color{blue}{\frac{-v}{t1}} \]
        7. Recombined 2 regimes into one program.
        8. Final simplification58.0%

          \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq -8.4 \cdot 10^{+193}:\\ \;\;\;\;-\frac{v}{u}\\ \mathbf{elif}\;u \leq 9.6 \cdot 10^{+208}:\\ \;\;\;\;\frac{v}{-t1}\\ \mathbf{else}:\\ \;\;\;\;-\frac{v}{u}\\ \end{array} \]
        9. Add Preprocessing

        Alternative 9: 61.7% accurate, 1.5× speedup?

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\frac{v}{t1 + u} \cdot t1}{\color{blue}{\mathsf{neg}\left(\left(t1 + u\right)\right)}} \]
          11. +-lowering-+.f6499.0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\left(-1 - \frac{u}{t1}\right)}} \]
          21. /-lowering-/.f6494.4

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

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

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

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

            \[\leadsto \frac{v}{\color{blue}{-2 \cdot u - t1}} \]
          3. --lowering--.f64N/A

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

            \[\leadsto \frac{v}{\color{blue}{u \cdot -2} - t1} \]
          5. *-lowering-*.f6459.1

            \[\leadsto \frac{v}{\color{blue}{u \cdot -2} - t1} \]
        9. Simplified59.1%

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

        Alternative 10: 61.2% accurate, 1.8× speedup?

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \frac{\frac{v}{t1 + u} \cdot t1}{\color{blue}{\mathsf{neg}\left(\left(t1 + u\right)\right)}} \]
          11. +-lowering-+.f6499.0

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

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

          \[\leadsto \frac{\color{blue}{v}}{\mathsf{neg}\left(\left(t1 + u\right)\right)} \]
        6. Step-by-step derivation
          1. Simplified58.7%

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

            \[\leadsto -\frac{v}{t1 + u} \]
          3. Add Preprocessing

          Alternative 11: 16.7% accurate, 2.1× speedup?

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

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

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

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

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

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

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

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

              \[\leadsto \frac{\mathsf{neg}\left(t1\right)}{\color{blue}{\left(t1 + u\right)} \cdot \left(t1 + u\right)} \cdot v \]
            9. +-lowering-+.f6476.6

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

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

            \[\leadsto \frac{\mathsf{neg}\left(t1\right)}{\left(t1 + u\right) \cdot \color{blue}{u}} \cdot v \]
          6. Step-by-step derivation
            1. Simplified45.4%

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

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

                \[\leadsto \color{blue}{\mathsf{neg}\left(\frac{v}{u}\right)} \]
              2. distribute-neg-frac2N/A

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

                \[\leadsto \frac{v}{\color{blue}{-1 \cdot u}} \]
              4. /-lowering-/.f64N/A

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

                \[\leadsto \frac{v}{\color{blue}{\mathsf{neg}\left(u\right)}} \]
              6. neg-lowering-neg.f6413.9

                \[\leadsto \frac{v}{\color{blue}{-u}} \]
            4. Simplified13.9%

              \[\leadsto \color{blue}{\frac{v}{-u}} \]
            5. Final simplification13.9%

              \[\leadsto -\frac{v}{u} \]
            6. Add Preprocessing

            Reproduce

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