December 5, 2011

Google's Graphing Calculator

Now you no longer need to use Wolfram Alpha to plot Math graphs. Google shows an interactive graph when you search for a Math function or a list of functions separated by commas. "You can zoom in and out and pan across the plane to explore the function in more detail. This feature covers an extensive range of single variable functions including trigonometric, exponential, logarithmic and their compositions, and is available in modern browsers," explains Google.

For example, you can search for [sin(x)/x, 1/x^2] to see this beautiful SVG graph.


You can also search for [sin(x) from -pi to pi] or add extraneous words like "plot", "graph" to the query (example: [graph ln(x)]).


{ Thanks, Arpit. }

67 comments:

  1. Awesome, how great (and fast) is this!

    ReplyDelete
  2. why only 4 graphics?

    ReplyDelete
  3. (sqrt(cos(x))*cos(200*x)+sqrt(abs(x))-0.7)*(4-x*x)^0.01, sqrt(9-x^2), -sqrt(9-x^2)

    ReplyDelete
  4. Is it possible to use polar coordinates?

    ReplyDelete
  5. This is great. Even better if it was possible to resize the widget that the graph is inside.

    ReplyDelete
  6. "π isn't work"
    Just use word 'pi'

    ReplyDelete
  7. I just tried to plot the batman insignia but it needs too many words/characters

    ReplyDelete
  8. What do I search for to get the last graph in the blogpost?

    ReplyDelete
    Replies
    1. sqrt(cos(x))*cos(200 x)+sqrt(abs(x))-0.7)*(4-x*x)^0.01, sqrt(9-x^2), -sqrt(9-x^2) from -4.5 to 4.5

      Delete
  9. meh, max() does not work

    ReplyDelete
  10. Pär, sqrt(1-(abs(x)-1)^2),arccos(1-abs(x))-pi

    ReplyDelete
  11. abs(x)-(1-x^2)^(1/2), abs(x)+(1-x^2)^(1/2), x+ 0.25 from -3 to 3
    http://goo.gl/KlFPi

    ReplyDelete
  12. i don't know how to use this!...do i need google chrome to get the graph?

    ReplyDelete
  13. It works in the latest versions of Firefox, Chrome, Internet Explorer, Safari, but not in Opera. Most likely, it doesn't work in IE6, IE7, IE8 because these releases don't support SVG.

    ReplyDelete
    Replies
    1. It doesn't have to do with SVG support. It has to do with HTML5 support, therefore Firefox 4+, Chrome 6+, Safari 5+, and Internet Explorer 9+ support it.

      Delete
    2. HTML5 support is something vague and almost meaningless. Google uses SVG to plot the graph and SVG has nothing to do with HTML5. It's just a way to define vector graphics using XML.

      Just because a browser implements certain SVG features, doesn't mean that Google will automatically support it. This feature works in Firefox 3.6, but not in Opera 11.5. If you change the user-agent and "mask as Firefox", you'll notice that the feature works well in Opera.

      Delete
  14. Decimals do not seem to work?!
    http://www.google.de/search?q=2.5*x%2C+x^3

    Can somebody confirm?

    ReplyDelete
  15. @Echt Einfach TV:

    They work for me.

    ReplyDelete
  16. Echt Einfach TV@ Why? http://imgur.com/lpDlJ

    ReplyDelete
  17. @Alex Chitu + @Anonymous:
    You are right, it works. Thank you.

    ReplyDelete
  18. Amazing! Google is truly the most complete company there is, I can't even name anything that they haven't gotten into as of late. They are bound to surprise us with something new any time soon now.

    ReplyDelete
  19. Google, why all the hate towards Opera users? Seriously, Opera supports HTML5 or whatever you're using just fine, if you switch the setting in it on "Identify as Firefox" the plotting works flawlessly. Is it an elaborate plan to kick Opera off the market or just lazy and nearsighted developing/whielisting?

    ReplyDelete
  20. Google pretty much ignores Opera. The browser is not officially supported by almost all Google services and many new features don't work in Opera. Probably Google's developers don't bother testing the apps in Opera and making sure they work well, so they simply disable the new features in Opera. I remember that Google Instant wasn't available in Opera for more than a year. Opera's different rendering engine and the small number of users make Opera compatibility a low priority for Google. I think that's an unfortunate policy, but there's at least one Google service that has always worked perfectly in Opera: Google Reader.

    ReplyDelete
    Replies
    1. That's cause of different system used by Opera, that's not google's fault in fact ;)

      Delete
    2. Yes it is!, Google and Firefox are partners all along, if you don't believe me Google it by yourself about who is the main contributor to the mozilla protect. anyway

      The thing is, they are fighting in together the Holy War of Browsers, and Opera happens to be the week link, if you realize is all true, 'cause they can't attack Internet Explorer just like that, by the simple fact they're to many users on that browser, the other is Safari, mainly from Apple's products, again they are to many Iphones and Ipads out there.

      The world is at war, you might not realize it till you end up programming a simple web page...

      Delete
  21. I can't graph an inverse hyperbolic tangent.
    Try it!
    atanh(x)
    arctanh(x)
    tanh^-1(x)
    Apart from that, Google is awesome.

    ReplyDelete
  22. However, the calculator makes mistakes. Compare:

    10000.0*(-exp(-exp(-x)) + exp(-exp(-(x+0.0001)))

    with

    (-exp(-exp(-x)) + exp(-exp(-(x+0.0001)))*10000.0

    ReplyDelete
  23. Google is trying another time to rob another market segment, but the competition here is wolframalpha -- so there's really no competition (yet).

    ReplyDelete
  24. this will provide some entertainment for a while!

    ReplyDelete
  25. No it dosn't make mistake. You made one. You are missing one clossing bracket in second function.
    It should be
    (-exp(-exp(-x)) + exp(-exp(-(x+0.0001))))*10000.0

    ReplyDelete
  26. is there some way to set zoom?

    ReplyDelete
  27. Nice filled heart:
    ((sqrt(cos(x))*cos(500*x)+sqrt(abs(x))-0.4)*(4-x*x)^0.1

    ReplyDelete
  28. sqrt(cos(x))*cos(200 x)+sqrt(abs(x))-0.7)*(4-x*x)^0.01

    ReplyDelete
  29. sqrt cos x cos 200 x sqrt abs x 0.7 4-x x 0.01

    ReplyDelete
  30. (sqrt(cos(x))*cos(200*x)+​sqrt(abs(x))-0.3)*(4-x*x)^​0.01, sqrt(9-x^2), -sqrt(9-x^2)

    ReplyDelete
  31. (sqrt(cos(x))*cos(200*x)+​sqrt(abs(x))-0.3)*(4-x*x)^​0.01, sqrt(9-x^2), -sqrt(9-x^2)

    ReplyDelete
  32. I have 3 computers, one with ie6, one with ie8, one with ie9, and not one of them will display any graphs. Other folks have same issue. It works fine for me in FF. Can't find any help on this topic. Enabled java script, set security to minimal, tunred off malware monitoring, installed latest flash. Nothing will let it work in IE

    ReplyDelete
    Replies
    1. Well, that means that you should stop using crappy browsers, like IE.

      Delete
    2. LOL another IE user complaining that the internet doesn't work.

      Delete
  33. Is there any way to plot a polar plot directly? (without manually converting to Cartesian coordinates)

    Also, how do you encode the zoom level in the URL? The heart example above cuts off the bottom of the heart unless you zoom out. :(

    ReplyDelete
  34. I found one way to keep the zoom levels -- just plot a few constant functions ahead of the main graphs, as in:

    https://www.google.com/search?q=graph+-2%2C+1%2C+0.5*sqrt%281-%28abs%28x%29-1%29%5E2%29%2C+0.5*%28arccos%281-abs%28x%29%29-pi%29

    ReplyDelete
  35. Why doesn't this work in Opera?

    ReplyDelete
  36. I was looking for something like this for a long time...

    ReplyDelete
  37. This Graphing Calculator is AWESOME!!! =)

    ReplyDelete
  38. 11*x*log(x)*y*(y-1)+exp(-((25*x-25/e)^2+(25*y-25/2)^2)^3)/25 from 0 to 1

    short url: http://tinyurl.com/83q94w8

    from ptt

    ReplyDelete
  39. 5 + (-sqrt(1-x^2-(y-abs(x))^2))*cos(30*((1-x^2-(y-abs(x))^2))), x is from -1 to 1, y is from -1 to 1.5, z is from 1 to 6

    Now this is something =)

    ReplyDelete
  40. somehow this is not working for me anymore. If I type "sin(x)" I won't get any graph at all... can anyone check if this is still working?

    I'm using chrome windows 7.

    thanks

    ReplyDelete
    Replies
    1. I have the same problem... what happened?!?

      Delete
    2. Windows7 sucks, that's what happened. Use a real OS.

      Delete
  41. nice tricks zones here...

    ReplyDelete
  42. is there any way to plot a sinewave and then overplot discrete sample points at fixed period? Many thanks in advance.

    ReplyDelete

Note: Only a member of this blog may post a comment.