On Dec 23, 6:42 pm, Jason Grout <[email protected]> wrote:
> On 12/23/10 1:02 AM, KvS wrote:
>
> > In addition to the previous post, if I change the contents of the
> > first cell to
>
> > f=BetaLP1.getkthMomentAt(1,1)
> > g=symbolic_expression(str(f(x))).function(x)
> > print g(0)
>
> > it does yield 1 as well. Any hints?
>
> Can you post the code for BetaLP1.getkthMomentAt(1,1) so we can try it?
>
> Thanks,
>
> Jason

Here: http://pastebin.com/1eVSXsXW you can find the relevant part of
the class code, and you can call it e.g. with (there are some
restrictions on the parameters namely):

BetaLP1=BetaLP(mu=0,sigma=3/10,alpha1=1,beta1=1,lambda1=5/2,c1=1,alpha2=1,beta2=1,lambda2=5/2,c2=1)
f=BetaLP1.getkthMomentAt(1,1)
print 'f:',f
print f(0)

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to