(12C) Modulo Operation
|
06-30-2024, 05:15 AM
Post: #1
|
|||
|
|||
(12C) Modulo Operation
Modulo (MOD) operation returns the remainder of a division.
All the HP Voyager Series (10, 11, 12 and 15) not include the MOD function except the 16. ------------------------------------------------------------------ Let's calculate this MOD Operation manually. example: 1155 MOD 13 1155 [ENTER] 13 ►[ENTER] [ENTER] [-] [R↓] [X<>Y] [LSTx] [÷] [INTG] [x] [-] Display Answer 11 With this manually key in operation can be easily input those keys sequence as a program start from ► the whole line. ------------------------------------------------------------------ Once key in as a program let's try one more example. How many years from 1983 to 2024 instead of simple subtraction let's use this MOD operation. 2024 [ENTER] 1983 [R/S] display answer 41 ------------------------------------------------------------------- Gamo 6/2024 |
|||
06-30-2024, 11:20 AM
(This post was last modified: 06-30-2024 11:22 AM by C.Ret.)
Post: #2
|
|||
|
|||
RE: (12C) Modulo Operation
(06-30-2024 05:15 AM)Gamo Wrote: Let's calculate this MOD Operation manually. May I suggest a slightly shorter alternative solution to use from the ► starting point: |
|||
06-30-2024, 04:30 PM
Post: #3
|
|||
|
|||
RE: (12C) Modulo Operation
(07-31-2018 06:10 PM)Albert Chan Wrote: Register Y X --> X Mod(Y, X) From my old post, we can have mod get gcd as well |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)