Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get install libgsl2 libgsl-dev gsl-bin
- // include files
- #include <iostream>
- #include <iomanip>
- #include <fstream>
- #include <math.h>
- using namespace std;
- #include <gsl/gsl_sf_bessel.h> // gsl Bessel special function header
- file
- //packages I need
- #include <gsl/gsl_sf_gamma.h>
- #include <gsl/gsl_sf_hermite.h>
- int
- main (void)
- {
- double x = 5.0; // just a random test value
- double y = gsl_sf_bessel_J0 (x); // see the GSL manual for details
- cout << "J0(" << x << ") = "
- << setprecision(18) << setw(20) << y << endl;
- y = gsl_sf_hermite_phys(10,x); // see the GSL manual for details
- cout << "H10(" << x << ") = "
- << setprecision(18) << setw(20) << y << endl;
- return 0;
- }
- gsl_test.cpp:(.text+0xcd): undefined reference to`gsl_sf_hermite_phys'
- collect2: error: ld returned 1 exit status
Add Comment
Please, Sign In to add comment