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

GNU Scientific Library probability distribution functions in C

I have a set of GSL Histograms, which are used to make a set of probability distribution functions, which according to the documentation are stored in a struct, as follows: Data Type: gsl_histogram_pdf size_t n This is the number of…
Bas Jansen
  • 3,273
  • 5
  • 30
  • 66
0
votes
1 answer

QAWC gsl - could not integrate function

I've got such a piece of code: #include #include #include #include double func1(double x, void* params) { return 1/(x-1); } int main() { int num = 100; gsl_integration_workspace…
Wojciech Reszelewski
  • 2,656
  • 2
  • 18
  • 27
0
votes
2 answers

Trying to use the GNU Scientific Library, but weird linker errors occur

so i compiled the GSL from source with Cygwin. Everything went fine, i didnt get any errors. But when i try to compile some simple code, i get the following errors: ..\..\..\Programme\CodeBlocks\MinGW\lib\libgsl.a(error.o) In function…
user1290204
  • 15
  • 1
  • 5
0
votes
1 answer

matlab mvnrnd in gsl

Hi i'm not sure if my algorithm is correct i'm trying to replicate the mvnrnd function of matlab but in gsl. I found an algorithm in some journal articles that produces a vector of multivariate normal, but i need a matrix of multivariate normal…
pyCthon
  • 11,746
  • 20
  • 73
  • 135
-1
votes
1 answer

Curve Fitting with GNU Scientific Library

I am trying to fit a curve to a set of points with GSL. I am not very experienced with GSL and took help from chatGPT for the same. But the code isnt compiling, and after a while i felt like was talking to a doorknob. I was wondering someone can…
-1
votes
1 answer

Implementing GSL algorithm for non-linear data fitting in R: Error in dyn.load

I am trying to implement a GSL Nonlinear least-squares algorithm for curve fitting in R using Rcpp. This question is close to a previous question I asked here: Fixing parameters of a fitting function in Nonlinear Least-Square GSL My attempt to…
CafféSospeso
  • 1,101
  • 3
  • 11
  • 28
-1
votes
2 answers

GNU GSL & MATLAB on Windows

This question is actually about the trade-off between GSL and MATLAB. First, let me define some variables: - Target OS: Windows XP - Target IDE: MS VS 2005/2008 - Software: Commercial - Development Language: C++ Moreover, I am asking this…
baris.aydinoz
  • 1,902
  • 2
  • 18
  • 28
-1
votes
1 answer

how to calculate covariance matrix of 2d array in C using GSL library

I have 2D array : 21 6 160 110 3.90 2.62 16.46 0 1 4 4 21 6 160 110 3.9 2.875 17.02 0 1 4 4 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1 18.7 8 360 175 3.15 3.44 17.02 0 0 3 2 18.1 6 225 105 2.76 3.460 20.22 1 0 3…
MOVIES FX
  • 25
  • 5
-1
votes
1 answer

How to plot a best-fit curve found using gsl_multifit_linear function in C++?

I have a set of x and y values that I fit onto a polynomial using the gsl_multifit_linear function. I would like to plot the best-fit curve onto the scatterplot using gnuplot. Right now, I only figured out how to plot the points themselves: FILE…
-1
votes
1 answer

Intuitive GSL stiff EDO

I need to solve an ODE that has stiff behaviour. Said ODE would be given by int odefunc (double x, const double y[], double f[], void *params) { double k=1e12; //At k=1e7 it works (doesn't show stiffness) double y_eq=-1.931+1.5*log(x)-x; …
-1
votes
1 answer

C++ GSL Vector view returns slightly modified value

Using the GSL (GNU Scientific Library), I'm trying to understand why gsl_vector_view_array() returns a slighly modified value after assignment. In the code below, I declare a vector_view 'qview_test' which is linked to table q_test[0]=0.0 and…
H.Nam
  • 19
  • 4
-1
votes
1 answer

Mac: Variant of make file made by Codelite IDE can't find gsl

I'm trying to add function iceemdan() to the open source library libeemd.c. I'm trying to debug it with an IDE. The make file's first call to clang result's in clang's inability to find the gsl library, even though it is present and the make file…
Chuck
  • 1
  • 3
-1
votes
1 answer

Codeblocks gsl issue (probably linking)

When using Codeblocks on Windows 7 with Cygwin compiler and precompiled library GnuWin32 (gsl-1.8) and try using functions (e.g. when including gsl_sf_bessel.h, then using gsl_sf_bessel_J0), the compiler always complains about not finding…
Osmium
  • 1
-1
votes
1 answer

How to use gsl in cython

I am trying to write a cython function that can be called from a python script which uses c gsl library to calculate the spearman correlation and the respective p value using a t distribution. My unsuccessful .pyx file is as follows: import numpy as…
-1
votes
2 answers

error: called object is not a function or function pointer double

I am trying to perform fft in my below mentioned code but I am getting some errors which I will be mentioning at the bottom this code #include #include #include #include"H.h" #define REAL(z,i)…
1 2 3
49
50