Find Docs

Astronomical Applications Department, U.S. Naval Observatory - Sensitivity Integral (Page 9)

Wodocs >> Science : Astronomy >> Astronomical Applications Department, U.S. Naval Observatory Sensitivity Integral Page 9
Astronomical Applications Department, U.S. Naval Observatory - Sensitivity Integral
if nops(locp) > 0 then
subsop( locp=T, K );
collect( %, [T,cos,sin], factor );
K := subs( T=p, % );
else
K := collect( K, [cos,sin], factor );
fi;
debug_print( procname,
`cost of simplified new integrand:`, 1, cost(K) );
# put back into integral and the integral back
# into the remainder integral expression and we're done
debug_print(procname,`new definite integral:`,0);
subsop( 1=K, H );
subsop( locI=%, remdr );
end:
Now we begin the calculation. We'll apply this integration by parts procedure several times, until
the polynomial term of the integrand is differentiated into oblivion. Notice the huge amount of
simplification being done, as evidenced by the "cost" diagnostics.
time0 := time(): #reset print timing
_k_ := '_k_': #reset parts index
verbosity := 2: #not too verbose, please
ugh( integral );
ugh[0]: polynomial factor p:
+
+
+
+
a
0
a
1
x
a
2
x
2
a
3
x
3
a
4
x
4
ugh[0]: location of p in integrand:
[ ]
1
ugh[0]: integrating by parts...
ugh[0]: cost of evaluated part of integral:
+
+
+
+
91 additions
164 multiplications
28 divisions
26 functions
46 subscripts
ugh[0]: evaluated part of integral is stored in parts[0]
ugh[0]: new polynomial factor p:
+
+ +
2 x a
2
3 x
2
a
3
a
1
4 x
3
a
4
ugh[0]: location of p in integrand:
[ ]
1
ugh[0]: full non-sin/cos term:
+
+ +
2 x a
2
3 x
2
a
3
a
1
4 x
3
a
4
ugh[0]: cost of new integrand:
+
+
+
+
44 additions
81 multiplications
14 divisions
13 functions
4 subscripts
ugh[0]: simplifying sin/cos part of new integrand...
ugh[0]: cost of simplified new integrand:
+
+
+
+
44 additions
71 multiplications
16 divisions
13 functions
4 subscripts
ugh[0]: new definite integral:
Page 9

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



Other Documents:
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)