tocrt.m
来自「Mathematical Methods by Moor n Stiling.」· M 代码 · 共 20 行
M
20 行
function y = tocrt(x,m)
%
% Compute the representation of the scalar x using the
% using the Chinese Remainder Theorem (CRT) with
% moduli m = [m1,m2,...,mr]. It is assumed (without checking)
% that the moduli are relatively prime
%
% function y = tocrt(x,m)
%
% x = number to convert
% m = set of moduli
%
% y = CRT representation of x
% Copyright 1999 by Todd K. Moon
y = mod(x,m);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?