Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Calculator makes 9.11 into 9.109999999?

Calculator makes 9.11 into 9.109999999?
Thread Tools
gunnar
Mac Enthusiast
Join Date: Feb 1999
Status: Offline
Reply With Quote
Aug 30, 2002, 06:25 PM
 
Is it just my machine and my Calculator app, or does adding 9.11 to any number result in the addition of not 9.11 but 9.109999 etc.? Any idea why it doesn't just use the whole number?
     
Peabo
Senior User
Join Date: Mar 2001
Location: London, England
Status: Offline
Reply With Quote
Aug 30, 2002, 06:27 PM
 
yet more WTC censorship rearing its ugly head
LC 16Mhz • LC 475 25Mhz • Centris 650 25Mhz • Performa 6200/75Mhz • G3 266Mhz • Snow iMac DVSE 500Mhz
G4 QS 733Mhz • 17" Powerbook 1.33Ghz • 15" MacBook Pro Core Duo 2.16Ghz • Mac Pro 8-Core 3.0 Ghz
     
MacGorilla
Addicted to MacNN
Join Date: Aug 2000
Location: Retired
Status: Offline
Reply With Quote
Aug 30, 2002, 07:03 PM
 
Works fine on my computer. if I add 9.11 to 0, I get 9.11
Power Macintosh Dual G4
SGI Indigo2 6.5.21f
     
Developer
Addicted to MacNN
Join Date: Apr 2001
Location: europe
Status: Offline
Reply With Quote
Aug 30, 2002, 07:25 PM
 
Calculator also thinks that 4^0,5 is 1.
(please note the decimal delimiter)

+9.11 is working for me though.
Nasrudin sat on a river bank when someone shouted to him from the opposite side: "Hey! how do I get across?" "You are across!" Nasrudin shouted back.
     
mflavin
Fresh-Faced Recruit
Join Date: May 2002
Location: Troy, NY
Status: Offline
Reply With Quote
Aug 30, 2002, 07:25 PM
 
Originally posted by gunnar:
Is it just my machine and my Calculator app, or does adding 9.11 to any number result in the addition of not 9.11 but 9.109999 etc.? Any idea why it doesn't just use the whole number?
It isn't just 9.11. This seems to occur with many numbers.

To show this in effect, take 0.1, and add 0.1 to it repeatedly. You end up with 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.799999999999999999, 0.89999999999999, etc.

Not sure what the reasons for this are.
     
Developer
Addicted to MacNN
Join Date: Apr 2001
Location: europe
Status: Offline
Reply With Quote
Aug 30, 2002, 07:29 PM
 
What processor?
Nasrudin sat on a river bank when someone shouted to him from the opposite side: "Hey! how do I get across?" "You are across!" Nasrudin shouted back.
     
iJed
Dedicated MacNNer
Join Date: May 2001
Location: Edinburgh, UK
Status: Offline
Reply With Quote
Aug 30, 2002, 07:42 PM
 
This is simply a floting point rounding error. It happens on every processor and is not a problem with your Mac. I would try and explain why this happens but my FP binary is a little rusty. Anyway, Apple should have really taken this into account when they developed the calculator app.
     
mchladek
Mac Elite
Join Date: Feb 2001
Status: Offline
Reply With Quote
Aug 30, 2002, 07:57 PM
 
Hmm ... not getting that problem with my calc.app at all. Like iJed said (hehe, a rhyme ) it's probably just a fp error with certain processors. Send Apple feedback. Their fab() function or its Obj-C or C++ counterpart probably wasn't compiled properly for some processors. Very interesting.
     
wataru
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Aug 30, 2002, 08:02 PM
 
Originally posted by Developer:
Calculator also thinks that 4^0,5 is 1.
(please note the decimal delimiter)
Not on mine.

But adding 0.1 repeatedly did get me 0.799999^
     
Developer
Addicted to MacNN
Join Date: Apr 2001
Location: europe
Status: Offline
Reply With Quote
Aug 30, 2002, 08:07 PM
 
Originally posted by wataru:

Not on mine.
That's why I said "note the decimal delimiter". Set the number formatting to use the comma, and you'll see that bug.

I don't have a problem with repeatedly adding 0.1 - independent of the number formatting. That's why I asked for the processor (for the lack of a better hypotheses).
Nasrudin sat on a river bank when someone shouted to him from the opposite side: "Hey! how do I get across?" "You are across!" Nasrudin shouted back.
     
