/security/nss/lib/freebl/mpi/doc/invmod.pod

http://github.com/zpao/v8monkey · Unknown · 33 lines · 19 code · 14 blank · 0 comment · 0 complexity · c644fd7021f3723e05e57261c9a42bab MD5 · raw file

  1. =head1 NAME
  2. invmod - compute modular inverse of an integer
  3. =head1 SYNOPSIS
  4. invmod <a> <m>
  5. =head1 DESCRIPTION
  6. The B<invmod> program computes the inverse of I<a>, modulo I<m>, if
  7. that inverse exists. Both I<a> and I<m> are arbitrary-precision
  8. integers in decimal notation. The result is written in standard
  9. decimal notation to the standard output.
  10. If there is no inverse, the message:
  11. No inverse
  12. ...will be printed to the standard output (an inverse exists if and
  13. only if the greatest common divisor of I<a> and I<m> is 1).
  14. =head1 SEE ALSO
  15. gcd(1), isprime(1), lap(1)
  16. =head1 AUTHOR
  17. Michael J. Fromberger <sting@linguist.dartmouth.edu>
  18. Thayer School of Engineering, Hanover, New Hampshire, USA
  19. $Date: 2000/07/14 00:44:33 $