bug-gsl
[Top][All Lists]
Advanced

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

Re: Bugs in "gsl_cdf_gaussian_p"


From: Marek Nečada
Subject: Re: Bugs in "gsl_cdf_gaussian_p"
Date: Tue, 30 Jun 2020 07:29:02 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

Dear Sida,

this is not a bug in GSL, as no functions called gsl_cdf_gaussian_p or
gsl_cdf_gaussian_pinv are supposed to be there.

Try gsl_cdf_gaussian_P and gsl_cdf_gaussian_Pinv instead. Remember that
C identifiers are case sensitive.

Best regards,
Marek Nečada

李 思达 kirjoitti 30.6.2020 klo 1.19:
> Dear GSL
> 
> I have a bug report 
> 
> GSL version: 2.4.0.8788, Visual Studio 2017 Release GSL as NuGet package. 
> Operating system: Win10, X64
> Compiler: Visual Studio 2019, C++
> Bug behavior: #include<gsl/gsl_cdf.h>, could not find “gsl_cdf_gaussian_p” 
> function when call it. Also, “gsl_cdf_gaussian_pinv” could not be found.
> Short program: 
> double truncnorm(double mu, double s, double a, double b){
> #include <gsl/gsl_cdf.h>
>     double z;
>     a = gsl_cdf_gaussian_p(a-mu,sqrt(s));
>     b = gsl_cdf_gaussian_p(b-mu,sqrt(s));
>     z = gsl_ran_flat(r,a,b);
>     return gsl_cdf_gaussian_pinv(z,sqrt(s)) + mu;
> }
> 
> Could you help me solve that?
> Thanks in advance. 
> Best,
> Sida Li
> 



reply via email to

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