
(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:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(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}
(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(t1 * Float64(Float64(-v) / 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 * N[((-v) / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t1 + u), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{t1 \cdot \frac{-v}{t1 + u}}{t1 + u}
\end{array}
Initial program 73.7%
associate-/r*83.0%
associate-/l*97.8%
Simplified97.8%
div-inv97.5%
clear-num98.1%
add-sqr-sqrt50.3%
sqrt-unprod46.0%
sqr-neg46.0%
sqrt-unprod18.2%
add-sqr-sqrt35.1%
distribute-lft-neg-in35.1%
distribute-rgt-neg-in35.1%
add-sqr-sqrt18.2%
sqrt-unprod46.0%
sqr-neg46.0%
sqrt-unprod50.3%
add-sqr-sqrt98.1%
Applied egg-rr98.1%
Final simplification98.1%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (* v (/ (- t1) (* (+ t1 u) (+ t1 u))))))
(if (<= u -7.4e+170)
(- (/ t1 (* u (/ u v))))
(if (<= u -4.8e-127)
t_1
(if (<= u 8.5e-162)
(/ (- v) t1)
(if (<= u 7.2e+103) t_1 (/ (/ t1 (+ t1 u)) (/ (- t1 u) v))))))))
double code(double u, double v, double t1) {
double t_1 = v * (-t1 / ((t1 + u) * (t1 + u)));
double tmp;
if (u <= -7.4e+170) {
tmp = -(t1 / (u * (u / v)));
} else if (u <= -4.8e-127) {
tmp = t_1;
} else if (u <= 8.5e-162) {
tmp = -v / t1;
} else if (u <= 7.2e+103) {
tmp = t_1;
} else {
tmp = (t1 / (t1 + u)) / ((t1 - u) / v);
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: t_1
real(8) :: tmp
t_1 = v * (-t1 / ((t1 + u) * (t1 + u)))
if (u <= (-7.4d+170)) then
tmp = -(t1 / (u * (u / v)))
else if (u <= (-4.8d-127)) then
tmp = t_1
else if (u <= 8.5d-162) then
tmp = -v / t1
else if (u <= 7.2d+103) then
tmp = t_1
else
tmp = (t1 / (t1 + u)) / ((t1 - u) / v)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = v * (-t1 / ((t1 + u) * (t1 + u)));
double tmp;
if (u <= -7.4e+170) {
tmp = -(t1 / (u * (u / v)));
} else if (u <= -4.8e-127) {
tmp = t_1;
} else if (u <= 8.5e-162) {
tmp = -v / t1;
} else if (u <= 7.2e+103) {
tmp = t_1;
} else {
tmp = (t1 / (t1 + u)) / ((t1 - u) / v);
}
return tmp;
}
def code(u, v, t1): t_1 = v * (-t1 / ((t1 + u) * (t1 + u))) tmp = 0 if u <= -7.4e+170: tmp = -(t1 / (u * (u / v))) elif u <= -4.8e-127: tmp = t_1 elif u <= 8.5e-162: tmp = -v / t1 elif u <= 7.2e+103: tmp = t_1 else: tmp = (t1 / (t1 + u)) / ((t1 - u) / v) return tmp
function code(u, v, t1) t_1 = Float64(v * Float64(Float64(-t1) / Float64(Float64(t1 + u) * Float64(t1 + u)))) tmp = 0.0 if (u <= -7.4e+170) tmp = Float64(-Float64(t1 / Float64(u * Float64(u / v)))); elseif (u <= -4.8e-127) tmp = t_1; elseif (u <= 8.5e-162) tmp = Float64(Float64(-v) / t1); elseif (u <= 7.2e+103) tmp = t_1; else tmp = Float64(Float64(t1 / Float64(t1 + u)) / Float64(Float64(t1 - u) / v)); end return tmp end
function tmp_2 = code(u, v, t1) t_1 = v * (-t1 / ((t1 + u) * (t1 + u))); tmp = 0.0; if (u <= -7.4e+170) tmp = -(t1 / (u * (u / v))); elseif (u <= -4.8e-127) tmp = t_1; elseif (u <= 8.5e-162) tmp = -v / t1; elseif (u <= 7.2e+103) tmp = t_1; else tmp = (t1 / (t1 + u)) / ((t1 - u) / v); end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = N[(v * N[((-t1) / N[(N[(t1 + u), $MachinePrecision] * N[(t1 + u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[u, -7.4e+170], (-N[(t1 / N[(u * N[(u / v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), If[LessEqual[u, -4.8e-127], t$95$1, If[LessEqual[u, 8.5e-162], N[((-v) / t1), $MachinePrecision], If[LessEqual[u, 7.2e+103], t$95$1, N[(N[(t1 / N[(t1 + u), $MachinePrecision]), $MachinePrecision] / N[(N[(t1 - u), $MachinePrecision] / v), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := v \cdot \frac{-t1}{\left(t1 + u\right) \cdot \left(t1 + u\right)}\\
\mathbf{if}\;u \leq -7.4 \cdot 10^{+170}:\\
\;\;\;\;-\frac{t1}{u \cdot \frac{u}{v}}\\
\mathbf{elif}\;u \leq -4.8 \cdot 10^{-127}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;u \leq 8.5 \cdot 10^{-162}:\\
\;\;\;\;\frac{-v}{t1}\\
\mathbf{elif}\;u \leq 7.2 \cdot 10^{+103}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{t1}{t1 + u}}{\frac{t1 - u}{v}}\\
\end{array}
\end{array}
if u < -7.39999999999999975e170Initial program 66.9%
associate-/r*89.1%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t1 around 0 88.8%
+-commutative88.8%
Simplified88.8%
Taylor expanded in t1 around 0 66.9%
*-commutative66.9%
*-commutative66.9%
unpow266.9%
times-frac84.0%
associate-*l*84.0%
metadata-eval84.0%
times-frac84.0%
*-rgt-identity84.0%
*-commutative84.0%
neg-mul-184.0%
Simplified84.0%
clear-num86.6%
frac-2neg86.6%
frac-times91.7%
*-un-lft-identity91.7%
remove-double-neg91.7%
Applied egg-rr91.7%
if -7.39999999999999975e170 < u < -4.79999999999999964e-127 or 8.49999999999999955e-162 < u < 7.20000000000000033e103Initial program 77.9%
associate-*l/88.2%
*-commutative88.2%
Simplified88.2%
if -4.79999999999999964e-127 < u < 8.49999999999999955e-162Initial program 68.3%
associate-*l/71.5%
*-commutative71.5%
Simplified71.5%
Taylor expanded in t1 around inf 91.3%
associate-*r/91.3%
neg-mul-191.3%
Simplified91.3%
if 7.20000000000000033e103 < u Initial program 78.4%
associate-*l/73.6%
*-commutative73.6%
Simplified73.6%
associate-/r*80.5%
associate-*r/98.7%
*-commutative98.7%
associate-/r/98.6%
div-inv98.7%
clear-num98.6%
associate-/r/98.6%
clear-num99.8%
*-commutative99.8%
clear-num98.6%
div-inv98.7%
frac-2neg98.7%
remove-double-neg98.7%
associate-*l/97.6%
Applied egg-rr95.2%
Final simplification90.7%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (- (/ v (+ t1 u)))) (t_2 (* t1 (/ (- (/ v u)) u))))
(if (<= t1 -125000000000.0)
t_1
(if (<= t1 -5.8e-47)
t_2
(if (<= t1 -8e-77)
t_1
(if (<= t1 -8.2e-160)
t_2
(if (<= t1 3.4e-17) (* v (/ (/ t1 (- u)) u)) t_1)))))))
double code(double u, double v, double t1) {
double t_1 = -(v / (t1 + u));
double t_2 = t1 * (-(v / u) / u);
double tmp;
if (t1 <= -125000000000.0) {
tmp = t_1;
} else if (t1 <= -5.8e-47) {
tmp = t_2;
} else if (t1 <= -8e-77) {
tmp = t_1;
} else if (t1 <= -8.2e-160) {
tmp = t_2;
} else if (t1 <= 3.4e-17) {
tmp = v * ((t1 / -u) / u);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = -(v / (t1 + u))
t_2 = t1 * (-(v / u) / u)
if (t1 <= (-125000000000.0d0)) then
tmp = t_1
else if (t1 <= (-5.8d-47)) then
tmp = t_2
else if (t1 <= (-8d-77)) then
tmp = t_1
else if (t1 <= (-8.2d-160)) then
tmp = t_2
else if (t1 <= 3.4d-17) then
tmp = v * ((t1 / -u) / u)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = -(v / (t1 + u));
double t_2 = t1 * (-(v / u) / u);
double tmp;
if (t1 <= -125000000000.0) {
tmp = t_1;
} else if (t1 <= -5.8e-47) {
tmp = t_2;
} else if (t1 <= -8e-77) {
tmp = t_1;
} else if (t1 <= -8.2e-160) {
tmp = t_2;
} else if (t1 <= 3.4e-17) {
tmp = v * ((t1 / -u) / u);
} else {
tmp = t_1;
}
return tmp;
}
def code(u, v, t1): t_1 = -(v / (t1 + u)) t_2 = t1 * (-(v / u) / u) tmp = 0 if t1 <= -125000000000.0: tmp = t_1 elif t1 <= -5.8e-47: tmp = t_2 elif t1 <= -8e-77: tmp = t_1 elif t1 <= -8.2e-160: tmp = t_2 elif t1 <= 3.4e-17: tmp = v * ((t1 / -u) / u) else: tmp = t_1 return tmp
function code(u, v, t1) t_1 = Float64(-Float64(v / Float64(t1 + u))) t_2 = Float64(t1 * Float64(Float64(-Float64(v / u)) / u)) tmp = 0.0 if (t1 <= -125000000000.0) tmp = t_1; elseif (t1 <= -5.8e-47) tmp = t_2; elseif (t1 <= -8e-77) tmp = t_1; elseif (t1 <= -8.2e-160) tmp = t_2; elseif (t1 <= 3.4e-17) tmp = Float64(v * Float64(Float64(t1 / Float64(-u)) / u)); else tmp = t_1; end return tmp end
function tmp_2 = code(u, v, t1) t_1 = -(v / (t1 + u)); t_2 = t1 * (-(v / u) / u); tmp = 0.0; if (t1 <= -125000000000.0) tmp = t_1; elseif (t1 <= -5.8e-47) tmp = t_2; elseif (t1 <= -8e-77) tmp = t_1; elseif (t1 <= -8.2e-160) tmp = t_2; elseif (t1 <= 3.4e-17) tmp = v * ((t1 / -u) / u); else tmp = t_1; end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = (-N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision])}, Block[{t$95$2 = N[(t1 * N[((-N[(v / u), $MachinePrecision]) / u), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t1, -125000000000.0], t$95$1, If[LessEqual[t1, -5.8e-47], t$95$2, If[LessEqual[t1, -8e-77], t$95$1, If[LessEqual[t1, -8.2e-160], t$95$2, If[LessEqual[t1, 3.4e-17], N[(v * N[(N[(t1 / (-u)), $MachinePrecision] / u), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -\frac{v}{t1 + u}\\
t_2 := t1 \cdot \frac{-\frac{v}{u}}{u}\\
\mathbf{if}\;t1 \leq -125000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t1 \leq -5.8 \cdot 10^{-47}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t1 \leq -8 \cdot 10^{-77}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t1 \leq -8.2 \cdot 10^{-160}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t1 \leq 3.4 \cdot 10^{-17}:\\
\;\;\;\;v \cdot \frac{\frac{t1}{-u}}{u}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t1 < -1.25e11 or -5.8000000000000001e-47 < t1 < -7.9999999999999994e-77 or 3.3999999999999998e-17 < t1 Initial program 68.8%
associate-/r*79.3%
associate-/l*99.1%
Simplified99.1%
Taylor expanded in t1 around inf 83.8%
neg-mul-183.8%
Simplified83.8%
if -1.25e11 < t1 < -5.8000000000000001e-47 or -7.9999999999999994e-77 < t1 < -8.20000000000000003e-160Initial program 74.6%
associate-/r*88.0%
associate-/l*99.4%
Simplified99.4%
div-inv99.3%
clear-num99.6%
add-sqr-sqrt0.0%
sqrt-unprod29.5%
sqr-neg29.5%
sqrt-unprod29.5%
add-sqr-sqrt29.5%
distribute-lft-neg-in29.5%
distribute-rgt-neg-in29.5%
add-sqr-sqrt29.5%
sqrt-unprod29.5%
sqr-neg29.5%
sqrt-unprod0.0%
add-sqr-sqrt99.6%
Applied egg-rr99.6%
Taylor expanded in t1 around 0 63.1%
mul-1-neg63.1%
associate-*r/71.0%
unpow271.0%
distribute-rgt-neg-in71.0%
Simplified71.0%
Taylor expanded in v around 0 71.0%
unpow271.0%
associate-/r*84.4%
Simplified84.4%
if -8.20000000000000003e-160 < t1 < 3.3999999999999998e-17Initial program 81.1%
associate-*l/85.2%
*-commutative85.2%
Simplified85.2%
Taylor expanded in t1 around 0 79.0%
associate-*r/79.0%
neg-mul-179.0%
unpow279.0%
Simplified79.0%
Taylor expanded in t1 around 0 79.0%
unpow279.0%
associate-*r/79.0%
times-frac84.7%
associate-*l/84.8%
metadata-eval84.8%
times-frac84.8%
*-lft-identity84.8%
neg-mul-184.8%
Simplified84.8%
Final simplification84.2%
(FPCore (u v t1)
:precision binary64
(if (or (<= t1 -16000000.0)
(and (not (<= t1 -6e-47)) (or (<= t1 -8e-77) (not (<= t1 3.8e-17)))))
(- (/ v (+ t1 u)))
(* t1 (/ (- v) (* u u)))))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -16000000.0) || (!(t1 <= -6e-47) && ((t1 <= -8e-77) || !(t1 <= 3.8e-17)))) {
tmp = -(v / (t1 + u));
} else {
tmp = t1 * (-v / (u * u));
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if ((t1 <= (-16000000.0d0)) .or. (.not. (t1 <= (-6d-47))) .and. (t1 <= (-8d-77)) .or. (.not. (t1 <= 3.8d-17))) then
tmp = -(v / (t1 + u))
else
tmp = t1 * (-v / (u * u))
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -16000000.0) || (!(t1 <= -6e-47) && ((t1 <= -8e-77) || !(t1 <= 3.8e-17)))) {
tmp = -(v / (t1 + u));
} else {
tmp = t1 * (-v / (u * u));
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -16000000.0) or (not (t1 <= -6e-47) and ((t1 <= -8e-77) or not (t1 <= 3.8e-17))): tmp = -(v / (t1 + u)) else: tmp = t1 * (-v / (u * u)) return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -16000000.0) || (!(t1 <= -6e-47) && ((t1 <= -8e-77) || !(t1 <= 3.8e-17)))) tmp = Float64(-Float64(v / Float64(t1 + u))); else tmp = Float64(t1 * Float64(Float64(-v) / Float64(u * u))); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -16000000.0) || (~((t1 <= -6e-47)) && ((t1 <= -8e-77) || ~((t1 <= 3.8e-17))))) tmp = -(v / (t1 + u)); else tmp = t1 * (-v / (u * u)); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -16000000.0], And[N[Not[LessEqual[t1, -6e-47]], $MachinePrecision], Or[LessEqual[t1, -8e-77], N[Not[LessEqual[t1, 3.8e-17]], $MachinePrecision]]]], (-N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), N[(t1 * N[((-v) / N[(u * u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -16000000 \lor \neg \left(t1 \leq -6 \cdot 10^{-47}\right) \land \left(t1 \leq -8 \cdot 10^{-77} \lor \neg \left(t1 \leq 3.8 \cdot 10^{-17}\right)\right):\\
\;\;\;\;-\frac{v}{t1 + u}\\
\mathbf{else}:\\
\;\;\;\;t1 \cdot \frac{-v}{u \cdot u}\\
\end{array}
\end{array}
if t1 < -1.6e7 or -6.00000000000000033e-47 < t1 < -7.9999999999999994e-77 or 3.8000000000000001e-17 < t1 Initial program 68.8%
associate-/r*79.3%
associate-/l*99.1%
Simplified99.1%
Taylor expanded in t1 around inf 83.8%
neg-mul-183.8%
Simplified83.8%
if -1.6e7 < t1 < -6.00000000000000033e-47 or -7.9999999999999994e-77 < t1 < 3.8000000000000001e-17Initial program 79.7%
associate-/r*87.6%
associate-/l*96.2%
Simplified96.2%
div-inv95.7%
clear-num95.8%
add-sqr-sqrt48.0%
sqrt-unprod55.4%
sqr-neg55.4%
sqrt-unprod17.8%
add-sqr-sqrt36.8%
distribute-lft-neg-in36.8%
distribute-rgt-neg-in36.8%
add-sqr-sqrt17.8%
sqrt-unprod55.4%
sqr-neg55.4%
sqrt-unprod48.0%
add-sqr-sqrt95.8%
Applied egg-rr95.8%
Taylor expanded in t1 around 0 72.4%
mul-1-neg72.4%
associate-*r/72.3%
unpow272.3%
distribute-rgt-neg-in72.3%
Simplified72.3%
Final simplification78.7%
(FPCore (u v t1)
:precision binary64
(if (or (<= t1 -850000000000.0)
(not
(or (<= t1 -6.2e-47) (and (not (<= t1 -7.5e-77)) (<= t1 1.35e-16)))))
(- (/ v (+ t1 u)))
(* t1 (/ (- (/ v u)) u))))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -850000000000.0) || !((t1 <= -6.2e-47) || (!(t1 <= -7.5e-77) && (t1 <= 1.35e-16)))) {
tmp = -(v / (t1 + u));
} else {
tmp = t1 * (-(v / u) / u);
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if ((t1 <= (-850000000000.0d0)) .or. (.not. (t1 <= (-6.2d-47)) .or. (.not. (t1 <= (-7.5d-77))) .and. (t1 <= 1.35d-16))) then
tmp = -(v / (t1 + u))
else
tmp = t1 * (-(v / u) / u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -850000000000.0) || !((t1 <= -6.2e-47) || (!(t1 <= -7.5e-77) && (t1 <= 1.35e-16)))) {
tmp = -(v / (t1 + u));
} else {
tmp = t1 * (-(v / u) / u);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -850000000000.0) or not ((t1 <= -6.2e-47) or (not (t1 <= -7.5e-77) and (t1 <= 1.35e-16))): tmp = -(v / (t1 + u)) else: tmp = t1 * (-(v / u) / u) return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -850000000000.0) || !((t1 <= -6.2e-47) || (!(t1 <= -7.5e-77) && (t1 <= 1.35e-16)))) tmp = Float64(-Float64(v / Float64(t1 + u))); else tmp = Float64(t1 * Float64(Float64(-Float64(v / u)) / u)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -850000000000.0) || ~(((t1 <= -6.2e-47) || (~((t1 <= -7.5e-77)) && (t1 <= 1.35e-16))))) tmp = -(v / (t1 + u)); else tmp = t1 * (-(v / u) / u); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -850000000000.0], N[Not[Or[LessEqual[t1, -6.2e-47], And[N[Not[LessEqual[t1, -7.5e-77]], $MachinePrecision], LessEqual[t1, 1.35e-16]]]], $MachinePrecision]], (-N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), N[(t1 * N[((-N[(v / u), $MachinePrecision]) / u), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -850000000000 \lor \neg \left(t1 \leq -6.2 \cdot 10^{-47} \lor \neg \left(t1 \leq -7.5 \cdot 10^{-77}\right) \land t1 \leq 1.35 \cdot 10^{-16}\right):\\
\;\;\;\;-\frac{v}{t1 + u}\\
\mathbf{else}:\\
\;\;\;\;t1 \cdot \frac{-\frac{v}{u}}{u}\\
\end{array}
\end{array}
if t1 < -8.5e11 or -6.1999999999999996e-47 < t1 < -7.5000000000000006e-77 or 1.35e-16 < t1 Initial program 68.8%
associate-/r*79.3%
associate-/l*99.1%
Simplified99.1%
Taylor expanded in t1 around inf 83.8%
neg-mul-183.8%
Simplified83.8%
if -8.5e11 < t1 < -6.1999999999999996e-47 or -7.5000000000000006e-77 < t1 < 1.35e-16Initial program 79.7%
associate-/r*87.6%
associate-/l*96.2%
Simplified96.2%
div-inv95.7%
clear-num95.8%
add-sqr-sqrt48.0%
sqrt-unprod55.4%
sqr-neg55.4%
sqrt-unprod17.8%
add-sqr-sqrt36.8%
distribute-lft-neg-in36.8%
distribute-rgt-neg-in36.8%
add-sqr-sqrt17.8%
sqrt-unprod55.4%
sqr-neg55.4%
sqrt-unprod48.0%
add-sqr-sqrt95.8%
Applied egg-rr95.8%
Taylor expanded in t1 around 0 72.4%
mul-1-neg72.4%
associate-*r/72.3%
unpow272.3%
distribute-rgt-neg-in72.3%
Simplified72.3%
Taylor expanded in v around 0 72.3%
unpow272.3%
associate-/r*77.9%
Simplified77.9%
Final simplification81.2%
(FPCore (u v t1)
:precision binary64
(if (or (<= t1 -48000000.0)
(not (or (<= t1 -5e-47) (and (not (<= t1 -8e-77)) (<= t1 3.5e-16)))))
(- (/ v (+ t1 u)))
(* (/ v u) (/ t1 (- u)))))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -48000000.0) || !((t1 <= -5e-47) || (!(t1 <= -8e-77) && (t1 <= 3.5e-16)))) {
tmp = -(v / (t1 + u));
} else {
tmp = (v / u) * (t1 / -u);
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if ((t1 <= (-48000000.0d0)) .or. (.not. (t1 <= (-5d-47)) .or. (.not. (t1 <= (-8d-77))) .and. (t1 <= 3.5d-16))) then
tmp = -(v / (t1 + u))
else
tmp = (v / u) * (t1 / -u)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -48000000.0) || !((t1 <= -5e-47) || (!(t1 <= -8e-77) && (t1 <= 3.5e-16)))) {
tmp = -(v / (t1 + u));
} else {
tmp = (v / u) * (t1 / -u);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -48000000.0) or not ((t1 <= -5e-47) or (not (t1 <= -8e-77) and (t1 <= 3.5e-16))): tmp = -(v / (t1 + u)) else: tmp = (v / u) * (t1 / -u) return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -48000000.0) || !((t1 <= -5e-47) || (!(t1 <= -8e-77) && (t1 <= 3.5e-16)))) tmp = Float64(-Float64(v / Float64(t1 + u))); else tmp = Float64(Float64(v / u) * Float64(t1 / Float64(-u))); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -48000000.0) || ~(((t1 <= -5e-47) || (~((t1 <= -8e-77)) && (t1 <= 3.5e-16))))) tmp = -(v / (t1 + u)); else tmp = (v / u) * (t1 / -u); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -48000000.0], N[Not[Or[LessEqual[t1, -5e-47], And[N[Not[LessEqual[t1, -8e-77]], $MachinePrecision], LessEqual[t1, 3.5e-16]]]], $MachinePrecision]], (-N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), N[(N[(v / u), $MachinePrecision] * N[(t1 / (-u)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -48000000 \lor \neg \left(t1 \leq -5 \cdot 10^{-47} \lor \neg \left(t1 \leq -8 \cdot 10^{-77}\right) \land t1 \leq 3.5 \cdot 10^{-16}\right):\\
\;\;\;\;-\frac{v}{t1 + u}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{u} \cdot \frac{t1}{-u}\\
\end{array}
\end{array}
if t1 < -4.8e7 or -5.00000000000000011e-47 < t1 < -7.9999999999999994e-77 or 3.50000000000000017e-16 < t1 Initial program 68.8%
associate-/r*79.3%
associate-/l*99.1%
Simplified99.1%
Taylor expanded in t1 around inf 83.8%
neg-mul-183.8%
Simplified83.8%
if -4.8e7 < t1 < -5.00000000000000011e-47 or -7.9999999999999994e-77 < t1 < 3.50000000000000017e-16Initial program 79.7%
associate-/r*87.6%
associate-/l*96.2%
Simplified96.2%
Taylor expanded in t1 around 0 93.6%
+-commutative93.6%
Simplified93.6%
Taylor expanded in t1 around 0 72.4%
*-commutative72.4%
*-commutative72.4%
unpow272.4%
times-frac83.5%
associate-*l*83.5%
metadata-eval83.5%
times-frac83.5%
*-rgt-identity83.5%
*-commutative83.5%
neg-mul-183.5%
Simplified83.5%
Final simplification83.7%
(FPCore (u v t1)
:precision binary64
(if (or (<= t1 -4e+33)
(not
(or (<= t1 -1.1e-46) (and (not (<= t1 -7.8e-77)) (<= t1 1.85e-16)))))
(- (/ v (+ t1 u)))
(/ (* (- v) (/ t1 u)) u)))
double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -4e+33) || !((t1 <= -1.1e-46) || (!(t1 <= -7.8e-77) && (t1 <= 1.85e-16)))) {
tmp = -(v / (t1 + u));
} else {
tmp = (-v * (t1 / u)) / u;
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if ((t1 <= (-4d+33)) .or. (.not. (t1 <= (-1.1d-46)) .or. (.not. (t1 <= (-7.8d-77))) .and. (t1 <= 1.85d-16))) then
tmp = -(v / (t1 + u))
else
tmp = (-v * (t1 / u)) / u
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((t1 <= -4e+33) || !((t1 <= -1.1e-46) || (!(t1 <= -7.8e-77) && (t1 <= 1.85e-16)))) {
tmp = -(v / (t1 + u));
} else {
tmp = (-v * (t1 / u)) / u;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (t1 <= -4e+33) or not ((t1 <= -1.1e-46) or (not (t1 <= -7.8e-77) and (t1 <= 1.85e-16))): tmp = -(v / (t1 + u)) else: tmp = (-v * (t1 / u)) / u return tmp
function code(u, v, t1) tmp = 0.0 if ((t1 <= -4e+33) || !((t1 <= -1.1e-46) || (!(t1 <= -7.8e-77) && (t1 <= 1.85e-16)))) tmp = Float64(-Float64(v / Float64(t1 + u))); else tmp = Float64(Float64(Float64(-v) * Float64(t1 / u)) / u); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((t1 <= -4e+33) || ~(((t1 <= -1.1e-46) || (~((t1 <= -7.8e-77)) && (t1 <= 1.85e-16))))) tmp = -(v / (t1 + u)); else tmp = (-v * (t1 / u)) / u; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[t1, -4e+33], N[Not[Or[LessEqual[t1, -1.1e-46], And[N[Not[LessEqual[t1, -7.8e-77]], $MachinePrecision], LessEqual[t1, 1.85e-16]]]], $MachinePrecision]], (-N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]), N[(N[((-v) * N[(t1 / u), $MachinePrecision]), $MachinePrecision] / u), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -4 \cdot 10^{+33} \lor \neg \left(t1 \leq -1.1 \cdot 10^{-46} \lor \neg \left(t1 \leq -7.8 \cdot 10^{-77}\right) \land t1 \leq 1.85 \cdot 10^{-16}\right):\\
\;\;\;\;-\frac{v}{t1 + u}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(-v\right) \cdot \frac{t1}{u}}{u}\\
\end{array}
\end{array}
if t1 < -3.9999999999999998e33 or -1.1e-46 < t1 < -7.79999999999999958e-77 or 1.85e-16 < t1 Initial program 68.6%
associate-/r*78.7%
associate-/l*99.1%
Simplified99.1%
Taylor expanded in t1 around inf 84.8%
neg-mul-184.8%
Simplified84.8%
if -3.9999999999999998e33 < t1 < -1.1e-46 or -7.79999999999999958e-77 < t1 < 1.85e-16Initial program 79.7%
associate-/r*88.0%
associate-/l*96.3%
Simplified96.3%
Taylor expanded in t1 around 0 93.8%
+-commutative93.8%
Simplified93.8%
Taylor expanded in t1 around 0 71.0%
*-commutative71.0%
*-commutative71.0%
unpow271.0%
times-frac82.5%
associate-*l*82.5%
metadata-eval82.5%
times-frac82.5%
*-rgt-identity82.5%
*-commutative82.5%
neg-mul-182.5%
Simplified82.5%
associate-*l/83.4%
frac-2neg83.4%
add-sqr-sqrt39.8%
sqrt-unprod54.2%
sqr-neg54.2%
sqrt-prod18.3%
add-sqr-sqrt36.5%
add-sqr-sqrt18.2%
sqrt-unprod57.3%
sqr-neg57.3%
sqrt-prod43.4%
add-sqr-sqrt83.4%
Applied egg-rr83.4%
Final simplification84.1%
(FPCore (u v t1)
:precision binary64
(let* ((t_1 (- (/ v (+ t1 u)))))
(if (<= t1 -18000000.0)
t_1
(if (<= t1 -1.05e-46)
(* t1 (/ (- (/ v u)) u))
(if (or (<= t1 -7.8e-77) (not (<= t1 4.6e-16)))
t_1
(* v (/ (- t1) (* u u))))))))
double code(double u, double v, double t1) {
double t_1 = -(v / (t1 + u));
double tmp;
if (t1 <= -18000000.0) {
tmp = t_1;
} else if (t1 <= -1.05e-46) {
tmp = t1 * (-(v / u) / u);
} else if ((t1 <= -7.8e-77) || !(t1 <= 4.6e-16)) {
tmp = t_1;
} else {
tmp = v * (-t1 / (u * u));
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: t_1
real(8) :: tmp
t_1 = -(v / (t1 + u))
if (t1 <= (-18000000.0d0)) then
tmp = t_1
else if (t1 <= (-1.05d-46)) then
tmp = t1 * (-(v / u) / u)
else if ((t1 <= (-7.8d-77)) .or. (.not. (t1 <= 4.6d-16))) then
tmp = t_1
else
tmp = v * (-t1 / (u * u))
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double t_1 = -(v / (t1 + u));
double tmp;
if (t1 <= -18000000.0) {
tmp = t_1;
} else if (t1 <= -1.05e-46) {
tmp = t1 * (-(v / u) / u);
} else if ((t1 <= -7.8e-77) || !(t1 <= 4.6e-16)) {
tmp = t_1;
} else {
tmp = v * (-t1 / (u * u));
}
return tmp;
}
def code(u, v, t1): t_1 = -(v / (t1 + u)) tmp = 0 if t1 <= -18000000.0: tmp = t_1 elif t1 <= -1.05e-46: tmp = t1 * (-(v / u) / u) elif (t1 <= -7.8e-77) or not (t1 <= 4.6e-16): tmp = t_1 else: tmp = v * (-t1 / (u * u)) return tmp
function code(u, v, t1) t_1 = Float64(-Float64(v / Float64(t1 + u))) tmp = 0.0 if (t1 <= -18000000.0) tmp = t_1; elseif (t1 <= -1.05e-46) tmp = Float64(t1 * Float64(Float64(-Float64(v / u)) / u)); elseif ((t1 <= -7.8e-77) || !(t1 <= 4.6e-16)) tmp = t_1; else tmp = Float64(v * Float64(Float64(-t1) / Float64(u * u))); end return tmp end
function tmp_2 = code(u, v, t1) t_1 = -(v / (t1 + u)); tmp = 0.0; if (t1 <= -18000000.0) tmp = t_1; elseif (t1 <= -1.05e-46) tmp = t1 * (-(v / u) / u); elseif ((t1 <= -7.8e-77) || ~((t1 <= 4.6e-16))) tmp = t_1; else tmp = v * (-t1 / (u * u)); end tmp_2 = tmp; end
code[u_, v_, t1_] := Block[{t$95$1 = (-N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision])}, If[LessEqual[t1, -18000000.0], t$95$1, If[LessEqual[t1, -1.05e-46], N[(t1 * N[((-N[(v / u), $MachinePrecision]) / u), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t1, -7.8e-77], N[Not[LessEqual[t1, 4.6e-16]], $MachinePrecision]], t$95$1, N[(v * N[((-t1) / N[(u * u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -\frac{v}{t1 + u}\\
\mathbf{if}\;t1 \leq -18000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t1 \leq -1.05 \cdot 10^{-46}:\\
\;\;\;\;t1 \cdot \frac{-\frac{v}{u}}{u}\\
\mathbf{elif}\;t1 \leq -7.8 \cdot 10^{-77} \lor \neg \left(t1 \leq 4.6 \cdot 10^{-16}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;v \cdot \frac{-t1}{u \cdot u}\\
\end{array}
\end{array}
if t1 < -1.8e7 or -1.04999999999999994e-46 < t1 < -7.79999999999999958e-77 or 4.5999999999999998e-16 < t1 Initial program 68.8%
associate-/r*79.3%
associate-/l*99.1%
Simplified99.1%
Taylor expanded in t1 around inf 83.8%
neg-mul-183.8%
Simplified83.8%
if -1.8e7 < t1 < -1.04999999999999994e-46Initial program 85.8%
associate-/r*99.7%
associate-/l*99.5%
Simplified99.5%
div-inv99.5%
clear-num99.7%
add-sqr-sqrt0.0%
sqrt-unprod27.5%
sqr-neg27.5%
sqrt-unprod27.5%
add-sqr-sqrt27.5%
distribute-lft-neg-in27.5%
distribute-rgt-neg-in27.5%
add-sqr-sqrt27.5%
sqrt-unprod27.5%
sqr-neg27.5%
sqrt-unprod0.0%
add-sqr-sqrt99.7%
Applied egg-rr99.7%
Taylor expanded in t1 around 0 76.1%
mul-1-neg76.1%
associate-*r/76.0%
unpow276.0%
distribute-rgt-neg-in76.0%
Simplified76.0%
Taylor expanded in v around 0 76.0%
unpow276.0%
associate-/r*89.5%
Simplified89.5%
if -7.79999999999999958e-77 < t1 < 4.5999999999999998e-16Initial program 79.2%
associate-*l/85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in t1 around 0 77.5%
associate-*r/77.5%
neg-mul-177.5%
unpow277.5%
Simplified77.5%
Final simplification81.4%
(FPCore (u v t1)
:precision binary64
(if (<= t1 -4e+33)
(/ (- (* u (/ v t1)) v) (+ t1 u))
(if (or (<= t1 -7e-47) (and (not (<= t1 -8e-77)) (<= t1 3.5e-16)))
(/ (* (- v) (/ t1 u)) u)
(- (/ v (+ t1 u))))))
double code(double u, double v, double t1) {
double tmp;
if (t1 <= -4e+33) {
tmp = ((u * (v / t1)) - v) / (t1 + u);
} else if ((t1 <= -7e-47) || (!(t1 <= -8e-77) && (t1 <= 3.5e-16))) {
tmp = (-v * (t1 / u)) / u;
} 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 (t1 <= (-4d+33)) then
tmp = ((u * (v / t1)) - v) / (t1 + u)
else if ((t1 <= (-7d-47)) .or. (.not. (t1 <= (-8d-77))) .and. (t1 <= 3.5d-16)) then
tmp = (-v * (t1 / u)) / u
else
tmp = -(v / (t1 + u))
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if (t1 <= -4e+33) {
tmp = ((u * (v / t1)) - v) / (t1 + u);
} else if ((t1 <= -7e-47) || (!(t1 <= -8e-77) && (t1 <= 3.5e-16))) {
tmp = (-v * (t1 / u)) / u;
} else {
tmp = -(v / (t1 + u));
}
return tmp;
}
def code(u, v, t1): tmp = 0 if t1 <= -4e+33: tmp = ((u * (v / t1)) - v) / (t1 + u) elif (t1 <= -7e-47) or (not (t1 <= -8e-77) and (t1 <= 3.5e-16)): tmp = (-v * (t1 / u)) / u else: tmp = -(v / (t1 + u)) return tmp
function code(u, v, t1) tmp = 0.0 if (t1 <= -4e+33) tmp = Float64(Float64(Float64(u * Float64(v / t1)) - v) / Float64(t1 + u)); elseif ((t1 <= -7e-47) || (!(t1 <= -8e-77) && (t1 <= 3.5e-16))) tmp = Float64(Float64(Float64(-v) * Float64(t1 / u)) / u); else tmp = Float64(-Float64(v / Float64(t1 + u))); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (t1 <= -4e+33) tmp = ((u * (v / t1)) - v) / (t1 + u); elseif ((t1 <= -7e-47) || (~((t1 <= -8e-77)) && (t1 <= 3.5e-16))) tmp = (-v * (t1 / u)) / u; else tmp = -(v / (t1 + u)); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[t1, -4e+33], N[(N[(N[(u * N[(v / t1), $MachinePrecision]), $MachinePrecision] - v), $MachinePrecision] / N[(t1 + u), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t1, -7e-47], And[N[Not[LessEqual[t1, -8e-77]], $MachinePrecision], LessEqual[t1, 3.5e-16]]], N[(N[((-v) * N[(t1 / u), $MachinePrecision]), $MachinePrecision] / u), $MachinePrecision], (-N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision])]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -4 \cdot 10^{+33}:\\
\;\;\;\;\frac{u \cdot \frac{v}{t1} - v}{t1 + u}\\
\mathbf{elif}\;t1 \leq -7 \cdot 10^{-47} \lor \neg \left(t1 \leq -8 \cdot 10^{-77}\right) \land t1 \leq 3.5 \cdot 10^{-16}:\\
\;\;\;\;\frac{\left(-v\right) \cdot \frac{t1}{u}}{u}\\
\mathbf{else}:\\
\;\;\;\;-\frac{v}{t1 + u}\\
\end{array}
\end{array}
if t1 < -3.9999999999999998e33Initial program 65.0%
associate-/r*76.2%
associate-/l*98.1%
Simplified98.1%
Taylor expanded in t1 around 0 91.5%
+-commutative91.5%
Simplified91.5%
Taylor expanded in t1 around inf 90.5%
neg-mul-190.5%
associate-*r/92.4%
+-commutative92.4%
sub-neg92.4%
Simplified92.4%
if -3.9999999999999998e33 < t1 < -6.9999999999999996e-47 or -7.9999999999999994e-77 < t1 < 3.50000000000000017e-16Initial program 79.7%
associate-/r*88.0%
associate-/l*96.3%
Simplified96.3%
Taylor expanded in t1 around 0 93.8%
+-commutative93.8%
Simplified93.8%
Taylor expanded in t1 around 0 71.0%
*-commutative71.0%
*-commutative71.0%
unpow271.0%
times-frac82.5%
associate-*l*82.5%
metadata-eval82.5%
times-frac82.5%
*-rgt-identity82.5%
*-commutative82.5%
neg-mul-182.5%
Simplified82.5%
associate-*l/83.4%
frac-2neg83.4%
add-sqr-sqrt39.8%
sqrt-unprod54.2%
sqr-neg54.2%
sqrt-prod18.3%
add-sqr-sqrt36.5%
add-sqr-sqrt18.2%
sqrt-unprod57.3%
sqr-neg57.3%
sqrt-prod43.4%
add-sqr-sqrt83.4%
Applied egg-rr83.4%
if -6.9999999999999996e-47 < t1 < -7.9999999999999994e-77 or 3.50000000000000017e-16 < t1 Initial program 70.9%
associate-/r*80.2%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in t1 around inf 80.0%
neg-mul-180.0%
Simplified80.0%
Final simplification84.2%
(FPCore (u v t1) :precision binary64 (if (<= u -2.9e-115) (/ t1 (/ (- t1 u) (/ v u))) (if (<= u 42.0) (- (/ v t1)) (/ (/ t1 (+ t1 u)) (/ (- t1 u) v)))))
double code(double u, double v, double t1) {
double tmp;
if (u <= -2.9e-115) {
tmp = t1 / ((t1 - u) / (v / u));
} else if (u <= 42.0) {
tmp = -(v / t1);
} else {
tmp = (t1 / (t1 + u)) / ((t1 - u) / v);
}
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 <= (-2.9d-115)) then
tmp = t1 / ((t1 - u) / (v / u))
else if (u <= 42.0d0) then
tmp = -(v / t1)
else
tmp = (t1 / (t1 + u)) / ((t1 - u) / v)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if (u <= -2.9e-115) {
tmp = t1 / ((t1 - u) / (v / u));
} else if (u <= 42.0) {
tmp = -(v / t1);
} else {
tmp = (t1 / (t1 + u)) / ((t1 - u) / v);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if u <= -2.9e-115: tmp = t1 / ((t1 - u) / (v / u)) elif u <= 42.0: tmp = -(v / t1) else: tmp = (t1 / (t1 + u)) / ((t1 - u) / v) return tmp
function code(u, v, t1) tmp = 0.0 if (u <= -2.9e-115) tmp = Float64(t1 / Float64(Float64(t1 - u) / Float64(v / u))); elseif (u <= 42.0) tmp = Float64(-Float64(v / t1)); else tmp = Float64(Float64(t1 / Float64(t1 + u)) / Float64(Float64(t1 - u) / v)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (u <= -2.9e-115) tmp = t1 / ((t1 - u) / (v / u)); elseif (u <= 42.0) tmp = -(v / t1); else tmp = (t1 / (t1 + u)) / ((t1 - u) / v); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[u, -2.9e-115], N[(t1 / N[(N[(t1 - u), $MachinePrecision] / N[(v / u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, 42.0], (-N[(v / t1), $MachinePrecision]), N[(N[(t1 / N[(t1 + u), $MachinePrecision]), $MachinePrecision] / N[(N[(t1 - u), $MachinePrecision] / v), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -2.9 \cdot 10^{-115}:\\
\;\;\;\;\frac{t1}{\frac{t1 - u}{\frac{v}{u}}}\\
\mathbf{elif}\;u \leq 42:\\
\;\;\;\;-\frac{v}{t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{t1}{t1 + u}}{\frac{t1 - u}{v}}\\
\end{array}
\end{array}
if u < -2.8999999999999998e-115Initial program 70.4%
associate-*l/77.7%
*-commutative77.7%
Simplified77.7%
associate-/r*91.8%
associate-*r/97.0%
*-commutative97.0%
associate-/r/95.9%
frac-2neg95.9%
distribute-frac-neg95.9%
remove-double-neg95.9%
div-inv95.8%
clear-num95.9%
distribute-neg-in95.9%
add-sqr-sqrt44.2%
sqrt-unprod81.8%
sqr-neg81.8%
sqrt-unprod43.8%
add-sqr-sqrt75.5%
sub-neg75.5%
Applied egg-rr75.5%
associate-/l*77.4%
Simplified77.4%
Taylor expanded in t1 around 0 77.4%
if -2.8999999999999998e-115 < u < 42Initial program 72.0%
associate-*l/77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in t1 around inf 81.2%
associate-*r/81.2%
neg-mul-181.2%
Simplified81.2%
if 42 < u Initial program 81.9%
associate-*l/80.4%
*-commutative80.4%
Simplified80.4%
associate-/r*86.7%
associate-*r/99.1%
*-commutative99.1%
associate-/r/99.0%
div-inv99.0%
clear-num98.9%
associate-/r/98.9%
clear-num99.8%
*-commutative99.8%
clear-num98.9%
div-inv99.0%
frac-2neg99.0%
remove-double-neg99.0%
associate-*l/98.3%
Applied egg-rr90.1%
Final simplification81.9%
(FPCore (u v t1) :precision binary64 (if (or (<= u -1.55e+87) (not (<= u 5.1e+101))) (* v (/ t1 (* u u))) (/ (- v) t1)))
double code(double u, double v, double t1) {
double tmp;
if ((u <= -1.55e+87) || !(u <= 5.1e+101)) {
tmp = v * (t1 / (u * u));
} else {
tmp = -v / t1;
}
return tmp;
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
real(8) :: tmp
if ((u <= (-1.55d+87)) .or. (.not. (u <= 5.1d+101))) then
tmp = v * (t1 / (u * u))
else
tmp = -v / t1
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if ((u <= -1.55e+87) || !(u <= 5.1e+101)) {
tmp = v * (t1 / (u * u));
} else {
tmp = -v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if (u <= -1.55e+87) or not (u <= 5.1e+101): tmp = v * (t1 / (u * u)) else: tmp = -v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if ((u <= -1.55e+87) || !(u <= 5.1e+101)) tmp = Float64(v * Float64(t1 / Float64(u * u))); else tmp = Float64(Float64(-v) / t1); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if ((u <= -1.55e+87) || ~((u <= 5.1e+101))) tmp = v * (t1 / (u * u)); else tmp = -v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[Or[LessEqual[u, -1.55e+87], N[Not[LessEqual[u, 5.1e+101]], $MachinePrecision]], N[(v * N[(t1 / N[(u * u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-v) / t1), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -1.55 \cdot 10^{+87} \lor \neg \left(u \leq 5.1 \cdot 10^{+101}\right):\\
\;\;\;\;v \cdot \frac{t1}{u \cdot u}\\
\mathbf{else}:\\
\;\;\;\;\frac{-v}{t1}\\
\end{array}
\end{array}
if u < -1.55e87 or 5.09999999999999995e101 < u Initial program 74.0%
Taylor expanded in t1 around 0 73.0%
unpow273.0%
Simplified73.0%
associate-/l*74.9%
associate-/r/72.1%
add-sqr-sqrt33.4%
sqrt-unprod48.6%
sqr-neg48.6%
sqrt-unprod34.4%
add-sqr-sqrt66.0%
Applied egg-rr66.0%
if -1.55e87 < u < 5.09999999999999995e101Initial program 73.6%
associate-*l/81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in t1 around inf 68.2%
associate-*r/68.2%
neg-mul-168.2%
Simplified68.2%
Final simplification67.4%
(FPCore (u v t1) :precision binary64 (if (<= u -4.8e+85) (* v (/ t1 (* u u))) (if (<= u 1.3e+106) (/ (- v) t1) (/ v (/ (* u u) t1)))))
double code(double u, double v, double t1) {
double tmp;
if (u <= -4.8e+85) {
tmp = v * (t1 / (u * u));
} else if (u <= 1.3e+106) {
tmp = -v / t1;
} else {
tmp = v / ((u * 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 <= (-4.8d+85)) then
tmp = v * (t1 / (u * u))
else if (u <= 1.3d+106) then
tmp = -v / t1
else
tmp = v / ((u * u) / t1)
end if
code = tmp
end function
public static double code(double u, double v, double t1) {
double tmp;
if (u <= -4.8e+85) {
tmp = v * (t1 / (u * u));
} else if (u <= 1.3e+106) {
tmp = -v / t1;
} else {
tmp = v / ((u * u) / t1);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if u <= -4.8e+85: tmp = v * (t1 / (u * u)) elif u <= 1.3e+106: tmp = -v / t1 else: tmp = v / ((u * u) / t1) return tmp
function code(u, v, t1) tmp = 0.0 if (u <= -4.8e+85) tmp = Float64(v * Float64(t1 / Float64(u * u))); elseif (u <= 1.3e+106) tmp = Float64(Float64(-v) / t1); else tmp = Float64(v / Float64(Float64(u * u) / t1)); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (u <= -4.8e+85) tmp = v * (t1 / (u * u)); elseif (u <= 1.3e+106) tmp = -v / t1; else tmp = v / ((u * u) / t1); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[u, -4.8e+85], N[(v * N[(t1 / N[(u * u), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[u, 1.3e+106], N[((-v) / t1), $MachinePrecision], N[(v / N[(N[(u * u), $MachinePrecision] / t1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq -4.8 \cdot 10^{+85}:\\
\;\;\;\;v \cdot \frac{t1}{u \cdot u}\\
\mathbf{elif}\;u \leq 1.3 \cdot 10^{+106}:\\
\;\;\;\;\frac{-v}{t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{\frac{u \cdot u}{t1}}\\
\end{array}
\end{array}
if u < -4.79999999999999993e85Initial program 70.4%
Taylor expanded in t1 around 0 70.4%
unpow270.4%
Simplified70.4%
associate-/l*72.6%
associate-/r/72.6%
add-sqr-sqrt27.5%
sqrt-unprod44.4%
sqr-neg44.4%
sqrt-unprod37.3%
add-sqr-sqrt64.7%
Applied egg-rr64.7%
if -4.79999999999999993e85 < u < 1.3000000000000001e106Initial program 73.6%
associate-*l/81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in t1 around inf 68.2%
associate-*r/68.2%
neg-mul-168.2%
Simplified68.2%
if 1.3000000000000001e106 < u Initial program 78.4%
Taylor expanded in t1 around 0 76.3%
unpow276.3%
Simplified76.3%
associate-/l*77.7%
associate-/r/71.5%
add-sqr-sqrt40.8%
sqrt-unprod53.7%
sqr-neg53.7%
sqrt-unprod30.7%
add-sqr-sqrt67.5%
Applied egg-rr67.5%
*-commutative67.5%
clear-num67.6%
un-div-inv67.6%
Applied egg-rr67.6%
Final simplification67.4%
(FPCore (u v t1) :precision binary64 (if (<= t1 -1.16e+55) (/ v t1) (if (<= t1 1.9e+88) (/ v u) (/ v t1))))
double code(double u, double v, double t1) {
double tmp;
if (t1 <= -1.16e+55) {
tmp = v / t1;
} else if (t1 <= 1.9e+88) {
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 (t1 <= (-1.16d+55)) then
tmp = v / t1
else if (t1 <= 1.9d+88) 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 (t1 <= -1.16e+55) {
tmp = v / t1;
} else if (t1 <= 1.9e+88) {
tmp = v / u;
} else {
tmp = v / t1;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if t1 <= -1.16e+55: tmp = v / t1 elif t1 <= 1.9e+88: tmp = v / u else: tmp = v / t1 return tmp
function code(u, v, t1) tmp = 0.0 if (t1 <= -1.16e+55) tmp = Float64(v / t1); elseif (t1 <= 1.9e+88) tmp = Float64(v / u); else tmp = Float64(v / t1); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (t1 <= -1.16e+55) tmp = v / t1; elseif (t1 <= 1.9e+88) tmp = v / u; else tmp = v / t1; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[t1, -1.16e+55], N[(v / t1), $MachinePrecision], If[LessEqual[t1, 1.9e+88], N[(v / u), $MachinePrecision], N[(v / t1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t1 \leq -1.16 \cdot 10^{+55}:\\
\;\;\;\;\frac{v}{t1}\\
\mathbf{elif}\;t1 \leq 1.9 \cdot 10^{+88}:\\
\;\;\;\;\frac{v}{u}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{t1}\\
\end{array}
\end{array}
if t1 < -1.1599999999999999e55 or 1.8999999999999998e88 < t1 Initial program 63.0%
associate-/r*72.8%
associate-/l*98.8%
Simplified98.8%
div-inv98.7%
clear-num100.0%
add-sqr-sqrt47.1%
sqrt-unprod22.4%
sqr-neg22.4%
sqrt-unprod24.6%
add-sqr-sqrt44.5%
distribute-lft-neg-in44.5%
distribute-rgt-neg-in44.5%
add-sqr-sqrt24.6%
sqrt-unprod22.4%
sqr-neg22.4%
sqrt-unprod47.1%
add-sqr-sqrt100.0%
Applied egg-rr100.0%
Taylor expanded in t1 around inf 91.0%
expm1-log1p-u75.4%
expm1-udef60.3%
add-sqr-sqrt50.8%
sqrt-unprod51.9%
sqr-neg51.9%
sqrt-unprod38.4%
add-sqr-sqrt41.4%
associate-*r/41.2%
Applied egg-rr41.2%
expm1-def40.8%
expm1-log1p41.1%
associate-/l*41.6%
associate-/r/41.5%
*-inverses41.5%
*-lft-identity41.5%
Simplified41.5%
Taylor expanded in t1 around inf 40.4%
if -1.1599999999999999e55 < t1 < 1.8999999999999998e88Initial program 79.9%
associate-/r*88.8%
associate-/l*97.2%
Simplified97.2%
div-inv96.8%
clear-num97.0%
add-sqr-sqrt52.1%
sqrt-unprod59.5%
sqr-neg59.5%
sqrt-unprod14.6%
add-sqr-sqrt29.8%
distribute-lft-neg-in29.8%
distribute-rgt-neg-in29.8%
add-sqr-sqrt14.6%
sqrt-unprod59.5%
sqr-neg59.5%
sqrt-unprod52.1%
add-sqr-sqrt97.0%
Applied egg-rr97.0%
Taylor expanded in t1 around inf 41.6%
expm1-log1p-u34.9%
expm1-udef28.8%
add-sqr-sqrt13.6%
sqrt-unprod21.9%
sqr-neg21.9%
sqrt-unprod12.1%
add-sqr-sqrt19.8%
associate-*r/19.9%
Applied egg-rr19.9%
expm1-def15.8%
expm1-log1p17.3%
associate-/l*12.9%
associate-/r/13.0%
*-inverses13.0%
*-lft-identity13.0%
Simplified13.0%
Taylor expanded in t1 around 0 15.2%
Final simplification24.4%
(FPCore (u v t1) :precision binary64 (if (<= u 1.1e+109) (- (/ v t1)) (/ v (+ t1 u))))
double code(double u, double v, double t1) {
double tmp;
if (u <= 1.1e+109) {
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.1d+109) 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.1e+109) {
tmp = -(v / t1);
} else {
tmp = v / (t1 + u);
}
return tmp;
}
def code(u, v, t1): tmp = 0 if u <= 1.1e+109: tmp = -(v / t1) else: tmp = v / (t1 + u) return tmp
function code(u, v, t1) tmp = 0.0 if (u <= 1.1e+109) tmp = Float64(-Float64(v / 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.1e+109) tmp = -(v / t1); else tmp = v / (t1 + u); end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[u, 1.1e+109], (-N[(v / t1), $MachinePrecision]), N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq 1.1 \cdot 10^{+109}:\\
\;\;\;\;-\frac{v}{t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{t1 + u}\\
\end{array}
\end{array}
if u < 1.1e109Initial program 72.9%
associate-*l/79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in t1 around inf 59.4%
associate-*r/59.4%
neg-mul-159.4%
Simplified59.4%
if 1.1e109 < u Initial program 78.4%
associate-/r*87.7%
associate-/l*98.6%
Simplified98.6%
div-inv98.6%
clear-num99.8%
add-sqr-sqrt39.9%
sqrt-unprod55.1%
sqr-neg55.1%
sqrt-unprod37.4%
add-sqr-sqrt68.0%
distribute-lft-neg-in68.0%
distribute-rgt-neg-in68.0%
add-sqr-sqrt37.4%
sqrt-unprod55.1%
sqr-neg55.1%
sqrt-unprod39.9%
add-sqr-sqrt99.8%
Applied egg-rr99.8%
Taylor expanded in t1 around inf 48.7%
expm1-log1p-u46.2%
expm1-udef49.9%
add-sqr-sqrt31.6%
sqrt-unprod47.0%
sqr-neg47.0%
sqrt-unprod38.1%
add-sqr-sqrt50.3%
associate-*r/50.1%
Applied egg-rr50.1%
expm1-def48.2%
expm1-log1p49.0%
associate-/l*46.8%
associate-/r/46.9%
*-inverses46.9%
*-lft-identity46.9%
Simplified46.9%
Final simplification57.5%
(FPCore (u v t1) :precision binary64 (if (<= u 9.5e+103) (- (/ v t1)) (/ v u)))
double code(double u, double v, double t1) {
double tmp;
if (u <= 9.5e+103) {
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 (u <= 9.5d+103) 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 (u <= 9.5e+103) {
tmp = -(v / t1);
} else {
tmp = v / u;
}
return tmp;
}
def code(u, v, t1): tmp = 0 if u <= 9.5e+103: tmp = -(v / t1) else: tmp = v / u return tmp
function code(u, v, t1) tmp = 0.0 if (u <= 9.5e+103) tmp = Float64(-Float64(v / t1)); else tmp = Float64(v / u); end return tmp end
function tmp_2 = code(u, v, t1) tmp = 0.0; if (u <= 9.5e+103) tmp = -(v / t1); else tmp = v / u; end tmp_2 = tmp; end
code[u_, v_, t1_] := If[LessEqual[u, 9.5e+103], (-N[(v / t1), $MachinePrecision]), N[(v / u), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;u \leq 9.5 \cdot 10^{+103}:\\
\;\;\;\;-\frac{v}{t1}\\
\mathbf{else}:\\
\;\;\;\;\frac{v}{u}\\
\end{array}
\end{array}
if u < 9.49999999999999922e103Initial program 72.9%
associate-*l/79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in t1 around inf 59.4%
associate-*r/59.4%
neg-mul-159.4%
Simplified59.4%
if 9.49999999999999922e103 < u Initial program 78.4%
associate-/r*87.7%
associate-/l*98.6%
Simplified98.6%
div-inv98.6%
clear-num99.8%
add-sqr-sqrt39.9%
sqrt-unprod55.1%
sqr-neg55.1%
sqrt-unprod37.4%
add-sqr-sqrt68.0%
distribute-lft-neg-in68.0%
distribute-rgt-neg-in68.0%
add-sqr-sqrt37.4%
sqrt-unprod55.1%
sqr-neg55.1%
sqrt-unprod39.9%
add-sqr-sqrt99.8%
Applied egg-rr99.8%
Taylor expanded in t1 around inf 48.7%
expm1-log1p-u46.2%
expm1-udef49.9%
add-sqr-sqrt31.6%
sqrt-unprod47.0%
sqr-neg47.0%
sqrt-unprod38.1%
add-sqr-sqrt50.3%
associate-*r/50.1%
Applied egg-rr50.1%
expm1-def48.2%
expm1-log1p49.0%
associate-/l*46.8%
associate-/r/46.9%
*-inverses46.9%
*-lft-identity46.9%
Simplified46.9%
Taylor expanded in t1 around 0 44.1%
Final simplification57.0%
(FPCore (u v t1) :precision binary64 (- (/ v (+ t1 u))))
double code(double u, double v, double t1) {
return -(v / (t1 + u));
}
real(8) function code(u, v, t1)
real(8), intent (in) :: u
real(8), intent (in) :: v
real(8), intent (in) :: t1
code = -(v / (t1 + u))
end function
public static double code(double u, double v, double t1) {
return -(v / (t1 + u));
}
def code(u, v, t1): return -(v / (t1 + u))
function code(u, v, t1) return Float64(-Float64(v / Float64(t1 + u))) end
function tmp = code(u, v, t1) tmp = -(v / (t1 + u)); end
code[u_, v_, t1_] := (-N[(v / N[(t1 + u), $MachinePrecision]), $MachinePrecision])
\begin{array}{l}
\\
-\frac{v}{t1 + u}
\end{array}
Initial program 73.7%
associate-/r*83.0%
associate-/l*97.8%
Simplified97.8%
Taylor expanded in t1 around inf 59.6%
neg-mul-159.6%
Simplified59.6%
Final simplification59.6%
(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}
Initial program 73.7%
associate-/r*83.0%
associate-/l*97.8%
Simplified97.8%
div-inv97.5%
clear-num98.1%
add-sqr-sqrt50.3%
sqrt-unprod46.0%
sqr-neg46.0%
sqrt-unprod18.2%
add-sqr-sqrt35.1%
distribute-lft-neg-in35.1%
distribute-rgt-neg-in35.1%
add-sqr-sqrt18.2%
sqrt-unprod46.0%
sqr-neg46.0%
sqrt-unprod50.3%
add-sqr-sqrt98.1%
Applied egg-rr98.1%
Taylor expanded in t1 around inf 59.5%
expm1-log1p-u49.6%
expm1-udef40.3%
add-sqr-sqrt27.1%
sqrt-unprod32.8%
sqr-neg32.8%
sqrt-unprod21.6%
add-sqr-sqrt27.7%
associate-*r/27.6%
Applied egg-rr27.6%
expm1-def24.9%
expm1-log1p25.9%
associate-/l*23.3%
associate-/r/23.4%
*-inverses23.4%
*-lft-identity23.4%
Simplified23.4%
Taylor expanded in t1 around inf 16.3%
Final simplification16.3%
herbie shell --seed 2023279
(FPCore (u v t1)
:name "Rosa's DopplerBench"
:precision binary64
(/ (* (- t1) v) (* (+ t1 u) (+ t1 u))))