Random Notes on Using Maple

Random Notes on Using Maple - ( l r 1 $ B ( B .B cos 1 In...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
MA 460/561 Howell Random Notes on Using Maple in the Homework First of all, review how to define functions and how to graph them using the plot command. To plot two are more functions together, enclose the functions by square brackets [ ] when you input them into the plot command (e.g., ). plot( [f,g], 0. .2) Also make sure you understand . The Fourier coefficients should not be arrays functions, but elements of arrays. That way their values can be computed once, saved in the arrays, and reused again and again without being recomputed (if you are unacquainted with “arrays” in Maple, look up in the help section). If you are adding up a bunch array of things, use Maple's command, not it's command. add sum A major frustration in using Maple is it's insistence on doing symbolic calculations and using infinite precision. That is why you might get long formulas involving sines and cosines of strange numbers when all you want is a single good number. For example, suppose you need to evaluate
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ( l r 1 $ B ( B .B cos 1 In Maple, yields int(x^(1/3)*cos(7*Pi*x),x=0. .1); # ( m ( # M # ( " ( %* "$ #$ &' "$ #$ #$ #" $ "" " ) ) ' # &' 1 1 1 LommelS . (Do you know what the LommelS1 function is? Look it up in the Maple help.) To get the value this computes to (within a high degree of accuracy), put the offending code inside the function. Taking the above example and evalf-ing it (i.e., writing evalf ) yields evalf( int(x^(1/3)*cos(7*Pi*x),x=0. .1);-0.7934529806e-2 , which will be more useful for purposes of, say, graphing. It may even be better to use instead of note the capital I on the integration evalf( Int( evalf( int( command. This tells Maple to evaluate the integral numerically rather than to symbolically compute it and then evaluate the resulting formula. Oh yes, don't forget that in Maple is , not . 1 Pi pi...
View Full Document

This note was uploaded on 11/07/2011 for the course MA 460 taught by Professor Staff during the Fall '11 term at University of Alabama in Huntsville.

Ask a homework question - tutors are online