Questions tagged [gsl]

The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers.

The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License.

The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite.

http://www.gnu.org/software/gsl/

748 questions
0
votes
2 answers

using the modified bessel functions in matlab and gsl

I am trying to make a kaiser window for a audio signal using both Matlab and c.I have been looking at Matlab and gnu scientific library documentation to understand how to use a modified bessel function of first kind and 0th order, but I still have…
Fred
  • 417
  • 6
  • 14
0
votes
2 answers

Is it possible to combine GSL vectors into a single vector?

I am using the Gnu Scientific Library (GSL), where I have initialized different vectors. Now I want to combine these vectors into a single vector in order to iterate over the full vector. Does anyone know of a method, where it is possible to do…
0
votes
2 answers

Trouble installing GSL using MacPorts

I'm having trouble install gsl-devel using MacPorts on my Mac OS 10.7.5 Machine. I try: sudo port install gsl-devel +universal I'm issuing this command by following the instructions to install the Haskell module hmatrix. However, I get an error…
Victor
  • 584
  • 4
  • 16
0
votes
2 answers

Is this a bug in GSL's minimum finding routine?

I have run into a very strange problem using GSL recently. I'm trying to find the maximum of an ugly function by asking GSL to find the minimum of the function's negative image. This has been working fine with most of the functions I've been using…
0
votes
1 answer

Using gsl_histogram_pdf_sample to sample from an ad-hoc distribution

I am having some trouble understanding how to use the function gsl_histogram_pdf_sample from the library GSL in C++. The documentation is…
Chuck MG
  • 23
  • 2
0
votes
1 answer

adding struct elements to gprtarray in glib, but cannot retrieve

I'm trying to generate combinations of M integers from a set of M^2 consecutive integers, then exclude some combinations based on some (currently irrelevant) criteria, and trying to store them dynamically in memory so that I may be able to access…
0
votes
2 answers

unknown type name using GSL

I'm trying to compile the following C-code: struct data { size_t n; double * y; double * sigma; }; int expb_f (const gsl_vector * x, void *data, gsl_vector * f) { size_t n = ((struct data *)data)->n; double *y = ((struct data…
Doug
  • 3
  • 2
0
votes
1 answer

gsl_min_fminimizer with gsl_interp

consider the following example from the GNU website on minimzation. Suppose instead of the given objective fn1, I need to interpolate the objective from a set of points (xa,ya) to obtain my objective function double fn2(double x){gsl_interp_eval(…
Florian Oswald
  • 5,054
  • 5
  • 30
  • 38
0
votes
0 answers

Xcode can't find one of my gsl headers

I installed gsl in /developer/usr/ and applied these settings: Header Search Paths: /usr/local/include Library Search Paths: /usr/local/lib Other Linker Flags: -lgsl -lm After that Xcode can find just about every header file in gsl besides…
user2565423
  • 21
  • 1
  • 2
0
votes
1 answer

GSL histogram issue

I am trying to compute the cumulative distribution function for a set of values. I computed the histogram using gsl and I tried to computed the CDF from here, but it seems like the values are shifted by one position. This is the code I am…
DCuser
  • 953
  • 2
  • 10
  • 21
0
votes
2 answers

C++ rounding issue

I am trying to create a histogram using GSL. I get a problem when I try to add to the histogram the value of the division 1470/100. This results in 14.69999999 and when added to the histogram it gets rounded to the lower bin. My question is how can…
DCuser
  • 953
  • 2
  • 10
  • 21
0
votes
0 answers

undefined reference to `_imp__gsl_version'

I have just finished compiling and installing gtk+ (2.24.10) gtkmm(2.17.2) gtkglext(1.2.0) and gsl(1.8) (and all the required dependencies) in windows using MinGW which are dependencies for the software MRtrix. Now however, when I try to build…
Jesse RJ
  • 217
  • 4
  • 17
0
votes
0 answers

Compiling Mathematica 8 mathlink.h using gcc

I'm trying to get my program to talk to Mathematica using MathLink. I'm using cygwin, and mathematica 8.0. I can compile the equivalent of the "AddTwo" program and use it successfully by using the x86_64-w64-mingw32-gcc.exe compiler (as installed…
Jolyon
  • 165
  • 1
  • 7
0
votes
0 answers

Using scipy.weave and GSL ODE

After a previous question I am trying to solve some ODEs using GSL. The complicating factor is I want it written in python and so am trying to get scipy.weave to help. Using the standard GSL ODE example I have the following which is based on this…
Greg
  • 11,654
  • 3
  • 44
  • 50
0
votes
2 answers

Converting GSL ODE solver to Python

I solve a set of couples ODEs which I solve using the GSL ODE solver similar to this example. Currently this is automates by writing a file in python e.g text = """ #include #include ... """ Then replacing strings in…
Greg
  • 11,654
  • 3
  • 44
  • 50