Ge64
Former Admin ;)
Posts: 3,163.4170 Threads: 295
Joined: 3rd Feb 2007
Reputation: 0.38918
E-Pigs: 108.4795
|
Calculators don't lie....or do they?
To understand this post you need a certain amount of maths knowledge and/or a TI84+ calculator. I'd recommend both.
The complex number i is defined as the square root of (-1).
When you raise i to powers, there is a pattern:
i^0 = 1
i^1 = √-1
i^2 = -1
i^3 = -1√-1
i^4 = 1
i^5 = √-1
i^6 = -1
i^7 = -1√-1
i^8 = 1
i^9 = √-1
i^10 = -1
i^11 = -1√-1
i^12 = 1
etc.
As you can see and calculate, any power of i that is a multiple of four is 1, because any even power eliminates the complex part and -1 * -1 = 1.
However, on the TI83/84, try typing i^4. Good. Now try i^8. Lolwut??? Same goes for i^12.
Lets do it by hand:
i^8 = i^(2^4)
i ^ 2 = √-1 * √-1 = -1
(-1)^4 (even on your calculator) = 1. So why isn't it one on the TI??
Another lie:
Take a very small number, e.g. 0.0000000000001 (1x10^-13)
Type it into your calc. It'll probably say either the same number again or 1E-13, which is the same but in scientific notation.
Now let's just get one very simple thing straight. Imagine any number x. Add one to get x + 1. Now substract one. You get x, right? So x + 1 - 1 = x, yeah? That's so simple, its unbelievable a calculator can't even do it! Try this: type 0.0000000000001 + 1 - 1.
Now you will never trust your calculator again.
![[Image: ub1985584.jpg]](http://archive.userbars.com/ub1985584.jpg)
(This post was last modified: 28/11/2007 08:54 PM by Ge64.)
|
|
28/11/2007 08:51 PM |
|
UncertainGod
Illogical mindfuckery
Posts: 1,492.4476 Threads: 88
Joined: 16th Aug 2007
Reputation: -8.70083
E-Pigs: 7.1412
|
RE: Calculators don't lie....or do they?
|
|
28/11/2007 09:03 PM |
|
Eaglejack
Master of the Mach 5
Posts: 64.3200 Threads: 7
Joined: 24th Sep 2007
Reputation: 4.649
E-Pigs: 2.2000
|
RE: Calculators don't lie....or do they?
1+1= " I hope future super computers don't have a hard time with this one"
|
|
28/11/2007 09:28 PM |
|
diego
poof
Posts: 7,826.1659 Threads: 264
Joined: 22nd Jun 2007
Reputation: 1.80067
E-Pigs: 37.4012
|
RE: Calculators don't lie....or do they?
|
|
29/11/2007 02:24 AM |
|
ZiNgA BuRgA
Smart Alternative
Posts: 17,024.1882 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1887
|
RE: Calculators don't lie....or do they?
UncertainGod Wrote:Calculators For the loss
Even things like M$ Excel cannot add up 77.1*850
O_o
Though the other things is probably due to floating point notation. It's known that a computer will "round" a very precise decimal to the nearest floating point representation, ie, to a computer (using single/double precision floating point) 0.999999999999999999999 = 1.
|
|
29/11/2007 05:41 AM |
|
|-Anubis-|
<3 Girls
Posts: 1,241.1884 Threads: 45
Joined: 12th Feb 2007
Reputation: -2.28734
E-Pigs: 26.8142
|
RE: Calculators don't lie....or do they?
Looks like its back to the abacus...
|
|
29/11/2007 07:27 PM |
|
Ge64
Former Admin ;)
Posts: 3,163.4170 Threads: 295
Joined: 3rd Feb 2007
Reputation: 0.38918
E-Pigs: 108.4795
|
RE: Calculators don't lie....or do they?
ZiNgA BuRgA Wrote:UncertainGod Wrote:Calculators For the loss
Even things like M$ Excel cannot add up 77.1*850
O_o
Though the other things is probably due to floating point notation. It's known that a computer will "round" a very precise decimal to the nearest floating point representation, ie, to a computer (using single/double precision floating point) 0.999999999999999999999 = 1.
according to my source for the second part (the first part i found out myself), the ti supports up to 14 decimal places. so 0.0000000000002 / 2 does amount to 0.0000000000001 but if you add and substract a large number, then it will set it to 0 incorrectly. this is to prevent calculations with fractions to get answers like 3.000000000000001 when its actually 3 in real life, so basicly ye its a flaw in the calculator, not a rounding error.
|
|
30/11/2007 01:16 AM |
|
ZiNgA BuRgA
Smart Alternative
Posts: 17,024.1882 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1887
|
RE: Calculators don't lie....or do they?
Ge64 Wrote:according to my source for the second part (the first part i found out myself), the ti supports up to 14 decimal places.
"Support" doesn't necessarily mean accurate - If I recall correctly, double precision floating points can "support" up to around a few hundred decimal places - obviously, an 8 byte number can't represent all those accurately..
Ge64 Wrote:so 0.0000000000002 / 2 does amount to 0.0000000000001
0.0000000000002 can be fully represented in single precision floating point:
0.0000000000002 = 0x2A612E13
See if you get the expected result if you do this:
0.9999999999 / 2 = ???
Ge64 Wrote:but if you add and substract a large number, then it will set it to 0 incorrectly. this is to prevent calculations with fractions to get answers like 3.000000000000001 when its actually 3 in real life, so basicly ye its a flaw in the calculator, not a rounding error.
It's because there is no representation for 3.000000000000001 in single or double precision floating point - the closest thing there is to 3.000000000000001 is 3.
|
|
30/11/2007 08:40 PM |
|