---
name: "Math::GSL::PowInt"
section: "3pm"
platform: "linux"
package: "libmath-gsl-perl"
version: "0.45-2+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Math::GSL::PowInt"
---

# Math::GSL::PowInt(3pm)

Integer Power functions

## NAME

Math::GSL::PowInt - Integer Power functions

## SYNOPSIS

```
    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";
```

## DESCRIPTION

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\>

## AUTHORS

Jonathan "Duke" Leto \<jonathan@leto.net\> and Thierry Moisan \<thierry.moisan@gmail.com\>

## COPYRIGHT AND LICENSE

Copyright (C) 2008-2024 Jonathan "Duke" Leto and Thierry Moisan

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
