kottke.org home archives + xml about kottke.org contact me
kottke.org - home of fine hypertext products

Fun with the Google calculator

Instead of replying to my endless queue of unanswered email, I spent some time last night playing with Google's newest toy, the Google Calculator. Maybe if people would email back solutions to arithmetic problems included in my email replies to them I would more readily respond to my backlog. But I digress.

After verifying that 2+2=4 (contrary to popular belief), I tried to figure out the largest difference between the smallest and largest units of measurement on a given scale, finally ending up with ~3.08 x 10^26 angstroms in a parsec (26 orders of magnitude difference). If you delve into the world of obscure metric prefixes, you can get up to 64 orders of magnitude difference....there are ~3.08 x 10^64 yoctometers in a yottaparsec. If you want to get really ridiculous, you can find out how many yoctometers there are in one vigintillion parsecs (~3.08 x 10^103 if you're curious).

That got me thinking...what's the limit of the Google Calculator's computational ability? 170! (170! = 1*2*3*4* ... *168*169*170) is equal to ~7.26 x 10^306, but 171! doesn't work. 2^1023 = ~8.99 x 10^307, but 2^1024 doesn't work. After some trial and error, the upper limit of the calculator is ~1.797 × 10^308...or basically anything less than 2^1024. My binary math is a little rusty, but that limit seems to correspond to 32-bit double precision real arithmetic. Which makes sense, but it would have been more fun if the limit would have been a googol (1.0 x 10^100). (Regarding other large numbers, neither googolplex nor infinity return calculator results.)

In addition to playing with big numbers, the calculator can help you finally figure out the number of drams in a pennyweight (~0.878 drams/pennyweight), rods in a fathom (~0.364 rods/fathom), or the speed of light in knots (582,749,918 knots)...but unfortunately not the mileage of your automobile in rods/hogshead.

Andy's got some more calculator fun going.

Reader Comments
39 comments
megnut says:

Nerd!!

» by megnut on Aug 14, 2003 at 01:57 PM
Matt Haughey says:

That's a yottaparsecs!

» by Matt Haughey on Aug 14, 2003 at 02:03 PM
soulonice says:

A bigger geek, I have not seen.

» by soulonice on Aug 14, 2003 at 02:32 PM
jazer says:

And isn't it lovely?

» by jazer on Aug 14, 2003 at 03:09 PM
eliot says:

Wow, thanks for the hint at the new feature. I love the way you can use words to do conversions ("two kilometers in miles") or simply type in a little string of an equation. Google is now smarter than my Ti-92!

» by eliot on Aug 14, 2003 at 03:14 PM
Larry says:

Darn, it won't let me divide by zero ... ;-)
but it does know a bit about imaginary numbers

» by Larry on Aug 14, 2003 at 03:21 PM
Bill Zeller says:

You can also do base conversions

45 to binary
0xFF to decimal
2345 to hex
0b010101 to octal

» by Bill Zeller on Aug 14, 2003 at 03:47 PM
Todd says:

But it doesn't know how many licks to the center of a tootsie pop...

» by Todd on Aug 14, 2003 at 03:49 PM
Brandon D. Valentine says:

You can't go wrong with Arie's Metricifier. Want to know how many stones are in a decajoule? How many kilopascals in a foot? Centipedes in a pound? This tool has your answer. The conversions are even consistent in both directions.

» by Brandon D. Valentine on Aug 14, 2003 at 04:05 PM
Jason Wall says:

way high nerd quotient...

» by Jason Wall on Aug 14, 2003 at 04:36 PM
Jason R. says:

Bonus points if people know why 2 + 2 = 5. I'm a little surprised Mr.Kottke didn't bring it up. It is, of course, George Orwell's 1984 that explains why 2 + 2 = 5. Put that through your google calculator ;) You have to love dystopian values.

» by Jason R. on Aug 14, 2003 at 04:53 PM
matt says:

wait...explain the 2+2=4 thing again.

» by matt on Aug 14, 2003 at 10:20 PM
GWing_02 says:

Well, in George Orwell's book 1984, when the protagonist meets the enemy, the enemy makes him believe that 2+2=5 through torture. Read the book, it's really good.

» by GWing_02 on Aug 15, 2003 at 01:25 AM
GWing_02 says:

Heh, it further seems that Google isn't very good at handling long queries...

As can be seen here.

» by GWing_02 on Aug 15, 2003 at 01:29 AM
jesse says:

i didn't understand one word of that post.

» by jesse on Aug 15, 2003 at 03:10 AM
Martin says:

I think for the first time in two years, The Copydesk posted about this before Jason.

Yeay.

» by Martin on Aug 15, 2003 at 04:18 AM
11220 says:

In answer to your query:

"wood a woodchuck could chuck if a woodchuck could chuck wood"

Google's new calculator may be no use but fear not, here's your answer:

minimum velocity required to chuck a piece of wood 1m :
s=ut+0.5at2

max efficiency at 45 degrees

(1,0)=(2-0.5)(V,V)+0.5(0,-9.8)(t2);

(2-0.5)=V=0.707

so E=1/2mv2 ...looking for m

2.97*1017=.5*m*(0.7072)

roughly 1018 kg of wood could potentially be chucked by a woodchuck operating at maximum efficiency (this is only an approximate maximum limit).


More on this here via here.

» by 11220 on Aug 15, 2003 at 04:30 AM
Nick says:

Fascinating. If you really want to go nuts with obscure units of measurement, this page will give you hours of fun: http://www.convert-me.com/en/

How many Monnnes in a Ku Ping? Answer - 9.95

» by Nick on Aug 15, 2003 at 04:40 AM
M4thB0y says:

You'll have a hard time figuring this out on your own.

pi*e pi e*pi e pi*e pi e*((
twenty three stone knots and
two billion smoot grains and
three thousand eight hundred
and seventy nine slug feet)
pi per carat yards)
per c*cubits per week

It's the link on my name (for now).

» by M4thB0y on Aug 15, 2003 at 11:15 AM
M4thB0y says:

Two BILLION Smoot Grains!

That's the link again, the one on my name got chopped off.

» by M4thB0y on Aug 15, 2003 at 11:18 AM
Brandon D. Valentine says:

If you enter 2318008 into the Google Calculator and then turn it upside down you get boobies. Also try 3704558 31104. This was the original text messaging, sucka.

» by Brandon D. Valentine on Aug 15, 2003 at 11:19 AM
joe says:
» by joe on Aug 15, 2003 at 02:40 PM
Edward Vielmetti says:

It does the classic engineering fortran problem, computing furlongs per fortnight, just fine.

» by Edward Vielmetti on Aug 15, 2003 at 02:41 PM
Avitus says:

It can do e^((pi)*i)+1. So cool.

» by Avitus on Aug 15, 2003 at 03:37 PM
The Observationist says:

I often wonder why some programs are written... and it is a post like this that makes me understand...

» by The Observationist on Aug 15, 2003 at 03:53 PM
Scott B says:

Neat. It knows the answer to i^i not only exists, but it is even real. (That number is e^(-pi/2), BTW).

» by Scott B on Aug 15, 2003 at 05:10 PM
Micah says:

It doesn't recognize Libraries of Congress as a unit of storage? Outrageous. Furlongs per fortnight is impressive, though, as is the complex math.

» by Micah on Aug 15, 2003 at 08:38 PM
Natch Howdy says:

Hmm, calculator suddenly is no longer working for me at all.

Can anyone else report that it still works?

Maybe a temporary glitch.

» by Natch Howdy on Aug 15, 2003 at 10:53 PM
Natch Howdy says:

Here's a bug:

10^100 + 1 returns 10^100.

At first I thought, oh, they set a hard limit at one googol. But no:

10^100 - 1 also returns 10^100, while 10^100 + 10^100 gives the correct answer, 10^200.

» by Natch Howdy on Aug 15, 2003 at 10:58 PM
Natch Howdy says:

And now it's working again! It went away for a few minutes. That was strange.

» by Natch Howdy on Aug 15, 2003 at 11:00 PM
Natch Howdy says:

Oops, I meant to say: 10^100 + 10^100 gives the correct answer, 2 * 10^100.

» by Natch Howdy on Aug 15, 2003 at 11:01 PM
kavi says:

in light of the 2+2=5 comment, i've decided to reread my copy of 1984...for like the 5th time haha.

» by kavi on Aug 15, 2003 at 11:04 PM
Tim says:

It seems to have stopped working for me. I went to show someone and it just returned actual search results instead of the answer. Anyone else having trouble?

» by Tim on Aug 16, 2003 at 12:33 AM
Jesse Ruderman says:

Natch Howdy: Try 10^100 + 10^95, and try 10^100 + 10^50. Google Calculator has a limit on how many digits it computes with or how many digits it outputs (probably both), which is a reasonable thing to do. If you use floating-point or "real" arithmetic in most programming languages, you'll get a similar result.

» by Jesse Ruderman on Aug 16, 2003 at 05:31 AM
Natch Howdy says:

Yep Jesse Ruderman, I was just surprised that they handled one nicely (10^100 + 10^100) but not the others.

They could just bail on these and show search results, just as they do on other queries they can't handle. They could use the perl BigNum module to get at higher values. They are a Python shop; there's probably something similar for Python. Well I'm not complaining; it's just fun to find quirks and bugs.

Try this one: how many femtoseconds in a millenium?

BTW for others who've posted their email address here, this site is getting scraped by spammers. I got spam on this kottke-specific address within 24 hours of posting: 1) nigerian scam; 2) domain names for sale; 3) africans looking for gold-related business partner scam. Just a plug from a happy user: use spamgourmet.com to prevent spam problems!

» by Natch Howdy on Aug 17, 2003 at 02:21 PM
Natch Howdy says:

Hmm, attoseconds is an even smaller unit than femtoseconds.

Google will even answer: how many minutes in a sidereal day?

Nice. Not that I'll ever need to know that, but nice to know it's there :-).

