Help language development. Donate to The Perl Foundation

Math::Libgsl::Complex cpan:FRITH last updated on 2020-02-17
[![Build Status](](


Math::Libgsl::Raw::Complex - An interface to libgsl, the Gnu Scientific Library - complex numbers.


use Math::Libgsl::Raw::Complex :ALL;


Math::Libgsl::Raw::Complex provides an interface to libgsl's implementation of complex numbers.

This package provides the low-level interface to the C library (Raw).

Math::Libgsl::Complex will not be implemented, because Raku's Complex datatype works just fine. Its Raw counterpart, Math::Libgsl::Raw::Complex, is present because it's needed by other modules that rely on the GSL implementation of complex numbers.

C Library Documentation

For more details on libgsl see []( The excellent C Library manual is available here [](, or here []( in PDF format.


This module requires the libgsl library to be installed. Please follow the instructions below based on your platform:

Debian Linux

    sudo apt install libgsl23 libgsl-dev libgslcblas0

That command will install libgslcblas0 as well, since it's used by the GSL.

Ubuntu 18.04

libgsl23 and libgslcblas0 have a missing symbol on Ubuntu 18.04. I solved the issue installing the Debian Buster version of those three libraries:

  * [](

  * [](

  * [](


To install it using zef (a module management tool):

    $ zef install Math::Libgsl::Complex


Fernando Santagata <[email protected]>


Copyright 2020 Fernando Santagata

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.