POWERMOD
Version 1.0.0.0 (1.11 KB) by
Cavin Dsouza
The function calculates A = powermod(base,exponent,modulus)
rem and mod are built -in functions in MATLAB that help solve equations of the type A=mod(base^exponent,modulus) OR
A=rem(base^exponent,modulus)
But then range of values of A can be extended bu using the proposed powermod function.
Powermod function uses the repeated multiplication technique to obtain the value of A.
Cite As
Cavin Dsouza (2026). POWERMOD (https://www.mathworks.com/matlabcentral/fileexchange/38516-powermod), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2008a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Symbolic Math Toolbox > Symbolic Computations in MATLAB > Operators and Elementary Operations >
Find more on Operators and Elementary Operations in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
