duckduckgo / zeroclickinfo-spice

DuckDuckGo Instant Answers based on JavaScript (JSON) APIs
https://duckduckhack.com/
Other
548 stars 942 forks source link

Advanced Calculator: feedback from user #2711

Closed edgesince84 closed 8 years ago

edgesince84 commented 8 years ago

A user on DDG reported that the calculator IA wasn't triggering for a problem that includes square roots.

ex: sqrt(5+exp(5+exp(5))+5)


IA Page: http://duck.co/ia/view/symbolab Maintainer: @levaly

levaly commented 8 years ago

Currently implementation requires inserting the keyword "solve" or "calculate" or "compute. Here is a link for the above query https://duckduckgo.com/?q=solve+sqrt(5%2Bexp(5%2Bexp(5))%2B5)&ia=calculator

GuiltyDolphin commented 8 years ago

@edgesince84 @levaly These sorts of queries should be handled by the Goodie calculator - not the Spice. The Spice should be used for things the Goodie doesn't handle (such as calculus).

And yes - it triggers for duckduckgo/zeroclickinfo-goodies#1927.

harsha-main commented 8 years ago

Some of the problems are solved through https://www.symbolab.com/ and I think they could be solved directly using the advanced calculator itself. Maybe that needs to be adjusted. example: https://duckduckgo.com/?q=solve+5*exp6&ia=calculator

GuiltyDolphin commented 8 years ago

@busyintech These should be handled fine by the rewrite. We're able to provide higher precision and more functionality (extensibility) without needing external API calls. The Spice provides support for calculus (and other operations) which will not be supported by the Goodie for the foreseable future.

edgesince84 commented 8 years ago

thanks guys, adding "solve" to the query works just fine. closing this out!

harsha-main commented 8 years ago

@edgesince84 Even with the "solve" keyword, it still does not work with some queries, such as sqrt(5+exp(5+exp(5))+5), https://duckduckgo.com/?q=solve+sqrt(5%2Bexp(5%2Bexp(5))%2B5)&t=hc&ia=calculator To improve usability, you may have to consider solving the query even without the keyword, just like a modern calculator would do.

GuiltyDolphin commented 8 years ago

@busyintech This seems to work fine on Beta with the regular calculator: https://beta.duckduckgo.com/?q=sqrt(5%2Bexp(5%2Bexp(5))%2B5)&ia=answer