Power symbols (superscript digits)

Issue #325 closed
Former user created an issue

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= + 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)

  1. Former user Account Deleted

    ``` 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

  2. Former user 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

  3. Former user 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

  4. Former user Account Deleted
    Issue 423 has been merged into this issue.
    

    Reported by helder.pereira.correia on 2013-01-04 02:25:02

  5. Log in to comment