Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWAREProgramming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old July 22nd, 2006, 05:44 PM
chobo2 chobo2 is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 10 chobo2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 18 sec
Reputation Power: 0
Question Need help to make a program that can do Mod for TI-83 plus

Hi

Can someone write me the code on how to make a program to calculate mod?

you know like 9 % 3 = 0

I just can't believe that they did not put that on the calc.

I don't have a cable so I need the code written out so I can program it in my hand(I imagine it won't be that long)

thanks.

Reply With Quote
  Trader Rating: 0 · #2  
Old July 22nd, 2006, 06:39 PM
drumz0rz's Avatar
drumz0rz drumz0rz is online now
Custom User Title:
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Jun 2004
Location: NY
Posts: 5,283 drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)drumz0rz User rank is General 64th Grade (Above 100000 Reputation Level)  Folding Points: 450581 Folding Title: Super Ultimate Folder - Level 1Folding Points: 450581 Folding Title: Super Ultimate Folder - Level 1Folding Points: 450581 Folding Title: Super Ultimate Folder - Level 1Folding Points: 450581 Folding Title: Super Ultimate Folder - Level 1Folding Points: 450581 Folding Title: Super Ultimate Folder - Level 1Folding Points: 450581 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Weeks 10 h 48 m 38 sec
Reputation Power: 5273
Send a message via AIM to drumz0rz Send a message via Google Talk to drumz0rz
sorry, but I have no idea what mod is, and how 9 percent 3 is zero.
Comments on this post
mphill agrees: Are you serious?
__________________



Reply With Quote
  Trader Rating: 0 · #3  
Old July 22nd, 2006, 06:48 PM
chobo2 chobo2 is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 10 chobo2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 18 sec
Reputation Power: 0
Here is some post I just grabbed off some math forum that might do a better job explaining what mod is.
Quote:
Hi there, insert name Here. I think you're right that '%' is being used as the
modulus operator. It is probably most often seen in the form:

4 mod 3

but computer programmers use the % shorthand in several
languages, and it is also fairly fast way of typing it.

The modulus operator returns the remainder when the first
number is divided by the second. Here are some examples:

1 mod 3 = 1 (or 1 % 3 = 1)
2 mod 3 = 2
3 mod 3 = 0
4 mod 3 = 1
5 mod 3 = 2
6 mod 3 = 0
etc...

This seemingly simple operator is actually a very powerful tool
for mathematicians, especially those who specialize in Number
Theory.

Here is some more reading about it.
http://mathforum.org/library/drmath...ect/dm_mod.html

Hope that clears things up

Reply With Quote
  Trader Rating: 0 · #4  
Old July 22nd, 2006, 09:27 PM
omrsafetyo's Avatar
omrsafetyo omrsafetyo is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Maine, USA
Posts: 297 omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Days 21 h 32 m 32 sec
Reputation Power: 221
Send a message via AIM to omrsafetyo
modulus is the remainder of a division problem.

For instance, 7/2 = 3.5 OR 7/2 = 3 with a remainder of 1.
Thus 7%3=1
modulus produces the remainder.

Try this out
for any values x and y

fpart(x/y)*y

thats a good TI-83 algorithm for modulus.

fpart displays the decimal - so by multiplying that by the denominator, you get the interger remainder.
Comments on this post
Nilpo agrees: Very nice...

Last edited by omrsafetyo : July 22nd, 2006 at 09:36 PM.

Reply With Quote
  Trader Rating: 0 · #5  
Old July 23rd, 2006, 03:56 PM
chobo2 chobo2 is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 10 chobo2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 18 sec
Reputation Power: 0
Quote:
Originally Posted by omrsafetyo
modulus is the remainder of a division problem.

For instance, 7/2 = 3.5 OR 7/2 = 3 with a remainder of 1.
Thus 7%3=1
modulus produces the remainder.

Try this out
for any values x and y

fpart(x/y)*y

thats a good TI-83 algorithm for modulus.

fpart displays the decimal - so by multiplying that by the denominator, you get the interger remainder.



How would I exactly write that on my calc. I never written a program before so I am not srue if I need to include otherstuff with the stuff you wrote above.


