IIsi50MHz / chromey-calculator

A triaged calculator project exported from code.google.com/p/chromey-calculator
8 stars 7 forks source link

Accelerators for lazyness delight =D #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Provide unique shortcuts to some commands, examples:

sin 45d or sin 45deg -> remove (in this case, where its possible) the need for 
parenthesis, and shortens the word "degree".

rt(5, 32) or root(5, 32) instead of "5th root of 32".

18 ch 4 instead of "18 choose 4".

Original issue reported on code.google.com by rafacaci...@gmail.com on 18 Aug 2010 at 12:56

GoogleCodeExporter commented 9 years ago
An interesting idea. Initial testing finds some things already have other 
meanings, and some already work:

18 ch 4 = 72 ch (Gunter\'s chains) <-- Already has a meaning.
http://m.wolframalpha.com/input/?i=18%20ch%204

sin 45d = Periodic in d with period (2 pi)/45 <-- Already has a meaning.
http://m.wolframalpha.com/input/?i=sin%2045d

sin 45 deg = 1/sqrt(2) <---- Already working.
sin 45deg = 1/sqrt(2) <--'

rt(5, 32) = {5 r t, 32 r t} <-- WolframAlpha assumes rt is a math object.
http://m.wolframalpha.com/input/?i=rt(5,%2032)

root(5, 32) = no result found <-- FAIL

5th root 32 = 2 <-- You can already omit the word "of".
5th root of 32 = 2

Sometimes shortcuts or accelerators already exist in WolframAlpha or Google; 
it's just a matter of finding them or digging through the docs.

Original comment by iisi50...@gmail.com on 28 Sep 2010 at 9:54