Rosa's DopplerBench

Percentage Accurate: 73.0% → 98.1%
Time: 15.5s
Alternatives: 17
Speedup: 1.0×

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 17 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: 73.0% 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.1% accurate, 0.9× speedup?

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

\\
\frac{\frac{t1 \cdot \frac{v}{t1 + u}}{-1}}{t1 + u}
\end{array}
Derivation
  1. Initial program 74.5%

    \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
  2. Step-by-step derivation
    1. times-frac97.2%

      \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
    2. distribute-frac-neg97.2%

      \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
    3. distribute-neg-frac297.2%

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

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

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

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

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

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

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

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

      \[\leadsto \frac{t1 \cdot \frac{v}{t1 + u}}{-\color{blue}{\left(t1 + u\right)}} \]
    5. neg-mul-198.4%

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

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

    \[\leadsto \color{blue}{\frac{\frac{t1 \cdot \frac{v}{t1 + u}}{-1}}{t1 + u}} \]
  7. Final simplification98.4%

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

Alternative 2: 90.0% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t1 \cdot \frac{\frac{v}{t1 + u}}{\left(-u\right) - t1}\\ \mathbf{if}\;t1 \leq -3.3 \cdot 10^{+173}:\\ \;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\ \mathbf{elif}\;t1 \leq -5 \cdot 10^{-176}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t1 \leq 2.9 \cdot 10^{-229}:\\ \;\;\;\;\frac{t1 \cdot \frac{v}{-u}}{t1 + u}\\ \mathbf{elif}\;t1 \leq 2.1 \cdot 10^{+167}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{-t1}\\ \end{array} \end{array} \]
(FPCore (u v t1)
 :precision binary64
 (let* ((t_1 (* t1 (/ (/ v (+ t1 u)) (- (- u) t1)))))
   (if (<= t1 -3.3e+173)
     (/ v (- (- t1) (* u 2.0)))
     (if (<= t1 -5e-176)
       t_1
       (if (<= t1 2.9e-229)
         (/ (* t1 (/ v (- u))) (+ t1 u))
         (if (<= t1 2.1e+167) t_1 (/ v (- t1))))))))
double code(double u, double v, double t1) {
	double t_1 = t1 * ((v / (t1 + u)) / (-u - t1));
	double tmp;
	if (t1 <= -3.3e+173) {
		tmp = v / (-t1 - (u * 2.0));
	} else if (t1 <= -5e-176) {
		tmp = t_1;
	} else if (t1 <= 2.9e-229) {
		tmp = (t1 * (v / -u)) / (t1 + u);
	} else if (t1 <= 2.1e+167) {
		tmp = t_1;
	} else {
		tmp = v / -t1;
	}
	return tmp;
}
real(8) function code(u, v, t1)
    real(8), intent (in) :: u
    real(8), intent (in) :: v
    real(8), intent (in) :: t1
    real(8) :: t_1
    real(8) :: tmp
    t_1 = t1 * ((v / (t1 + u)) / (-u - t1))
    if (t1 <= (-3.3d+173)) then
        tmp = v / (-t1 - (u * 2.0d0))
    else if (t1 <= (-5d-176)) then
        tmp = t_1
    else if (t1 <= 2.9d-229) then
        tmp = (t1 * (v / -u)) / (t1 + u)
    else if (t1 <= 2.1d+167) then
        tmp = t_1
    else
        tmp = v / -t1
    end if
    code = tmp
end function
public static double code(double u, double v, double t1) {
	double t_1 = t1 * ((v / (t1 + u)) / (-u - t1));
	double tmp;
	if (t1 <= -3.3e+173) {
		tmp = v / (-t1 - (u * 2.0));
	} else if (t1 <= -5e-176) {
		tmp = t_1;
	} else if (t1 <= 2.9e-229) {
		tmp = (t1 * (v / -u)) / (t1 + u);
	} else if (t1 <= 2.1e+167) {
		tmp = t_1;
	} else {
		tmp = v / -t1;
	}
	return tmp;
}
def code(u, v, t1):
	t_1 = t1 * ((v / (t1 + u)) / (-u - t1))
	tmp = 0
	if t1 <= -3.3e+173:
		tmp = v / (-t1 - (u * 2.0))
	elif t1 <= -5e-176:
		tmp = t_1
	elif t1 <= 2.9e-229:
		tmp = (t1 * (v / -u)) / (t1 + u)
	elif t1 <= 2.1e+167:
		tmp = t_1
	else:
		tmp = v / -t1
	return tmp
function code(u, v, t1)
	t_1 = Float64(t1 * Float64(Float64(v / Float64(t1 + u)) / Float64(Float64(-u) - t1)))
	tmp = 0.0
	if (t1 <= -3.3e+173)
		tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0)));
	elseif (t1 <= -5e-176)
		tmp = t_1;
	elseif (t1 <= 2.9e-229)
		tmp = Float64(Float64(t1 * Float64(v / Float64(-u))) / Float64(t1 + u));
	elseif (t1 <= 2.1e+167)
		tmp = t_1;
	else
		tmp = Float64(v / Float64(-t1));
	end
	return tmp
end
function tmp_2 = code(u, v, t1)
	t_1 = t1 * ((v / (t1 + u)) / (-u - t1));
	tmp = 0.0;
	if (t1 <= -3.3e+173)
		tmp = v / (-t1 - (u * 2.0));
	elseif (t1 <= -5e-176)
		tmp = t_1;
	elseif (t1 <= 2.9e-229)
		tmp = (t1 * (v / -u)) / (t1 + u);
	elseif (t1 <= 2.1e+167)
		tmp = t_1;
	else
		tmp = v / -t1;
	end
	tmp_2 = tmp;
