October 21, 2008

Geek entry of the day

Another from the PG archives because I've got nuthin' today. As for those of you who think that that makes this day no different from any other, well, you have a point.
============================================

Have you ever been caught off guard when someone walks up to you and asks, "What's the square root of X?" Me, too. Usually, I can remember approximations for most square roots up through, uh, maybe I won't finish that statement. Anyway, sometimes the numbers are just too damn big or I need more digits after the decimal place than I can comfortably work out. It's times like that when you really need Newton's formula:

Newtons sqrt.jpg

b represents the number for which you're seeking the square root and x is your first guess. Wanna see how it all works? Of course you do! Observe:

Let's say that you need the square root of 13 and we want to be within 0.00001 of the actual value. For simplicity, we'll make x the same as b, the number we're taking the square root of.

Iterations
-----------
x=13, b=13
NewX=7, difference is 6

x=7, b=13
NewX=4.428571, difference is 2.571429

x=4.428571,b=13
NewX=3.682028, difference is 0.746544

x=3.682028, b=13
NewX=3.606345, difference is 0.075682

x=3.606345, b=13
NewX=3.6055514, difference is 0.000794

x=3.6055514,b=13
NewX=3.605551, difference <0.000001

There you have it: the square root of 13 is approximately 3.605551.

I feel better already.

Posted by: Physics Geek at 08:44 AM | No Comments | Add Comment
Post contains 235 words, total size 2 kb.

Wanna see something really geeky?

Via Jonah comes this video of claymation style Battle Chess. I've embedded the video below the fold to prevent your browser from hanging.

more...

Posted by: Physics Geek at 08:10 AM | No Comments | Add Comment
Post contains 33 words, total size 1 kb.

<< Page 1 of 1 >>
16kb generated in CPU 0.05, elapsed 0.1581 seconds.
87 queries taking 0.1374 seconds, 197 records returned.
Powered by Minx 1.1.6c-pink.