gunnar  (op)
Mac Enthusiast
Join Date: Feb 1999
Status: Offline
Reply With Quote
Aug 30, 2002, 08:12 PM
 
Here's a screen shot adding 9.11 to 4 and 7.11 to 4.

Calculator Image
     
Developer
Addicted to MacNN
Join Date: Apr 2001
Location: europe
Status: Offline
Reply With Quote
Aug 30, 2002, 08:19 PM
 
Originally posted by gunnar:
Here's a screen shot adding 9.11 to 4 and 7.11 to 4.

Calculator Image
Ah! Thanks for the clarification. It's wrong in the paper tape, but the result is still correct. Yes, I have that too.
Nasrudin sat on a river bank when someone shouted to him from the opposite side: "Hey! how do I get across?" "You are across!" Nasrudin shouted back.
     
chabig
Addicted to MacNN
Join Date: Jun 1999
Location: Las Vegas, NV, USA
Status: Offline
Reply With Quote
Aug 30, 2002, 10:08 PM
 
You are right about the 4^0,5 bug. Did you report it?

Chris
     
Developer
Addicted to MacNN
Join Date: Apr 2001
Location: europe
Status: Offline
Reply With Quote
Aug 30, 2002, 10:43 PM
 
Originally posted by chabig:
You are right about the 4^0,5 bug. Did you report it?
No, I didn't.
Nasrudin sat on a river bank when someone shouted to him from the opposite side: "Hey! how do I get across?" "You are across!" Nasrudin shouted back.
     
3R1C
Mac Enthusiast
Join Date: Oct 2001
Status: Offline
Reply With Quote
Aug 31, 2002, 12:12 AM
 
This is embarrasing. Are you all saying that our calculator doesnt calculate?
Im mortified to be a mac user at this moment.
3R1C
     
Seb G
Forum Regular
Join Date: Mar 2002
Location: Düsseldorf, Germany, Europe, Earth
Status: Offline
Reply With Quote
Aug 31, 2002, 06:47 AM
 
Bad. Very bad. And I thought it was a problem that the calculator was dog slow. Ah well, I don't use it anyway (Pari/GP does all I need).
     
villalobos
Mac Elite
Join Date: Apr 2000
Status: Offline
Reply With Quote
Aug 31, 2002, 07:43 AM
 
Originally posted by Seb G:
Bad. Very bad. And I thought it was a problem that the calculator was dog slow. Ah well, I don't use it anyway (Pari/GP does all I need).
Does that affect only the new calculator in 10.2? It works fine under 10.1.5.

villa
     
techweenie1
Dedicated MacNNer
Join Date: May 2001
Location: Chicago, IL
Status: Offline
Reply With Quote
Aug 31, 2002, 11:54 AM
 
The results differ between Advanced and Basic view for me, when in basic view I get 9.11 + 0 = 9.11 but in Advanced I get 9.1099999999999...
     
Drizzt
Mac Elite
Join Date: Jan 2001
Location: Saint-Jean-sur-Richelieu, Québec, Canada
Status: Offline
Reply With Quote
Aug 31, 2002, 12:09 PM
 
there is no problem, since mathematically 0.999999999999999999999999999999999999999999999999 9999999999999999999999999999999 (9 to infinity and beyond..) equals 1

Why it shows like that, I don't know, but the reality is that it's correct.

A bug? Yes
A bug that will make you do bad calculations? No
     
tooki
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
Aug 31, 2002, 12:12 PM
 
I hope Apple invested more QA effort in core components of the OS than they did in the calculator!

tooki
     
Boochie
Mac Enthusiast
Join Date: Mar 2002
Status: Offline
Reply With Quote
Aug 31, 2002, 01:33 PM
 
I don't know what type of "mathematics" they teach up there in Quebec, but in the rest of Canada (and the world) 0.9999999... does not equal 1.

Let's not confuse mathematics with roundoff error. The reality is that the number being shown in the Calculator display is incorrect, and it's inexcusable. Anybody remember the Pentium math bug from about five years ago?

Originally posted by Drizzt:
there is no problem, since mathematically 0.999999999999999999999999999999999999999999999999 9999999999999999999999999999999 (9 to infinity and beyond..) equals 1

