TI 83/84
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWARETI 83/84

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 June 19th, 2008, 09:32 AM
Zoidberg Zoidberg is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 1 Zoidberg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 30 sec
Reputation Power: 0
Exclamation In Desperate Need Of Help - Maths Assignment due in 12 hours.

Hey, I've got a maths assignment to do on riffling a deck of cards.
I'm making a guess-and-check program on my calculator for extra originality marks.
I really need help though. The basic idea is if (c-1)(2^x/c-1 -w)=1 in my formula then the number guessed (x) is correct. However, in some of the higher numbers of cards, the above formula equals something like .9999999997 or .9999999998 instead of one.
This becomes a problem as it says the number guessed is incorrect, when infact it is correct.

EDIT: PUTTING THE CALCULATOR ON AUTO ROUND TO ANY AMOUNT OF DECIMAL PLACES DOES NOT WORK

I have:
:if G=1:then
: Disp "number of cards",x

However, it needs to be something like
"If G=0.955555555 to 1:then
:"Disp "number of cards",x"

Is there any way anyone knows about that I can program this into my calculator? It's really urgent. Thankyou!

Reply With Quote
  Trader Rating: 0 · #2  
Old August 3rd, 2008, 11:33 AM
Jagraffamel's Avatar
Jagraffamel Jagraffamel is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Location: Small Town America.
Posts: 90 Jagraffamel User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Jagraffamel User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Jagraffamel User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Jagraffamel User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Jagraffamel User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Jagraffamel User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Jagraffamel User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Jagraffamel User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Jagraffamel User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Jagraffamel User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Jagraffamel User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 20 sec
Reputation Power: 440
Send a message via MSN to Jagraffamel
I don't exactly understand what you are trying to do.

What do you mean, "riffling a deck of cards"?
__________________
Half Jaguar, Half Giraffe, Half Camel.
1 Jagraffamel = 1.5 Organisms.

Reply With Quote
  Trader Rating: 0 · #3  
Old August 4th, 2008, 11:31 AM
MrLarkins's Avatar
MrLarkins MrLarkins is offline
The HS Math Teacher
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Location: Central Arkansas
Posts: 46 MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 8 h 19 m 18 sec
Reputation Power: 2
Send a message via ICQ to MrLarkins
Quote:
Originally Posted by Zoidberg
Hey, I've got a maths assignment to do on riffling a deck of cards.
I'm making a guess-and-check program on my calculator for extra originality marks.
I really need help though. The basic idea is if (c-1)(2^x/c-1 -w)=1 in my formula then the number guessed (x) is correct. However, in some of the higher numbers of cards, the above formula equals something like .9999999997 or .9999999998 instead of one.
This becomes a problem as it says the number guessed is incorrect, when infact it is correct.

EDIT: PUTTING THE CALCULATOR ON AUTO ROUND TO ANY AMOUNT OF DECIMAL PLACES DOES NOT WORK

I have:
:if G=1:then
: Disp "number of cards",x

However, it needs to be something like
"If G=0.955555555 to 1:then
:"Disp "number of cards",x"

Is there any way anyone knows about that I can program this into my calculator? It's really urgent. Thankyou!


try this:
Code:
If G>0.95 and G(<=)1           //  (<=) means less than or equal to
Then
Disp "number of cards",x
__________________

..................|| OSKgaming.com || MrLarkins.com || ...................

Reply With Quote
  Trader Rating: 0 · #4  
Old August 9th, 2008, 10:55 AM
Asday's Avatar
Asday Asday is offline
Contributing User
Click here for more information
 
Join Date: May 2008
Posts: 103 Asday User rank is Captain (20000 - 30000 Reputation Level)Asday User rank is Captain (20000 - 30000 Reputation Level)Asday User rank is Captain (20000 - 30000 Reputation Level)Asday User rank is Captain (20000 - 30000 Reputation Level)Asday User rank is Captain (20000 - 30000 Reputation Level)Asday User rank is Captain (20000 - 30000 Reputation Level)Asday User rank is Captain (20000 - 30000 Reputation Level)Asday User rank is Captain (20000 - 30000 Reputation Level)Asday User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 5782 Folding Title: Novice Folder
Time spent in forums: 14 h 34 m 3 sec
Reputation Power: 236
Uh, doesn't this forum have a rule against doing someone elses homework?

Reply With Quote
  Trader Rating: 0 · #5  
Old August 10th, 2008, 08:29 AM
MrLarkins's Avatar
MrLarkins MrLarkins is offline
The HS Math Teacher
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Location: Central Arkansas
Posts: 46 MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 8 h 19 m 18 sec
Reputation Power: 2
Send a message via ICQ to MrLarkins
maybe,...

but what does that have to do with this thread? Which reply was doing his homework for him? Did one of the posters go to his house and punch the buttons for him?

take it easy there Kermit. It's past due anyhow.
Comments on this post
Jagraffamel agrees: Good Call!

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWARETI 83/84 > In Desperate Need Of Help - Maths Assignment due in 12 hours.


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


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway