Windows Calculator

Logic Level 1

I tried to find the value of ( 4 2 ) (\sqrt 4 - 2) in my Windows calculator, and concluded that 4 < 4 4 < 4 . In which of these steps did I make a flaw in my logic?

Step 1 : The windows calculator evaluates that 4 2 = 1.068281969439142 × 1 0 19 \sqrt{4} - 2 = -1.068281969439142 \times 10^{-19} which is less than 0 0 . So we can conclude that:

4 2 < 0. \sqrt4 - 2 < 0 .

Step 2 : Add 2 2 to both sides of the inequality to obtain:

4 < 2. \sqrt{4} < 2 .

Step 3 : Since both terms are positive, we can square both sides to obtain:

4 < 4 4 < 4

In which of these step did I make a flaw in my logic?

Step 3 None of these choices Step 1 Step 2

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Rishabh Tripathi
Apr 19, 2015

My windows calculator was giving the value as

4 2 = 8.1648465955514287168521180122928 × 1 0 39 \sqrt4-2 = -8.1648465955514287168521180122928 \times 10^{-39}

I don't get how this value is coming

But, on putting -

4 2 = 8.1648465955514287168521180122928 × 1 0 39 \sqrt4-2 = -8.1648465955514287168521180122928 \times 10^{-39}

