Power symbols (superscript digits)
Originally reported on Google Code with ID 325
What steps will reproduce the problem?
1. type 'x=2'
2. type 'x²' ('x' then '²' = '²' key on french keyboard)
3. type 'x³' ('x' then '³' = shift+'²' key on french keyboard )
4. type 'x¹' ('x' then '¹' = AltGr+'²' key on french keyboard )
What is the expected output? What do you see instead?
2. return x (ie 2), should be x^2 (ie 4)
3. return x (ie 2), should be x^3 (ie 8)
4. return the right value, but the 1 power is not "seen" by the parser I
anticipate.
By the way, all the power indices should be handled by the parser as
expected by basic users : ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁰ and including the signs ⁻ ⁺
...
What version of the product are you using? On what operating system?
0.10.1
As an example, expressions such as :
y=x² + 2*x +2
z=y⁵+ 3*y⁴+ 1
....
Should be accepted as well.
But square (and cubic) is the very minimum the parser should work as this
key is available on the keyboard (at least on every French keyboard).
Reported by bugeaud
on 2010-02-02 13:21:00
Comments (7)
-
Account Deleted -
Account Deleted ``` Hello Helder,
Well, at least according to http://en.wikipedia.org/wiki/Keyboard_layout add a 2⁵ more ;-)
Canadian (both multilingual or French only kb) got it, Dutch, German, US-International, Belgian, Turkish, Greek ... and even Brazilian. ```
Reported by `bugeaud` on 2010-02-09 10:26:51
-
Account Deleted ``` Implemented in commit e652d9f0c174370cd96e2f0c0bef18ea23ba33a5 All superscript digits are supported (i.e. ⁰¹²³⁴⁵⁶⁷⁸⁹). Note that, just like Wolfram|Alpha, 2²³ will be evaluated as (2²)³ ```
Reported by `helder.pereira.correia` on 2010-03-13 04:36:38 - Status changed: `Fixed` - Labels added: Type-Enhancement, Priority-Medium, OpSys-All, Milestone-0.11, Component-Logic, Usability
-
Account Deleted I have the same problem with a German keyboard layout. Of course I know that there's a workaround - but at the end of the day people won't be aware that they have to use this workaround to get the right outcome.
Reported by
emaier58
on 2012-11-23 09:54:19 -
Account Deleted Issue 423 has been merged into this issue.
Reported by
helder.pereira.correia
on 2013-01-04 02:25:02 -
repo owner - changed milestone to 0.11
- changed component to parser
-
assigned issue to
- edited description
-
repo owner - changed status to closed
- Log in to comment
``` Problem is that only French keyboards (maybe a couple more?) support that, so I wonder
whether is would be worth it to implement this feature. But I completely understand
you. ```
Reported by `helder.pereira.correia` on 2010-02-07 08:44:54