Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'plotting' topicStudent Support Forum > General > "plotting"

Next Comment >Help | Reply To Topic
Author Comment/Response
10/29/04 10:58pm


How can I plot the Legendre polynomials from n = 1 to 20 all onto 1 graph?

I tried
Do[Plot[LegendreP[n,x],{x,-1,1}], {n,0,20}]

but that gave me 21 seperate graphs...

I was thinking maybe
seq = ...

something like that? and somehow stick a do loop inside the seq line to make it a sequence of the legendre polynomials? I have no idea how to do that though...

Thanks for any help!

URL: ,

Subject (listing for 'plotting')
Author Date Posted
plotting cathy 10/29/04 10:58pm
Re: plotting Henry Lamb 11/04/04 04:08am
Re: plotting yehuda ben-s... 11/04/04 11:42am
Re: plotting Ben Kovitz 11/06/04 01:24am
Re: plotting cathy 11/10/04 03:00am
Next Comment >Help | Reply To Topic