diff options
author | mischief <mischief@offblast.org> | 2018-11-04 11:37:13 -0800 |
---|---|---|
committer | mischief <mischief@offblast.org> | 2018-11-04 11:37:13 -0800 |
commit | 52ad5b3ec5138a85e4c976013adbc54642f19b74 (patch) | |
tree | 7466f500290dbfff3aa46e079277d817cadb9e3c | |
parent | 6df3f7bf384deb72df9d02bd7a9757d552c1bfe2 (diff) |
mp(2): document mpfactorial
-rw-r--r-- | sys/man/2/mp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/man/2/mp b/sys/man/2/mp index ed757d8f9..7d10b2b1c 100644 --- a/sys/man/2/mp +++ b/sys/man/2/mp @@ -1,6 +1,6 @@ .TH MP 2 .SH NAME -mpsetminbits, mpnew, mpfree, mpbits, mpnorm, mpcopy, mpassign, mprand, mpnrand, strtomp, mpfmt,mptoa, betomp, mptobe, mptober, letomp, mptole, mptolel, mptoui, uitomp, mptoi, itomp, uvtomp, mptouv, vtomp, mptov, mptod, dtomp, mpdigdiv, mpadd, mpsub, mpleft, mpright, mpmul, mpexp, mpmod, mpmodadd, mpmodsub, mpmodmul, mpdiv, mpcmp, mpsel, mpextendedgcd, mpinvert, mpsignif, mplowbits0, mpvecdigmuladd, mpvecdigmulsub, mpvecadd, mpvecsub, mpveccmp, mpvecmul, mpmagcmp, mpmagadd, mpmagsub, crtpre, crtin, crtout, crtprefree, crtresfree \- extended precision arithmetic +mpsetminbits, mpnew, mpfree, mpbits, mpnorm, mpcopy, mpassign, mprand, mpnrand, strtomp, mpfmt, mptoa, betomp, mptobe, mptober, letomp, mptole, mptolel, mptoui, uitomp, mptoi, itomp, uvtomp, mptouv, vtomp, mptov, mptod, dtomp, mpdigdiv, mpadd, mpsub, mpleft, mpright, mpmul, mpexp, mpmod, mpmodadd, mpmodsub, mpmodmul, mpdiv, mpcmp, mpsel, mpfactorial, mpextendedgcd, mpinvert, mpsignif, mplowbits0, mpvecdigmuladd, mpvecdigmulsub, mpvecadd, mpvecsub, mpveccmp, mpvecmul, mpmagcmp, mpmagadd, mpmagsub, crtpre, crtin, crtout, crtprefree, crtresfree \- extended precision arithmetic .SH SYNOPSIS .B #include <u.h> .br @@ -169,6 +169,9 @@ int mpmagcmp(mpint *b1, mpint *b2) void mpsel(int s, mpint *b1, mpint *b2, mpint *res) .PP .B +mpint* mpfactorial(ulong n) +.PP +.B void mpextendedgcd(mpint *a, mpint *b, mpint *d, mpint *x, .br .B @@ -525,7 +528,7 @@ If the integer is too large in magnitude, returns infinity of the appropriate sign. .PP The mathematical functions are: -.TF mpmagadd +.TF mpfactorial .TP .I mpadd .BR "sum = b1 + b2" . @@ -585,6 +588,9 @@ is not zero, otherwise .I b2 is assigned to .IR res . +.TP +.I mpfactorial +returns \fIn\fR!. .PD .PP Logical operations (treating negative numbers using two's complement): |