bugGNU Scientific Library - Bugs: bug #42502, wrong results of the function...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #42502: wrong results of the function gsl_cdf_ugaussian_Pinv

Submitter:  Patrick Alken <psa>
Submitted:  Tue 03 Jun 2014 06:51:52 PM UTC
   
 
Category:  Runtime error Severity:  3 - Normal
Operating System:  Status:  None
Assigned to:  None Open/Closed:  Open
Release: 

Tue 03 Jun 2014 06:51:52 PM UTC, original submission:  

#include <gsl/gsl_math.h>
#include <stdio.h>

int main(){
    double x= 0.5;
    double res = gsl_cdf_ugaussian_Pinv(x);
    printf("icdf(%f)=%f\n",x,res);
    return 0;
}

For some reason the output is: icdf(0.500000)=1.000000

Which is wrong, it should be: icdf(0.500000)=0.000000 (because P(X<0)=0.5)

submitted by dafna3 =at= gmail.com

Patrick Alken <psa>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psa (Submitted the item)
  •  

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code