Live data from Hacker News

Google can be used as a graphic calculator

google.com

61–70 of 79 posts

Re: Google can be used as a graphic calculator

#61
Great. So can DuckDuckGo:

http://duckduckgo.com/?q=sin%28x%29%2B1%2F2+sin%282x%29%2B1%...

And on top of that, it also gives you the result right there on the page: http://cl.ly/0a3L0K3T2a0E350d300n

Clickable and brings you to wolfram alpha: http://www.wolframalpha.com/input/?i=sin(x)%2B1%2F2%20sin(2x...

zero-click search is an awesome feature of DuckDuckGo

Re: Google can be used as a graphic calculator

#62
post #58

Earlier quoted context omitted.

ln? Isn't log base 2 the natural log? Yup, that works.

ln should be base e. Cf. http://en.wikipedia.org/wiki/Natural_logarithm

Oh yes, ok. Ignore my post. I forgot for a second that there was more than 2 numbers in the Universe.

Re: Google can be used as a graphic calculator

#63
post #7
post #3

WolframAlpha has slightly more sophisticated graphing calculator functionality: http://www.wolframalpha.com/input/?i=sin%28x%29%2B1%2F2+sin%...

I haven't used WolframAlpha that much for graphs but I've often been bothered by the lack of zoom, scale and pan which google seems to have solved quite nicely. Hopefully WA will do something similar in the near future.

You can zoom with CTRL +, (this is a browser feature).

Re: Google can be used as a graphic calculator

#64
post #61

Great. So can DuckDuckGo: http://duckduckgo.com/?q=sin%28x%29%2B1%2F2+sin%282x%29%2B1%... And on top of that, it also gives you the result right there on the page: http://cl.ly/0a3L0K3T2a0E350d300n Clickable and brings you to wolfram alpha: http://www.wolframalpha.com/input/?i=sin(x)%2B1%2F2%20sin(2x... zero-click search is an awesome feature of DuckDuckGo

"Great. So can DuckDuckGo"

No, I don't see a fast interactive graph when I clicked on that link.

Re: Google can be used as a graphic calculator

#65
They seem to have come with some nice algorithm to connect the graph dots. The problem: When you draw the graph using a naive formula putPixel(x, y(x)) you get isolated dots. Therefore you have to draw tiny lines between the points to get a nice smooth curve instead of isolated dots. But then there is the question of which points to connect – for example in tan(x) you can’t connect the last point on the ‘upper right hand’ with the first one coming from the bottom. This is surprisingly hard to solve simply (at least it was for me). Most packages simply resign – try zooming out a tan(x) to see the erroneous vertical connecting lines. Google does it right even in high zoom ratios. How do they do it?

Re: Google can be used as a graphic calculator

#66

The easy zooming and panning makes this a better graphing experience than any other calculator/software I have used so far. True, you don't have the capabilities of Mathematica available, but it seems to work great for graphing a single variable function.

This is something i don't understand why other mathematical tools do so badly. Have you tried navigating the graph in a matlab plot? You have to select one tool for zoom in and another tool for zoom out and then click the graph to get a huge zoom-step that isn't even centered around where you clicked. Then another tool for moving to the correct position and another to see the values. SERIOUSLY?!!?!!!! This is a super expensive tool designed for plotting and comparing graphs and the diagram-control stinks so bad. Implementing this feature properly is one day of work. Synchronizing dimensions of axis between different diagrams is also something very important that matlab has huge difficulties with. Mathematica isn't much better in this regard even though they at least plot with anti aliasing T_T.

Related is also navigation in maps-software. Not many programs do this right even though it's so simple.

Re: Google can be used as a graphic calculator

#68
post #47
post #5

Sadly, google's cannot be used to calculate 3D plots, though wolfram's can: http://www.wolframalpha.com/input/?i=x%5E2%2By%5E2

On the other hand, google doesn't appear to take the extreme copyright stance that Wolfram Alpha does. Read their TOS: http://www.wolframalpha.com/termsofuse.html , specifically their Attribution and Licensing section. If you incorporate results from Wolfram Alpha in any work without attribution meeting their standards you will have breached your TOS and they suggest you also will have committed copyright violations…

Well they have very different business models, neither company's licensing here seems unreasonable.

Re: Google can be used as a graphic calculator

#69
post #65

They seem to have come with some nice algorithm to connect the graph dots. The problem: When you draw the graph using a naive formula putPixel(x, y(x)) you get isolated dots. Therefore you have to draw tiny lines between the points to get a nice smooth curve instead of isolated dots. But then there is the question of which points to connect – for example in tan(x) you can’t connect the last point on the ‘upper right…

Google fails after a few zoom outs for me, screenshot: http://i.imgur.com/Kss1x.png

One way is to set a threshold for whether or not to join the dots, if it's above the threshold perform a search between those points to see if they are between the dots or if they diverge, this search can be complicated or simple, google seems to use a fair bit of cpu power when zooming out on tan(x) so I'm guessing they're using a search here rather than some alternative 'clever' induction from the nature of the curve itself.

Post reply on HN