Why it shows like that, I don't know, but the reality is that it's correct.

A bug? Yes
A bug that will make you do bad calculations? No
     
brown monk
Dedicated MacNNer
Join Date: Oct 2000
Location: Berkeley, CA, US
Status: Offline
Reply With Quote
Aug 31, 2002, 01:54 PM
 
Originally posted by Boochie:
I don't know what type of "mathematics" they teach up there in Quebec, but in the rest of Canada (and the world) 0.9999999... does not equal 1.
Mathematics is the same everywhere. It's the language of nature remember .

Anyway, he is correct. 0.9999 (infinitely many 9's) does equal 1. I'm not sure how much math you know so I won't go into a proof of it. Any math major in college who has taken analysis can tell you this.
brown is sweeter
me_puter: outdated
     
Drizzt
Mac Elite
Join Date: Jan 2001
Location: Saint-Jean-sur-Richelieu, Québec, Canada
Status: Offline
Reply With Quote
Aug 31, 2002, 01:56 PM
 
Originally posted by Boochie:
I don't know what type of "mathematics" they teach up there in Quebec, but in the rest of Canada (and the world) 0.9999999... does not equal 1.

Let's not confuse mathematics with roundoff error. The reality is that the number being shown in the Calculator display is incorrect, and it's inexcusable. Anybody remember the Pentium math bug from about five years ago?

I don't remmember how.. but I have a math teacher that prooved us that something like 0.9 where the 9 is preiodical is equal to 1.

It was proven mathematically.. I know it sounds silly but it's true
     
Earth Mk. II
Mac Elite
Join Date: Feb 2001
Location: Washington, DC
Status: Offline
Reply With Quote
Aug 31, 2002, 02:03 PM
 
Originally posted by Drizzt:
there is no problem, since mathematically 0.999999999999999999999999999999999999999999999999 9999999999999999999999999999999 (9 to infinity and beyond..) equals 1

Why it shows like that, I don't know, but the reality is that it's correct.

A bug? Yes
A bug that will make you do bad calculations? No
Wouldn't 0.999999... be the limit of x/9 as x approaches 9? Though .9 repeating is very close to 1, .99999... != 1.

I doubt it would throw any common calculations off much, and if you need that level of precision you'd probably have a better calculator already.

report it though... looks annoying.
/Earth\ Mk\.\ I{2}/
     
JKT
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status: Offline
Reply With Quote
Aug 31, 2002, 02:41 PM
 
Originally posted by Boochie:
I don't know what type of "mathematics" they teach up there in Quebec, but in the rest of Canada (and the world) 0.9999999... does not equal 1.
Conceptually you can think of it this way:

1/9 = 0.1 recurring
2/9 = 0.2 recurring
3/9 = 0.3 recurring
...
8/9 = 0.8 recurring
9/9 = 0.9 recurring and as we all know, any x/x = 1

That isn't the real proof, but as everyone else is saying, it is true, 9/9 does indeed = 1
     
JLL
Professional Poster
Join Date: Apr 1999
Location: Copenhagen, Denmark
Status: Offline
Reply With Quote
Aug 31, 2002, 03:11 PM
 
Originally posted by JKT:

Conceptually you can think of it this way:

1/9 = 0.1 recurring
2/9 = 0.2 recurring
3/9 = 0.3 recurring
...
8/9 = 0.8 recurring
9/9 = 0.9 recurring and as we all know, any x/x = 1

That isn't the real proof, but as everyone else is saying, it is true, 9/9 does indeed = 1
x = 0.9 recurring

10x = 9.9 recurring

10x - x = 9

9x = 9

x = 1
JLL

- My opinions may have changed, but not the fact that I am right.
     
Morpheus
Forum Regular
Join Date: Jun 2002
Status: Offline
Reply With Quote
Aug 31, 2002, 03:36 PM
 
Claim:
0.999... = 1

Proof:
By geometric series formula: sum{1/10^n , n=1..infinity} = 1/(1-(1/10)) - 1 = 1/9.

Since 0.999... = 9 * sum{1/10^n,n=1..infinity} the claim follows.

(and most of the math before in this thread is bs)
     
Drizzt
Mac Elite
Join Date: Jan 2001
Location: Saint-Jean-sur-Richelieu, Québec, Canada
Status: Offline
Reply With Quote
Aug 31, 2002, 03:53 PM
 
Originally posted by Morpheus:
Claim:
0.999... = 1

Proof:
By geometric series formula: sum{1/10^n , n=1..infinity} = 1/(1-(1/10)) - 1 = 1/9.

Since 0.999... = 9 * sum{1/10^n,n=1..infinity} the claim follows.

(and most of the math before in this thread is bs)
Thanks guys.. I knew I wasn't crazy..

Or am I? Are we?
     
Boochie
Mac Enthusiast
Join Date: Mar 2002
Status: Offline
Reply With Quote
Aug 31, 2002, 04:10 PM
 
I stand corrected. Perhaps the Quebecers are on to something.

In any case, what the calculator does shouldn't happen.

Originally posted by Drizzt:


Thanks guys.. I knew I wasn't crazy..

Or am I? Are we?
     
ErsatzTom
Fresh-Faced Recruit
Join Date: May 2001
Location: Marco Island, FL, US
Status: Offline
Reply With Quote
Aug 31, 2002, 04:33 PM
 
It sounds like the reason for this rounding error is that the calculator is doing its calculations in floating point binary (read base 2) math not decimal (base 10... what we use). In binary, there is no direct respresentation of 1/10th, the same way there is no direct representation of 1/3rd in decimal floating point. Instead, for 1/3 we get .333333...

In base 10, after the decimal point you get 1/10th, 1/100th, 1/1000th, etc. In binary, you get 1/2, 1/4, 1/8, 1/16, 1/32, etc. To get 1/10 you need 1/16 + 1/32 + 1/256 + 1/512 + etc. (.00011001100110011...). There is no exact representation.

Having said all that, though, apple really should have used decimal math to produce the results people expect.
     
wingdo
Senior User
Join Date: Apr 2001
Location: Chicago, Earth
Status: Offline
Reply With Quote
Aug 31, 2002, 04:52 PM
 
Originally posted by JLL:


x = 0.9 recurring

10x = 9.9 recurring

10x - x = 9

9x = 9

x = 1
If x = 0.99 recurring
then 1x = 0.99 recurring
then 2x = 1.99 recurring
.
.
then 9x = 8.99 recurring

therefore x != 1

It is however, commonly accepted that 0.99 infinite recurring = 1
     
wingdo
Senior User
Join Date: Apr 2001
Location: Chicago, Earth
Status: Offline
Reply With Quote
Aug 31, 2002, 04:54 PM
 
Originally posted by JLL:


x = 0.9 recurring

10x = 9.9 recurring

10x - x = 9

9x = 9

x = 1
If x = 0.99 recurring
then 1x = 0.99 recurring
then 2x = 1.99 recurring
.
.
then 9x = 8.99 recurring

therefore x != 1
     
Drizzt
Mac Elite
Join Date: Jan 2001
Location: Saint-Jean-sur-Richelieu, Québec, Canada
Status: Offline
Reply With Quote
Aug 31, 2002, 04:55 PM
 
Originally posted by wingdo:


If x = 0.99 recurring
then 1x = 0.99 recurring
then 2x = 1.99 recurring
.
.
then 9x = 8.99 recurring

therefore x != 1

It is however, commonly accepted that 0.99 infinite recurring = 1
Since we know that both statements are true, this is why 8.99 recurring = 9
     
ego
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
Aug 31, 2002, 07:18 PM
 
Originally posted by wingdo:


If x = 0.99 recurring
then 1x = 0.99 recurring
then 2x = 1.99 recurring
.
.
then 9x = 8.99 recurring

therefore x != 1
That's BS math you're doing here.

If I remember enough of my maths / topology (13 years ago) the real numbers define a metric space with a canonical distance d(x,y) = |x-y|.

A distance is a function such that (among other properties) d(x,y) = 0 iff x=y

So x != y iff d(x,y) > 0
So x != y iff there exists an eps, eps > 0, d(x,y) >= eps

Since there isn't an eps so that,
|1 - 0.9999... (inf rec)| > eps,
then 1 = 0.9999....
QED

1 and 0.9999... are just alternative representations of the _same_ real number. Real numbers are defined as an extension of the rational numbers to the limits of rational series, 1/0.99... are just two ways to represent the same limit. You could also use 1.00... as a representation (eg as the limit of a serie 1.1, 1.01, 1.001, ...).

Logic, "pure" algebra and topology are the basis for all maths :-)

