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


Groups > comp.soft-sys.math.mathematica > #5506 > unrolled thread

Re: How to use PDF for function definition?

Started byBarrie Stokes <Barrie.Stokes@newcastle.edu.au>
First post2011-10-07 09:08 +0000
Last post2011-10-07 09:08 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to use PDF for function definition? Barrie Stokes <Barrie.Stokes@newcastle.edu.au> - 2011-10-07 09:08 +0000

#5506 — Re: How to use PDF for function definition?

FromBarrie Stokes <Barrie.Stokes@newcastle.edu.au>
Date2011-10-07 09:08 +0000
SubjectRe: How to use PDF for function definition?
Message-ID<j6mfit$7ls$1@smc.vnet.net>
Hi

It took a moment to see your error.

In Mathematica, variable names are case sensitive.

PDFLa[3] is *not* the same as PDFla[3].

You would have seen that in the input PDFLa[3], the "PDFLa" part was blue, not black.

Select the coloured characters, go to Help, and release on "Why the Coloring?...", and it will tell you. Misspelled variable names can be routinely detected that way.

Useful if you type as well (not!) as I do.

Cheers

Barrie

>>> On 06/10/2011 at 7:19 pm, in message <201110060819.EAA22497@smc.vnet.net>,
icegood <icegood1980@gmail.com> 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?

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web