4 = 2 + ( 8.1648465955514287168521180122928 × 1 0 39 \sqrt4 = 2+(-8.1648465955514287168521180122928 \times 10^{-39}

4 = 2 \sqrt4 = 2 (It is the value given by calculator.)

So, 4 = 4 4=4

It's how computers calculate. They calculate in binary and they're using special algorithms for caclulating. So you get something very, very close to 0, but not exactly 0.

Thus, Step 1 is wrong. You can't assume a calculator always gives the exactly value of an expression.

I just don't understand why this problem's an Algebra problem. It should be a problem of computer science.

Patrick Engelmann - 6 years, 1 month ago

Log in to reply

Thanks, I've edited this to CompSci

Agnishom Chattopadhyay - 6 years, 1 month ago

Log in to reply

Thank you.

Chung Kevin - 6 years, 1 month ago

Log in to reply

@Chung Kevin Bro Might ur answer is right but Step 3 is always wrong... Squaring the numbers... l

Jagdeep Singh - 5 years, 5 months ago

but how can it be.. that this happens only when x x \sqrt x -x type of expression is input ?

Rishabh Tripathi - 6 years, 1 month ago

Log in to reply

Computers represent integers exactly, but they cannot represent all floating-point numbers exactly. x \sqrt x is computed numerically as a floating-point number. So, the result of x x \sqrt x - x is a floating-point number.

Note that it does not only happen with x \sqrt x . For example, sin ( 90 ) 1 \sin(90) - 1 and log ( 10 ) 1 \log(10) - 1 are also computed inexactly.

Dan Wilhelm - 5 years, 11 months ago

Right! The problem is flot number.

Daniel Ikenaga - 6 years, 1 month ago

Symbolic computation done by Google or Wolfram Alpha gives you the right answer, zero.

Manjunath Sreedaran - 5 years, 5 months ago

I disagree that step 1 is a logical fallacy. It's earlier than that; it's a problem with the calculator. If the calculator was giving a correct output, then step 1 would be an entirely logical deduction. This is why I answered 'None of these choices'. Apparently my answer is wrong. I don't think so. Consider if the mathematician had completed an identical argument by calculating sqrt(3) - 2. The argument would be entirely valid, including step 1. It's what happens before step 1 that is invalid.

Martin Gibbs - 6 years, 1 month ago

Log in to reply

I'm with you, deriving from the axiom that the numerical bug in the windows calculator is right, everything is pretty logical, and like those here said, float point calculation is not exactly precise.

Jean Jordanou - 4 years, 7 months ago

Either way, you can still know that
1. 4 = ± 2 \sqrt{4} = \pm 2 , not 2
2. 4 2 = 0 |\sqrt{4}| - 2 = 0 .
Ergo, this step is wrong, regardless of the medium of calculation.

Eric Pozzobon - 6 years, 1 month ago

Log in to reply

Sqrt of any number is always positive.

Anirudh Roy - 6 years ago

Rightly said and I also marked Step 3 thinking the same

Jagdeep Singh - 5 years, 5 months ago

Sqrt of any real number is positive

Henry Tran - 5 years, 5 months ago

That did not format well! Do you want to try again Eric?

Martin Gibbs - 6 years, 1 month ago

Log in to reply

@Martin Gibbs OK, looking at the Latex formatting, I'm guessing you're trying to say that the square root symbol means plus or minus the square root. No, it doesn't. The square root sign applied to positive real numbers means the principal square root, i.e. the positive one. I'll try to use Latex formatting to demonstrate what I mean, but I've never used it before.

Martin Gibbs - 6 years, 1 month ago

Log in to reply

@Martin Gibbs 4 = 2 \sqrt{4} = 2
± 4 = ± 2 \pm \sqrt{4} = \pm 2
4 2 \sqrt{4} \neq - 2

Martin Gibbs - 6 years, 1 month ago

Log in to reply

@Martin Gibbs Well, the formatting isn't working at all. Experienced users, is this because I need to install some extension for my browser or something? Or is it because we're doing it wrong? Rishabh's solution at the top displays fine, but Eric and my posts look awful. Are they displaying for other people?

Martin Gibbs - 6 years, 1 month ago

Log in to reply

@Martin Gibbs Anyway, the third paragraph of this: http://en.wikipedia.org/wiki/Square_root and this http://mathworld.wolfram.com/SquareRoot.html refute what I think you're saying Eric.

Martin Gibbs - 6 years, 1 month ago

This is not a very good problem. I do not understand why it was posted.

Colin Carmody - 6 years, 1 month ago

Log in to reply

I think it proved to be somewhat useful 'cause I didn't even know that this happens in windows calculator and many others would have also not known.

Rishabh Tripathi - 6 years, 1 month ago

Log in to reply

I would understand if it was posted as a note, but not a problem.

Colin Carmody - 6 years, 1 month ago

Log in to reply

@Colin Carmody yeah.. that could have been done. Anyway I got something new and that's what I need. :)

Rishabh Tripathi - 6 years, 1 month ago

@Colin Carmody If it isn't a very good logic question, then why have only 44% gotten it right? This is a great troubleshooting question. And good for teaching not to simply accept the data as presented

Christopher Giddens - 6 years, 1 month ago

Log in to reply

@Christopher Giddens Probably because they thought it was a trick question, but it wasn't. It is my opinion that it is not a good problem, but if you beg to differ, I will not argue.

Colin Carmody - 6 years, 1 month ago

@Christopher Giddens Some of us disagree with the 'correct' answer. See my earlier post.

Martin Gibbs - 6 years, 1 month ago

Agreed. This is CompSci, not Maths.

Star Light - 6 years, 1 month ago
Ian Myers
May 4, 2015

How to replicate this behavior:

a) Press 4 then √ then - then 2. Enter.

b) Press 4 then √ then -. Enter.

I am not sure what is going on here. My guess is that it's a bug.

Interesting bug. The computer thinks that the square root of 4 is 2 in the second problem, thus the answer is 2-2 or 0

Travis Terwillegar - 6 years ago

Log in to reply

I agree. 2-2=0 is utter nonsense.

Ian Myers - 6 years ago

Sqrt(4) = 2; thus 2-2 should be 0.

The answer to Sqrt(4) - 2 according to Excel is 0.

Oliver Daniel - 6 years, 1 month ago

Log in to reply

The value would greatly depend on which calculator you are using, and the degree of accuracy that you put it in.

Chung Kevin - 6 years, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...