Summary: | wish: document grammar used by calculator plugin (or at least provide detailed description of capabilities) | ||
---|---|---|---|
Product: | [Plasma] krunner | Reporter: | doc.evans |
Component: | calculator | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | wishlist | CC: | agostinelli, alexander.lohnau, kde2 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
doc.evans
2009-03-28 16:41:52 UTC
It would be nice to have support for unicode operators: × ÷ − According to localisation, a comma may be used as the decimal-point separator in output (e.g. 1/9 = 0,11111111), but this doesn't match the input syntax (if you input 0,11111111 the calculator thinks you have a list). I don't care which kind of decimal-point separator it uses myself, but this kind of inconsistency is odd (though perhaps unimportant). This report motivated to document a bit better the new features available in the calculator runner since SC 4.5. See http://userbase.kde.org/Plasma/Krunner. It can definitely be improved but it's a start. Concerning the points you raised, some of the features you mentioned are now available if the runner has been compiled with support for Qalculate enabled (the choice is up to the distribution packager). Assuming Qalculate support is enabled: 1. operator ** is correctly working 2. a lot of functions are now implemented. A list can be found at http://qalculate.sourceforge.net/gtk-manual/apa.html 3. the parameter is by default in radians, but you can input degrees by typing the 'deg' keyword, e.g. =sin(30 deg) 4. pi and other constants (e.g. 'e') are recognized. A list can be found at http://qalculate.sourceforge.net/gtk-manual/apb.html 5. scientific notation should be fully working 6. '!' is now interpreted as factorial. There is a slightly annoying behavior (unrelated to this bug report): the query must be at least 3 characters long (excluding the '=') so typing =5! will not yield any result. A workaround is to add parenthesis: =(5)! Please close this report if you are satisfied by this answer. (In reply to comment #1) This definitely sounds like Bug 249357, which should be already fixed. Are you running an updated version of the KDE workspace? Can you please post a comment on that report if you confirm the issue? In reply to #3, no, neither of the things mentioned in #1 have been fixed in 4.6.5 (since bug 249357 was marked as fixed in december 2010 I presume it should be part of the release by now. To reiterate: If I enter: "0.5=" I get "0,5", but if I enter "0,5=" I get "[0; 5]" (the same as when I enter "0;5="). If I enter "3÷2=" I get: 6 "÷" Also note that in "solve(f(n)=2n,f)=", f(n) is interpreted as f×n, not as a function, which doesn't make much sense. Returning something like "operation not supported" would be less confusing in some cases. *** This bug has been marked as a duplicate of bug 369136 *** |