- 阅读权限
- 255
- 威望
- 1 级
- 论坛币
- 49634 个
- 通用积分
- 55.5065
- 学术水平
- 370 点
- 热心指数
- 273 点
- 信用等级
- 335 点
- 经验
- 57805 点
- 帖子
- 4005
- 精华
- 21
- 在线时间
- 582 小时
- 注册时间
- 2005-5-8
- 最后登录
- 2023-11-26
|
板凳
ReneeBK(未真实交易用户)
发表于 2016-8-14 22:50:17
- 4-3. Performing Modular Arithmetic
- Problem
- You want modular arithmetic the way it is implemented in your computer’s CPU.
- Solution
- Once you know about the MOD function, it seems pretty obvious that if you want to,
- say, multiply 58 with 74051161 and simulate a 32-bit processor, you’d do something
- like this
- (mod (* 58 74051161) (expt 2 32))
复制代码
|
|