Find Docs

Astronomical Applications Department, U.S. Naval Observatory - Linear Least Squares (Page 6)

Wodocs >> Science : Astronomy >> Astronomical Applications Department, U.S. Naval Observatory Linear Least Squares Page 6
Astronomical Applications Department, U.S. Naval Observatory - Linear Least Squares
indets(value(expand(partials)),function), sum ),
list );
#degree() can't handle summation subscripts, so remove them
YTsums := subs( t=T, y=Y, sums );
_subslist := [];
nmax := 0;
debug_print(procname,"summation terms",4,sums);
debug_print(procname,"YT terms",5,YTsums);
Tcount := 0;
Scount := 0;
for k from 1 to nops(YTsums) do
if ispoly then
select(has,[op(YTsums[k])],T);
if %=[] then
n := 0;
else
n := degree( op(%), T );
fi;
nmax := max(n,nmax);
fi;
if has(YTsums[k],Y) then
if not ispoly then
n := Scount;
nmax := max(n,nmax);
Scount := Scount + 1;
fi;
_subslist := [op(_subslist),sums[k]='S'[n]];
else
if not ispoly then
n := Tcount;
Tcount := Tcount + 1;
fi;
_subslist := [op(_subslist),sums[k]='T'[n]];
fi;
od;

#---------------------------------------------------
# substitute for the summation terms in the partials
#---------------------------------------------------
partials := collect( eval( value(expand(partials)), _subslist ),
[seq(S[k],k=1..nmax),N], factor );

#put substitution list into form suitable for putting the sums back
_subslist := map( (x)->rhs(x)=lhs(x), _subslist );

#--------------------------
# form the normal equations
#--------------------------
eqs := collect( partials, [op(params),sum], factor );
if printlevel >= 1 then
debug_print(procname,"normal equations",1);
for p in eqs do
print(p);
od;
fi;

#---------------------------
Page 6

<< Previous       1 2 3 4 5 6 7 8 9 10 11 12 13 14 15       Next >>



Other Documents:
Sensitivity Integral, 3 D plot fits, lyap2, NAO 150, Rotate Vector, lyapcalc, wedges, Scifull, Precession Memo, Precession Maple, Curves 3 D, NOVAS 2004 Overview, NOVAS 2006 Overview, thesis, Ranson,


WODocs | |
All rights reserved. wodocs.com© 2009
WODocs


New Docs

Documents Category:
Arts (Design, Movies, Music, Radio, Television)
Automotive (Cars, Marine, Motorcycle, ATV, Snowmobiles)
Business (Biotechnology and Pharmaceuticals, Chemicals, Construction and Maintenance, Materials, Real Estate, Services)
Electronics (Computers, Motion Control, Power Supply)
Games (Board, Family, Party, Card, Construction, RC Toys)
Health (Animalm, Beauty, Healthcare, Medicine, Pharmacy, Surgery, Weight Loss)
Home (Accessories, Cooking, Decor and Design, Electrical, Family, Pets)
News (Newspapers, Sports, Television)
Recreation (Collecting, Hiking, Scouting, Survival, Travel)
Reference (Education, Libraries and Archives, Museums)
Science (Agriculture, Astronomy, Biology, Chemistry)
Shopping (Antiques and Collectibles, Clothing, Flowers, Food, Home and Garden)
Sports (Bicycle, Snowboard, Skiing, Other)