libzahl

big integer library
git clone git://git.suckless.org/libzahl
Log | Files | Refs | README | LICENSE

zpow.3 (567B)


      1 .TH ZPOW 3 libzahl
      2 .SH NAME
      3 zpow - Calculate a power of a big integer
      4 .SH SYNOPSIS
      5 .nf
      6 #include <zahl.h>
      7 
      8 void zpow(z_t \fIpower\fP, z_t \fIbase\fP, z_t \fIexponent\fP);
      9 .fi
     10 .SH DESCRIPTION
     11 .B zpow
     12 calculates the
     13 .IR exponent :th
     14 power of a
     15 .IR base ,
     16 and stores the result in
     17 .IR power .
     18 That is,
     19 .I power
     20 gets
     21 .I base
     22     23 .IR exponent .
     24 .P
     25 It is safe to call
     26 .B zpow
     27 with non-unique parameters.
     28 .SH SEE ALSO
     29 .BR zpowu (3),
     30 .BR zmodpow (3),
     31 .BR zsqr (3),
     32 .BR zstr (3),
     33 .BR zadd (3),
     34 .BR zsub (3),
     35 .BR zmul (3),
     36 .BR zdiv (3),
     37 .BR zmod (3),
     38 .BR zneg (3),
     39 .BR zabs (3)