Places
Home
Graphs
Prefixes
Admin
Users
Settings
Plugins
Statistics
Repository
Load local file
Load from HTTP
Load from library
Remove triples
Clear repository
Query
YASGUI SPARQL Editor
Simple Form
SWISH Prolog shell
Help
Documentation
Tutorial
Roadmap
HTTP Services
Login
3.9 Number theory
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Packages
SWI-Prolog SSL Interface
library(crypto): Cryptography and authentication library
Number theory
crypto_modular_inverse/3
crypto_generate_prime/3
crypto_is_prime/2
Availability:
:- use_module(
library(crypto)
).
(can be autoloaded)
[det]
crypto_modular_inverse
(
+X, +M, -Y
)
Compute the modular multiplicative inverse of the integer
X
.
Y
is unified with an integer such that
X
*
Y
is congruent to 1 modulo
M
.
ClioPatria
(version
V3.1.1-21-gb8003bb
)