end
code[u_, v_, t1_] := Block[{t$95$1 = N[(t1 * N[(N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision] / N[((-u) - t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -3.3e+173], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, -5e-176], t$95$1, If[LessEqual[t1, 2.9e-229], N[(N[(t1 * N[(v / (-u)), $MachinePrecision]), $MachinePrecision] / N[(t1 + u), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, 2.1e+167], t$95$1, N[(v / (-t1)), $MachinePrecision]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t1 \leq -5 \cdot 10^{-176}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t1 \leq 2.9 \cdot 10^{-229}:\\
\;\;\;\;\frac{t1 \cdot \frac{v}{-u}}{t1 + u}\\

\mathbf{elif}\;t1 \leq 2.1 \cdot 10^{+167}:\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 41.6%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac99.9%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg99.9%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac299.9%

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in99.9%

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num99.9%

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

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

        \[\leadsto \color{blue}{\frac{1 \cdot \left(-v\right)}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\left(t1 + u\right)\right)}} \]
      4. *-un-lft-identity95.4%

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

        \[\leadsto \frac{-v}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\color{blue}{\left(u + t1\right)}\right)} \]
      6. distribute-neg-in95.4%

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

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

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

        \[\leadsto \frac{-v}{\frac{-\color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      10. distribute-neg-in95.4%

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

        \[\leadsto \frac{-v}{\frac{-\left(-\color{blue}{\left(t1 + u\right)}\right)}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      12. remove-double-neg95.4%

        \[\leadsto \frac{-v}{\frac{\color{blue}{t1 + u}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      13. add-sqr-sqrt94.9%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}} \cdot \left(\left(-u\right) - t1\right)} \]
      15. sqr-neg1.9%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\sqrt{\color{blue}{t1 \cdot t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      16. sqrt-unprod0.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      17. add-sqr-sqrt42.2%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{t1}} \cdot \left(\left(-u\right) - t1\right)} \]
      18. sub-neg42.2%

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
      19. distribute-neg-in42.2%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      21. add-sqr-sqrt42.2%

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

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

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

      \[\leadsto \frac{-v}{\color{blue}{t1 + 2 \cdot u}} \]
    8. Step-by-step derivation
      1. *-commutative95.5%

        \[\leadsto \frac{-v}{t1 + \color{blue}{u \cdot 2}} \]
    9. Simplified95.5%

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

    if -3.29999999999999996e173 < t1 < -5e-176 or 2.9e-229 < t1 < 2.0999999999999999e167

    1. Initial program 82.9%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-/l*87.1%

        \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      2. distribute-lft-neg-out87.1%

        \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in87.1%

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

        \[\leadsto t1 \cdot \left(-\color{blue}{\frac{\frac{v}{t1 + u}}{t1 + u}}\right) \]
      5. distribute-neg-frac295.3%

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

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

    if -5e-176 < t1 < 2.9e-229

    1. Initial program 75.2%

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

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg86.5%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac286.5%

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in86.5%

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. frac-2neg86.5%

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

        \[\leadsto \color{blue}{\frac{\left(-t1\right) \cdot \frac{v}{t1 + u}}{-\left(\left(-u\right) - t1\right)}} \]
      3. sub-neg93.8%

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

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

        \[\leadsto \frac{\left(-t1\right) \cdot \frac{v}{t1 + u}}{-\left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      6. remove-double-neg93.8%

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

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      8. frac-2neg86.5%

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

        \[\leadsto \color{blue}{\frac{\frac{-t1}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)}} \]
      10. add-sqr-sqrt56.1%

        \[\leadsto \frac{\frac{\color{blue}{\sqrt{-t1} \cdot \sqrt{-t1}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      11. sqrt-unprod49.3%

        \[\leadsto \frac{\frac{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      12. sqr-neg49.3%

        \[\leadsto \frac{\frac{\sqrt{\color{blue}{t1 \cdot t1}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      13. sqrt-unprod13.2%

        \[\leadsto \frac{\frac{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      14. add-sqr-sqrt48.7%

        \[\leadsto \frac{\frac{\color{blue}{t1}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      15. add-sqr-sqrt28.2%

        \[\leadsto \frac{\frac{t1}{t1 + u} \cdot \left(-v\right)}{\color{blue}{\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}}} \]
      16. sqrt-unprod57.3%

        \[\leadsto \frac{\frac{t1}{t1 + u} \cdot \left(-v\right)}{\color{blue}{\sqrt{\left(-\left(t1 + u\right)\right) \cdot \left(-\left(t1 + u\right)\right)}}} \]
      17. sqr-neg57.3%

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

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

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

      \[\leadsto \frac{\color{blue}{-1 \cdot \frac{t1 \cdot v}{u}}}{t1 + u} \]
    8. Step-by-step derivation
      1. mul-1-neg86.9%

        \[\leadsto \frac{\color{blue}{-\frac{t1 \cdot v}{u}}}{t1 + u} \]
      2. associate-/l*91.2%

        \[\leadsto \frac{-\color{blue}{t1 \cdot \frac{v}{u}}}{t1 + u} \]
      3. distribute-rgt-neg-in91.2%

        \[\leadsto \frac{\color{blue}{t1 \cdot \left(-\frac{v}{u}\right)}}{t1 + u} \]
      4. distribute-neg-frac291.2%

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

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

    if 2.0999999999999999e167 < t1

    1. Initial program 38.1%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac100.0%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg100.0%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac2100.0%

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

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

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{v}{t1}} \]
    6. Step-by-step derivation
      1. associate-*r/100.0%

        \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1}} \]
      2. neg-mul-1100.0%

        \[\leadsto \frac{\color{blue}{-v}}{t1} \]
    7. Simplified100.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -3.3 \cdot 10^{+173}:\\ \;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\ \mathbf{elif}\;t1 \leq -5 \cdot 10^{-176}:\\ \;\;\;\;t1 \cdot \frac{\frac{v}{t1 + u}}{\left(-u\right) - t1}\\ \mathbf{elif}\;t1 \leq 2.9 \cdot 10^{-229}:\\ \;\;\;\;\frac{t1 \cdot \frac{v}{-u}}{t1 + u}\\ \mathbf{elif}\;t1 \leq 2.1 \cdot 10^{+167}:\\ \;\;\;\;t1 \cdot \frac{\frac{v}{t1 + u}}{\left(-u\right) - t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{-t1}\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 90.0% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t1 \leq -2.55 \cdot 10^{+154}:\\ \;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\ \mathbf{elif}\;t1 \leq -1.45 \cdot 10^{-158}:\\ \;\;\;\;\left(-v\right) \cdot \frac{t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{elif}\;t1 \leq 2.15 \cdot 10^{-211}:\\ \;\;\;\;\frac{\frac{\frac{t1}{\frac{u}{v}}}{-1}}{t1 + u}\\ \mathbf{elif}\;t1 \leq 1.45 \cdot 10^{+166}:\\ \;\;\;\;t1 \cdot \frac{\frac{v}{t1 + u}}{\left(-u\right) - t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{-t1}\\ \end{array} \end{array} \]
(FPCore (u v t1)
 :precision binary64
 (if (<= t1 -2.55e+154)
   (/ v (- (- t1) (* u 2.0)))
   (if (<= t1 -1.45e-158)
     (* (- v) (/ t1 (* (+ t1 u) (+ t1 u))))
     (if (<= t1 2.15e-211)
       (/ (/ (/ t1 (/ u v)) -1.0) (+ t1 u))
       (if (<= t1 1.45e+166)
         (* t1 (/ (/ v (+ t1 u)) (- (- u) t1)))
         (/ v (- t1)))))))
double code(double u, double v, double t1) {
	double tmp;
	if (t1 <= -2.55e+154) {
		tmp = v / (-t1 - (u * 2.0));
	} else if (t1 <= -1.45e-158) {
		tmp = -v * (t1 / ((t1 + u) * (t1 + u)));
	} else if (t1 <= 2.15e-211) {
		tmp = ((t1 / (u / v)) / -1.0) / (t1 + u);
	} else if (t1 <= 1.45e+166) {
		tmp = t1 * ((v / (t1 + u)) / (-u - t1));
	} else {
		tmp = v / -t1;
	}
	return tmp;
}
real(8) function code(u, v, t1)
    real(8), intent (in) :: u
    real(8), intent (in) :: v
    real(8), intent (in) :: t1
    real(8) :: tmp
    if (t1 <= (-2.55d+154)) then
        tmp = v / (-t1 - (u * 2.0d0))
    else if (t1 <= (-1.45d-158)) then
        tmp = -v * (t1 / ((t1 + u) * (t1 + u)))
    else if (t1 <= 2.15d-211) then
        tmp = ((t1 / (u / v)) / (-1.0d0)) / (t1 + u)
    else if (t1 <= 1.45d+166) then
        tmp = t1 * ((v / (t1 + u)) / (-u - t1))
    else
        tmp = v / -t1
    end if
    code = tmp
end function
public static double code(double u, double v, double t1) {
	double tmp;
	if (t1 <= -2.55e+154) {
		tmp = v / (-t1 - (u * 2.0));
	} else if (t1 <= -1.45e-158) {
		tmp = -v * (t1 / ((t1 + u) * (t1 + u)));
	} else if (t1 <= 2.15e-211) {
		tmp = ((t1 / (u / v)) / -1.0) / (t1 + u);
	} else if (t1 <= 1.45e+166) {
		tmp = t1 * ((v / (t1 + u)) / (-u - t1));
	} else {
		tmp = v / -t1;
	}
	return tmp;
}
def code(u, v, t1):
	tmp = 0
	if t1 <= -2.55e+154:
		tmp = v / (-t1 - (u * 2.0))
	elif t1 <= -1.45e-158:
		tmp = -v * (t1 / ((t1 + u) * (t1 + u)))
	elif t1 <= 2.15e-211:
		tmp = ((t1 / (u / v)) / -1.0) / (t1 + u)
	elif t1 <= 1.45e+166:
		tmp = t1 * ((v / (t1 + u)) / (-u - t1))
	else:
		tmp = v / -t1
	return tmp
function code(u, v, t1)
	tmp = 0.0
	if (t1 <= -2.55e+154)
		tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0)));
	elseif (t1 <= -1.45e-158)
		tmp = Float64(Float64(-v) * Float64(t1 / Float64(Float64(t1 + u) * Float64(t1 + u))));
	elseif (t1 <= 2.15e-211)
		tmp = Float64(Float64(Float64(t1 / Float64(u / v)) / -1.0) / Float64(t1 + u));
	elseif (t1 <= 1.45e+166)
		tmp = Float64(t1 * Float64(Float64(v / Float64(t1 + u)) / Float64(Float64(-u) - t1)));
	else
		tmp = Float64(v / Float64(-t1));
	end
	return tmp
end
function tmp_2 = code(u, v, t1)
	tmp = 0.0;
	if (t1 <= -2.55e+154)
		tmp = v / (-t1 - (u * 2.0));
	elseif (t1 <= -1.45e-158)
		tmp = -v * (t1 / ((t1 + u) * (t1 + u)));
	elseif (t1 <= 2.15e-211)
		tmp = ((t1 / (u / v)) / -1.0) / (t1 + u);
	elseif (t1 <= 1.45e+166)
		tmp = t1 * ((v / (t1 + u)) / (-u - t1));
	else
		tmp = v / -t1;
	end
	tmp_2 = tmp;
end
code[u_, v_, t1_] := If[LessEqual[t1, -2.55e+154], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, -1.45e-158], N[((-v) * N[(t1 / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, 2.15e-211], N[(N[(N[(t1 / N[(u / v), $MachinePrecision]), $MachinePrecision] / -1.0), $MachinePrecision] / N[(t1 + u), $MachinePrecision]), $MachinePrecision], If[LessEqual[t1, 1.45e+166], N[(t1 * N[(N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision] / N[((-u) - t1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(v / (-t1)), $MachinePrecision]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t1 \leq -1.45 \cdot 10^{-158}:\\
\;\;\;\;\left(-v\right) \cdot \frac{t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\

\mathbf{elif}\;t1 \leq 2.15 \cdot 10^{-211}:\\
\;\;\;\;\frac{\frac{\frac{t1}{\frac{u}{v}}}{-1}}{t1 + u}\\

\mathbf{elif}\;t1 \leq 1.45 \cdot 10^{+166}:\\
\;\;\;\;t1 \cdot \frac{\frac{v}{t1 + u}}{\left(-u\right) - t1}\\

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


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

    1. Initial program 41.3%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac99.8%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg99.8%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac299.8%

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

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

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num99.8%

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

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

        \[\leadsto \color{blue}{\frac{1 \cdot \left(-v\right)}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\left(t1 + u\right)\right)}} \]
      4. *-un-lft-identity96.3%

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

        \[\leadsto \frac{-v}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\color{blue}{\left(u + t1\right)}\right)} \]
      6. distribute-neg-in96.3%

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

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

        \[\leadsto \frac{-v}{\color{blue}{\frac{-\left(\left(-u\right) - t1\right)}{-t1}} \cdot \left(\left(-u\right) - t1\right)} \]
      9. sub-neg96.3%

        \[\leadsto \frac{-v}{\frac{-\color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      10. distribute-neg-in96.3%

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

        \[\leadsto \frac{-v}{\frac{-\left(-\color{blue}{\left(t1 + u\right)}\right)}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      12. remove-double-neg96.3%

        \[\leadsto \frac{-v}{\frac{\color{blue}{t1 + u}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      13. add-sqr-sqrt95.8%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{-t1} \cdot \sqrt{-t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      14. sqrt-unprod2.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}} \cdot \left(\left(-u\right) - t1\right)} \]
      15. sqr-neg2.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\sqrt{\color{blue}{t1 \cdot t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      16. sqrt-unprod0.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      17. add-sqr-sqrt42.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{t1}} \cdot \left(\left(-u\right) - t1\right)} \]
      18. sub-neg42.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
      19. distribute-neg-in42.0%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      21. add-sqr-sqrt38.2%

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

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

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

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

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

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

    if -2.55e154 < t1 < -1.4499999999999999e-158

    1. Initial program 89.4%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-*l/98.0%

        \[\leadsto \color{blue}{\frac{-t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \cdot v} \]
      2. *-commutative98.0%

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

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

    if -1.4499999999999999e-158 < t1 < 2.15e-211

    1. Initial program 79.1%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac88.9%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg88.9%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac288.9%

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in88.9%

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

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

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

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

        \[\leadsto \frac{t1 \cdot \frac{v}{t1 + u}}{\color{blue}{\left(-u\right) + \left(-t1\right)}} \]
      3. distribute-neg-in95.1%

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

        \[\leadsto \frac{t1 \cdot \frac{v}{t1 + u}}{-\color{blue}{\left(t1 + u\right)}} \]
      5. neg-mul-195.1%

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

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

      \[\leadsto \color{blue}{\frac{\frac{t1 \cdot \frac{v}{t1 + u}}{-1}}{t1 + u}} \]
    7. Step-by-step derivation
      1. clear-num95.0%

        \[\leadsto \frac{\frac{t1 \cdot \color{blue}{\frac{1}{\frac{t1 + u}{v}}}}{-1}}{t1 + u} \]
      2. un-div-inv95.1%

        \[\leadsto \frac{\frac{\color{blue}{\frac{t1}{\frac{t1 + u}{v}}}}{-1}}{t1 + u} \]
    8. Applied egg-rr95.1%

      \[\leadsto \frac{\frac{\color{blue}{\frac{t1}{\frac{t1 + u}{v}}}}{-1}}{t1 + u} \]
    9. Taylor expanded in t1 around 0 91.6%

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

    if 2.15e-211 < t1 < 1.4500000000000001e166

    1. Initial program 77.4%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-/l*81.8%

        \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      2. distribute-lft-neg-out81.8%

        \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in81.8%

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

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

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

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

    if 1.4500000000000001e166 < t1

    1. Initial program 38.1%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac100.0%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg100.0%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac2100.0%

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

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

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{v}{t1}} \]
    6. Step-by-step derivation
      1. associate-*r/100.0%

        \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1}} \]
      2. neg-mul-1100.0%

        \[\leadsto \frac{\color{blue}{-v}}{t1} \]
    7. Simplified100.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -2.55 \cdot 10^{+154}:\\ \;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\ \mathbf{elif}\;t1 \leq -1.45 \cdot 10^{-158}:\\ \;\;\;\;\left(-v\right) \cdot \frac{t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\ \mathbf{elif}\;t1 \leq 2.15 \cdot 10^{-211}:\\ \;\;\;\;\frac{\frac{\frac{t1}{\frac{u}{v}}}{-1}}{t1 + u}\\ \mathbf{elif}\;t1 \leq 1.45 \cdot 10^{+166}:\\ \;\;\;\;t1 \cdot \frac{\frac{v}{t1 + u}}{\left(-u\right) - t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{-t1}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 78.9% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -440000000 \lor \neg \left(t1 \leq 6.5 \cdot 10^{-30}\right):\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\

\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{t1}{\frac{u}{v}}}{-1}}{t1 + u}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t1 < -4.4e8 or 6.5000000000000005e-30 < t1

    1. Initial program 61.5%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac99.9%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg99.9%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac299.9%

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in99.9%

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num99.9%

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

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

        \[\leadsto \color{blue}{\frac{1 \cdot \left(-v\right)}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\left(t1 + u\right)\right)}} \]
      4. *-un-lft-identity95.8%

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

        \[\leadsto \frac{-v}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\color{blue}{\left(u + t1\right)}\right)} \]
      6. distribute-neg-in95.8%

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

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

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

        \[\leadsto \frac{-v}{\frac{-\color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      10. distribute-neg-in95.8%

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

        \[\leadsto \frac{-v}{\frac{-\left(-\color{blue}{\left(t1 + u\right)}\right)}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      12. remove-double-neg95.8%

        \[\leadsto \frac{-v}{\frac{\color{blue}{t1 + u}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      13. add-sqr-sqrt51.5%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{-t1} \cdot \sqrt{-t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      14. sqrt-unprod37.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}} \cdot \left(\left(-u\right) - t1\right)} \]
      15. sqr-neg37.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\sqrt{\color{blue}{t1 \cdot t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      16. sqrt-unprod16.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      17. add-sqr-sqrt31.7%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
      19. distribute-neg-in31.7%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      21. add-sqr-sqrt15.8%

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}\right)}} \]
      22. sqrt-unprod43.4%

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

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

      \[\leadsto \frac{-v}{\color{blue}{t1 + 2 \cdot u}} \]
    8. Step-by-step derivation
      1. *-commutative85.4%

        \[\leadsto \frac{-v}{t1 + \color{blue}{u \cdot 2}} \]
    9. Simplified85.4%

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

    if -4.4e8 < t1 < 6.5000000000000005e-30

    1. Initial program 84.5%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac95.2%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg95.2%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac295.2%

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

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

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

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

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

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

        \[\leadsto \frac{t1 \cdot \frac{v}{t1 + u}}{\color{blue}{\left(-u\right) + \left(-t1\right)}} \]
      3. distribute-neg-in97.2%

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

        \[\leadsto \frac{t1 \cdot \frac{v}{t1 + u}}{-\color{blue}{\left(t1 + u\right)}} \]
      5. neg-mul-197.2%

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

        \[\leadsto \color{blue}{\frac{\frac{t1 \cdot \frac{v}{t1 + u}}{-1}}{t1 + u}} \]
    6. Applied egg-rr97.2%

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

        \[\leadsto \frac{\frac{t1 \cdot \color{blue}{\frac{1}{\frac{t1 + u}{v}}}}{-1}}{t1 + u} \]
      2. un-div-inv97.2%

        \[\leadsto \frac{\frac{\color{blue}{\frac{t1}{\frac{t1 + u}{v}}}}{-1}}{t1 + u} \]
    8. Applied egg-rr97.2%

      \[\leadsto \frac{\frac{\color{blue}{\frac{t1}{\frac{t1 + u}{v}}}}{-1}}{t1 + u} \]
    9. Taylor expanded in t1 around 0 83.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -440000000 \lor \neg \left(t1 \leq 6.5 \cdot 10^{-30}\right):\\ \;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{\frac{t1}{\frac{u}{v}}}{-1}}{t1 + u}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 77.8% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -88000000000 \lor \neg \left(t1 \leq 1.15 \cdot 10^{-30}\right):\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\

\mathbf{else}:\\
\;\;\;\;t1 \cdot \frac{\frac{v}{-u}}{t1 + u}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t1 < -8.8e10 or 1.14999999999999992e-30 < t1

    1. Initial program 61.5%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac99.9%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg99.9%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac299.9%

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in99.9%

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num99.9%

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

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

        \[\leadsto \color{blue}{\frac{1 \cdot \left(-v\right)}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\left(t1 + u\right)\right)}} \]
      4. *-un-lft-identity95.8%

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

        \[\leadsto \frac{-v}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\color{blue}{\left(u + t1\right)}\right)} \]
      6. distribute-neg-in95.8%

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

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

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

        \[\leadsto \frac{-v}{\frac{-\color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      10. distribute-neg-in95.8%

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

        \[\leadsto \frac{-v}{\frac{-\left(-\color{blue}{\left(t1 + u\right)}\right)}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      12. remove-double-neg95.8%

        \[\leadsto \frac{-v}{\frac{\color{blue}{t1 + u}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      13. add-sqr-sqrt51.5%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{-t1} \cdot \sqrt{-t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      14. sqrt-unprod37.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}} \cdot \left(\left(-u\right) - t1\right)} \]
      15. sqr-neg37.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\sqrt{\color{blue}{t1 \cdot t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      16. sqrt-unprod16.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      17. add-sqr-sqrt31.7%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
      19. distribute-neg-in31.7%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      21. add-sqr-sqrt15.8%

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}\right)}} \]
      22. sqrt-unprod43.4%

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

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

      \[\leadsto \frac{-v}{\color{blue}{t1 + 2 \cdot u}} \]
    8. Step-by-step derivation
      1. *-commutative85.4%

        \[\leadsto \frac{-v}{t1 + \color{blue}{u \cdot 2}} \]
    9. Simplified85.4%

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

    if -8.8e10 < t1 < 1.14999999999999992e-30

    1. Initial program 84.5%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-/l*86.5%

        \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      2. distribute-lft-neg-out86.5%

        \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in86.5%

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

        \[\leadsto t1 \cdot \left(-\color{blue}{\frac{\frac{v}{t1 + u}}{t1 + u}}\right) \]
      5. distribute-neg-frac290.7%

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

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

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

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

Alternative 6: 78.6% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -1600000000 \lor \neg \left(t1 \leq 1.75 \cdot 10^{-29}\right):\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\

\mathbf{else}:\\
\;\;\;\;\frac{v}{t1 + u} \cdot \frac{t1}{-u}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t1 < -1.6e9 or 1.7499999999999999e-29 < t1

    1. Initial program 61.5%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac99.9%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg99.9%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac299.9%

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in99.9%

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num99.9%

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

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

        \[\leadsto \color{blue}{\frac{1 \cdot \left(-v\right)}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\left(t1 + u\right)\right)}} \]
      4. *-un-lft-identity95.8%

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

        \[\leadsto \frac{-v}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\color{blue}{\left(u + t1\right)}\right)} \]
      6. distribute-neg-in95.8%

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

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

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

        \[\leadsto \frac{-v}{\frac{-\color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      10. distribute-neg-in95.8%

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

        \[\leadsto \frac{-v}{\frac{-\left(-\color{blue}{\left(t1 + u\right)}\right)}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      12. remove-double-neg95.8%

        \[\leadsto \frac{-v}{\frac{\color{blue}{t1 + u}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      13. add-sqr-sqrt51.5%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{-t1} \cdot \sqrt{-t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      14. sqrt-unprod37.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}} \cdot \left(\left(-u\right) - t1\right)} \]
      15. sqr-neg37.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\sqrt{\color{blue}{t1 \cdot t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      16. sqrt-unprod16.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      17. add-sqr-sqrt31.7%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
      19. distribute-neg-in31.7%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      21. add-sqr-sqrt15.8%

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}\right)}} \]
      22. sqrt-unprod43.4%

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

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

      \[\leadsto \frac{-v}{\color{blue}{t1 + 2 \cdot u}} \]
    8. Step-by-step derivation
      1. *-commutative85.4%

        \[\leadsto \frac{-v}{t1 + \color{blue}{u \cdot 2}} \]
    9. Simplified85.4%

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

    if -1.6e9 < t1 < 1.7499999999999999e-29

    1. Initial program 84.5%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac95.2%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg95.2%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac295.2%

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(-\frac{t1}{u}\right)} \cdot \frac{v}{t1 + u} \]
      2. distribute-neg-frac281.4%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -1600000000 \lor \neg \left(t1 \leq 1.75 \cdot 10^{-29}\right):\\ \;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{t1 + u} \cdot \frac{t1}{-u}\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 78.7% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -7800000000 \lor \neg \left(t1 \leq 3.2 \cdot 10^{-28}\right):\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\

\mathbf{else}:\\
\;\;\;\;\frac{t1 \cdot \frac{v}{-u}}{t1 + u}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t1 < -7.8e9 or 3.19999999999999982e-28 < t1

    1. Initial program 61.5%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac99.9%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg99.9%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac299.9%

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in99.9%

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num99.9%

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

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

        \[\leadsto \color{blue}{\frac{1 \cdot \left(-v\right)}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\left(t1 + u\right)\right)}} \]
      4. *-un-lft-identity95.8%

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

        \[\leadsto \frac{-v}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\color{blue}{\left(u + t1\right)}\right)} \]
      6. distribute-neg-in95.8%

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

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

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

        \[\leadsto \frac{-v}{\frac{-\color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      10. distribute-neg-in95.8%

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

        \[\leadsto \frac{-v}{\frac{-\left(-\color{blue}{\left(t1 + u\right)}\right)}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      12. remove-double-neg95.8%

        \[\leadsto \frac{-v}{\frac{\color{blue}{t1 + u}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      13. add-sqr-sqrt51.5%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{-t1} \cdot \sqrt{-t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      14. sqrt-unprod37.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}} \cdot \left(\left(-u\right) - t1\right)} \]
      15. sqr-neg37.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\sqrt{\color{blue}{t1 \cdot t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      16. sqrt-unprod16.0%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      17. add-sqr-sqrt31.7%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
      19. distribute-neg-in31.7%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      21. add-sqr-sqrt15.8%

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}\right)}} \]
      22. sqrt-unprod43.4%

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

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

      \[\leadsto \frac{-v}{\color{blue}{t1 + 2 \cdot u}} \]
    8. Step-by-step derivation
      1. *-commutative85.4%

        \[\leadsto \frac{-v}{t1 + \color{blue}{u \cdot 2}} \]
    9. Simplified85.4%

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

    if -7.8e9 < t1 < 3.19999999999999982e-28

    1. Initial program 84.5%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac95.2%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg95.2%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac295.2%

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

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

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. frac-2neg95.2%

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

        \[\leadsto \color{blue}{\frac{\left(-t1\right) \cdot \frac{v}{t1 + u}}{-\left(\left(-u\right) - t1\right)}} \]
      3. sub-neg97.2%

        \[\leadsto \frac{\left(-t1\right) \cdot \frac{v}{t1 + u}}{-\color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
      4. distribute-neg-in97.2%

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

        \[\leadsto \frac{\left(-t1\right) \cdot \frac{v}{t1 + u}}{-\left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      6. remove-double-neg97.2%

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{-t1}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)}} \]
      10. add-sqr-sqrt54.8%

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

        \[\leadsto \frac{\frac{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      12. sqr-neg61.9%

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

        \[\leadsto \frac{\frac{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      14. add-sqr-sqrt43.3%

        \[\leadsto \frac{\frac{\color{blue}{t1}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      15. add-sqr-sqrt22.3%

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

        \[\leadsto \frac{\frac{t1}{t1 + u} \cdot \left(-v\right)}{\color{blue}{\sqrt{\left(-\left(t1 + u\right)\right) \cdot \left(-\left(t1 + u\right)\right)}}} \]
      17. sqr-neg61.7%

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

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

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

      \[\leadsto \frac{\color{blue}{-1 \cdot \frac{t1 \cdot v}{u}}}{t1 + u} \]
    8. Step-by-step derivation
      1. mul-1-neg81.1%

        \[\leadsto \frac{\color{blue}{-\frac{t1 \cdot v}{u}}}{t1 + u} \]
      2. associate-/l*83.3%

        \[\leadsto \frac{-\color{blue}{t1 \cdot \frac{v}{u}}}{t1 + u} \]
      3. distribute-rgt-neg-in83.3%

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

        \[\leadsto \frac{t1 \cdot \color{blue}{\frac{v}{-u}}}{t1 + u} \]
    9. Simplified83.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -7800000000 \lor \neg \left(t1 \leq 3.2 \cdot 10^{-28}\right):\\ \;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{t1 \cdot \frac{v}{-u}}{t1 + u}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 67.6% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;u \leq -1.04 \cdot 10^{+68} \lor \neg \left(u \leq 2.3 \cdot 10^{+165}\right):\\
\;\;\;\;\frac{v}{u} \cdot \frac{t1}{t1 + u}\\

\mathbf{else}:\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if u < -1.04e68 or 2.30000000000000016e165 < u

    1. Initial program 83.2%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac97.3%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg97.3%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac297.3%

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in97.3%

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. frac-2neg97.3%

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

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

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

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

        \[\leadsto \frac{\left(-t1\right) \cdot \frac{v}{t1 + u}}{-\left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      6. remove-double-neg99.9%

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

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      8. frac-2neg97.3%

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

        \[\leadsto \color{blue}{\frac{\frac{-t1}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)}} \]
      10. add-sqr-sqrt58.3%

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

        \[\leadsto \frac{\frac{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      12. sqr-neg71.1%

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

        \[\leadsto \frac{\frac{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      14. add-sqr-sqrt71.3%

        \[\leadsto \frac{\frac{\color{blue}{t1}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      15. add-sqr-sqrt43.4%

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

        \[\leadsto \frac{\frac{t1}{t1 + u} \cdot \left(-v\right)}{\color{blue}{\sqrt{\left(-\left(t1 + u\right)\right) \cdot \left(-\left(t1 + u\right)\right)}}} \]
      17. sqr-neg71.6%

        \[\leadsto \frac{\frac{t1}{t1 + u} \cdot \left(-v\right)}{\sqrt{\color{blue}{\left(t1 + u\right) \cdot \left(t1 + u\right)}}} \]
      18. sqrt-prod33.4%

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

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

      \[\leadsto \frac{\color{blue}{-1 \cdot \frac{t1 \cdot v}{u}}}{t1 + u} \]
    8. Step-by-step derivation
      1. mul-1-neg86.5%

        \[\leadsto \frac{\color{blue}{-\frac{t1 \cdot v}{u}}}{t1 + u} \]
      2. associate-/l*94.4%

        \[\leadsto \frac{-\color{blue}{t1 \cdot \frac{v}{u}}}{t1 + u} \]
      3. distribute-rgt-neg-in94.4%

        \[\leadsto \frac{\color{blue}{t1 \cdot \left(-\frac{v}{u}\right)}}{t1 + u} \]
      4. distribute-neg-frac294.4%

        \[\leadsto \frac{t1 \cdot \color{blue}{\frac{v}{-u}}}{t1 + u} \]
    9. Simplified94.4%

      \[\leadsto \frac{\color{blue}{t1 \cdot \frac{v}{-u}}}{t1 + u} \]
    10. Step-by-step derivation
      1. associate-/l*92.2%

        \[\leadsto \color{blue}{t1 \cdot \frac{\frac{v}{-u}}{t1 + u}} \]
      2. associate-/l/82.6%

        \[\leadsto t1 \cdot \color{blue}{\frac{v}{\left(t1 + u\right) \cdot \left(-u\right)}} \]
      3. add-sqr-sqrt53.3%

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

        \[\leadsto t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\sqrt{\left(-u\right) \cdot \left(-u\right)}}} \]
      5. sqr-neg82.6%

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

        \[\leadsto t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\left(\sqrt{u} \cdot \sqrt{u}\right)}} \]
      7. add-sqr-sqrt71.5%

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

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

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

        \[\leadsto \color{blue}{\frac{t1}{t1 + u} \cdot \frac{v}{u}} \]
      3. *-commutative71.5%

        \[\leadsto \color{blue}{\frac{v}{u} \cdot \frac{t1}{t1 + u}} \]
    13. Simplified71.5%

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

    if -1.04e68 < u < 2.30000000000000016e165

    1. Initial program 70.0%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac97.2%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg97.2%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac297.2%

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

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

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num97.1%

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

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

        \[\leadsto \color{blue}{\frac{1 \cdot \left(-v\right)}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\left(t1 + u\right)\right)}} \]
      4. *-un-lft-identity97.1%

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

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

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

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

        \[\leadsto \frac{-v}{\color{blue}{\frac{-\left(\left(-u\right) - t1\right)}{-t1}} \cdot \left(\left(-u\right) - t1\right)} \]
      9. sub-neg97.1%

        \[\leadsto \frac{-v}{\frac{-\color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      10. distribute-neg-in97.1%

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

        \[\leadsto \frac{-v}{\frac{-\left(-\color{blue}{\left(t1 + u\right)}\right)}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      12. remove-double-neg97.1%

        \[\leadsto \frac{-v}{\frac{\color{blue}{t1 + u}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      13. add-sqr-sqrt51.3%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}} \cdot \left(\left(-u\right) - t1\right)} \]
      15. sqr-neg40.6%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\sqrt{\color{blue}{t1 \cdot t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      16. sqrt-unprod10.8%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      17. add-sqr-sqrt21.1%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
      19. distribute-neg-in21.1%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      21. add-sqr-sqrt7.1%

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}\right)}} \]
      22. sqrt-unprod44.0%

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

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

      \[\leadsto \frac{-v}{\color{blue}{t1 + 2 \cdot u}} \]
    8. Step-by-step derivation
      1. *-commutative64.3%

        \[\leadsto \frac{-v}{t1 + \color{blue}{u \cdot 2}} \]
    9. Simplified64.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq -1.04 \cdot 10^{+68} \lor \neg \left(u \leq 2.3 \cdot 10^{+165}\right):\\ \;\;\;\;\frac{v}{u} \cdot \frac{t1}{t1 + u}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 68.1% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;u \leq -3.1 \cdot 10^{+100}:\\ \;\;\;\;t1 \cdot \frac{v}{u \cdot \left(t1 + u\right)}\\ \mathbf{elif}\;u \leq 4 \cdot 10^{+166}:\\ \;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{u} \cdot \frac{t1}{t1 + u}\\ \end{array} \end{array} \]
(FPCore (u v t1)
 :precision binary64
 (if (<= u -3.1e+100)
   (* t1 (/ v (* u (+ t1 u))))
   (if (<= u 4e+166) (/ v (- (- t1) (* u 2.0))) (* (/ v u) (/ t1 (+ t1 u))))))
double code(double u, double v, double t1) {
	double tmp;
	if (u <= -3.1e+100) {
		tmp = t1 * (v / (u * (t1 + u)));
	} else if (u <= 4e+166) {
		tmp = v / (-t1 - (u * 2.0));
	} else {
		tmp = (v / u) * (t1 / (t1 + u));
	}
	return tmp;
}
real(8) function code(u, v, t1)
    real(8), intent (in) :: u
    real(8), intent (in) :: v
    real(8), intent (in) :: t1
    real(8) :: tmp
    if (u <= (-3.1d+100)) then
        tmp = t1 * (v / (u * (t1 + u)))
    else if (u <= 4d+166) then
        tmp = v / (-t1 - (u * 2.0d0))
    else
        tmp = (v / u) * (t1 / (t1 + u))
    end if
    code = tmp
end function
public static double code(double u, double v, double t1) {
	double tmp;
	if (u <= -3.1e+100) {
		tmp = t1 * (v / (u * (t1 + u)));
	} else if (u <= 4e+166) {
		tmp = v / (-t1 - (u * 2.0));
	} else {
		tmp = (v / u) * (t1 / (t1 + u));
	}
	return tmp;
}
def code(u, v, t1):
	tmp = 0
	if u <= -3.1e+100:
		tmp = t1 * (v / (u * (t1 + u)))
	elif u <= 4e+166:
		tmp = v / (-t1 - (u * 2.0))
	else:
		tmp = (v / u) * (t1 / (t1 + u))
	return tmp
function code(u, v, t1)
	tmp = 0.0
	if (u <= -3.1e+100)
		tmp = Float64(t1 * Float64(v / Float64(u * Float64(t1 + u))));
	elseif (u <= 4e+166)
		tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0)));
	else
		tmp = Float64(Float64(v / u) * Float64(t1 / Float64(t1 + u)));
	end
	return tmp
end
function tmp_2 = code(u, v, t1)
	tmp = 0.0;
	if (u <= -3.1e+100)
		tmp = t1 * (v / (u * (t1 + u)));
	elseif (u <= 4e+166)
		tmp = v / (-t1 - (u * 2.0));
	else
		tmp = (v / u) * (t1 / (t1 + u));
	end
	tmp_2 = tmp;
end
code[u_, v_, t1_] := If[LessEqual[u, -3.1e+100], N[(t1 * N[(v / N[(u * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, 4e+166], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(v / u), $MachinePrecision] * N[(t1 / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

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

\mathbf{elif}\;u \leq 4 \cdot 10^{+166}:\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\

\mathbf{else}:\\
\;\;\;\;\frac{v}{u} \cdot \frac{t1}{t1 + u}\\


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

    1. Initial program 85.7%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac99.2%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg99.2%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac299.2%

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

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

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. frac-2neg99.2%

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

        \[\leadsto \color{blue}{\frac{\left(-t1\right) \cdot \frac{v}{t1 + u}}{-\left(\left(-u\right) - t1\right)}} \]
      3. sub-neg99.8%

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

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

        \[\leadsto \frac{\left(-t1\right) \cdot \frac{v}{t1 + u}}{-\left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      6. remove-double-neg99.8%

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{-t1}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)}} \]
      10. add-sqr-sqrt68.0%

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

        \[\leadsto \frac{\frac{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      12. sqr-neg75.7%

        \[\leadsto \frac{\frac{\sqrt{\color{blue}{t1 \cdot t1}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      13. sqrt-unprod21.3%

        \[\leadsto \frac{\frac{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      14. add-sqr-sqrt72.0%

        \[\leadsto \frac{\frac{\color{blue}{t1}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      15. add-sqr-sqrt72.0%

        \[\leadsto \frac{\frac{t1}{t1 + u} \cdot \left(-v\right)}{\color{blue}{\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}}} \]
      16. sqrt-unprod72.2%

        \[\leadsto \frac{\frac{t1}{t1 + u} \cdot \left(-v\right)}{\color{blue}{\sqrt{\left(-\left(t1 + u\right)\right) \cdot \left(-\left(t1 + u\right)\right)}}} \]
      17. sqr-neg72.2%

        \[\leadsto \frac{\frac{t1}{t1 + u} \cdot \left(-v\right)}{\sqrt{\color{blue}{\left(t1 + u\right) \cdot \left(t1 + u\right)}}} \]
      18. sqrt-prod0.0%

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

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

      \[\leadsto \frac{\color{blue}{-1 \cdot \frac{t1 \cdot v}{u}}}{t1 + u} \]
    8. Step-by-step derivation
      1. mul-1-neg89.8%

        \[\leadsto \frac{\color{blue}{-\frac{t1 \cdot v}{u}}}{t1 + u} \]
      2. associate-/l*97.9%

        \[\leadsto \frac{-\color{blue}{t1 \cdot \frac{v}{u}}}{t1 + u} \]
      3. distribute-rgt-neg-in97.9%

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

        \[\leadsto \frac{t1 \cdot \color{blue}{\frac{v}{-u}}}{t1 + u} \]
    9. Simplified97.9%

      \[\leadsto \frac{\color{blue}{t1 \cdot \frac{v}{-u}}}{t1 + u} \]
    10. Step-by-step derivation
      1. associate-/l*94.0%

        \[\leadsto \color{blue}{t1 \cdot \frac{\frac{v}{-u}}{t1 + u}} \]
      2. *-commutative94.0%

        \[\leadsto \color{blue}{\frac{\frac{v}{-u}}{t1 + u} \cdot t1} \]
      3. associate-/l/86.2%

        \[\leadsto \color{blue}{\frac{v}{\left(t1 + u\right) \cdot \left(-u\right)}} \cdot t1 \]
      4. add-sqr-sqrt86.0%

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

        \[\leadsto \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\sqrt{\left(-u\right) \cdot \left(-u\right)}}} \cdot t1 \]
      6. sqr-neg86.2%

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

        \[\leadsto \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\left(\sqrt{u} \cdot \sqrt{u}\right)}} \cdot t1 \]
      8. add-sqr-sqrt72.2%

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

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

    if -3.10000000000000007e100 < u < 3.99999999999999976e166

    1. Initial program 70.6%

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

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg96.7%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac296.7%

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in96.7%

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num96.7%

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

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

        \[\leadsto \color{blue}{\frac{1 \cdot \left(-v\right)}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\left(t1 + u\right)\right)}} \]
      4. *-un-lft-identity96.7%

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

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

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

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

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

        \[\leadsto \frac{-v}{\frac{-\color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      10. distribute-neg-in96.7%

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

        \[\leadsto \frac{-v}{\frac{-\left(-\color{blue}{\left(t1 + u\right)}\right)}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      12. remove-double-neg96.7%

        \[\leadsto \frac{-v}{\frac{\color{blue}{t1 + u}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      13. add-sqr-sqrt49.8%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{-t1} \cdot \sqrt{-t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      14. sqrt-unprod40.8%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}} \cdot \left(\left(-u\right) - t1\right)} \]
      15. sqr-neg40.8%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      17. add-sqr-sqrt21.5%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{t1}} \cdot \left(\left(-u\right) - t1\right)} \]
      18. sub-neg21.5%

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
      19. distribute-neg-in21.5%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      21. add-sqr-sqrt8.1%

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}\right)}} \]
      22. sqrt-unprod43.5%

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

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

      \[\leadsto \frac{-v}{\color{blue}{t1 + 2 \cdot u}} \]
    8. Step-by-step derivation
      1. *-commutative63.0%

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

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

    if 3.99999999999999976e166 < u

    1. Initial program 78.9%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac96.9%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg96.9%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac296.9%

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in96.9%

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. frac-2neg96.9%

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

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

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

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

        \[\leadsto \frac{\left(-t1\right) \cdot \frac{v}{t1 + u}}{-\left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      6. remove-double-neg99.9%

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

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

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

        \[\leadsto \color{blue}{\frac{\frac{-t1}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)}} \]
      10. add-sqr-sqrt53.3%

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

        \[\leadsto \frac{\frac{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      12. sqr-neg69.9%

        \[\leadsto \frac{\frac{\sqrt{\color{blue}{t1 \cdot t1}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      13. sqrt-unprod31.8%

        \[\leadsto \frac{\frac{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      14. add-sqr-sqrt79.1%

        \[\leadsto \frac{\frac{\color{blue}{t1}}{t1 + u} \cdot \left(-v\right)}{-\left(t1 + u\right)} \]
      15. add-sqr-sqrt3.3%

        \[\leadsto \frac{\frac{t1}{t1 + u} \cdot \left(-v\right)}{\color{blue}{\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}}} \]
      16. sqrt-unprod79.4%

        \[\leadsto \frac{\frac{t1}{t1 + u} \cdot \left(-v\right)}{\color{blue}{\sqrt{\left(-\left(t1 + u\right)\right) \cdot \left(-\left(t1 + u\right)\right)}}} \]
      17. sqr-neg79.4%

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

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

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

      \[\leadsto \frac{\color{blue}{-1 \cdot \frac{t1 \cdot v}{u}}}{t1 + u} \]
    8. Step-by-step derivation
      1. mul-1-neg84.8%

        \[\leadsto \frac{\color{blue}{-\frac{t1 \cdot v}{u}}}{t1 + u} \]
      2. associate-/l*93.9%

        \[\leadsto \frac{-\color{blue}{t1 \cdot \frac{v}{u}}}{t1 + u} \]
      3. distribute-rgt-neg-in93.9%

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

        \[\leadsto \frac{t1 \cdot \color{blue}{\frac{v}{-u}}}{t1 + u} \]
    9. Simplified93.9%

      \[\leadsto \frac{\color{blue}{t1 \cdot \frac{v}{-u}}}{t1 + u} \]
    10. Step-by-step derivation
      1. associate-/l*93.8%

        \[\leadsto \color{blue}{t1 \cdot \frac{\frac{v}{-u}}{t1 + u}} \]
      2. associate-/l/79.4%

        \[\leadsto t1 \cdot \color{blue}{\frac{v}{\left(t1 + u\right) \cdot \left(-u\right)}} \]
      3. add-sqr-sqrt0.0%

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

        \[\leadsto t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\sqrt{\left(-u\right) \cdot \left(-u\right)}}} \]
      5. sqr-neg79.4%

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

        \[\leadsto t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \color{blue}{\left(\sqrt{u} \cdot \sqrt{u}\right)}} \]
      7. add-sqr-sqrt79.4%

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

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

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

        \[\leadsto \color{blue}{\frac{t1}{t1 + u} \cdot \frac{v}{u}} \]
      3. *-commutative79.6%

        \[\leadsto \color{blue}{\frac{v}{u} \cdot \frac{t1}{t1 + u}} \]
    13. Simplified79.6%

      \[\leadsto \color{blue}{\frac{v}{u} \cdot \frac{t1}{t1 + u}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification66.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq -3.1 \cdot 10^{+100}:\\ \;\;\;\;t1 \cdot \frac{v}{u \cdot \left(t1 + u\right)}\\ \mathbf{elif}\;u \leq 4 \cdot 10^{+166}:\\ \;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{u} \cdot \frac{t1}{t1 + u}\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 64.7% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;u \leq -1.4 \cdot 10^{+111} \lor \neg \left(u \leq 2.9 \cdot 10^{+165}\right):\\
\;\;\;\;\frac{v \cdot \frac{t1}{u}}{t1}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if u < -1.4e111 or 2.90000000000000006e165 < u

    1. Initial program 82.6%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-/l*83.1%

        \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      2. distribute-lft-neg-out83.1%

        \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in83.1%

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

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

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

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

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

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

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

        \[\leadsto t1 \cdot \frac{\color{blue}{-v}}{t1 \cdot u} \]
    8. Simplified46.1%

      \[\leadsto t1 \cdot \color{blue}{\frac{-v}{t1 \cdot u}} \]
    9. Step-by-step derivation
      1. associate-*r/45.7%

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

        \[\leadsto \frac{t1 \cdot \left(-v\right)}{\color{blue}{u \cdot t1}} \]
      3. distribute-rgt-neg-in45.7%

        \[\leadsto \frac{\color{blue}{-t1 \cdot v}}{u \cdot t1} \]
      4. associate-/r*52.2%

        \[\leadsto \color{blue}{\frac{\frac{-t1 \cdot v}{u}}{t1}} \]
      5. remove-double-neg52.2%

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

        \[\leadsto \frac{\color{blue}{\frac{t1 \cdot v}{-u}}}{t1} \]
      7. *-commutative52.2%

        \[\leadsto \frac{\frac{\color{blue}{v \cdot t1}}{-u}}{t1} \]
      8. associate-/l*68.6%

        \[\leadsto \frac{\color{blue}{v \cdot \frac{t1}{-u}}}{t1} \]
      9. add-sqr-sqrt40.8%

        \[\leadsto \frac{v \cdot \frac{t1}{\color{blue}{\sqrt{-u} \cdot \sqrt{-u}}}}{t1} \]
      10. sqrt-unprod77.0%

        \[\leadsto \frac{v \cdot \frac{t1}{\color{blue}{\sqrt{\left(-u\right) \cdot \left(-u\right)}}}}{t1} \]
      11. sqr-neg77.0%

        \[\leadsto \frac{v \cdot \frac{t1}{\sqrt{\color{blue}{u \cdot u}}}}{t1} \]
      12. sqrt-unprod27.8%

        \[\leadsto \frac{v \cdot \frac{t1}{\color{blue}{\sqrt{u} \cdot \sqrt{u}}}}{t1} \]
      13. add-sqr-sqrt68.5%

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

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

    if -1.4e111 < u < 2.90000000000000006e165

    1. Initial program 70.9%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-/l*74.0%

        \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      2. distribute-lft-neg-out74.0%

        \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in74.0%

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{t1 \cdot v}{\left(-\left(t1 + u\right)\right) \cdot t1}} \]
      3. *-commutative43.5%

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

        \[\leadsto \frac{t1 \cdot v}{t1 \cdot \left(-\color{blue}{\left(u + t1\right)}\right)} \]
      5. distribute-neg-in43.5%

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

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

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

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

        \[\leadsto \frac{t1 \cdot v}{t1 \cdot \left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      10. add-sqr-sqrt22.1%

        \[\leadsto \frac{t1 \cdot v}{t1 \cdot \color{blue}{\left(\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}\right)}} \]
      11. sqrt-unprod34.4%

        \[\leadsto \frac{t1 \cdot v}{t1 \cdot \color{blue}{\sqrt{\left(-\left(t1 + u\right)\right) \cdot \left(-\left(t1 + u\right)\right)}}} \]
      12. sqr-neg34.4%

        \[\leadsto \frac{t1 \cdot v}{t1 \cdot \sqrt{\color{blue}{\left(t1 + u\right) \cdot \left(t1 + u\right)}}} \]
      13. sqrt-unprod12.2%

        \[\leadsto \frac{t1 \cdot v}{t1 \cdot \color{blue}{\left(\sqrt{t1 + u} \cdot \sqrt{t1 + u}\right)}} \]
      14. add-sqr-sqrt18.8%

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

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

        \[\leadsto \color{blue}{\frac{-t1 \cdot v}{-t1 \cdot \left(t1 + u\right)}} \]
      2. div-inv18.8%

        \[\leadsto \color{blue}{\left(-t1 \cdot v\right) \cdot \frac{1}{-t1 \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in18.8%

        \[\leadsto \color{blue}{\left(t1 \cdot \left(-v\right)\right)} \cdot \frac{1}{-t1 \cdot \left(t1 + u\right)} \]
      4. add-sqr-sqrt10.4%

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

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

        \[\leadsto \left(t1 \cdot \sqrt{\color{blue}{v \cdot v}}\right) \cdot \frac{1}{-t1 \cdot \left(t1 + u\right)} \]
      7. sqrt-unprod20.4%

        \[\leadsto \left(t1 \cdot \color{blue}{\left(\sqrt{v} \cdot \sqrt{v}\right)}\right) \cdot \frac{1}{-t1 \cdot \left(t1 + u\right)} \]
      8. add-sqr-sqrt43.2%

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

        \[\leadsto \color{blue}{\left(v \cdot t1\right)} \cdot \frac{1}{-t1 \cdot \left(t1 + u\right)} \]
      10. distribute-rgt-neg-in43.2%

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

        \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \left(-\color{blue}{\left(u + t1\right)}\right)} \]
      12. distribute-neg-in43.2%

        \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
      13. add-sqr-sqrt21.1%

        \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \left(\color{blue}{\sqrt{-u} \cdot \sqrt{-u}} + \left(-t1\right)\right)} \]
      14. sqrt-unprod44.0%

        \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \left(\color{blue}{\sqrt{\left(-u\right) \cdot \left(-u\right)}} + \left(-t1\right)\right)} \]
      15. sqr-neg44.0%

        \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \left(\sqrt{\color{blue}{u \cdot u}} + \left(-t1\right)\right)} \]
      16. sqrt-unprod22.3%

        \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \left(\color{blue}{\sqrt{u} \cdot \sqrt{u}} + \left(-t1\right)\right)} \]
      17. add-sqr-sqrt43.6%

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

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

        \[\leadsto \color{blue}{\frac{\left(v \cdot t1\right) \cdot 1}{t1 \cdot \left(u + \left(-t1\right)\right)}} \]
      2. *-rgt-identity43.9%

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

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

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

        \[\leadsto \frac{v \cdot \color{blue}{1}}{u + \left(-t1\right)} \]
      6. *-rgt-identity62.1%

        \[\leadsto \frac{\color{blue}{v}}{u + \left(-t1\right)} \]
      7. sub-neg62.1%

        \[\leadsto \frac{v}{\color{blue}{u - t1}} \]
    11. Simplified62.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq -1.4 \cdot 10^{+111} \lor \neg \left(u \leq 2.9 \cdot 10^{+165}\right):\\ \;\;\;\;\frac{v \cdot \frac{t1}{u}}{t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{u - t1}\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 57.7% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;u \leq -1.08 \cdot 10^{+111}:\\ \;\;\;\;\frac{v}{-u}\\ \mathbf{elif}\;u \leq 1.35 \cdot 10^{+91}:\\ \;\;\;\;\frac{v}{-t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{t1 + u}\\ \end{array} \end{array} \]
(FPCore (u v t1)
 :precision binary64
 (if (<= u -1.08e+111)
   (/ v (- u))
   (if (<= u 1.35e+91) (/ v (- t1)) (/ v (+ t1 u)))))
double code(double u, double v, double t1) {
	double tmp;
	if (u <= -1.08e+111) {
		tmp = v / -u;
	} else if (u <= 1.35e+91) {
		tmp = v / -t1;
	} else {
		tmp = v / (t1 + u);
	}
	return tmp;
}
real(8) function code(u, v, t1)
    real(8), intent (in) :: u
    real(8), intent (in) :: v
    real(8), intent (in) :: t1
    real(8) :: tmp
    if (u <= (-1.08d+111)) then
        tmp = v / -u
    else if (u <= 1.35d+91) then
        tmp = v / -t1
    else
        tmp = v / (t1 + u)
    end if
    code = tmp
end function
public static double code(double u, double v, double t1) {
	double tmp;
	if (u <= -1.08e+111) {
		tmp = v / -u;
	} else if (u <= 1.35e+91) {
		tmp = v / -t1;
	} else {
		tmp = v / (t1 + u);
	}
	return tmp;
}
def code(u, v, t1):
	tmp = 0
	if u <= -1.08e+111:
		tmp = v / -u
	elif u <= 1.35e+91:
		tmp = v / -t1
	else:
		tmp = v / (t1 + u)
	return tmp
function code(u, v, t1)
	tmp = 0.0
	if (u <= -1.08e+111)
		tmp = Float64(v / Float64(-u));
	elseif (u <= 1.35e+91)
		tmp = Float64(v / Float64(-t1));
	else
		tmp = Float64(v / Float64(t1 + u));
	end
	return tmp
end
function tmp_2 = code(u, v, t1)
	tmp = 0.0;
	if (u <= -1.08e+111)
		tmp = v / -u;
	elseif (u <= 1.35e+91)
		tmp = v / -t1;
	else
		tmp = v / (t1 + u);
	end
	tmp_2 = tmp;
end
code[u_, v_, t1_] := If[LessEqual[u, -1.08e+111], N[(v / (-u)), $MachinePrecision], If[LessEqual[u, 1.35e+91], N[(v / (-t1)), $MachinePrecision], N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;u \leq -1.08 \cdot 10^{+111}:\\
\;\;\;\;\frac{v}{-u}\\

\mathbf{elif}\;u \leq 1.35 \cdot 10^{+91}:\\
\;\;\;\;\frac{v}{-t1}\\

\mathbf{else}:\\
\;\;\;\;\frac{v}{t1 + u}\\


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

    1. Initial program 85.5%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-/l*85.9%

        \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      2. distribute-lft-neg-out85.9%

        \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in85.9%

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

        \[\leadsto t1 \cdot \left(-\color{blue}{\frac{\frac{v}{t1 + u}}{t1 + u}}\right) \]
      5. distribute-neg-frac293.9%

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{v}{u}} \]
    7. Step-by-step derivation
      1. mul-1-neg35.5%

        \[\leadsto \color{blue}{-\frac{v}{u}} \]
      2. distribute-neg-frac235.5%

        \[\leadsto \color{blue}{\frac{v}{-u}} \]
    8. Simplified35.5%

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

    if -1.08000000000000004e111 < u < 1.35e91

    1. Initial program 70.7%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac96.4%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg96.4%

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

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in96.4%

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{v}{t1}} \]
    6. Step-by-step derivation
      1. associate-*r/63.7%

        \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1}} \]
      2. neg-mul-163.7%

        \[\leadsto \frac{\color{blue}{-v}}{t1} \]
    7. Simplified63.7%

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

    if 1.35e91 < u

    1. Initial program 76.2%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-/l*78.7%

        \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      2. distribute-lft-neg-out78.7%

        \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in78.7%

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

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

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

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

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

        \[\leadsto t1 \cdot \color{blue}{\frac{1}{\frac{-\left(t1 + u\right)}{\frac{v}{t1}}}} \]
      2. un-div-inv51.7%

        \[\leadsto \color{blue}{\frac{t1}{\frac{-\left(t1 + u\right)}{\frac{v}{t1}}}} \]
      3. div-inv51.7%

        \[\leadsto \frac{t1}{\color{blue}{\left(-\left(t1 + u\right)\right) \cdot \frac{1}{\frac{v}{t1}}}} \]
      4. add-sqr-sqrt4.4%

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

        \[\leadsto \frac{t1}{\color{blue}{\sqrt{\left(-\left(t1 + u\right)\right) \cdot \left(-\left(t1 + u\right)\right)}} \cdot \frac{1}{\frac{v}{t1}}} \]
      6. sqr-neg58.6%

        \[\leadsto \frac{t1}{\sqrt{\color{blue}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \cdot \frac{1}{\frac{v}{t1}}} \]
      7. sqrt-unprod46.3%

        \[\leadsto \frac{t1}{\color{blue}{\left(\sqrt{t1 + u} \cdot \sqrt{t1 + u}\right)} \cdot \frac{1}{\frac{v}{t1}}} \]
      8. add-sqr-sqrt48.6%

        \[\leadsto \frac{t1}{\color{blue}{\left(t1 + u\right)} \cdot \frac{1}{\frac{v}{t1}}} \]
      9. clear-num48.6%

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

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

        \[\leadsto \color{blue}{\frac{\frac{t1}{\frac{t1}{v}}}{t1 + u}} \]
      2. associate-/r/45.0%

        \[\leadsto \frac{\color{blue}{\frac{t1}{t1} \cdot v}}{t1 + u} \]
      3. *-inverses45.0%

        \[\leadsto \frac{\color{blue}{1} \cdot v}{t1 + u} \]
      4. *-lft-identity45.0%

        \[\leadsto \frac{\color{blue}{v}}{t1 + u} \]
    9. Simplified45.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq -1.08 \cdot 10^{+111}:\\ \;\;\;\;\frac{v}{-u}\\ \mathbf{elif}\;u \leq 1.35 \cdot 10^{+91}:\\ \;\;\;\;\frac{v}{-t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{t1 + u}\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 57.4% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;u \leq -9 \cdot 10^{+110} \lor \neg \left(u \leq 2.5 \cdot 10^{+91}\right):\\ \;\;\;\;\frac{v}{-u}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{-t1}\\ \end{array} \end{array} \]
(FPCore (u v t1)
 :precision binary64
 (if (or (<= u -9e+110) (not (<= u 2.5e+91))) (/ v (- u)) (/ v (- t1))))
double code(double u, double v, double t1) {
	double tmp;
	if ((u <= -9e+110) || !(u <= 2.5e+91)) {
		tmp = v / -u;
	} else {
		tmp = v / -t1;
	}
	return tmp;
}
real(8) function code(u, v, t1)
    real(8), intent (in) :: u
    real(8), intent (in) :: v
    real(8), intent (in) :: t1
    real(8) :: tmp
    if ((u <= (-9d+110)) .or. (.not. (u <= 2.5d+91))) then
        tmp = v / -u
    else
        tmp = v / -t1
    end if
    code = tmp
end function
public static double code(double u, double v, double t1) {
	double tmp;
	if ((u <= -9e+110) || !(u <= 2.5e+91)) {
		tmp = v / -u;
	} else {
		tmp = v / -t1;
	}
	return tmp;
}
def code(u, v, t1):
	tmp = 0
	if (u <= -9e+110) or not (u <= 2.5e+91):
		tmp = v / -u
	else:
		tmp = v / -t1
	return tmp
function code(u, v, t1)
	tmp = 0.0
	if ((u <= -9e+110) || !(u <= 2.5e+91))
		tmp = Float64(v / Float64(-u));
	else
		tmp = Float64(v / Float64(-t1));
	end
	return tmp
end
function tmp_2 = code(u, v, t1)
	tmp = 0.0;
	if ((u <= -9e+110) || ~((u <= 2.5e+91)))
		tmp = v / -u;
	else
		tmp = v / -t1;
	end
	tmp_2 = tmp;
end
code[u_, v_, t1_] := If[Or[LessEqual[u, -9e+110], N[Not[LessEqual[u, 2.5e+91]], $MachinePrecision]], N[(v / (-u)), $MachinePrecision], N[(v / (-t1)), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;u \leq -9 \cdot 10^{+110} \lor \neg \left(u \leq 2.5 \cdot 10^{+91}\right):\\
\;\;\;\;\frac{v}{-u}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if u < -9.0000000000000005e110 or 2.5000000000000001e91 < u

    1. Initial program 80.8%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-/l*82.2%

        \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      2. distribute-lft-neg-out82.2%

        \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in82.2%

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

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

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{v}{u}} \]
    7. Step-by-step derivation
      1. mul-1-neg39.7%

        \[\leadsto \color{blue}{-\frac{v}{u}} \]
      2. distribute-neg-frac239.7%

        \[\leadsto \color{blue}{\frac{v}{-u}} \]
    8. Simplified39.7%

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

    if -9.0000000000000005e110 < u < 2.5000000000000001e91

    1. Initial program 70.7%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac96.4%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg96.4%

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

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

        \[\leadsto \frac{t1}{-\color{blue}{\left(u + t1\right)}} \cdot \frac{v}{t1 + u} \]
      5. distribute-neg-in96.4%

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{v}{t1}} \]
    6. Step-by-step derivation
      1. associate-*r/63.7%

        \[\leadsto \color{blue}{\frac{-1 \cdot v}{t1}} \]
      2. neg-mul-163.7%

        \[\leadsto \frac{\color{blue}{-v}}{t1} \]
    7. Simplified63.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;u \leq -9 \cdot 10^{+110} \lor \neg \left(u \leq 2.5 \cdot 10^{+91}\right):\\ \;\;\;\;\frac{v}{-u}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{-t1}\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 23.0% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t1 \leq -3 \cdot 10^{+173} \lor \neg \left(t1 \leq 7.5 \cdot 10^{+35}\right):\\ \;\;\;\;\frac{v}{t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{u}\\ \end{array} \end{array} \]
(FPCore (u v t1)
 :precision binary64
 (if (or (<= t1 -3e+173) (not (<= t1 7.5e+35))) (/ v t1) (/ v u)))
double code(double u, double v, double t1) {
	double tmp;
	if ((t1 <= -3e+173) || !(t1 <= 7.5e+35)) {
		tmp = v / t1;
	} else {
		tmp = v / u;
	}
	return tmp;
}
real(8) function code(u, v, t1)
    real(8), intent (in) :: u
    real(8), intent (in) :: v
    real(8), intent (in) :: t1
    real(8) :: tmp
    if ((t1 <= (-3d+173)) .or. (.not. (t1 <= 7.5d+35))) then
        tmp = v / t1
    else
        tmp = v / u
    end if
    code = tmp
end function
public static double code(double u, double v, double t1) {
	double tmp;
	if ((t1 <= -3e+173) || !(t1 <= 7.5e+35)) {
		tmp = v / t1;
	} else {
		tmp = v / u;
	}
	return tmp;
}
def code(u, v, t1):
	tmp = 0
	if (t1 <= -3e+173) or not (t1 <= 7.5e+35):
		tmp = v / t1
	else:
		tmp = v / u
	return tmp
function code(u, v, t1)
	tmp = 0.0
	if ((t1 <= -3e+173) || !(t1 <= 7.5e+35))
		tmp = Float64(v / t1);
	else
		tmp = Float64(v / u);
	end
	return tmp
end
function tmp_2 = code(u, v, t1)
	tmp = 0.0;
	if ((t1 <= -3e+173) || ~((t1 <= 7.5e+35)))
		tmp = v / t1;
	else
		tmp = v / u;
	end
	tmp_2 = tmp;
end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -3e+173], N[Not[LessEqual[t1, 7.5e+35]], $MachinePrecision]], N[(v / t1), $MachinePrecision], N[(v / u), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -3 \cdot 10^{+173} \lor \neg \left(t1 \leq 7.5 \cdot 10^{+35}\right):\\
\;\;\;\;\frac{v}{t1}\\

\mathbf{else}:\\
\;\;\;\;\frac{v}{u}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t1 < -2.9999999999999998e173 or 7.4999999999999999e35 < t1

    1. Initial program 44.8%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-/l*47.9%

        \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      2. distribute-lft-neg-out47.9%

        \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in47.9%

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

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

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

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

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

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

        \[\leadsto \frac{t1 \cdot \frac{v}{t1}}{-\color{blue}{\left(u + t1\right)}} \]
      3. distribute-neg-in89.5%

        \[\leadsto \frac{t1 \cdot \frac{v}{t1}}{\color{blue}{\left(-u\right) + \left(-t1\right)}} \]
      4. sub-neg89.5%

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

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

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

        \[\leadsto \color{blue}{\frac{1 \cdot \frac{v}{t1}}{\frac{\left(-u\right) - t1}{t1}}} \]
      8. *-un-lft-identity89.5%

        \[\leadsto \frac{\color{blue}{\frac{v}{t1}}}{\frac{\left(-u\right) - t1}{t1}} \]
      9. sub-neg89.5%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{\left(-u\right) + \left(-t1\right)}}{t1}} \]
      10. distribute-neg-in89.5%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{-\left(u + t1\right)}}{t1}} \]
      11. +-commutative89.5%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{-\color{blue}{\left(t1 + u\right)}}{t1}} \]
      12. add-sqr-sqrt33.6%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}}}{t1}} \]
      13. sqrt-unprod38.5%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{\sqrt{\left(-\left(t1 + u\right)\right) \cdot \left(-\left(t1 + u\right)\right)}}}{t1}} \]
      14. sqr-neg38.5%

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

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{\sqrt{t1 + u} \cdot \sqrt{t1 + u}}}{t1}} \]
      16. add-sqr-sqrt37.8%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{t1 + u}}{t1}} \]
    7. Applied egg-rr37.8%

      \[\leadsto \color{blue}{\frac{\frac{v}{t1}}{\frac{t1 + u}{t1}}} \]
    8. Taylor expanded in t1 around inf 37.6%

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

    if -2.9999999999999998e173 < t1 < 7.4999999999999999e35

    1. Initial program 83.9%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-/l*86.0%

        \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      2. distribute-lft-neg-out86.0%

        \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in86.0%

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

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

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

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

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

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

        \[\leadsto \frac{t1 \cdot \frac{v}{t1}}{-\color{blue}{\left(u + t1\right)}} \]
      3. distribute-neg-in46.2%

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

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

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

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

        \[\leadsto \color{blue}{\frac{1 \cdot \frac{v}{t1}}{\frac{\left(-u\right) - t1}{t1}}} \]
      8. *-un-lft-identity51.8%

        \[\leadsto \frac{\color{blue}{\frac{v}{t1}}}{\frac{\left(-u\right) - t1}{t1}} \]
      9. sub-neg51.8%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{\left(-u\right) + \left(-t1\right)}}{t1}} \]
      10. distribute-neg-in51.8%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{-\left(u + t1\right)}}{t1}} \]
      11. +-commutative51.8%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{-\color{blue}{\left(t1 + u\right)}}{t1}} \]
      12. add-sqr-sqrt31.9%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}}}{t1}} \]
      13. sqrt-unprod47.2%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{\sqrt{\left(-\left(t1 + u\right)\right) \cdot \left(-\left(t1 + u\right)\right)}}}{t1}} \]
      14. sqr-neg47.2%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\sqrt{\color{blue}{\left(t1 + u\right) \cdot \left(t1 + u\right)}}}{t1}} \]
      15. sqrt-unprod12.8%

        \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{\sqrt{t1 + u} \cdot \sqrt{t1 + u}}}{t1}} \]
      16. add-sqr-sqrt25.6%

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

      \[\leadsto \color{blue}{\frac{\frac{v}{t1}}{\frac{t1 + u}{t1}}} \]
    8. Taylor expanded in t1 around 0 20.5%

      \[\leadsto \color{blue}{\frac{v}{u}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification24.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t1 \leq -3 \cdot 10^{+173} \lor \neg \left(t1 \leq 7.5 \cdot 10^{+35}\right):\\ \;\;\;\;\frac{v}{t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{u}\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 62.6% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;u \leq -5.7 \cdot 10^{+68}:\\ \;\;\;\;\frac{v \cdot \frac{t1}{u}}{t1}\\ \mathbf{else}:\\ \;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\ \end{array} \end{array} \]
(FPCore (u v t1)
 :precision binary64
 (if (<= u -5.7e+68) (/ (* v (/ t1 u)) t1) (/ v (- (- t1) (* u 2.0)))))
double code(double u, double v, double t1) {
	double tmp;
	if (u <= -5.7e+68) {
		tmp = (v * (t1 / u)) / t1;
	} else {
		tmp = v / (-t1 - (u * 2.0));
	}
	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 <= (-5.7d+68)) then
        tmp = (v * (t1 / u)) / t1
    else
        tmp = v / (-t1 - (u * 2.0d0))
    end if
    code = tmp
end function
public static double code(double u, double v, double t1) {
	double tmp;
	if (u <= -5.7e+68) {
		tmp = (v * (t1 / u)) / t1;
	} else {
		tmp = v / (-t1 - (u * 2.0));
	}
	return tmp;
}
def code(u, v, t1):
	tmp = 0
	if u <= -5.7e+68:
		tmp = (v * (t1 / u)) / t1
	else:
		tmp = v / (-t1 - (u * 2.0))
	return tmp
function code(u, v, t1)
	tmp = 0.0
	if (u <= -5.7e+68)
		tmp = Float64(Float64(v * Float64(t1 / u)) / t1);
	else
		tmp = Float64(v / Float64(Float64(-t1) - Float64(u * 2.0)));
	end
	return tmp
end
function tmp_2 = code(u, v, t1)
	tmp = 0.0;
	if (u <= -5.7e+68)
		tmp = (v * (t1 / u)) / t1;
	else
		tmp = v / (-t1 - (u * 2.0));
	end
	tmp_2 = tmp;
end
code[u_, v_, t1_] := If[LessEqual[u, -5.7e+68], N[(N[(v * N[(t1 / u), $MachinePrecision]), $MachinePrecision] / t1), $MachinePrecision], N[(v / N[((-t1) - N[(u * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;u \leq -5.7 \cdot 10^{+68}:\\
\;\;\;\;\frac{v \cdot \frac{t1}{u}}{t1}\\

\mathbf{else}:\\
\;\;\;\;\frac{v}{\left(-t1\right) - u \cdot 2}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if u < -5.6999999999999996e68

    1. Initial program 85.7%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. associate-/l*86.1%

        \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      2. distribute-lft-neg-out86.1%

        \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
      3. distribute-rgt-neg-in86.1%

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

        \[\leadsto t1 \cdot \left(-\color{blue}{\frac{\frac{v}{t1 + u}}{t1 + u}}\right) \]
      5. distribute-neg-frac294.7%

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

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

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

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

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

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

      \[\leadsto t1 \cdot \color{blue}{\frac{-v}{t1 \cdot u}} \]
    9. Step-by-step derivation
      1. associate-*r/35.2%

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

        \[\leadsto \frac{t1 \cdot \left(-v\right)}{\color{blue}{u \cdot t1}} \]
      3. distribute-rgt-neg-in35.2%

        \[\leadsto \frac{\color{blue}{-t1 \cdot v}}{u \cdot t1} \]
      4. associate-/r*42.4%

        \[\leadsto \color{blue}{\frac{\frac{-t1 \cdot v}{u}}{t1}} \]
      5. remove-double-neg42.4%

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

        \[\leadsto \frac{\color{blue}{\frac{t1 \cdot v}{-u}}}{t1} \]
      7. *-commutative42.4%

        \[\leadsto \frac{\frac{\color{blue}{v \cdot t1}}{-u}}{t1} \]
      8. associate-/l*62.0%

        \[\leadsto \frac{\color{blue}{v \cdot \frac{t1}{-u}}}{t1} \]
      9. add-sqr-sqrt62.0%

        \[\leadsto \frac{v \cdot \frac{t1}{\color{blue}{\sqrt{-u} \cdot \sqrt{-u}}}}{t1} \]
      10. sqrt-unprod67.0%

        \[\leadsto \frac{v \cdot \frac{t1}{\color{blue}{\sqrt{\left(-u\right) \cdot \left(-u\right)}}}}{t1} \]
      11. sqr-neg67.0%

        \[\leadsto \frac{v \cdot \frac{t1}{\sqrt{\color{blue}{u \cdot u}}}}{t1} \]
      12. sqrt-unprod0.0%

        \[\leadsto \frac{v \cdot \frac{t1}{\color{blue}{\sqrt{u} \cdot \sqrt{u}}}}{t1} \]
      13. add-sqr-sqrt61.8%

        \[\leadsto \frac{v \cdot \frac{t1}{\color{blue}{u}}}{t1} \]
    10. Applied egg-rr61.8%

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

    if -5.6999999999999996e68 < u

    1. Initial program 71.4%

      \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
    2. Step-by-step derivation
      1. times-frac97.1%

        \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
      2. distribute-frac-neg97.1%

        \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
      3. distribute-neg-frac297.1%

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

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

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1 + u}} \]
    4. Add Preprocessing
    5. Step-by-step derivation
      1. clear-num97.1%

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

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

        \[\leadsto \color{blue}{\frac{1 \cdot \left(-v\right)}{\frac{\left(-u\right) - t1}{t1} \cdot \left(-\left(t1 + u\right)\right)}} \]
      4. *-un-lft-identity95.7%

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

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

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

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

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

        \[\leadsto \frac{-v}{\frac{-\color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      10. distribute-neg-in95.7%

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

        \[\leadsto \frac{-v}{\frac{-\left(-\color{blue}{\left(t1 + u\right)}\right)}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      12. remove-double-neg95.7%

        \[\leadsto \frac{-v}{\frac{\color{blue}{t1 + u}}{-t1} \cdot \left(\left(-u\right) - t1\right)} \]
      13. add-sqr-sqrt51.6%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{-t1} \cdot \sqrt{-t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      14. sqrt-unprod45.3%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{\left(-t1\right) \cdot \left(-t1\right)}}} \cdot \left(\left(-u\right) - t1\right)} \]
      15. sqr-neg45.3%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\sqrt{\color{blue}{t1 \cdot t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      16. sqrt-unprod14.2%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{\sqrt{t1} \cdot \sqrt{t1}}} \cdot \left(\left(-u\right) - t1\right)} \]
      17. add-sqr-sqrt30.4%

        \[\leadsto \frac{-v}{\frac{t1 + u}{\color{blue}{t1}} \cdot \left(\left(-u\right) - t1\right)} \]
      18. sub-neg30.4%

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
      19. distribute-neg-in30.4%

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

        \[\leadsto \frac{-v}{\frac{t1 + u}{t1} \cdot \left(-\color{blue}{\left(t1 + u\right)}\right)} \]
      21. add-sqr-sqrt6.5%

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

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

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

      \[\leadsto \frac{-v}{\color{blue}{t1 + 2 \cdot u}} \]
    8. Step-by-step derivation
      1. *-commutative62.9%

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

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

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

Alternative 15: 98.0% accurate, 1.0× speedup?

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

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

    \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
  2. Step-by-step derivation
    1. times-frac97.2%

      \[\leadsto \color{blue}{\frac{-t1}{t1 + u} \cdot \frac{v}{t1 + u}} \]
    2. distribute-frac-neg97.2%

      \[\leadsto \color{blue}{\left(-\frac{t1}{t1 + u}\right)} \cdot \frac{v}{t1 + u} \]
    3. distribute-neg-frac297.2%

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

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

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

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

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

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

Alternative 16: 61.4% accurate, 2.4× speedup?

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

\\
\frac{v}{u - t1}
\end{array}
Derivation
  1. Initial program 74.5%

    \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
  2. Step-by-step derivation
    1. associate-/l*76.8%

      \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
    2. distribute-lft-neg-out76.8%

      \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
    3. distribute-rgt-neg-in76.8%

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{t1 \cdot v}{\left(-\left(t1 + u\right)\right) \cdot t1}} \]
    3. *-commutative44.2%

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

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

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

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

      \[\leadsto \frac{t1 \cdot v}{t1 \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
    8. distribute-neg-in44.2%

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

      \[\leadsto \frac{t1 \cdot v}{t1 \cdot \left(-\color{blue}{\left(t1 + u\right)}\right)} \]
    10. add-sqr-sqrt22.9%

      \[\leadsto \frac{t1 \cdot v}{t1 \cdot \color{blue}{\left(\sqrt{-\left(t1 + u\right)} \cdot \sqrt{-\left(t1 + u\right)}\right)}} \]
    11. sqrt-unprod46.5%

      \[\leadsto \frac{t1 \cdot v}{t1 \cdot \color{blue}{\sqrt{\left(-\left(t1 + u\right)\right) \cdot \left(-\left(t1 + u\right)\right)}}} \]
    12. sqr-neg46.5%

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

      \[\leadsto \frac{t1 \cdot v}{t1 \cdot \color{blue}{\left(\sqrt{t1 + u} \cdot \sqrt{t1 + u}\right)}} \]
    14. add-sqr-sqrt27.0%

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

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

      \[\leadsto \color{blue}{\frac{-t1 \cdot v}{-t1 \cdot \left(t1 + u\right)}} \]
    2. div-inv27.0%

      \[\leadsto \color{blue}{\left(-t1 \cdot v\right) \cdot \frac{1}{-t1 \cdot \left(t1 + u\right)}} \]
    3. distribute-rgt-neg-in27.0%

      \[\leadsto \color{blue}{\left(t1 \cdot \left(-v\right)\right)} \cdot \frac{1}{-t1 \cdot \left(t1 + u\right)} \]
    4. add-sqr-sqrt13.0%

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

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

      \[\leadsto \left(t1 \cdot \sqrt{\color{blue}{v \cdot v}}\right) \cdot \frac{1}{-t1 \cdot \left(t1 + u\right)} \]
    7. sqrt-unprod22.3%

      \[\leadsto \left(t1 \cdot \color{blue}{\left(\sqrt{v} \cdot \sqrt{v}\right)}\right) \cdot \frac{1}{-t1 \cdot \left(t1 + u\right)} \]
    8. add-sqr-sqrt44.0%

      \[\leadsto \left(t1 \cdot \color{blue}{v}\right) \cdot \frac{1}{-t1 \cdot \left(t1 + u\right)} \]
    9. *-commutative44.0%

      \[\leadsto \color{blue}{\left(v \cdot t1\right)} \cdot \frac{1}{-t1 \cdot \left(t1 + u\right)} \]
    10. distribute-rgt-neg-in44.0%

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

      \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \left(-\color{blue}{\left(u + t1\right)}\right)} \]
    12. distribute-neg-in44.0%

      \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \color{blue}{\left(\left(-u\right) + \left(-t1\right)\right)}} \]
    13. add-sqr-sqrt21.8%

      \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \left(\color{blue}{\sqrt{-u} \cdot \sqrt{-u}} + \left(-t1\right)\right)} \]
    14. sqrt-unprod53.2%

      \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \left(\color{blue}{\sqrt{\left(-u\right) \cdot \left(-u\right)}} + \left(-t1\right)\right)} \]
    15. sqr-neg53.2%

      \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \left(\sqrt{\color{blue}{u \cdot u}} + \left(-t1\right)\right)} \]
    16. sqrt-unprod22.3%

      \[\leadsto \left(v \cdot t1\right) \cdot \frac{1}{t1 \cdot \left(\color{blue}{\sqrt{u} \cdot \sqrt{u}} + \left(-t1\right)\right)} \]
    17. add-sqr-sqrt44.2%

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

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

      \[\leadsto \color{blue}{\frac{\left(v \cdot t1\right) \cdot 1}{t1 \cdot \left(u + \left(-t1\right)\right)}} \]
    2. *-rgt-identity44.4%

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

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

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

      \[\leadsto \frac{v \cdot \color{blue}{1}}{u + \left(-t1\right)} \]
    6. *-rgt-identity56.9%

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

      \[\leadsto \frac{v}{\color{blue}{u - t1}} \]
  11. Simplified56.9%

    \[\leadsto \color{blue}{\frac{v}{u - t1}} \]
  12. Final simplification56.9%

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

