📄 invmodp.m
字号:
function binv = invmodp(b, p)% function binv = invmodp(b, p)% % Compute the inverse of b modulo p% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlyif(b == 0) error('Error: Illegal division by zero');end[g,x,y] = gcd(p,b);if(g ~= 1) error('Error: attempting to divide by noninvertible number');endbinv = mod(y,p);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -