Top
Back: binary_add
Forward: is_prime
FastBack:
FastForward:
Up: crypto_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.12.3.38 inverse_modulus

Procedure from library crypto.lib (see crypto_lib).

Usage:
inverse_modulus(num, mod1)

Return:
inverse element of num modulo mod1

Example:
 
LIB "crypto.lib";
ring r = 0,x,lp;
int mod1 = 13;
int num = 5;
inverse_modulus(num,mod1);
==> 8


Top Back: binary_add Forward: is_prime FastBack: FastForward: Up: crypto_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.