this is what I have:
PROGRAM: MOD
: "MODULAS"
: ClrHome
: Prompt A,B
: DISP fpart(A/B)*B // seems to crash here
: Pause
: ClrHome

Reply With Quote
  Trader Rating: 0 · #6  
Old July 23rd, 2006, 06:25 PM
chobo2 chobo2 is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 10 chobo2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 18 sec
Reputation Power: 0
Quote:
Originally Posted by chobo2
How would I exactly write that on my calc. I never written a program before so I am not srue if I need to include otherstuff with the stuff you wrote above.


this is what I have:
PROGRAM: MOD
: "MODULAS"
: ClrHome
: Prompt A,B
: DISP fpart(A/B)*B // seems to crash here
: Pause
: ClrHome


I think I figured it out my problem was I was writting fpart out when I guess I should have gone to math-num-fpart and insert it in.

Reply With Quote
  Trader Rating: 0 · #7  
Old July 25th, 2006, 03:06 AM
omrsafetyo's Avatar
omrsafetyo omrsafetyo is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Maine, USA
Posts: 297 omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level)omrsafetyo User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Days 21 h 32 m 32 sec
Reputation Power: 221
Send a message via AIM to omrsafetyo
so its working now?

Reply With Quote
  Trader Rating: 0 · #8  
Old March 4th, 2008, 09:32 PM
jota_alfombria jota_alfombria is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 1 jota_alfombria User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 23 sec
Reputation Power: 0
Try this
Code:
PROGRAM: MOD
: "MODULUS"
: ClrHome
: Prompt A,B
: fpart(A/B)*B -> X    // fpart() = [2ND]>[CATALOG]>"fpart("
: DISP X
: Pause
: ClrHome


Alternatively, you could try this
Code:
PROGRAM: MOD
: "MODULUS"
: ClrHome
: Prompt A,B
: A-B*int(A/B) -> X    // int() = [MATH]>[NUM]>"int("
: DISP X
: Pause
: ClrHome

Reply With Quote
  Trader Rating: 0 · #9  
Old March 5th, 2008, 10:36 AM
mphill's Avatar
mphill mphill is offline
untitled
Dev Hardware Expert (3500 - 3999 posts)
 
Join Date: Oct 2005
Location: Zagreb
Posts: 3,726 mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)  Folding Points: 14729 Folding Title: Novice Folder
Time spent in forums: 3 Months 2 Weeks 5 Days 7 h 51 m 48 sec
Reputation Power: 4879
Send a message via ICQ to mphill
Nice, but I guess his homework deadline passed long time ago.
__________________
Click Here ->    

Reply With Quote
  Trader Rating: 0 · #10  
Old March 5th, 2008, 11:02 AM
archnaid's Avatar
archnaid archnaid is offline
Moderator
Dev Hardware Expert (3500 - 3999 posts)
 
Join Date: Feb 2004
Posts: 3,931 archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)archnaid User rank is General 27th Grade (Above 100000 Reputation Level)  Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2Folding Points: 558418 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 1 Month 4 Days 15 h 12 m 37 sec
Reputation Power: 2784
Quote:
Originally Posted by mphill
Nice, but I guess his homework deadline passed long time ago.


Programming for the calculator, I doubt it was homework.

Reply With Quote
  Trader Rating: 0 · #11  
Old March 5th, 2008, 11:10 AM
mphill's Avatar
mphill mphill is offline
untitled
Dev Hardware Expert (3500 - 3999 posts)
 
Join Date: Oct 2005
Location: Zagreb
Posts: 3,726 mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)mphill User rank is General 59th Grade (Above 100000 Reputation Level)  Folding Points: 14729 Folding Title: Novice Folder
Time spent in forums: 3 Months 2 Weeks 5 Days 7 h 51 m 48 sec
Reputation Power: 4879
Send a message via ICQ to mphill
Who knows, You Americans are wierd.
Comments on this post
Sand Man agrees: LOL but totally true though.

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWAREProgramming > Need help to make a program that can do Mod for TI-83 plus


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump