s-news
[Top] [All Lists]

Problems with "integrate"

To: s-news@wubios.wustl.edu
Subject: Problems with "integrate"
From: yiwu ye <yiwu21111958@yahoo.com>
Date: Wed, 29 Aug 2007 21:24:14 -0700 (PDT)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=5T3VUW78UCfZ//DuKzKutbQ/pEidNH7Z0wCra2dB6UK8F/UcVkUOJo1zKtRukv/rzVJo2cyP0RPsVlzAo1bnHPRgwUr/FCje/zsJkv4ZLraM54VVQqFs4wLU7nAy6SK3g58pnwIquzSF4L/+t6L4v2Pc1KqFukY6lEBU2wbuvQE=;
Dear list,

I have an integration to do. The function is a gamma function as follows,

g_function(x,alpha.L,beta.L){1/(beta.L^alpha.L*gamma(alpha.L))*x^(alpha.L-1)*exp(-x/beta.L)}

No problems at all with the codes below:
beta_2
integrate(g,lower=0,upper=165,alpha.L=163/beta,beta.L=beta)
integrate(g,lower=0,upper=170,alpha.L=167.8/beta,beta.L=beta)

However, when beta=1.2, an error message says "singularity encountered..."
beta_1.2
integrate(g,lower=0,upper=165,alpha.L=163/beta,beta.L=beta)
integrate(g,lower=0,upper=170,alpha.L=167.8/beta,beta.L=beta)

Can anyone kindly help and explain why?

Thanks so much in advance,

Yiwu




Shape Yahoo! in your own image. Join our Network Research Panel today!
<Prev in Thread] Current Thread [Next in Thread>
  • Problems with "integrate", yiwu ye <=