Modulo with Casio GRAPH 35+

Solved
Thibaut63 Posted messages 143 Status Member -  
 nonow14 -
Hello,

How do you find the modulo with a Casio GRAPH 35+?

I know that for small numbers I use a simple technique:

6 mod 4

6/4 = 1.5, I keep what is after the decimal point, which is 0.5
I multiply by 4
0.5 * 4 = 2

6 mod 4 = 2

However, I would like to do:

15^11 mod 221 and I am unable to do that....

Thanks in advance.
Configuration: Windows XP Firefox 3.0.5

3 answers

  1. Thibaut63 Posted messages 143 Status Member 41
     
    The modulo function does not exist.
    So I created it.

    If others are in my case:

    "

    ClrText
    "LET X MOD Y"
    "GIVE X"
    ?->A
    "GIVE Y"
    ?->B
    Int(A%B)->C
    A-(BxC)->R
    " THE MODULO IS "
    R

    "
    31
    1. Sev
       
      Thank you Thibaut!
      It will save me time during my next exam.
      0
    2. Andy
       
      Hi, thanks for the program. For '%', don’t confuse it with "pourcent_". More info here: http://www.planet-casio.com/Fr/forums/topic9361-1-Symboles-et-Modulo-sur-Casio-Graph-35+.html
      0
    3. nonow14
       
      there is even simpler: for example, take 68:13
      the result is normally 5.2307...
      for a division with remainder: 68:13=5,... only take the integer
      Then, type 68 then shift--> catalog, look for Rmdr (remainder in English), [exe], type 13, [EXE]
      and you get 3 so 68:13=5 remainder 3
      0