[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] [bug #45925] Incomplete Gamma Functions flipped?

From: Patrick Alken
Subject: [Bug-gsl] [bug #45925] Incomplete Gamma Functions flipped?
Date: Fri, 11 Sep 2015 10:07:56 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0


                 Summary: Incomplete Gamma Functions flipped?
                 Project: GNU Scientific Library
            Submitted by: psa
            Submitted on: Fri 11 Sep 2015 10:07:55 AM GMT
                Category: Runtime error
                Severity: 3 - Normal
        Operating System: 
                  Status: None
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any



from vsakharuk =at= hbk =dot= com

Hello all,
Running 32 bit gsl on windows.
Got flipped results for incomplete gamma Functions.

#include <iomanip>
#include <iostream>
#include <gsl\gsl_specfunc.h>

using namespace std;

int main( int argc, char* argv[])
    cout<<"GSL incomplete gamma=" << gsl_sf_gamma_inc(1.000000, 3.000000)<<
    cout<<"GSL incomplete gamma P=" << gsl_sf_gamma_inc_P(1.000000,
3.000000)<< endl;
    return 0;

GSL incomplete gamma=0.0497871
GSL incomplete gamma P=0.950213

IMHO, GSL incomplete gamma should be equal to 0.950213
This is output of incomplete gamma P

Regards V.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]