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
1 answer

Error in the basic GSL example program - simple nonlinear fitting

I just got GSL set up on my windows box and I am trying to learn how to use the nonlinear fitting functions. First thing I did was pull an example directly off their website:…
KBriggs
  • 1,220
  • 2
  • 18
  • 43
0
votes
1 answer

GSL Incorrect values with numerical Integration

I have an Integrand which reads static double Integrand(double k , void * params) { long double *p = (long double *)params; long double MassSquared = p[0]; long double Temp = p[1]; long double sign = p[2]; long double EXP =…
MrBaer
  • 13
  • 3
0
votes
3 answers

Trying to use Cumulative Distribution Function in GSL

Hey guys, I'm trying to compute the cumulative distribution function of the standard normal distribution for a formula in C using the GSL (Gnu Statistics Library) I've installed and included gsl but am having trouble understanding how to use it. I…
Tyler Brock
  • 29,626
  • 15
  • 79
  • 79
0
votes
1 answer

is there name hiding for void* params?

I need to pass a member function to gsl_function, and used the wrapper described in this [link] (A function pointer issue. How to efficiently interface with C API (ie. GSL) from C++ class?). It worked, but I am a bit confused when trying to…
lychee10
  • 15
  • 1
  • 4
0
votes
1 answer

Failing to solve a simple least squares fit with Ruby GSL

I have the following ruby script, running with rb-gsl (1.16.0.6) under ruby-2.2.1 require("gsl") include GSL m = GSL::Matrix::alloc([0.18, 0.60, 0.57], [0.24, 0.99, 0.58], [0.14, 0.30, 0.97], [0.51, 0.19, 0.85], [0.34, 0.91,…
0
votes
1 answer

Did anyone compiled GSL for androind?

I am trying to compile gsl for android but it is giving error. I checked on their website and they said that It has been reported to compile on the following other platforms, SunOS 4.1.3 & Solaris 2.x (Sparc) Alpha GNU/Linux, gcc HP-UX 9/10/11,…
0
votes
1 answer

initialization of a gsl_matrix

I am using GNU scientific library, and I want to initialize a matrix with values, but I can't understand how to do without a loop : This works : gsl_matrix * m = gsl_matrix_alloc (3, 3); for (int i = 0; i < 3; i++) for (int j = 0; j < 3;…
Arcyno
  • 4,153
  • 3
  • 34
  • 52
0
votes
0 answers

GSL: nm outputs "undefined Symbol (U)"

I cross compiled gsl fro android using arm-linux-androideabi. When I dynamically loaded this library in android-studio, it gave me error. can not locate symbol cblas_sdsdot. I ran nm command on gsl and got U cblas_sdsdot Then I ran nm…
Saad Saadi
  • 1,031
  • 10
  • 26
0
votes
1 answer

Using the GNU Scientific Library to Find the Kernel of a Matrix

Given a gsl_matrix * A object, which is an M-by-N matrix, what is the easiest way to find the kernel of A? I tried using singular value decomposition (specifically the gsl_linalg_SV_decomp method), but that doesn't work when M
Izzhov
  • 163
  • 4
0
votes
1 answer

Cmake to generate solution file machine independent

I tried to generate a solution file of GSL library for visual studio 2012 using cmake gui. I did that successfully and I build the library for my own computer. But when I tried to build the same solution file in my different computer, it gives me…
frezel
  • 21
  • 3
0
votes
1 answer

Polynomial Curve fittings with GNU Scientific Library (GSL)

I'm going to use GNU Scientific Library (GSL) for solving Polynomial Curve fittings. Here is my function for polyFit - see "C++ code". If I use below example data, then I got the result below - see "Output". I've tried to verification if it is OK or…
Changju.rhee
  • 463
  • 3
  • 11
  • 26
0
votes
2 answers

Double pendulum solution using GSL

I am learning to use GSL to solve ODE. I wanted to solve double pendulum problem using GSL ODE functions. I decided to use this equations: (source: http://www.physics.usyd.edu.au/~wheat/dpend_html/) My code: #include #include…
Marcin Majewski
  • 1,007
  • 1
  • 15
  • 30
0
votes
1 answer

Haskell gsl-random - how to specify RNGType?

I'm trying to get the GSL bindings to distribution samplers working in haskell using gsl-random. I know there's random-fu as a higher-level option, but I'm finding random-fu is too slow for my purposes. Say I want to sample from a beta distribution.…
daj
  • 6,962
  • 9
  • 45
  • 79
0
votes
0 answers

Running a C++ Program Made in Visual Studio 2012 and which uses GSL, in XP

I have been working on a project for the last few months which involves me writing some scientific simulations in C++ using Visual Studio 2012 on Windows 8. I use GNU Science Library for some linear algebra and random number functions. The program…
AP911
  • 1
0
votes
1 answer

undefined reference to `gsl_linalg_complex_LU_decomp_'

I am new to this Forum. I have recently started learning c++ as it is required for my work. I have installed GSL library and BLAS on Ubuntu 12.04. I have written code to compute matrix exponential, which works fine with the gsl library. I now have…
OPP
  • 1