| Author |
Comment/Response |
Matt
|
04/07/03 5:19pm
Hello,
I have just installed Mathematica, and wanted to try it out using some examples from the manual. But when I try and run them (by copying and pasting commands DIRECTLY from the online manual), I don't get the results shown in the manual. I'm including below my syntax and the output, which is a direct paste from the Standard Packages/Statistics/NormalDistribution example in Mathematica... Then below you can see what the manual says should have happened!
I'm just starting here, so any help would be appreciated...!
My syntax:
In[33]:=
<<Statistics`NormalDistribution`
In[34]:=
ndist=NormalDistribution[0,1]
Out[34]=
NormalDistribution[0,1]
In[35]:=
pdf=PDF[ndist,x]
Out[35]=
PDF[NormalDistribution[0,1],x]
In[36]:=
%
Out[36]=
PDF[NormalDistribution[0,1],x]
In[37]:=
CDF[ndist,-2]
Out[37]=
CDF[NormalDistribution[0,1],-2]
-----------Manual----------------------------
In[1]:=
<<Statistics`NormalDistribution`
Here is a symbolic representation of the normal distribution with zero mean and unit variance.
In[2]:=
ndist = NormalDistribution[0, 1]
Out[2]=
NormalDistribution[0,1]
This gives its probability density function.
In[3]:=
pdf = PDF[ndist, x]
Out[3]=
\!\(\[ExponentialE]\^\(-\(x\^2\/2\)\)\/\@\(2\ π\)\)
In[5]:=
CDF[ndist, -2]
Out[5]=
\!\(1\/2\ \((1 - Erf[\@2])\)\)
URL: , |
|