(Now I admit I don't remember all the details on the definitions of a metric space and a distance, but hopefully I didn't botch it too much).


To come back on topic, yes this "defect" is the result of using a floating-point representation and not rounding aggressively enough when displaying.
     
dukope
Fresh-Faced Recruit
Join Date: Jul 2001
Status: Offline
Reply With Quote
Aug 31, 2002, 07:51 PM
 
i realize this horse is dead, but here's a very simple version of the proof that's easy enough to write on a napkin when it's time to collect on your bet.

1/3 = .33333~
2/3 = .66666~
----------------- +
3/3 = .99999~
     
ego
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
Aug 31, 2002, 09:51 PM
 
Originally posted by dukope:
i realize this horse is dead, but here's a very simple version of the proof that's easy enough to write on a napkin when it's time to collect on your bet.

1/3 = .33333~
2/3 = .66666~
----------------- +
3/3 = .99999~
Sorry but this isn't a valid proof. You are using the relations "1/3=.333~" "2/3=.666~" as axioms, plus the fact that you can add two numbers expressed as infinite series.

This is an "ok" explanation for high-school level math. For anybody who had to study more advanced math, you'd have to prove your axioms. And really proving that "1/3=.333~" is equivalent to proving "1=.999~".

Here is the proof:
"1/3" is the limit of two rational series, one finite (1/3), the other infinite (0.3, 0.33, 0.333, ...). For all eps, there is an n, so that d(limit, xn) < eps, so both limits are the same real number.
     
