MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to plot functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130112] Re: How to plot functions
  • From: Jak Alof <spamaddress.giveaway at yahoo.com>
  • Date: Sun, 10 Mar 2013 17:06:12 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <khh6p6$ako$1@smc.vnet.net>

f[c_, x_] := c Power[x, 2]
Plot[f[3, x], {x, -10, 10}]

On Saturday, March 9, 2013 10:47:18 PM UTC-7, radres wrote:
> 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?



  • Prev by Date: Re: dark halo around gaussian peak in Plot3D?
  • Next by Date: Re: How to plot functions
  • Previous by thread: Re: How to plot functions
  • Next by thread: Re: How to plot functions