GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MATH::GSL::POWINT (3)

.ds Aq ’

NAME

Math::GSL::PowInt - Integer Power functions

CONTENTS

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 avaible functions of the module.

PURPOSE

This module is used to speed up arithmetic operations. The underlying code decomposes the multiplication in the most efficient way. Since it is implemented in XS (via SWIG), it should lend a large performance increase over the Perl builtin exponentiation operator, ’**’ .

BENCHMARKS

Would someone like to submit some benchmarks?

AUTHORS

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

COPYRIGHT AND LICENSE

Copyright (C) 2008-2011 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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MATH::GSL::POWINT (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.