POWERMOD
Versione 1.0.0.0 (1,11 KB) da
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.
Cita come
Cavin Dsouza (2024). POWERMOD (https://www.mathworks.com/matlabcentral/fileexchange/38516-powermod), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2008a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Mathematics and Optimization > Symbolic Math Toolbox > Symbolic Computations in MATLAB > Operators and Elementary Operations >
Scopri di più su Operators and Elementary Operations in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |