Math::Libgsl::Elementary - An interface to libgsl, the Gnu Scientific Library - elementary functions.
use Math::Libgsl::Elementary :ALL;
Math::Libgsl::Elementary provides an interface to the Elementary Functions in the libgsl, the GNU Scientific Library.
This package provides both the low-level interface to the C library (Raw) and a more comfortable interface layer for the Raku programmer.
Math::Libgsl::Elementary makes these tags available:
-
:elem
-
:smallint
Computes the value of log(1 + x).
Computes the value of exp(x) - 1.
Computes the value of sqrt(x² + y²).
Computes the value of sqrt(x² + y² + z²).
Computes the value of x * 2ᵉ.
Computes the value of f such that x = f * 2ᵉ. It returns a list of two values: f and e.
Computes the value of xᵉ with e ∈ ℤ.
Computes the value of xᵉ with e ∈ ℕ.
Computes the value of x².
Computes the value of x³.
Computes the value of x⁴.
Computes the value of x⁵.
Computes the value of x⁶.
Computes the value of x⁷.
Computes the value of x⁸.
Computes the value of x⁹.
For more details on libgsl see https://www.gnu.org/software/gsl/. The excellent C Library manual is available here https://www.gnu.org/software/gsl/doc/html/index.html, or here https://www.gnu.org/software/gsl/doc/latex/gsl-ref.pdf in PDF format.
This module requires the libgsl library to be installed. Please follow the instructions below based on your platform:
sudo apt install libgsl23 libgsl-dev libgslcblas0
That command will install libgslcblas0 as well, since it's used by the GSL.
libgsl23 and libgslcblas0 have a missing symbol on Ubuntu 18.04. I solved the issue installing the Debian Buster version of those three libraries:
-
http://http.us.debian.org/debian/pool/main/g/gsl/libgslcblas0_2.5+dfsg-6_amd64.deb
-
http://http.us.debian.org/debian/pool/main/g/gsl/libgsl23_2.5+dfsg-6_amd64.deb
-
http://http.us.debian.org/debian/pool/main/g/gsl/libgsl-dev_2.5+dfsg-6_amd64.deb
To install it using zef (a module management tool):
$ zef install Math::Libgsl::Elementary
Fernando Santagata nando.santagata@gmail.com
Copyright 2020 Fernando Santagata
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.