Re: libdar::infinint "power" method

Denis Corbin <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

|Denis Corbin wrote:
|[...]
|
|And I will add another "power" method beside the one you describe,
|
|    infinint power(infinint base, U_I exponent);
|

this is done in pre-release 4 for 2.1.0. But, as it is a method the
syntax is a bit different as what we talk about previously:

~    infinint power(U_I exponent);
~    infinint power(const infinint & exponent);

this  can be used with :

~    infinint(1024).power((U_I)3);

or when using explicit types:

~    infinint a = 1024, b = 3;
~    infinint c = a.power(b);  // c is equal to 1024^3

Cheers,
Denis.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFABsFIpC5CI8gYGlIRAqpjAKCg5VGRjyRzikbpP9Uj6u6qK6/9twCgwCu9
oU18Lf8LfV+rOGJCnbj2zRQ=
=mvZS
-----END PGP SIGNATURE-----



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.