Alternative 17: 14.7% accurate, 4.0× speedup?

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

\\
\frac{v}{t1}
\end{array}
Derivation
  1. Initial program 74.5%

    \[\frac{\left(-t1\right) \cdot v}{\left(t1 + u\right) \cdot \left(t1 + u\right)} \]
  2. Step-by-step derivation
    1. associate-/l*76.8%

      \[\leadsto \color{blue}{\left(-t1\right) \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
    2. distribute-lft-neg-out76.8%

      \[\leadsto \color{blue}{-t1 \cdot \frac{v}{\left(t1 + u\right) \cdot \left(t1 + u\right)}} \]
    3. distribute-rgt-neg-in76.8%

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

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

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

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

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

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

      \[\leadsto \frac{t1 \cdot \frac{v}{t1}}{-\color{blue}{\left(u + t1\right)}} \]
    3. distribute-neg-in56.6%

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

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

      \[\leadsto \color{blue}{\frac{t1}{\left(-u\right) - t1} \cdot \frac{v}{t1}} \]
    6. clear-num60.9%

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

      \[\leadsto \color{blue}{\frac{1 \cdot \frac{v}{t1}}{\frac{\left(-u\right) - t1}{t1}}} \]
    8. *-un-lft-identity60.9%

      \[\leadsto \frac{\color{blue}{\frac{v}{t1}}}{\frac{\left(-u\right) - t1}{t1}} \]
    9. sub-neg60.9%

      \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{\left(-u\right) + \left(-t1\right)}}{t1}} \]
    10. distribute-neg-in60.9%

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

      \[\leadsto \frac{\frac{v}{t1}}{\frac{-\color{blue}{\left(t1 + u\right)}}{t1}} \]
    12. add-sqr-sqrt32.3%

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

      \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{\sqrt{\left(-\left(t1 + u\right)\right) \cdot \left(-\left(t1 + u\right)\right)}}}{t1}} \]
    14. sqr-neg45.1%

      \[\leadsto \frac{\frac{v}{t1}}{\frac{\sqrt{\color{blue}{\left(t1 + u\right) \cdot \left(t1 + u\right)}}}{t1}} \]
    15. sqrt-unprod15.0%

      \[\leadsto \frac{\frac{v}{t1}}{\frac{\color{blue}{\sqrt{t1 + u} \cdot \sqrt{t1 + u}}}{t1}} \]
    16. add-sqr-sqrt28.5%

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

    \[\leadsto \color{blue}{\frac{\frac{v}{t1}}{\frac{t1 + u}{t1}}} \]
  8. Taylor expanded in t1 around inf 11.9%

    \[\leadsto \color{blue}{\frac{v}{t1}} \]
  9. Final simplification11.9%

    \[\leadsto \frac{v}{t1} \]
  10. Add Preprocessing

Reproduce

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