Math::GSL::PowInt(3pm)

Math::GSL::PowInt3pm

Integer power functions

Usage

    use Math::GSL::PowInt qw /gsl_pow_2 gsl_pow_4 gsl_pow_int/;
    print '2**4  = ' . gsl_pow_2(4) . "\n";
    print '4**7  = ' . gsl_pow_4(7) . "\n";
    print '17**5 = ' . gsl_pow_int(17,5) . "\n";

Overview

This module implements the GSL Integer Power functions, which allow one to quickly compute a given integer raised to any real number. It contains gsl_pow_2 to gsl_pow_9 and gsl_pow_int. If you need a power higher than 9, you can use gsl_pow_int, which takes a base as the first argument and power being raised to as the second argument.

You can also write

"use Math::GSL::PowInt qw/:all/;"

to use all available functions of the module.

Purpose

This module doesn't provide much performance improvement over the Perl builtin '**' operator, but is included for completeness.

Benchmarks

DANAJ has included some benchmarks in a bug report <https://rt.cpan.org/Ticket/Display.html?id=96440>

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Authors

Jonathan "Duke" Leto <[email protected]> and Thierry Moisan <[email protected]>

From libmath-gsl-perl 0.45-2+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.