Key for modular arithmetic - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Key for modular arithmetic (/thread-10414.html) |
Key for modular arithmetic - Alberto Candel - 03-31-2018 03:32 PM Good morning, In CAS, modular arithmetic can be performed with the "%%" symbol. As far as I know, typing that requires about 9 keystrokes (the % symbol is in the Chars table). Is there a shortcut for "mod" in CAS? I tried creating a userkey program, but cannot do much better because one must use the MOD operator, it doesn't work with the %%. Any help would be welcome. Thanks. RE: Key for modular arithmetic - Carlos295pz - 03-31-2018 03:41 PM It should work with MOD, if it requires a function own of CAS can use irem(). RE: Key for modular arithmetic - Alberto Candel - 03-31-2018 03:54 PM (03-31-2018 03:41 PM)Carlos295pz Wrote: It should work with MOD, if it requires a function own of CAS can use irem(). Thanks. It does work with MOD. What I was wondering was if there is a single keystroke that would perform say 2^36 %% 73. Typing the two %% takes a while, and looking up MOD does too. RE: Key for modular arithmetic - Tim Wessman - 03-31-2018 06:47 PM Hello, I know it isn't much consolation, but you should be able to do SHIFT-CHARS, TAP % Double tap %, then press ENTER or OK and put both in at once. RE: Key for modular arithmetic - Alberto Candel - 03-31-2018 09:07 PM (03-31-2018 06:47 PM)Tim Wessman Wrote: Hello, Thanks. That is exactly what I have been doing. It is OK for a one-time operation, but ... I was just wondering if there was a direct access to the % symbol. RE: Key for modular arithmetic - Alberto Candel - 03-31-2018 09:18 PM Perhaps there is a way to leave the USER keyboard on for more that just one keystroke, is there? RE: Key for modular arithmetic - Carlos295pz - 04-01-2018 01:18 AM (03-31-2018 09:18 PM)Alberto Candel Wrote: Perhaps there is a way to leave the USER keyboard on for more that just one keystroke, is there? Shift Help Shift Help RE: Key for modular arithmetic - Alberto Candel - 04-01-2018 04:57 AM (04-01-2018 01:18 AM)Carlos295pz Wrote:(03-31-2018 09:18 PM)Alberto Candel Wrote: Perhaps there is a way to leave the USER keyboard on for more that just one keystroke, is there? Cool! Thanks! |