POWERMOD

版本 1.0.0.0 (1.1 KB) 作者: Cavin Dsouza
The function calculates A = powermod(base,exponent,modulus)
732.0 次下载
更新时间 2012/10/8

查看许可证

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.

引用格式

Cavin Dsouza (2024). POWERMOD (https://www.mathworks.com/matlabcentral/fileexchange/38516-powermod), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Operators and Elementary Operations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0