From f49a954b34ec95301671aff03babe5ba96a1167a Mon Sep 17 00:00:00 2001 From: John Law Date: Mon, 25 Apr 2022 03:36:20 +0800 Subject: [PATCH] Update modular_inverse_simple.cpp --- math/modular_inverse_simple.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/math/modular_inverse_simple.cpp b/math/modular_inverse_simple.cpp index 0b98410c3..935d525ce 100644 --- a/math/modular_inverse_simple.cpp +++ b/math/modular_inverse_simple.cpp @@ -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