Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: pdf[d,x] vs. function(x)

  • To: mathgroup at
  • Subject: [mg52872] Re: pdf[d,x] vs. function(x)
  • From: "Scout" <user at>
  • Date: Wed, 15 Dec 2004 04:26:59 -0500 (EST)
  • References: <cpmio2$ohc$>
  • Sender: owner-wri-mathgroup at

"Scout" <user at> ha scritto nel messaggio 
news:cpmio2$ohc$1 at
> Given the symbol  p = PDF [ NormalDistribution, x ]
> (where PDF is the Probability Density Function)
> which declares an expression in x,
> I want to build a new function, i.e. f(z)=p
> with the parameter z instead, but I obtain an error.
> How can I do? Thanks, Scout?

Ok, I have found a solution
say p=PDF[NormalDistribution[],x]
then I declare a new function such as  f[t_] := p /. x->t
So I can use f[t] instead of the more generic symbol p

  • Prev by Date: Re: pdf[d,x] vs. function(x)
  • Next by Date: Re: defining variables as Real
  • Previous by thread: Re: pdf[d,x] vs. function(x)
  • Next by thread: Re: pdf[d,x] vs. function(x)