MathGroup Archive 2009

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

Search the Archive

Re: Problem with a plot in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100474] Re: [mg100443] Problem with a plot in Mathematica
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 5 Jun 2009 03:01:42 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

C is reserved. Use a lower case c

exp( _ ) should be Exp[ _ ]

c[y_, vary_, varz_] = (25/2*3.14*7*vary*varz)*Exp[-y^2/2*vary^2]*
   Exp[-38^2/2*varz^2];

vary[x_] = 0.22*(1 + 0.0004 x) - 0.5;

varz[x_] = 0.20*(1 + 0.0001 x) - 0.5;

Plot3D[c[y, vary[x], varz[x]], {x, 0, 10}, {y, 0, 5}]


Bob Hanlon

---- dmirab <donatomirabile at hotmail.com> wrote: 

=============
Hi there I have a function to plot in Mathematica but i am keeping getting some mistake of sintax.

this is the function:

C=(25/2*3.14*7*vary*varz)*exp(-y^2/2*vary^2)*exp(-38^2/2*varz^2)

and

vary=0.22*(1+0.0004x)-0.5
varz=0.20*(1+0.0001x)-0.5

it shoud be a 3d but i put z=38 so it's a 2D now. How do you type it in Mathematica? Just to get what's my mistake

any help is very much appreciated

thanks very much



  • Prev by Date: question on passing arguments in a function within BarChart
  • Next by Date: Re: creating an array in a loop
  • Previous by thread: Re: Problem with a plot in Mathematica
  • Next by thread: Re: Problem with a plot in Mathematica