Boost logo

Boost Users :

Subject: Re: [Boost-users] Using <boost/math/distributions/non_central_t.hpp> gives unexpected error
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2012-08-02 04:42:45


From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
Avinash K. Hathiramani
Sent: Thursday, August 02, 2012 2:28 AM
To: boost-users_at_[hidden]
Subject: [Boost-users] Using <boost/math/distributions/non_central_t.hpp> gives unexpected error

> Unfortunately I am not able to use this without getting an error. Here is my code:

    #include <boost/math/distributions/non_central_t.hpp>

    using namespace std;

> This does not give any results and if I put in an error catch here, I get the following message:

  "Error in function boost::math::gamma_p_derivative<e>(e, e): numeric overflow".

> I do not follow what is going wrong and I am able to get results for both the CDF and PDF with the
same parameters from MATLAB (and an on-line calculator which I found for this distribution), so I do
not think that the parameters are invalid.

> I would be grateful if anyone can advise me as to whether I am doing anything incorrectly here.

> I apologise in advance if I have missed anything obvious, or unintentionally broken any of the
discussion policies (it is my first time posting on this forum).

Well, posting a ticket on Trac is the best way for bugs, but in this case, I can't see what the
problem is and attached my version of your example which seems to work OK.

Ask again if this still doesn't work for you.

Paul

---
Paul A. Bristow,
Prizet Farmhouse, Kendal LA8 8AB  UK
+44 1539 561830  07714330204
pbristow_at_[hidden]



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net