Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13805

Re: How to plot functions

From Peter Klamser <klamser@googlemail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to plot functions
Date 2013-03-11 05:41 +0000
Message-ID <khjqpl$77l$1@smc.vnet.net> (permalink)
References <20130310054802.BF9A66790@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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

2013/3/10 radres <radressss@gmail.com>:
> 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?
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: How to plot functions Peter Klamser <klamser@googlemail.com> - 2013-03-11 05:41 +0000

csiph-web