MathGroup Archive 2004

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

Search the Archive

Re: Statistics`NormalDistribution` doesn't work?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50736] Re: Statistics`NormalDistribution` doesn't work?
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Sat, 18 Sep 2004 05:48:57 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 9/17/04 at 1:17 AM, fake at mail.com (pshoplifter) wrote:

>I'm not a Mathematica newbie but I thought I was going mad until I
>noticed that even this copy from the helpbrowser doesn't get any
>results:

>In[123]:=    << Graphics`Graphics`
>In[124]:=    << Statistics`NormalDistribution`
>In[125]:=    ndist = NormalDistribution[0, 1]
>Out[125]=    NormalDistribution[0, 1]
>In[126]:=    pdf = PDF[ndist, x]
>Out[126]=    PDF[NormalDistribution[0, 1], x]
>In[127]:=    Plot[pdf, {x, -3, 3}]

>Plot::plnr: pdf is not a machine-size real number at x =
>-2.99999975`. etc.

>Any help for this seemingly simple problem would be appreciated!

Try pasting the following into a fresh session

<< "Statistics`NormalDistribu\tion`"
ndist = NormalDistribution[0, 1]
pdf = PDF[ndist, x]
Plot[pdf, {x, -3, 3}]

My guess is that someplace in the notebook before you tried this example, you gave x a specific value causing the Plot function to fail. 
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Courier New Button, selecting cells without brackets
  • Next by Date: Re: 100/3 in a file
  • Previous by thread: Re: Statistics`NormalDistribution` doesn't work?
  • Next by thread: problem rendering GIF formatted files