Any continuous function can be described as a sum of sinus-functions with different amplitude and frequencies, given that the maximum frequency is limited. Finding these amplitudes can be done quite easily using something called discrete fourier transform. A lot of audio and imaging technology is based on this theory, jpeg compression for example, and almost any audio and signal-processing.
The downside is that very few mathematically interesting functions have limited frequency. While this is not a problem for signal processing, as our senses usually cannot sense the difference, in math it's very easy to see the difference even if you cut off at really high frequencies: http://upload.wikimedia.org/wikipedia/commons/d/d4/Synthesis...
In other words, if one tried to do the Batman curve using Fourier transform, the formula to get sub-pixel consistency would be extremely long.
This is easily solved in practice by segmentation. Images are segmented in blocks, and each small block can be well approximated by a low frequency content, but block boundaries can contain discontinuities. If you look at the wolfram alpha source, that's exactly how those images are constructed -- they are combinations low frequency segments, most likely obtained through fourier analysis.
Another trick used in frequency domain compression is they don't impose a hard cut-off of frequencies (truncation); instead they specify weights according to image quality, and lower are assigned to high frequencies, and those weights control the precision of each frequency.
All this works because real signals happen to be concentrated in certain frequencies, with a few discontinuities in between.
You don't need to do fourier transforms to do this. You can do it yourself and it is quite fun actually. It has been 13 years since I last did it but here is how you start:
1. Have a set of interesting graphs. sin(x), tan(x), log(x), e^x, 1/x, polynomials, hyperbola, sqrt(x)
2. Learn the effects of replacing x with f(x) -> sin(f(x)), log(f(x)), e^f(x). This is IMHO the most fun part. How will sin(1/x) look like? How will log(mod(sqrt(x))) look like?
3. Have a set of 'tricks'. What is the difference between sin(x) and sin(x) - A (ans. it moves the whole graph downward on y-scale). How to create mirror? (ans. take modulus). How to enlarge a graph? (ans. multiply with a constant).
Not sure exactly how it works but if you disconnect from the internet you can still change the x and y ranges and have it redraw so the render is client side.
I poked the link on my phone and just got search results (safari). Same thing in mobile chrome even after "request the desktop site". It wasn't until I got to work and saw all of the comments that I figured out what was going on.
If any Googler is around, it would be nice if one could do 4d representations as well. (As in 3d that evolves in time, with a slider to go back and forth in time.)
I don't see it that way. To me, this usage of sharing a math graph is just a Schelling Point.[1]
Twenty years ago, residents had these huge paper phone books. It had the yellow pages listing businesses (the pre-internet version of Yahoo! directory pages). It also had blue pages in the front with all kinds of information: time-of-day phone number, first aid instructions for choking or ingesting poison (along with phone# for poison control center). In Florida, it also had maps with emergency evacuation routes in case of a hurricane. When the phone books expired at the end of the year, they could be repurposed as cheap door stops or booster chairs to feed toddlers. The phone books were something universal that everybody had shared knowledge about. Maybe it seemed like the phone company had a monopoly on disseminating non-phone related information but those books were yesterday's Schelling Point. Society has moved away from them.
I think this method of sharing a url from google is another harmless Schelling Point but I can be convinced otherwise. Monetizing people's curiosity about "x sin(y)" doesn't seem to be much of a threat. Wikipedia and Youtube are other Schelling Points. If I'm curious about an obscure music track; I just go to youtube.com because I'm conditioned to think that somebody somewhere already uploaded it.
Not sure what people expect the alternative should be. Should users who want to share graphs alternate URLs between google.com and wolframalpha.com?[1]
To me, the real threat from Google Inc isn't the Shelling Point aspect but the mountains of behavioral data they collect on users from search + Android location data + Gmail that can be used against them. The data can be misused to discriminate employment to job seekers or deny health insurance for the sick. Google says they don't want to be evil but the temptation to monetize that valuable data seems impossible to resist.
I think it is okay for Google to send you that one answer so that you no longer need to do anymore searching. They scour the web and extract the simple answers that you require. (Google Customer Service: Did you find what you were looking for?) YES!
There are other websites that do this as well, and do it better, but they should be leaping to more complicated stuff once they have "plucked the low hanging fruits" for the establishment of their services.
This is the kind of democratization of knowledge and resource that the open web is all about.
While I share your sentiment, I just finished Randall Stross's Planet Google: One Company's Audacious Plan To Organize Everything We Know, which I found outside Strand Books in NYC.
One of the things I learned from the book, published in 2008, is that Google is a company with a [long view][1], which is a very good thing. We need more companies with long-term views to better our chances of survival as a species.
From the [Longnow Foundation's about page][2], parentheses mine:
> The term (Longnow) was coined by one of our founding board members, Brian Eno. Upon moving to New York City, Brian found that "here" and "now" meant "this room" and "this five minutes" as opposed to the larger here and longer now that he was used to in England. We have since adopted the term as the title of our foundation as we try to stretch out what people consider as now.
Assume that all information that exists at t = 0 shares more similarity with other information at t = 0, than information at t = other. Then all information that exists in the present observation has a uniform probability of being correct, without having to verify the correctness of the information.
Assume that information is deterministic - in that information has a limit of what it is capable of expressing given enough time.
Assume that information taken at t = 0 and information taken at t = n and t = -n shares similar degrees of complexity, transformation, simplification, mechanical operation. All information moves uniformly.
There are lots of things that already exist in culture that present themselves as fact or truth, when there really isn't any reason to have initialized yourself on agreement when you were first taught it, aside from cultural and societal pressure.
I don't like google, but what google is doing is no different than what anything else does when it creates, alters, and destroys information. The localization of the information doesn't matter, as the transformational functions applied to the information can be universal, random, and chaotic.
In simpler terms, someone at google may implement one way to think, which spreads virally across an entire population, but they may have learned that one way to think from something they learned isolated from civilization on top of a mountain. And they may change it tomorrow, because something seemingly trivial changed, like someone's tone of voice in an otherwise predictable meeting that occurs every Thursday at 2:15 pm. In retrospect, it's still ambiguous as to what has significance and what does not. Patterns are no different from chaos from an objective perspective.
Google is a collection of links to the rest of the internet. Popularity and accuracy determine what is shown in the results. It's an aggregate of information and not company-selected&approved information.
If it was the latter, I'd have a larger problem with it.
This is kind of unrelated, but when you grab the graph with your mouse and make circles, the whole graph rotates along the line of sight axis. I've noticed this with many 3d things. Why is that?
It's easier to understand if you take the motion of a circle to the extreme: Rotate the graph 90 degrees to the right, then any amount up or down, then 90 degrees back to the left. By rotating 90 degrees first, you changed the axis of the second rotation to be the plane normal (perpendicular) to the view axis, i.e. the view axis itself. If you instead drag in smaller circles, then each rotation only contains a small component of rotating that plane so the rotation is slower.
Thanks for sharing this. Every single day I convince myself that I am not wasting my time by going on HN and posts like these are the reason I find something useful and meaningful. This is something I can share with my 9 year old son who is showing keen interest in Maths. Though the stuff presented here is still pretty advanced for him to grasp, but sharing this will help him immensely to keep pursuing his mathematical interest.
Note that the search is not even an "equation" (that would be z = x*sin(y) ).
Google always graphed equations -- I often use a google tab like a nice low-memory-footprint version of MATLAB basically -- but I didn't know it assumed the third axis when you created a non-linear expression and made it an equation.