| Alternative 1 | |
|---|---|
| Error | 24.5 |
| Cost | 37900 |
(FPCore (n U t l Om U*) :precision binary64 (sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))
(FPCore (n U t l Om U*)
:precision binary64
(let* ((t_1 (* l (/ l Om)))
(t_2 (* (* 2.0 n) U))
(t_3 (pow (/ l Om) 2.0))
(t_4 (* (* n t_3) (- U* U)))
(t_5 (* t_2 (+ (+ t (* (/ (* l l) Om) -2.0)) t_4))))
(if (<= t_5 0.0)
(sqrt
(pow
(cbrt (* U (* (* n -2.0) (- (fma 2.0 t_1 (* t_3 (* n (- U U*)))) t))))
3.0))
(if (<= t_5 1e+299)
(sqrt (* t_2 (+ (+ t (* t_1 -2.0)) t_4)))
(if (<= t_5 INFINITY)
(fabs (/ (* (sqrt (* 2.0 (* U U*))) (* n l)) Om))
(sqrt (* 2.0 (* (* n l) (* -2.0 (/ (* U l) Om))))))))))double code(double n, double U, double t, double l, double Om, double U_42_) {
return sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * pow((l / Om), 2.0)) * (U - U_42_)))));
}
double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = l * (l / Om);
double t_2 = (2.0 * n) * U;
double t_3 = pow((l / Om), 2.0);
double t_4 = (n * t_3) * (U_42_ - U);
double t_5 = t_2 * ((t + (((l * l) / Om) * -2.0)) + t_4);
double tmp;
if (t_5 <= 0.0) {
tmp = sqrt(pow(cbrt((U * ((n * -2.0) * (fma(2.0, t_1, (t_3 * (n * (U - U_42_)))) - t)))), 3.0));
} else if (t_5 <= 1e+299) {
tmp = sqrt((t_2 * ((t + (t_1 * -2.0)) + t_4)));
} else if (t_5 <= ((double) INFINITY)) {
tmp = fabs(((sqrt((2.0 * (U * U_42_))) * (n * l)) / Om));
} else {
tmp = sqrt((2.0 * ((n * l) * (-2.0 * ((U * l) / Om)))));
}
return tmp;
}
function code(n, U, t, l, Om, U_42_) return sqrt(Float64(Float64(Float64(2.0 * n) * U) * Float64(Float64(t - Float64(2.0 * Float64(Float64(l * l) / Om))) - Float64(Float64(n * (Float64(l / Om) ^ 2.0)) * Float64(U - U_42_))))) end
function code(n, U, t, l, Om, U_42_) t_1 = Float64(l * Float64(l / Om)) t_2 = Float64(Float64(2.0 * n) * U) t_3 = Float64(l / Om) ^ 2.0 t_4 = Float64(Float64(n * t_3) * Float64(U_42_ - U)) t_5 = Float64(t_2 * Float64(Float64(t + Float64(Float64(Float64(l * l) / Om) * -2.0)) + t_4)) tmp = 0.0 if (t_5 <= 0.0) tmp = sqrt((cbrt(Float64(U * Float64(Float64(n * -2.0) * Float64(fma(2.0, t_1, Float64(t_3 * Float64(n * Float64(U - U_42_)))) - t)))) ^ 3.0)); elseif (t_5 <= 1e+299) tmp = sqrt(Float64(t_2 * Float64(Float64(t + Float64(t_1 * -2.0)) + t_4))); elseif (t_5 <= Inf) tmp = abs(Float64(Float64(sqrt(Float64(2.0 * Float64(U * U_42_))) * Float64(n * l)) / Om)); else tmp = sqrt(Float64(2.0 * Float64(Float64(n * l) * Float64(-2.0 * Float64(Float64(U * l) / Om))))); end return tmp end
code[n_, U_, t_, l_, Om_, U$42$_] := N[Sqrt[N[(N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision] * N[(N[(t - N[(2.0 * N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(n * N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
code[n_, U_, t_, l_, Om_, U$42$_] := Block[{t$95$1 = N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(2.0 * n), $MachinePrecision] * U), $MachinePrecision]}, Block[{t$95$3 = N[Power[N[(l / Om), $MachinePrecision], 2.0], $MachinePrecision]}, Block[{t$95$4 = N[(N[(n * t$95$3), $MachinePrecision] * N[(U$42$ - U), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(t$95$2 * N[(N[(t + N[(N[(N[(l * l), $MachinePrecision] / Om), $MachinePrecision] * -2.0), $MachinePrecision]), $MachinePrecision] + t$95$4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$5, 0.0], N[Sqrt[N[Power[N[Power[N[(U * N[(N[(n * -2.0), $MachinePrecision] * N[(N[(2.0 * t$95$1 + N[(t$95$3 * N[(n * N[(U - U$42$), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$5, 1e+299], N[Sqrt[N[(t$95$2 * N[(N[(t + N[(t$95$1 * -2.0), $MachinePrecision]), $MachinePrecision] + t$95$4), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t$95$5, Infinity], N[Abs[N[(N[(N[Sqrt[N[(2.0 * N[(U * U$42$), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(n * l), $MachinePrecision]), $MachinePrecision] / Om), $MachinePrecision]], $MachinePrecision], N[Sqrt[N[(2.0 * N[(N[(n * l), $MachinePrecision] * N[(-2.0 * N[(N[(U * l), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]]]]]]]
\sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\begin{array}{l}
t_1 := \ell \cdot \frac{\ell}{Om}\\
t_2 := \left(2 \cdot n\right) \cdot U\\
t_3 := {\left(\frac{\ell}{Om}\right)}^{2}\\
t_4 := \left(n \cdot t_3\right) \cdot \left(U* - U\right)\\
t_5 := t_2 \cdot \left(\left(t + \frac{\ell \cdot \ell}{Om} \cdot -2\right) + t_4\right)\\
\mathbf{if}\;t_5 \leq 0:\\
\;\;\;\;\sqrt{{\left(\sqrt[3]{U \cdot \left(\left(n \cdot -2\right) \cdot \left(\mathsf{fma}\left(2, t_1, t_3 \cdot \left(n \cdot \left(U - U*\right)\right)\right) - t\right)\right)}\right)}^{3}}\\
\mathbf{elif}\;t_5 \leq 10^{+299}:\\
\;\;\;\;\sqrt{t_2 \cdot \left(\left(t + t_1 \cdot -2\right) + t_4\right)}\\
\mathbf{elif}\;t_5 \leq \infty:\\
\;\;\;\;\left|\frac{\sqrt{2 \cdot \left(U \cdot U*\right)} \cdot \left(n \cdot \ell\right)}{Om}\right|\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2 \cdot \left(\left(n \cdot \ell\right) \cdot \left(-2 \cdot \frac{U \cdot \ell}{Om}\right)\right)}\\
\end{array}
if (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) < 0.0Initial program 57.8
Simplified43.3
[Start]57.8 | \[ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\] |
|---|---|
associate-*l* [=>]42.6 | \[ \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(U \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}}
\] |
associate--l- [=>]42.6 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \color{blue}{\left(t - \left(2 \cdot \frac{\ell \cdot \ell}{Om} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}\right)}
\] |
fma-def [=>]42.6 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \color{blue}{\mathsf{fma}\left(2, \frac{\ell \cdot \ell}{Om}, \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\right)\right)}
\] |
associate-*l* [=>]43.3 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \mathsf{fma}\left(2, \frac{\ell \cdot \ell}{Om}, \color{blue}{n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U - U*\right)\right)}\right)\right)\right)}
\] |
Applied egg-rr41.7
if 0.0 < (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) < 1.0000000000000001e299Initial program 1.8
Applied egg-rr1.8
if 1.0000000000000001e299 < (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) < +inf.0Initial program 62.9
Simplified60.9
[Start]62.9 | \[ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\] |
|---|---|
associate-*l* [=>]61.2 | \[ \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(U \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}}
\] |
associate--l- [=>]61.2 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \color{blue}{\left(t - \left(2 \cdot \frac{\ell \cdot \ell}{Om} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}\right)}
\] |
fma-def [=>]61.2 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \color{blue}{\mathsf{fma}\left(2, \frac{\ell \cdot \ell}{Om}, \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\right)\right)}
\] |
associate-*l* [=>]60.9 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \mathsf{fma}\left(2, \frac{\ell \cdot \ell}{Om}, \color{blue}{n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U - U*\right)\right)}\right)\right)\right)}
\] |
Taylor expanded in U* around inf 62.6
Simplified61.8
[Start]62.6 | \[ \sqrt{2 \cdot \frac{{n}^{2} \cdot \left({\ell}^{2} \cdot \left(U \cdot U*\right)\right)}{{Om}^{2}}}
\] |
|---|---|
associate-*r/ [=>]62.6 | \[ \sqrt{\color{blue}{\frac{2 \cdot \left({n}^{2} \cdot \left({\ell}^{2} \cdot \left(U \cdot U*\right)\right)\right)}{{Om}^{2}}}}
\] |
associate-*r* [=>]62.5 | \[ \sqrt{\frac{2 \cdot \color{blue}{\left(\left({n}^{2} \cdot {\ell}^{2}\right) \cdot \left(U \cdot U*\right)\right)}}{{Om}^{2}}}
\] |
*-commutative [=>]62.5 | \[ \sqrt{\frac{2 \cdot \color{blue}{\left(\left(U \cdot U*\right) \cdot \left({n}^{2} \cdot {\ell}^{2}\right)\right)}}{{Om}^{2}}}
\] |
unpow2 [=>]62.5 | \[ \sqrt{\frac{2 \cdot \left(\left(U \cdot U*\right) \cdot \left(\color{blue}{\left(n \cdot n\right)} \cdot {\ell}^{2}\right)\right)}{{Om}^{2}}}
\] |
unpow2 [=>]62.5 | \[ \sqrt{\frac{2 \cdot \left(\left(U \cdot U*\right) \cdot \left(\left(n \cdot n\right) \cdot \color{blue}{\left(\ell \cdot \ell\right)}\right)\right)}{{Om}^{2}}}
\] |
unswap-sqr [=>]61.8 | \[ \sqrt{\frac{2 \cdot \left(\left(U \cdot U*\right) \cdot \color{blue}{\left(\left(n \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right)}\right)}{{Om}^{2}}}
\] |
unpow2 [=>]61.8 | \[ \sqrt{\frac{2 \cdot \left(\left(U \cdot U*\right) \cdot \left(\left(n \cdot \ell\right) \cdot \left(n \cdot \ell\right)\right)\right)}{\color{blue}{Om \cdot Om}}}
\] |
Applied egg-rr47.7
if +inf.0 < (*.f64 (*.f64 (*.f64 2 n) U) (-.f64 (-.f64 t (*.f64 2 (/.f64 (*.f64 l l) Om))) (*.f64 (*.f64 n (pow.f64 (/.f64 l Om) 2)) (-.f64 U U*)))) Initial program 64.0
Simplified64.0
[Start]64.0 | \[ \sqrt{\left(\left(2 \cdot n\right) \cdot U\right) \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}
\] |
|---|---|
associate-*l* [=>]64.0 | \[ \sqrt{\color{blue}{\left(2 \cdot n\right) \cdot \left(U \cdot \left(\left(t - 2 \cdot \frac{\ell \cdot \ell}{Om}\right) - \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}}
\] |
associate--l- [=>]64.0 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \color{blue}{\left(t - \left(2 \cdot \frac{\ell \cdot \ell}{Om} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)}\right)}
\] |
fma-def [=>]64.0 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \color{blue}{\mathsf{fma}\left(2, \frac{\ell \cdot \ell}{Om}, \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)}\right)\right)}
\] |
associate-*l* [=>]64.0 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \mathsf{fma}\left(2, \frac{\ell \cdot \ell}{Om}, \color{blue}{n \cdot \left({\left(\frac{\ell}{Om}\right)}^{2} \cdot \left(U - U*\right)\right)}\right)\right)\right)}
\] |
Taylor expanded in l around inf 60.2
Simplified48.5
[Start]60.2 | \[ \sqrt{-2 \cdot \left(\left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right) \cdot \left(n \cdot \left({\ell}^{2} \cdot U\right)\right)\right)}
\] |
|---|---|
associate-/l* [=>]60.8 | \[ \sqrt{-2 \cdot \left(\left(\color{blue}{\frac{n}{\frac{{Om}^{2}}{U - U*}}} + 2 \cdot \frac{1}{Om}\right) \cdot \left(n \cdot \left({\ell}^{2} \cdot U\right)\right)\right)}
\] |
associate-/r/ [=>]60.2 | \[ \sqrt{-2 \cdot \left(\left(\color{blue}{\frac{n}{{Om}^{2}} \cdot \left(U - U*\right)} + 2 \cdot \frac{1}{Om}\right) \cdot \left(n \cdot \left({\ell}^{2} \cdot U\right)\right)\right)}
\] |
unpow2 [=>]60.2 | \[ \sqrt{-2 \cdot \left(\left(\frac{n}{\color{blue}{Om \cdot Om}} \cdot \left(U - U*\right) + 2 \cdot \frac{1}{Om}\right) \cdot \left(n \cdot \left({\ell}^{2} \cdot U\right)\right)\right)}
\] |
associate-*r/ [=>]60.2 | \[ \sqrt{-2 \cdot \left(\left(\frac{n}{Om \cdot Om} \cdot \left(U - U*\right) + \color{blue}{\frac{2 \cdot 1}{Om}}\right) \cdot \left(n \cdot \left({\ell}^{2} \cdot U\right)\right)\right)}
\] |
metadata-eval [=>]60.2 | \[ \sqrt{-2 \cdot \left(\left(\frac{n}{Om \cdot Om} \cdot \left(U - U*\right) + \frac{\color{blue}{2}}{Om}\right) \cdot \left(n \cdot \left({\ell}^{2} \cdot U\right)\right)\right)}
\] |
unpow2 [=>]60.2 | \[ \sqrt{-2 \cdot \left(\left(\frac{n}{Om \cdot Om} \cdot \left(U - U*\right) + \frac{2}{Om}\right) \cdot \left(n \cdot \left(\color{blue}{\left(\ell \cdot \ell\right)} \cdot U\right)\right)\right)}
\] |
associate-*l* [=>]48.5 | \[ \sqrt{-2 \cdot \left(\left(\frac{n}{Om \cdot Om} \cdot \left(U - U*\right) + \frac{2}{Om}\right) \cdot \left(n \cdot \color{blue}{\left(\ell \cdot \left(\ell \cdot U\right)\right)}\right)\right)}
\] |
Taylor expanded in l around 0 60.2
Simplified42.1
[Start]60.2 | \[ \sqrt{-2 \cdot \left(\left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right) \cdot \left(n \cdot \left({\ell}^{2} \cdot U\right)\right)\right)}
\] |
|---|---|
*-commutative [=>]60.2 | \[ \sqrt{-2 \cdot \color{blue}{\left(\left(n \cdot \left({\ell}^{2} \cdot U\right)\right) \cdot \left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right)\right)}}
\] |
unpow2 [=>]60.2 | \[ \sqrt{-2 \cdot \left(\left(n \cdot \left(\color{blue}{\left(\ell \cdot \ell\right)} \cdot U\right)\right) \cdot \left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right)\right)}
\] |
associate-*l* [=>]48.3 | \[ \sqrt{-2 \cdot \left(\left(n \cdot \color{blue}{\left(\ell \cdot \left(\ell \cdot U\right)\right)}\right) \cdot \left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right)\right)}
\] |
*-commutative [<=]48.3 | \[ \sqrt{-2 \cdot \left(\left(n \cdot \left(\ell \cdot \color{blue}{\left(U \cdot \ell\right)}\right)\right) \cdot \left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right)\right)}
\] |
associate-*l* [<=]41.6 | \[ \sqrt{-2 \cdot \left(\color{blue}{\left(\left(n \cdot \ell\right) \cdot \left(U \cdot \ell\right)\right)} \cdot \left(\frac{n \cdot \left(U - U*\right)}{{Om}^{2}} + 2 \cdot \frac{1}{Om}\right)\right)}
\] |
unpow2 [=>]41.6 | \[ \sqrt{-2 \cdot \left(\left(\left(n \cdot \ell\right) \cdot \left(U \cdot \ell\right)\right) \cdot \left(\frac{n \cdot \left(U - U*\right)}{\color{blue}{Om \cdot Om}} + 2 \cdot \frac{1}{Om}\right)\right)}
\] |
associate-*l/ [<=]41.7 | \[ \sqrt{-2 \cdot \left(\left(\left(n \cdot \ell\right) \cdot \left(U \cdot \ell\right)\right) \cdot \left(\color{blue}{\frac{n}{Om \cdot Om} \cdot \left(U - U*\right)} + 2 \cdot \frac{1}{Om}\right)\right)}
\] |
fma-udef [<=]41.7 | \[ \sqrt{-2 \cdot \left(\left(\left(n \cdot \ell\right) \cdot \left(U \cdot \ell\right)\right) \cdot \color{blue}{\mathsf{fma}\left(\frac{n}{Om \cdot Om}, U - U*, 2 \cdot \frac{1}{Om}\right)}\right)}
\] |
associate-*r/ [=>]41.7 | \[ \sqrt{-2 \cdot \left(\left(\left(n \cdot \ell\right) \cdot \left(U \cdot \ell\right)\right) \cdot \mathsf{fma}\left(\frac{n}{Om \cdot Om}, U - U*, \color{blue}{\frac{2 \cdot 1}{Om}}\right)\right)}
\] |
metadata-eval [=>]41.7 | \[ \sqrt{-2 \cdot \left(\left(\left(n \cdot \ell\right) \cdot \left(U \cdot \ell\right)\right) \cdot \mathsf{fma}\left(\frac{n}{Om \cdot Om}, U - U*, \frac{\color{blue}{2}}{Om}\right)\right)}
\] |
associate-*l* [=>]41.8 | \[ \sqrt{-2 \cdot \color{blue}{\left(\left(n \cdot \ell\right) \cdot \left(\left(U \cdot \ell\right) \cdot \mathsf{fma}\left(\frac{n}{Om \cdot Om}, U - U*, \frac{2}{Om}\right)\right)\right)}}
\] |
*-commutative [<=]41.8 | \[ \sqrt{-2 \cdot \left(\left(n \cdot \ell\right) \cdot \color{blue}{\left(\mathsf{fma}\left(\frac{n}{Om \cdot Om}, U - U*, \frac{2}{Om}\right) \cdot \left(U \cdot \ell\right)\right)}\right)}
\] |
Taylor expanded in n around 0 40.5
Final simplification24.8
| Alternative 1 | |
|---|---|
| Error | 24.5 |
| Cost | 37900 |
| Alternative 2 | |
|---|---|
| Error | 29.0 |
| Cost | 14936 |
| Alternative 3 | |
|---|---|
| Error | 29.8 |
| Cost | 14672 |
| Alternative 4 | |
|---|---|
| Error | 32.8 |
| Cost | 14284 |
| Alternative 5 | |
|---|---|
| Error | 32.5 |
| Cost | 8784 |
| Alternative 6 | |
|---|---|
| Error | 31.8 |
| Cost | 8652 |
| Alternative 7 | |
|---|---|
| Error | 30.3 |
| Cost | 8520 |
| Alternative 8 | |
|---|---|
| Error | 33.1 |
| Cost | 8392 |
| Alternative 9 | |
|---|---|
| Error | 33.2 |
| Cost | 8264 |
| Alternative 10 | |
|---|---|
| Error | 36.6 |
| Cost | 8025 |
| Alternative 11 | |
|---|---|
| Error | 36.4 |
| Cost | 8024 |
| Alternative 12 | |
|---|---|
| Error | 39.7 |
| Cost | 7893 |
| Alternative 13 | |
|---|---|
| Error | 33.4 |
| Cost | 7888 |
| Alternative 14 | |
|---|---|
| Error | 33.4 |
| Cost | 7888 |
| Alternative 15 | |
|---|---|
| Error | 40.2 |
| Cost | 7368 |
| Alternative 16 | |
|---|---|
| Error | 40.2 |
| Cost | 7368 |
| Alternative 17 | |
|---|---|
| Error | 40.2 |
| Cost | 7113 |
| Alternative 18 | |
|---|---|
| Error | 40.2 |
| Cost | 6848 |
herbie shell --seed 2023066
(FPCore (n U t l Om U*)
:name "Toniolo and Linder, Equation (13)"
:precision binary64
(sqrt (* (* (* 2.0 n) U) (- (- t (* 2.0 (/ (* l l) Om))) (* (* n (pow (/ l Om) 2.0)) (- U U*))))))