MathGroup Archive 2011

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

Search the Archive

Re: How to use PDF for function definition?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121950] Re: How to use PDF for function definition?
  • From: Heike Gramberg <heike.gramberg at gmail.com>
  • Date: Fri, 7 Oct 2011 04:46:41 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201110060819.EAA22497@smc.vnet.net>

You define PDFla with a lower case l in the name, but call PDFLa with 
upper case L (which is
undefined since Mathematica is case sensitive). Try PDFla[3] instead.

Heike.

On 6 Oct 2011, at 10:19, icegood wrote:

> Code:
> kla = 1.3; nla = 1;
> Clear[z, PDFla];
> PDFla[z_] := PDF[GammaDistribution[kla, nla/kla], z] ;
> PDFLa[3]
>
> Output:
> PDFLa[3]
>
> How to use it? By documentation i can also try simply PDFla :=
> PDF[GammaDistribution[kla, nla/kla]] that defines 'pure function', but
> result is the same. How to use it in right way.
>
> P.S. Where can i find a proper database for 'mathematica' bugs?
>




  • Prev by Date: Re: average of the consecutive coin tosses
  • Next by Date: Re: How to use PDF for function definition?
  • Previous by thread: Re: How to use PDF for function definition?
  • Next by thread: Re: How to use PDF for function definition?