📄 res.m
字号:
function d = res(a,n,m)
%
% Computes <a^n>_m
%
% function d = res(a,n,m)
%
% a = value
% n = exponent
% m = modulo
%
% d = remainder(a^n,m0
% Copyright 1999 by Todd K. Moon
d = rem(a,m);
for i=2:n
d = rem(d*a,m);
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -