クイックアプリ検索 »   新着 | 値下げ | 無料 | 高評価 | 新着オススメ! | キニナル! | 新着動画 | iPad新着 | iPad値下げ | iPadオススメ!
APPLICATION INFO - iPhoneアプリの詳細情報
TOP > 教育 > Modular Arithmetic

Modular Arithmetic

¥300
  • このエントリーをはてなブックマークに追加
  • Share on Tumblr
  • Check
A calculator for arithmetic modulo N. It lets you choose a fixed modulus, and then make lots of calculations without having to press a "mod" button again and again. It also:

- follows the order convention;
- supports arbitrarily large numbers;
- performs fast modular division and exponentiation;
- can show a full transcript of your calculation.

Modular arithmetic is a "calculus of remainders". It features throughout mathematics and computer science, and has applications from cryptography to barcodes to music.

The basic idea is that you choose a modulus N, and then reduce every number to one of the integers 0,1,2,...,N−1 according to what remainder it leaves when dividing by N.

For example, using a modulus of 17:

40 ≡ 6 (since 40 ÷ 17 leaves a remainder of 6);
17 ≡ 0 (since 17 ÷ 17 leaves no remainder at all).

Arithmetic follows these same rules. Still using a modulus of 17:

15 + 7 ≡ 5 (since 22 ≡ 5);
3 × 9 ≡ 10 (since 27 ≡ 10);
5 ^ 3 ≡ 6 (since 125 ≡ 6).

Subtraction and division behave in a way that complements addition and multiplication:

−1 ≡ 16 (since 16 + 1 = 17 ≡ 0);
1/2 ≡ 9 (since 9 × 2 = 18 ≡ 1);
4 - 7 ≡ 14 (since 14 + 7 = 21 ≡ 4);
7 ÷ 3 = 8 (since 8 × 3 = 24 ≡ 7).

There are no negative numbers or fractions: like −1 and 7 ÷ 3 in the examples above, these are also reduced to one of 0,1,...,N−1.

As usual, you cannot divide by zero. You also cannot divide if the right hand side has any common factors with the modulus. If we change our modulus to 10, then the following operations all generate errors:

3 ÷ 20 (since 20 ≡ 0);
7 ÷ 8 (since 8 and 10 have a common factor of 2).

Integers can be arbitrarily large. For instance, if we set our modulus to 2305843009213693951 (a Mersenne prime), then:

5 ^ 2305843009213693950 ≡ 1 (by Fermat's little theorem).

The code is written carefully, and is backed up by a thorough suite of 186 automated tests.
このアプリはiPhone、iPadの両方に対応しています。
カテゴリー
教育
リリース
2013/8/17
更新
2015/9/8
バージョン
3.0
言語
サイズ
0.6 MB
条件
このバージョンの新機能
Now available for both iPad and iPhone!

Also keeps a history of moduli that you have used before.
スクリーンショット - iPhone | iPad
  • https://is2-ssl.mzstatic.com/image/thumb/PurpleSource114/v4/ed/dc/f8/eddcf81d-b505-6a58-d449-e5074657760f/5761b85c-e268-4349-b354-eef6934a37b3_1.png/392x696bb.png
  • https://is2-ssl.mzstatic.com/image/thumb/PurpleSource124/v4/1e/8b/e0/1e8be09e-e801-4a99-959f-cbf7e2dcc2ca/653aae98-abbb-4e9e-a5c8-9b0e7dc18bc4_2.png/392x696bb.png
  • https://is5-ssl.mzstatic.com/image/thumb/PurpleSource114/v4/09/e2/8b/09e28b53-025e-e02d-4ec8-c1c3f84447fa/a0438694-18b9-4843-b040-0cf855c73030_3.png/392x696bb.png
  • https://is2-ssl.mzstatic.com/image/thumb/PurpleSource114/v4/5d/1a/81/5d1a81e8-5d1f-c829-3168-fb78ffac6c4b/f0e09a78-9c58-4a19-91dc-8d35d2110dac_4.png/392x696bb.png
  • https://is2-ssl.mzstatic.com/image/thumb/PurpleSource124/v4/fb/ed/61/fbed6117-73cd-44fb-835d-9e6eb6962eb4/af7bd3af-3162-41dd-91b3-cfde9d766a7b_5.png/392x696bb.png
スクリーンショット - iPhone | iPad
  • https://is5-ssl.mzstatic.com/image/thumb/PurpleSource114/v4/79/75/eb/7975eb65-05ec-9522-9776-5a287155d705/bb63343b-6436-4af9-8bf7-c0e32db50e87_1.png/576x768bb.png
  • https://is2-ssl.mzstatic.com/image/thumb/PurpleSource114/v4/d8/0f/9e/d80f9e47-bbf3-9f14-85f4-a1afbe94f1d6/f662b10b-5369-4dd4-8e84-6d9202d00061_2.png/552x414bb.png
  • https://is4-ssl.mzstatic.com/image/thumb/PurpleSource124/v4/3f/b3/fd/3fb3fdf3-0984-cbe6-da26-51f86e40f802/8d3b869a-9ef3-486f-8a39-4f737682caac_3.png/552x414bb.png
  • https://is5-ssl.mzstatic.com/image/thumb/PurpleSource124/v4/45/22/4a/45224a55-af82-ea04-564a-2398e1c264cb/c7a4772a-31b9-438a-aafe-1668e6800da1_4.png/576x768bb.png
  • https://is2-ssl.mzstatic.com/image/thumb/PurpleSource124/v4/58/54/21/58542154-ce77-b25e-b076-5b4caf6ad073/4366bb76-1508-47b8-964d-60101f00d3f4_5.png/552x414bb.png



このアプリのYoutube動画がある場合はURLを送信してください。詳細 »









Benjamin Burton の他のアプリ  » もっと見る