Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to plot functions
Replies: 5   Last Post: Mar 11, 2013 1:41 AM

 Messages: [ Previous | Next ]
 Dr. Peter Klamser Posts: 23 Registered: 6/11/11
Re: How to plot functions
Posted: Mar 11, 2013 1:41 AM

You must use patterns, ad minim an empty pattern, defining a function.
f[c_]=c x^2 works fine.
f[c_,x_]=c x^2
Plot[ f[3,x], {x, -10, 10} ] works even better suggests
Peter

> Hi,
>
> Let's say I've defined a function f[c]=c*x^2
>
> when I try to plot this directly,
>
> Plot[ f[3], {x, -10, 10} ]
>
> it doesn't plot anything.
>
> But when I assign function to a variable,
>
> v1=f[3]; Plot[v1, {x, -10, 10}]
>
> then there is no problem. But I dont want this. Is there any way to plot directly from a function?
>

Date Subject Author
3/10/13 Bob Hanlon
3/10/13 Christoph Lhotka
3/11/13 Dr. Peter Klamser