| Alternative 1 | |
|---|---|
| Error | 31.9 |
| Cost | 14676 |
(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
(sqrt
(*
(* n 2.0)
(*
U
(+
t
(+
(* (/ l (/ Om l)) -2.0)
(* (* n (* l (/ l Om))) (/ (- U* U) Om)))))))))
(if (<= l -4.6e+124)
(-
(pow
(cbrt
(*
(sqrt (* (/ (+ (* (/ n Om) U*) -2.0) Om) (* n U)))
(* l (sqrt 2.0))))
3.0))
(if (<= l -7e-195)
t_1
(if (<= l 4.5e-95)
(sqrt (* 2.0 (fabs (* U (* n t)))))
(if (<= l 1.85e+145)
t_1
(*
(sqrt 2.0)
(*
l
(sqrt (* U (* n (+ (* (/ n Om) (/ U* Om)) (/ -2.0 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 = sqrt(((n * 2.0) * (U * (t + (((l / (Om / l)) * -2.0) + ((n * (l * (l / Om))) * ((U_42_ - U) / Om)))))));
double tmp;
if (l <= -4.6e+124) {
tmp = -pow(cbrt((sqrt((((((n / Om) * U_42_) + -2.0) / Om) * (n * U))) * (l * sqrt(2.0)))), 3.0);
} else if (l <= -7e-195) {
tmp = t_1;
} else if (l <= 4.5e-95) {
tmp = sqrt((2.0 * fabs((U * (n * t)))));
} else if (l <= 1.85e+145) {
tmp = t_1;
} else {
tmp = sqrt(2.0) * (l * sqrt((U * (n * (((n / Om) * (U_42_ / Om)) + (-2.0 / Om))))));
}
return tmp;
}
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
return Math.sqrt((((2.0 * n) * U) * ((t - (2.0 * ((l * l) / Om))) - ((n * Math.pow((l / Om), 2.0)) * (U - U_42_)))));
}
public static double code(double n, double U, double t, double l, double Om, double U_42_) {
double t_1 = Math.sqrt(((n * 2.0) * (U * (t + (((l / (Om / l)) * -2.0) + ((n * (l * (l / Om))) * ((U_42_ - U) / Om)))))));
double tmp;
if (l <= -4.6e+124) {
tmp = -Math.pow(Math.cbrt((Math.sqrt((((((n / Om) * U_42_) + -2.0) / Om) * (n * U))) * (l * Math.sqrt(2.0)))), 3.0);
} else if (l <= -7e-195) {
tmp = t_1;
} else if (l <= 4.5e-95) {
tmp = Math.sqrt((2.0 * Math.abs((U * (n * t)))));
} else if (l <= 1.85e+145) {
tmp = t_1;
} else {
tmp = Math.sqrt(2.0) * (l * Math.sqrt((U * (n * (((n / Om) * (U_42_ / Om)) + (-2.0 / 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 = sqrt(Float64(Float64(n * 2.0) * Float64(U * Float64(t + Float64(Float64(Float64(l / Float64(Om / l)) * -2.0) + Float64(Float64(n * Float64(l * Float64(l / Om))) * Float64(Float64(U_42_ - U) / Om))))))) tmp = 0.0 if (l <= -4.6e+124) tmp = Float64(-(cbrt(Float64(sqrt(Float64(Float64(Float64(Float64(Float64(n / Om) * U_42_) + -2.0) / Om) * Float64(n * U))) * Float64(l * sqrt(2.0)))) ^ 3.0)); elseif (l <= -7e-195) tmp = t_1; elseif (l <= 4.5e-95) tmp = sqrt(Float64(2.0 * abs(Float64(U * Float64(n * t))))); elseif (l <= 1.85e+145) tmp = t_1; else tmp = Float64(sqrt(2.0) * Float64(l * sqrt(Float64(U * Float64(n * Float64(Float64(Float64(n / Om) * Float64(U_42_ / Om)) + Float64(-2.0 / 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[Sqrt[N[(N[(n * 2.0), $MachinePrecision] * N[(U * N[(t + N[(N[(N[(l / N[(Om / l), $MachinePrecision]), $MachinePrecision] * -2.0), $MachinePrecision] + N[(N[(n * N[(l * N[(l / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(U$42$ - U), $MachinePrecision] / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[l, -4.6e+124], (-N[Power[N[Power[N[(N[Sqrt[N[(N[(N[(N[(N[(n / Om), $MachinePrecision] * U$42$), $MachinePrecision] + -2.0), $MachinePrecision] / Om), $MachinePrecision] * N[(n * U), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(l * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]), If[LessEqual[l, -7e-195], t$95$1, If[LessEqual[l, 4.5e-95], N[Sqrt[N[(2.0 * N[Abs[N[(U * N[(n * t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 1.85e+145], t$95$1, N[(N[Sqrt[2.0], $MachinePrecision] * N[(l * N[Sqrt[N[(U * N[(n * N[(N[(N[(n / Om), $MachinePrecision] * N[(U$42$ / Om), $MachinePrecision]), $MachinePrecision] + N[(-2.0 / Om), $MachinePrecision]), $MachinePrecision]), $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 := \sqrt{\left(n \cdot 2\right) \cdot \left(U \cdot \left(t + \left(\frac{\ell}{\frac{Om}{\ell}} \cdot -2 + \left(n \cdot \left(\ell \cdot \frac{\ell}{Om}\right)\right) \cdot \frac{U* - U}{Om}\right)\right)\right)}\\
\mathbf{if}\;\ell \leq -4.6 \cdot 10^{+124}:\\
\;\;\;\;-{\left(\sqrt[3]{\sqrt{\frac{\frac{n}{Om} \cdot U* + -2}{Om} \cdot \left(n \cdot U\right)} \cdot \left(\ell \cdot \sqrt{2}\right)}\right)}^{3}\\
\mathbf{elif}\;\ell \leq -7 \cdot 10^{-195}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;\ell \leq 4.5 \cdot 10^{-95}:\\
\;\;\;\;\sqrt{2 \cdot \left|U \cdot \left(n \cdot t\right)\right|}\\
\mathbf{elif}\;\ell \leq 1.85 \cdot 10^{+145}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2} \cdot \left(\ell \cdot \sqrt{U \cdot \left(n \cdot \left(\frac{n}{Om} \cdot \frac{U*}{Om} + \frac{-2}{Om}\right)\right)}\right)\\
\end{array}
Results
if l < -4.59999999999999969e124Initial program 59.0
Simplified47.1
[Start]59.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* [=>]59.0 | \[ \sqrt{\color{blue}{\left(2 \cdot \left(n \cdot U\right)\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* [=>]59.0 | \[ \sqrt{\color{blue}{2 \cdot \left(\left(n \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)\right)}}
\] |
*-commutative [=>]59.0 | \[ \sqrt{2 \cdot \color{blue}{\left(\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) \cdot \left(n \cdot U\right)\right)}}
\] |
Taylor expanded in l around -inf 33.5
Taylor expanded in U around 0 33.9
Simplified33.9
[Start]33.9 | \[ -1 \cdot \left(\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(\left(\frac{n \cdot U*}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right) \cdot U\right)}\right)
\] |
|---|---|
*-commutative [=>]33.9 | \[ -1 \cdot \left(\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \color{blue}{\left(U \cdot \left(\frac{n \cdot U*}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right)\right)}}\right)
\] |
unpow2 [=>]33.9 | \[ -1 \cdot \left(\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\frac{n \cdot U*}{\color{blue}{Om \cdot Om}} - 2 \cdot \frac{1}{Om}\right)\right)}\right)
\] |
associate-*r/ [=>]33.9 | \[ -1 \cdot \left(\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\frac{n \cdot U*}{Om \cdot Om} - \color{blue}{\frac{2 \cdot 1}{Om}}\right)\right)}\right)
\] |
metadata-eval [=>]33.9 | \[ -1 \cdot \left(\left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\frac{n \cdot U*}{Om \cdot Om} - \frac{\color{blue}{2}}{Om}\right)\right)}\right)
\] |
Applied egg-rr29.6
if -4.59999999999999969e124 < l < -7.00000000000000028e-195 or 4.5e-95 < l < 1.84999999999999997e145Initial program 30.0
Simplified30.5
[Start]30.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* [=>]29.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- [=>]29.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)}
\] |
sub-neg [=>]29.6 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \color{blue}{\left(t + \left(-\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)}\right)}
\] |
sub-neg [<=]29.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)}
\] |
cancel-sign-sub [<=]29.6 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \color{blue}{\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)}
\] |
cancel-sign-sub [=>]29.6 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \color{blue}{\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)}
\] |
associate-/l* [=>]29.6 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \color{blue}{\frac{\ell}{\frac{Om}{\ell}}} + \left(n \cdot {\left(\frac{\ell}{Om}\right)}^{2}\right) \cdot \left(U - U*\right)\right)\right)\right)}
\] |
associate-*l* [=>]30.5 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + \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 0 34.6
Simplified29.9
[Start]34.6 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + n \cdot \left(\frac{{\ell}^{2} \cdot U}{{Om}^{2}} + -1 \cdot \frac{{\ell}^{2} \cdot U*}{{Om}^{2}}\right)\right)\right)\right)}
\] |
|---|---|
mul-1-neg [=>]34.6 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + n \cdot \left(\frac{{\ell}^{2} \cdot U}{{Om}^{2}} + \color{blue}{\left(-\frac{{\ell}^{2} \cdot U*}{{Om}^{2}}\right)}\right)\right)\right)\right)}
\] |
unsub-neg [=>]34.6 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + n \cdot \color{blue}{\left(\frac{{\ell}^{2} \cdot U}{{Om}^{2}} - \frac{{\ell}^{2} \cdot U*}{{Om}^{2}}\right)}\right)\right)\right)}
\] |
unpow2 [=>]34.6 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + n \cdot \left(\frac{{\ell}^{2} \cdot U}{\color{blue}{Om \cdot Om}} - \frac{{\ell}^{2} \cdot U*}{{Om}^{2}}\right)\right)\right)\right)}
\] |
times-frac [=>]33.9 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + n \cdot \left(\color{blue}{\frac{{\ell}^{2}}{Om} \cdot \frac{U}{Om}} - \frac{{\ell}^{2} \cdot U*}{{Om}^{2}}\right)\right)\right)\right)}
\] |
unpow2 [=>]33.9 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + n \cdot \left(\frac{\color{blue}{\ell \cdot \ell}}{Om} \cdot \frac{U}{Om} - \frac{{\ell}^{2} \cdot U*}{{Om}^{2}}\right)\right)\right)\right)}
\] |
unpow2 [=>]33.9 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + n \cdot \left(\frac{\ell \cdot \ell}{Om} \cdot \frac{U}{Om} - \frac{{\ell}^{2} \cdot U*}{\color{blue}{Om \cdot Om}}\right)\right)\right)\right)}
\] |
times-frac [=>]29.9 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + n \cdot \left(\frac{\ell \cdot \ell}{Om} \cdot \frac{U}{Om} - \color{blue}{\frac{{\ell}^{2}}{Om} \cdot \frac{U*}{Om}}\right)\right)\right)\right)}
\] |
unpow2 [=>]29.9 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + n \cdot \left(\frac{\ell \cdot \ell}{Om} \cdot \frac{U}{Om} - \frac{\color{blue}{\ell \cdot \ell}}{Om} \cdot \frac{U*}{Om}\right)\right)\right)\right)}
\] |
Applied egg-rr29.7
Simplified28.2
[Start]29.7 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + {\left(n \cdot \left(\frac{\ell}{\frac{Om}{\ell}} \cdot \frac{U - U*}{Om}\right)\right)}^{1}\right)\right)\right)}
\] |
|---|---|
unpow1 [=>]29.7 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + \color{blue}{n \cdot \left(\frac{\ell}{\frac{Om}{\ell}} \cdot \frac{U - U*}{Om}\right)}\right)\right)\right)}
\] |
associate-*r* [=>]28.2 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + \color{blue}{\left(n \cdot \frac{\ell}{\frac{Om}{\ell}}\right) \cdot \frac{U - U*}{Om}}\right)\right)\right)}
\] |
*-commutative [=>]28.2 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + \color{blue}{\frac{U - U*}{Om} \cdot \left(n \cdot \frac{\ell}{\frac{Om}{\ell}}\right)}\right)\right)\right)}
\] |
associate-/r/ [=>]28.2 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + \frac{U - U*}{Om} \cdot \left(n \cdot \color{blue}{\left(\frac{\ell}{Om} \cdot \ell\right)}\right)\right)\right)\right)}
\] |
*-commutative [=>]28.2 | \[ \sqrt{\left(2 \cdot n\right) \cdot \left(U \cdot \left(t - \left(2 \cdot \frac{\ell}{\frac{Om}{\ell}} + \frac{U - U*}{Om} \cdot \left(n \cdot \color{blue}{\left(\ell \cdot \frac{\ell}{Om}\right)}\right)\right)\right)\right)}
\] |
if -7.00000000000000028e-195 < l < 4.5e-95Initial program 25.2
Simplified26.2
[Start]25.2 | \[ \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* [=>]25.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- [=>]25.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 [=>]25.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* [=>]26.2 | \[ \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 t around inf 29.2
Simplified29.7
[Start]29.2 | \[ \sqrt{2 \cdot \left(n \cdot \left(t \cdot U\right)\right)}
\] |
|---|---|
associate-*r* [=>]29.7 | \[ \sqrt{2 \cdot \color{blue}{\left(\left(n \cdot t\right) \cdot U\right)}}
\] |
*-commutative [=>]29.7 | \[ \sqrt{2 \cdot \color{blue}{\left(U \cdot \left(n \cdot t\right)\right)}}
\] |
Applied egg-rr29.6
if 1.84999999999999997e145 < l Initial program 62.1
Simplified49.7
[Start]62.1 | \[ \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* [=>]62.1 | \[ \sqrt{\color{blue}{\left(2 \cdot \left(n \cdot U\right)\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* [=>]62.1 | \[ \sqrt{\color{blue}{2 \cdot \left(\left(n \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)\right)}}
\] |
*-commutative [=>]62.1 | \[ \sqrt{2 \cdot \color{blue}{\left(\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) \cdot \left(n \cdot U\right)\right)}}
\] |
Taylor expanded in l around inf 34.5
Simplified38.1
[Start]34.5 | \[ \left(\sqrt{2} \cdot \ell\right) \cdot \sqrt{n \cdot \left(U \cdot \left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right)\right)}
\] |
|---|---|
associate-*l* [=>]34.4 | \[ \color{blue}{\sqrt{2} \cdot \left(\ell \cdot \sqrt{n \cdot \left(U \cdot \left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right)\right)}\right)}
\] |
*-commutative [=>]34.4 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{n \cdot \color{blue}{\left(\left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right) \cdot U\right)}}\right)
\] |
associate-*r* [=>]37.7 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{\color{blue}{\left(n \cdot \left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right)\right) \cdot U}}\right)
\] |
*-commutative [=>]37.7 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{\color{blue}{U \cdot \left(n \cdot \left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} - 2 \cdot \frac{1}{Om}\right)\right)}}\right)
\] |
cancel-sign-sub-inv [=>]37.7 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{U \cdot \left(n \cdot \color{blue}{\left(\frac{n \cdot \left(U* - U\right)}{{Om}^{2}} + \left(-2\right) \cdot \frac{1}{Om}\right)}\right)}\right)
\] |
associate-/l* [=>]39.4 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{U \cdot \left(n \cdot \left(\color{blue}{\frac{n}{\frac{{Om}^{2}}{U* - U}}} + \left(-2\right) \cdot \frac{1}{Om}\right)\right)}\right)
\] |
associate-/r/ [=>]38.1 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{U \cdot \left(n \cdot \left(\color{blue}{\frac{n}{{Om}^{2}} \cdot \left(U* - U\right)} + \left(-2\right) \cdot \frac{1}{Om}\right)\right)}\right)
\] |
unpow2 [=>]38.1 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{U \cdot \left(n \cdot \left(\frac{n}{\color{blue}{Om \cdot Om}} \cdot \left(U* - U\right) + \left(-2\right) \cdot \frac{1}{Om}\right)\right)}\right)
\] |
metadata-eval [=>]38.1 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{U \cdot \left(n \cdot \left(\frac{n}{Om \cdot Om} \cdot \left(U* - U\right) + \color{blue}{-2} \cdot \frac{1}{Om}\right)\right)}\right)
\] |
associate-*r/ [=>]38.1 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{U \cdot \left(n \cdot \left(\frac{n}{Om \cdot Om} \cdot \left(U* - U\right) + \color{blue}{\frac{-2 \cdot 1}{Om}}\right)\right)}\right)
\] |
metadata-eval [=>]38.1 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{U \cdot \left(n \cdot \left(\frac{n}{Om \cdot Om} \cdot \left(U* - U\right) + \frac{\color{blue}{-2}}{Om}\right)\right)}\right)
\] |
Taylor expanded in U* around inf 38.2
Simplified33.2
[Start]38.2 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{U \cdot \left(n \cdot \left(\frac{n \cdot U*}{{Om}^{2}} + \frac{-2}{Om}\right)\right)}\right)
\] |
|---|---|
unpow2 [=>]38.2 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{U \cdot \left(n \cdot \left(\frac{n \cdot U*}{\color{blue}{Om \cdot Om}} + \frac{-2}{Om}\right)\right)}\right)
\] |
times-frac [=>]33.2 | \[ \sqrt{2} \cdot \left(\ell \cdot \sqrt{U \cdot \left(n \cdot \left(\color{blue}{\frac{n}{Om} \cdot \frac{U*}{Om}} + \frac{-2}{Om}\right)\right)}\right)
\] |
Final simplification29.3
| Alternative 1 | |
|---|---|
| Error | 31.9 |
| Cost | 14676 |
| Alternative 2 | |
|---|---|
| Error | 29.5 |
| Cost | 14544 |
| Alternative 3 | |
|---|---|
| Error | 32.4 |
| Cost | 14164 |
| Alternative 4 | |
|---|---|
| Error | 32.4 |
| Cost | 14164 |
| Alternative 5 | |
|---|---|
| Error | 33.7 |
| Cost | 13776 |
| Alternative 6 | |
|---|---|
| Error | 33.5 |
| Cost | 8916 |
| Alternative 7 | |
|---|---|
| Error | 33.6 |
| Cost | 8656 |
| Alternative 8 | |
|---|---|
| Error | 36.8 |
| Cost | 8401 |
| Alternative 9 | |
|---|---|
| Error | 34.7 |
| Cost | 8392 |
| Alternative 10 | |
|---|---|
| Error | 36.0 |
| Cost | 7624 |
| Alternative 11 | |
|---|---|
| Error | 36.1 |
| Cost | 7624 |
| Alternative 12 | |
|---|---|
| Error | 35.1 |
| Cost | 7620 |
| Alternative 13 | |
|---|---|
| Error | 40.7 |
| Cost | 7496 |
| Alternative 14 | |
|---|---|
| Error | 40.6 |
| Cost | 7496 |
| Alternative 15 | |
|---|---|
| Error | 40.5 |
| Cost | 7496 |
| Alternative 16 | |
|---|---|
| Error | 35.1 |
| Cost | 7492 |
| Alternative 17 | |
|---|---|
| Error | 40.5 |
| Cost | 6980 |
| Alternative 18 | |
|---|---|
| Error | 40.5 |
| Cost | 6980 |
| Alternative 19 | |
|---|---|
| Error | 40.6 |
| Cost | 6848 |
herbie shell --seed 2023034
(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*))))))