如何在Casio fx-991ES计算器中计算Mod b [英] How to calculate a Mod b in Casio fx-991ES calculator

查看:3547
本文介绍了如何在Casio fx-991ES计算器中计算Mod b的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在Casio fx-991ES计算器中计算Mod b。谢谢

Does anyone know how to calculate a Mod b in Casio fx-991ES Calculator. Thanks

推荐答案

此计算器没有任何取模功能。但是,有一种非常简单的方法来使用显示模式 ab / c (而不是传统的 d / c )来计算模数。

This calculator does not have any modulo function. However there is quite simple way how to compute modulo using display mode ab/c (instead of traditional d/c).

如何将显示模式切换为 ab / c

How to switch display mode to ab/c:


  • 转到设置( Shift + Mode )。

  • 向下按箭头(查看更多设置)。

  • 选择 ab / c (数字1)。

  • Go to settings (Shift + Mode).
  • Press arrow down (to view more settings).
  • Select ab/c (number 1).

现在进行计算(在补偿模式下),例如 50/3 ,您将看到 16 2 / 3 ,因此mod为 2 。或者尝试 54/7 ,它是 7 5/7 (mod是 5 )。
如果您看不到任何分数,则mod为 0 ,例如 50/5 = 10 ( mod是 0 )。

Now do your calculation (in comp mode), like 50 / 3 and you will see 16 2/3, thus, mod is 2. Or try 54 / 7 which is 7 5/7 (mod is 5). If you don't see any fraction then the mod is 0 like 50 / 5 = 10 (mod is 0).

其余部分以简化形式显示,因此 60/8 将导致 7 1/2 。余数是 1/2 ,即 4/8 ,因此mod是 4

The remainder fraction is shown in reduced form, so 60 / 8 will result in 7 1/2. Remainder is 1/2 which is 4/8 so mod is 4.

编辑:
正如@lawal正确指出的那样,此方法对负数有点诡异,因为

例如 -121 / 26 = -4 17/26 ,因此,mod是 -17 ,在mod 26中是 +9 。或者,您可以将模数基添加到计算中负数: -121 / 26 + 26 = 21 9/26 (mod为 9 )。

For example -121 / 26 = -4 17/26, thus, mod is -17 which is +9 in mod 26. Alternatively you can add the modulo base to the computation for negative numbers: -121 / 26 + 26 = 21 9/26 (mod is 9).

编辑2:正如@simpatico所指出的,该方法不适用于计算器精度超出的数字。如果要计算 200 ^ 5 mod 391 ,则需要一些代数技巧。例如,使用规则
(A * B)mod C =((A mod C)* B)mod C ,我们可以编写:

As @simpatico pointed out, this method will not work for numbers that are out of calculator's precision. If you want to compute say 200^5 mod 391 then some tricks from algebra are needed. For example, using rule (A * B) mod C = ((A mod C) * B) mod C we can write:

200 ^ 5 mod 391 =(200 ^ 3 * 200 ^ 2)mod 391 =((200 ^ 3 mod 391)* 200 ^ 2)mod 391 = 98

这篇关于如何在Casio fx-991ES计算器中计算Mod b的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