» by Natch Howdy on Aug 17, 2003 at 02:25 PM
Brad C Tennant says:

Here's another take on the 2 + 2 issue; http://www.thinkgeek.com/tshirts/coder/60f5/

» by Brad C Tennant on Aug 21, 2003 at 05:37 PM
mark says:

not sure if anyone is really still interested, but a list of things google recognizes is being compiled here

» by mark on Aug 21, 2003 at 08:35 PM
Kevin says:

I posted about this on the 13th, but what he doesn't mention here are the Google boxers!

» by Kevin on Aug 22, 2003 at 03:09 PM

 
This thread is closed to new comments. Thanks to everyone who responded.

More about this page

This entry was published on August 14, 2003 at 01:22 pm.

kottke.org is a weblog about the liberal arts 2.0 edited by Jason Kottke since March 1998. You can read about me and kottke.org here. If you've got questions, concerns, or an interesting link for me, send them along. Here's the kottke.org RSS feed kottke.org RSS feed.

Advertisement

dot dot dot

Advertise on kottke.org via The Deck.

Looking for work? Tags, tags, tags!

Many posts on kottke.org have been "tagged" with keywords, which activity results in collections of related posts like sports, infoviz, or bestof.

Recently popular tags (last 3 weeks)

2008election   barackobama   politics   video   photography   movies   design   maps   food   nyc   books   music   sports   infoviz   remix

All-time popular tags

movies   photography   books   nyc   science   food   lists   design   business   sports   video   weblogs   music   bestof   art

Some of my favorite tags

photography   economics   lists   bestof   infoviz   food   nyc   firstworldproblems   cities   restaurants   video   timelapse   interviews   language   maps   fashion   nsfw   remix  

Random tags

sunshine   prison   cities   barcade   marypoppins   lifeafterpeople   realestate   cars   fundraising   hosseinderakhshan   fridakahlo   sony   pentagram   movies   im

kottke.org

You're visiting kottke.org. All content by Jason Kottke (contact me) unless otherwise noted, with some restrictions on its use. Good luck will come to those who dig around in the archives. If you've reached this point by accident, I suggest panic. In memory of DFW, rest in peace. Thanks for everything.