MathGroup Archive 2003

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

Search the Archive

Re: Nested Functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44864] Re: Nested Functions
  • From: "Matthew Senn" <msenn77 at yahoo.com>
  • Date: Thu, 4 Dec 2003 03:04:23 -0500 (EST)
  • References: <bqkblc$hnl$1@smc.vnet.net>
  • Reply-to: "Matthew Senn" <msenn77 at yahoo.com>
  • Sender: owner-wri-mathgroup at wolfram.com

i believe that you have to use := in order to define the functions, am i
correct?


"Gregory Lypny" <gregory.lypny at videotron.ca> wrote in message
news:bqkblc$hnl$1 at smc.vnet.net...
> Hello everyone,
>
> I'm a relatively new user of Mathematica.  I've got a problem with a
> nested function that won't evaluate when supplied with numbers.  It
> looks something like this: MU is a function nested within another
> function P.
>
> MU[C_] = C^g, where 0<g<1  (g=.25 in my notebook)
>
> and
>
> P[z_, Cs_, C0_] = z  (MU[Cs]/MU[C0])
>
> When I try to evaluate P[.5, 120, 90] I get the same input returned,
> that is, P[.5, 120, 90], rather than the value of the function P
> evaluate at its arguments.  What am I doing wrong?
>
> Regards,
>
> Greg
>
> Gregory Lypny
> Associate Professor
> John Molson School of Business
> Concordia University
> ___________________
> "Better for us if you don't understand."
> The Tragically Hip
>
> http://pareto.concordia.ca
>
>
>


  • Prev by Date: Re: Nested Functions
  • Next by Date: RE: Parametric 2d plot with both axes logarithmic
  • Previous by thread: Re: Nested Functions
  • Next by thread: Re: Nested Functions