TheMosco
Mac Elite
Join Date: Sep 2001
Location: MA, USA
Status: Offline
Reply With Quote
Aug 31, 2002, 10:03 PM
 
So has anyone reported this stuff to Apple?
     
Millennium
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Aug 31, 2002, 10:55 PM
 
Technically, 0.999999999999999 repeating is equal to 1. This can be proven using a field known as "Discrete Mathematics".

I can't prove it myself, unfortunately. I loathed my Discrete Mathematics courses in college. On one of the final exams, we had to mathematically prove that in any number divisible by 9, the sum of the digits would be divisible by 9. We also had to prove that the positive rational numbers were countable. Yes, this field of mathematics will screw up everything you've ever thought about counting, even.

In any case, however, this is an issue of rounding error. It comes from the nature of expressing floating-point numbers in a binary system, given a finite number of bits in which to do it. It really doesn't work too well. Your computer will compute the number only to a certain number of significant digits, and will then literally make the rest of the digits up. This is true for all processor architectures. Specific mathematics programs, such as Mathematica and bc (a command-line calculator with arbitrary precision), get around this in a wide variety of ways, but evidently the Calculator does not.

Does that make this bug acceptable? Heck no. Apple's sitting on a base of very good calculation code from bc, and they really ought to be using it for Calculator. But at least this should give you an idea of where the bug comes from.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
yukon
Mac Elite
Join Date: Oct 2000
Location: Amboy Navada, Canadia.
Status: Offline
Reply With Quote
Sep 1, 2002, 12:32 AM
 
i'll pay you 99.9999~� for every dollar I recieve from you.

thats either called a bad scheme, or really bad taxes...
[img]broken link[/img]
This insanity brought to you by:
The French CBC, driving antenna users mad since 1937.
     
MacOSR
Dedicated MacNNer
Join Date: Dec 1999
Location: Canton, OH
Status: Offline
Reply With Quote
Sep 1, 2002, 10:42 AM
 
Originally posted by brown monk:


Mathematics is the same everywhere. It's the language of nature remember .

