RetouchPRO

Go Back   RetouchPRO > Community > Salon

Notices

Salon Just hanging around...
(Social area, where non-retouching talk is encouraged)

Reply
 
LinkBack Thread Tools
  #1  
Old 01-31-2003, 08:36 PM
winwintoo's Avatar
Senior Member
 
Join Date: Feb 2002
Location: Regina, Saskatchewan
Posts: 919
Calling all math geniuses.....

I'm programming a calculator for the web site that I'm building and I've run into some logic problems.

On the desktop calculator on my Mac, the following sequence of entries resolves to 200; the $4 calculator in my kitchen drawer resolves the same sequence to 100.

Here's the sequence: 1, 0, 0, +/-, +/-, / (division), =.

I think the correct answer is 100 (the user could randomly click buttons and only the last one pushed would be applied.

Can anyone clear this up for me??

Thanks, Margaret
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #2  
Old 02-01-2003, 01:08 AM
jeaniesa's Avatar
Senior Member
 
Join Date: Aug 2001
Location: Colorado foothills
Posts: 1,826
I get the same thing as Chuck on my PC desktop calculator.

I can't check a physical calculator, because all I can find at the moment are my HP reverse-polish-notation ones (they don't have an "=" button ).

Jeanie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #3  
Old 02-01-2003, 07:11 AM
winwintoo's Avatar
Senior Member
 
Join Date: Feb 2002
Location: Regina, Saskatchewan
Posts: 919
Thanks Chuck and Jeannie - I left out a "+" in my example - and thats what gave me the 200, but your explanation works for me.

Using your sequence, I do get "1" as the answer on my iBook calculator, but on my $4 one I get "0.01" - I guess the $4 one is mathmatecally challenged

Take care, Margaret
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #4  
Old 02-01-2003, 07:55 AM
winwintoo's Avatar
Senior Member
 
Join Date: Feb 2002
Location: Regina, Saskatchewan
Posts: 919
Who's right???

Continuing my research, I entered this sequence:

452
/
5
%
=

iBook calculator answer: 20 (5% of 452 is 22.6 so 452 divided by 5% - or 22.6 - equals 20)

$4 calculator answer: 9040 (which is 20*452)

standard calculator at http://www.calculator.com/ answer: 9040 (this calculator displays 0.05 after you enter the % sign so 452*.05=9040)

I think we should stop using calculators.



Take care, Margaret
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #5  
Old 02-01-2003, 10:44 AM
Senior Member
 
Join Date: Jul 2002
Location: Glendale, New York
Posts: 269
Margaret,
Your $4 calculator may not calculate answers using standard order of operation, many small calcs do not. The computer calc is probably following the order.
Anybody remember "Please Excuse My Dear Aunt Sally?"
Debbie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #6  
Old 02-01-2003, 12:00 PM
BigAl's Avatar
Senior Member
 
Join Date: Feb 2002
Location: South Africa
Posts: 497
Remember 5% is 0.05
so 452/0.05 must be a bigger number than 452 (much bigger).

1/0.05 = 20

452/0.05 = 452* 1/0.05 = 452*20=9040

your $4 calculator is correct.

5% of 452 = 5% * 452 = 0.05 * 452 = 22

so the iBook calculator is correct.

It's all a question of mathematical semantics.

I can't quite figure out what you're trying to do with your first sum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #7  
Old 02-01-2003, 12:48 PM
winwintoo's Avatar
Senior Member
 
Join Date: Feb 2002
Location: Regina, Saskatchewan
Posts: 919
Thanks for the feedback Al. The first calculation that I posted was just an experiment to see how different calculators handled a series of seemingly random button clicking.

I then started paying more attention to what I was entering and began to notice differences in how the calculators performed.

There's quite a difference between a result of "20" and a result of "9040" - as a casual, not very mathmetically inclined individual, how would I know which is correct. Makes me wonder what other mistakes these calculators are making.

I wonder which one my pension investment handlers are using

Take care, Margaret
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling for Help! jonk Image Help 18 03-16-2005 09:42 AM
Calling one action from another mark pernal Photoshop Elements Help 4 05-16-2003 08:16 AM
Blend Mode Math, CHOPs etc. Stephen M Software 5 12-19-2002 09:51 PM
Calling All At-Home-Dads Gerry Monaghan Salon 6 05-04-2002 07:37 AM


All times are GMT -6. The time now is 10:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2008 Doug Nelson. All Rights Reserved




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51