mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-06-10 11:47:23 +08:00
Update modular_inverse_simple.cpp
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* @brief simple implementation of modular multiplicative inverse
|
||||
*
|
||||
* @details
|
||||
* this algorithm calculates the modular inverse x^{-1} mod y iteratively
|
||||
* this algorithm calculates the modular inverse x^{-1} \mod y iteratively
|
||||
*
|
||||
* @ref
|
||||
* https://en.wikipedia.org/wiki/Modular_multiplicative_inverse
|
||||
@@ -14,8 +14,7 @@
|
||||
|
||||
/**
|
||||
* @brief Function imod
|
||||
* Responsible for calculating the modular inverse of x with respect to y,
|
||||
* x^{-1} mod y
|
||||
* Calculates the modular inverse of x with respect to y, x^{-1} \mod y
|
||||
* @param x number
|
||||
* @param y number
|
||||
* @returns the modular inverse
|
||||
|
||||
Reference in New Issue
Block a user