changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: mp(2): document mpfactorial

changeset 6862: 5394c00ddd99
parent 6861: 7676f93305f8
child 6863: a3c7b36f7225
author: mischief <mischief@offblast.org>
date: Sun, 04 Nov 2018 11:37:13 -0800
files: sys/man/2/mp
description: mp(2): document mpfactorial
     1.1--- a/sys/man/2/mp
     1.2+++ b/sys/man/2/mp
     1.3@@ -1,6 +1,6 @@
     1.4 .TH MP 2
     1.5 .SH NAME
     1.6-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
     1.7+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
     1.8 .SH SYNOPSIS
     1.9 .B #include <u.h>
    1.10 .br
    1.11@@ -169,6 +169,9 @@ int	mpmagcmp(mpint *b1, mpint *b2)
    1.12 void	mpsel(int s, mpint *b1, mpint *b2, mpint *res)
    1.13 .PP
    1.14 .B
    1.15+mpint*	mpfactorial(ulong n)
    1.16+.PP
    1.17+.B
    1.18 void	mpextendedgcd(mpint *a, mpint *b, mpint *d, mpint *x,
    1.19 .br
    1.20 .B
    1.21@@ -525,7 +528,7 @@ If the integer is too large in magnitude
    1.22 returns infinity of the appropriate sign.
    1.23 .PP
    1.24 The mathematical functions are:
    1.25-.TF mpmagadd
    1.26+.TF mpfactorial
    1.27 .TP
    1.28 .I mpadd
    1.29 .BR "sum = b1 + b2" .
    1.30@@ -585,6 +588,9 @@ is not zero, otherwise
    1.31 .I b2
    1.32 is assigned to
    1.33 .IR res .
    1.34+.TP
    1.35+.I mpfactorial
    1.36+returns \fIn\fR!.
    1.37 .PD
    1.38 .PP
    1.39 Logical operations (treating negative numbers using two's complement):