Jump to content



Photo
- - - - -

Help Please!


  • Please log in to reply
12 replies to this topic

#1 rundell32

rundell32

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 19 February 2006 - 02:13 PM

Hi everybody!
I've got a CASIO CFX 9850GB PLUS and would like to use it for modulo calculations. Unluckily I don't have an idea how to find the mod operator and have already looked in the handbook for it. Please help me to find the mod or as it's often referred to: the % function!
THX in advance!
rundell32

Example: how to calculate: 15 mod 7 =1 or 15 % 7 =1

#2 Casio Calculator Factory

Casio Calculator Factory

    Newbie

  • Members
  • Pip
  • 29 posts
  • Location:Bolivia
  • Interests:La Programaci?n es mi hobby preferido desde las aparatos alectricos peque?os hasta Programas para PC.

  • Calculators:
    <<<Classpad 300>>>
    <<<<Algebra FX>>>>
    <<CFX-9850G series>>
    <<<<hp-48 hp-49>>>>

Posted 19 February 2006 - 09:10 PM

This fuction, not exist in the 9850 calculator.
you need create a program.

see ....

Mod( A , B ) = A-(A/B)*B

Program "MOD"

A-(A/B)*B->C
Return

Program "TEST"

0->A
0->B
0->C
"A="?->A
"B="?->B
Prog "MOD"
"A MOD B =":C


#3 Guest_Guest_rundell32_*_*

Guest_Guest_rundell32_*_*
  • Guests

Posted 19 February 2006 - 09:32 PM

Hi thanks for your reply! But:
A-(A/B)*B->C
appears to be zero all the time,which actually is not astonishing....
so is there no chance to program the modulo operator with a casio calculator? why is this function not included anyway? And is there a way to declare integers ?

Help is still appreciated!
rundell32

#4 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 19 February 2006 - 10:20 PM

Me: please log in to post!

and as for declaring integers, variables A to Z, little r and theta are all numbers, you can use tham as integers or floats :)

#5 rundell32

rundell32

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 20 February 2006 - 04:08 PM

Dear Admin!
Have you actually read my post?I don't want to be rude, but my problem is, that I need a modulo operator.
Apparently this very basic instrument of calculation does not exist in our little friend the casio. So I will have to program it. My comment on the suggested code was that it didn't work and I thought that someone would help me with other code or at least tell me that the code works on his/her calculator.
Now I know that I probably have to use Euklid's Algorithm or is there an easier way?
To your comment on ints and floats: The casio calculator works with floats because a float can be 2=2.0
but an Integer cannot be 2.1 or something similar. I was referring to a variable which can just store integers, so that I can take profit of that fact(I thought that would be obvious). I hope that someone can help me thanks!
rundell32

#6 Overlord

Overlord

    Casio Technician

  • Moderator
  • PipPipPipPipPipPip
  • 355 posts
  • Gender:Male
  • Location:Brussels - Belgium
  • Interests:Math Researcher

  • Calculators:
    My head - C300 OS 3.00 - G100 Rom 1.02 - G65 - G60 - G25

Posted 20 February 2006 - 07:17 PM

You can use Int and Frac to get the integer and fractional part of a number, to create the mod function
A - B*Int(A/B)

the code above can't work because all variables are floats

#7 rundell32

rundell32

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 20 February 2006 - 09:28 PM

How great, it works!
Thank you very much Overlord!
I like simple and helpful answers!
Have a nice day.
rundell32

#8 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 22 March 2008 - 02:38 AM

what is the code to put into the calculator to get the formula to work?

#9 Guest_peter_*

Guest_peter_*
  • Guests

Posted 09 March 2009 - 08:17 PM

You can use Int and Frac to get the integer and fractional part of a number, to create the mod function
A - B*Int(A/B)

the code above can't work because all variables are floats


How do I make typecasts?

#10 Guest_peter_*

Guest_peter_*
  • Guests

Posted 09 March 2009 - 09:02 PM

How do I make typecasts?

Got it! OPTN->NUM-Int ... There are no hints in the manual.

#11 Guest_nrubdr_*

Guest_nrubdr_*
  • Guests

Posted 20 September 2010 - 04:50 AM

Hello ,

I m using programmable calculator for the first time ... can anybody write steps for writing a program code to get mod.. thanks

#12 Guest_nrubdr_*

Guest_nrubdr_*
  • Guests

Posted 23 September 2010 - 04:39 AM

Hello ,
I've fx-7000 GB but unfortunately it doesn't have built in mod function . could you please specify code-steps to calculate mod . I've no idea of writing program on this calculator . It would be of great help if you share your experience..

Thanks

#13 Takaninjin

Takaninjin

    Newbie

  • Members
  • Pip
  • 1 posts

  • Calculators:
    Casio fx-9750G Plus

Posted 10 March 2011 - 10:30 AM



This code works fine, but I'd like to include the modulo calculation in a Program. I suppose this would be abit like using a function. Can you do this?

I'm using a Casio fx9750G Plus.

You can use Int and Frac to get the integer and fractional part of a number, to create the mod function
A - B*Int(A/B)

the code above can't work because all variables are floats








0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users