Anyway, he is correct. 0.9999 (infinitely many 9's) does equal 1. I'm not sure how much math you know so I won't go into a proof of it. Any math major in college who has taken analysis can tell you this.
I AM a math major and no, 0.999.. != 1.000..

In calc 2,3 or 4 (don't remember which any more) we proved that 0 = 1 using mathmatics rules and priciples. Does this make it true? Nope. The purpose was to illustrate the fact that our hypothese's and principles aren't always perfect.

Regardless, this bug needs reported to Apple. Unless of course you believe that "technically" 0.999.. = 1.000..; Then there is no bug to report
     
Seb G
Forum Regular
Join Date: Mar 2002
Location: Düsseldorf, Germany, Europe, Earth
Status: Offline
Reply With Quote
Sep 1, 2002, 12:04 PM
 
Specific mathematics programs, such as Mathematica and bc [...] get around this in a wide variety of ways, but evidently the Calculator does not.
Like rounding rather than truncating what you've got. Takes maybe 5 minutes to implement.

My go at 0.9 recurring = 1:

Code:
n 0.99999 recurring = lim Sum 9*10^(-i) n -> infty i=1 and lim f(n) = a <=> for all e > 0 there exist an N n -> infty such that, for all n >= N, |f(n)-a| < e. Let f(n)=the sum above, a=1, and let e>0 be given. The set N to be the smallest integer bigger than -log(e) (where the log is to the base 10).
Anything missing here? Now, the new calculator displays 9.109999999999999 where it should display 9.11. By the usual rounding conventions, a number rounded to 9.109999999999999 is strictly less than 9.1099999999999995, so it is still a bug. There's no mathematical proof that shows 9.11 = 9.109999999999999, or that 9.11 < 9.1099999999999995.

I AM a math major and no, 0.999.. != 1.000..
Care to give a proof? Care to give your definition of 0.999..?
     
gorgonzola
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status: Offline
Reply With Quote
Sep 1, 2002, 12:18 PM
 
FWIW, the real numbers are defined as Cauchy series converging to specific values; you can't use the real number system without saying that 0.999... == 1 and the equivalent for the rest of them.

Also, the proof that JLL gave is perfectly valid:

x = .999...
10x = 9.999...

10x - x = 9x = 9
x = 1

And proving that 0 = 1 is a very famous fallacy, not a proof. Depending on which "proof" you were shown, the solution depends on the fact that you divide by zero at one point, which makes it invalid.

My 2�.
"Do not be too positive about things. You may be in error." (C. F. Lawlor, The Mixicologist)
     
whee
Fresh-Faced Recruit
Join Date: May 2002
Status: Offline
Reply With Quote
Sep 1, 2002, 12:24 PM
 
This is all standard behavior in any application that follows the IEEE standards for floating-point arithmetic. Getting the 'correct' result from a program following these standards might be a bit of a stretch.

If you'd like higher precision, I suggest using a program that utilizes an arbitrary precision system, such as calc.
     
ego
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
Sep 1, 2002, 03:08 PM
 
Originally posted by gorgonzola:

Also, the proof that JLL gave is perfectly valid:

x = .999...
10x = 9.999...

10x - x = 9x = 9
x = 1
My 2�.
It is only valid if you have previously proven that you can add two converging series, scale them by a factor and that applying the same operations on their limit will give you the limit of the new serie. Once you have done this, then sure, go ahead and manipulate them that way.

This is clearly relying on results a bit more advanced than simply relying on the defition of real numbers.

BTW .9999... is really a shortcut notation for lim(n->inf) 1-1/10^n .

So the proof above is:
x = lim 1-1/10^n
10x = 10 . lim 1-1/10^n
-> ability to scale a serie
10x = lim 10(1 - 1/10^n)
= lim (10 - 10/10^n) (9.999...)

abitlity to add/substract two converging series:
10x -x = lim (10 - 10/10^n - (1 - 1/10^n)
= lim (9 -9/10^n)
Again sustracting a constant (ie a converging serie) from the serie gives:
10x-x = 9 - lim(9/10^n)
or 9x = 9 - 0
or x = 1
so lim(1-1/10^n) = 1

Just this to show that the "proof" relies on properties that may seem obvious but aren't. Mathematical proofs that rely on "obviousness" are only acceptable when the "obvious" facts are well-known, proved theorems. Intuition doesn't make a proof.
     
ego
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
Sep 1, 2002, 03:19 PM
 
Originally posted by MacOSR:

I AM a math major and no, 0.999.. != 1.000..
Mmm, sorry MacOSR but you won't be making a career in Maths unless you can follow the proofs above.

0.999... = lim(1-1/10^n)
= lim(1)
= 1
= lim(1+1/10^n)
= 1.000...

I may be uncertain about my use of distances/topology in the first "proof" I offered. However reals as extension of rationals to the limits of convering series is basic knowledge for any college-level math student. The only "insight" is in recognizing that 0.999... is just a notation to express the limit of some infinite rational serie.

Does it show so much that my math training was heavily influenced by the Bourbaki movement :-) ?
     
ego
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
Sep 1, 2002, 03:51 PM
 
Originally posted by Millennium:
On one of the final exams, we had to mathematically prove that in any number divisible by 9, the sum of the digits would be divisible by 9.
Mmm, I knew how to prove this at some point :-(


We also had to prove that the positive rational numbers were countable. Yes, this field of mathematics will screw up everything you've ever thought about counting, even.
This one is easy. There is a trival injection N->Q+ (f1 : n -> n)
There is also an easy injection Q+->N
(f2: q -> 2^p*3^n (where p/n is the canonical representation of q) (any two numbers prime between themselves would do)

Since there is an inject Q->N and one N->Q, then there exists a bijection between Q+ and N.
So Q+ is countable. QED.

Note that you can use
f2-> 2^(s+1).3^p.5^n
to construct an injection Q->N (q=s.p/n, s=1/-1). So Q is countable also.
     
Morpheus
Forum Regular
Join Date: Jun 2002
Status: Offline
Reply With Quote
Sep 2, 2002, 03:51 AM
 
Originally posted by Millennium:
On one of the final exams, we had to mathematically prove that in any number divisible by 9, the sum of the digits would be divisible by 9.
Proof by induction:

9 has the property, so everything is ok.

if n is divisible by 9 and has the property, then n+9 has it too (3 cases):
(1) If the last digit of n is 0, when adding 9, it becomes 9 so the property is there.

Be n_1 the last digit of n, n_2 the second but last etc.

(2) If n_1 is not 0 and n_2 is not 9, when adding 9, n_1 goes to n_1 -1 and n_2 goes to n_2 +1. So we're set.

(3) If n_1 is not 0 and n_2=...=n_k= 9, these digits become 0 and n_(k+1) becomes n_(k+1)+1 and n_1 goes to n_1 -1 and we're done.

Example: 61899993 + 9 = 61900002

(BTW this and the "Q ist countable" problem have nothing to do with 0.9999..=1)
     
Brazuca
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Sep 2, 2002, 12:37 PM
 
You guys remind me of why I like math.

Have you all discovered TeX yet? and Equation Editor? You could all be writing your proofs and posting them as a small pdf (the size of your equation) which makes them a lot easier to see.

http://www.esm.psu.edu/mac-tex/
"It's about time trees did something good insted of just standing there LIKE JERKS!" :)
     
Seb G
Forum Regular
Join Date: Mar 2002
Location: Düsseldorf, Germany, Europe, Earth
Status: Offline
Reply With Quote
Sep 2, 2002, 01:16 PM
 
Brazuka, here you go:

\[0.99999\dots = \lim_{n\rightarrow \infty} \left(\sum_{i=1}^{n} 9 \times 10^{-i}\right)\] and \begin{eqnarray*} \lim_{n\rightarrow \infty} f(n) = a & \iff & \mbox{for all }\epsilon > 0 \mbox{ there exist an } N \in \mathbb{Z}\\ & & \mbox{such that, for all } n \geq N, |f(n)-a| < \epsilon. \end{eqnarray*} Let $f(n) = \sum_{i=1}^{n} 9 \times 10^{-i}$, $a=1$, and let $\epsilon>0$ be given. Set $N = \lceil -\log_{10}(\epsilon) \rceil$.

OR



Happy?
( Last edited by Seb G; Sep 2, 2002 at 01:23 PM. )
     
Ghoser777
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Sep 2, 2002, 01:59 PM
 
I wrote an app called MathRPN and it has the same problem... stupid IEEE. Essentially, to fix the problem you have write all your own addition, subtraction, multiplication, division and create your one number class blah blah blah. Aka, it's a pain. It's much easier to just do built in math (aka num1 + num2), and I'm betting apple developers aren't going to be missing much sleep over something as simple as a round off error. Should they fix it? Probably. Is it a big issue? Nah.

4^(0.5) == 2 on my machine (G3), don't know how you got 1.

And yes, as a math major, I can verify that 0.9999... = 1. I believe in one of my class a while back we proved that every number has one decimal form except for those ending in repeating 9's, in which case there are two forms. We used the simple argument of 10x = 9.9999... as stated above, but of course we proved that these types of operations on infinite sums was valid first.

Matt Fahrenbacher
     
 
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 08:12 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,