MathGroup Archive 2008

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

Search the Archive

Re: delayed function assignment

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88190] Re: [mg88170] delayed function assignment
  • From: "W_Craig Carter" <ccarter at mit.edu>
  • Date: Sun, 27 Apr 2008 07:01:28 -0400 (EDT)
  • References: <200804270857.EAA15051@smc.vnet.net>

Hello Leigh,
I believe you intended to use patterns in your function definitions:

pdf2[x_ ] := .....
cum2[x_ ] = ....

instead of

pdf2[x]


BTW,  In most cases, it is better to use 1/4 instead of 0.25.  In this
case, the results are much
more satisfying (to my eye).

Best Wishes, Craig


2008/4/27 leigh <leigh.pascoe at gmail.com>:

>  I am trying to integrate the pdf of a chi-square mixture distribution.
>  If I define the pdf as
>
>  pdf2[0] := .25
>  \!\(pdf2[x] :=  .5*\(\(1/2\^\(1/
>         2\)\)\/Gamma[1/2]\) \(x\^\(1/2 - 1\)\) \[ExponentialE]\^\(\(-x
>  \)/
>               2\) +  .25*\(1\/\(2*Gamma[1]\)\) \[ExponentialE]\^\(\(-x
>  \)/2\)\)
:
:
>  However if I try to define this as a function of the statistic
>  obtained, say
>
>  \!\(cum2[x] := 1 -  .25 - $B"i(B\_0\%x pdf2[t] \[DifferentialD]t\)
>

-- 
W. Craig Carter


  • Prev by Date: Re: Re: Re: Print[Plot] vs Print[text,Plot]? (*now Do and Table*)
  • Next by Date: FEM contourplotter - conversion completed
  • Previous by thread: delayed function assignment
  • Next by thread: Re: delayed function assignment