Skip to content

Power precedence/associativity #11

@stefnotch

Description

@stefnotch

Power towers
I'm not sure if the powers currently get interpreted correctly. The following 'power tower' should, as far as I know, get parsed from the top to the bottom. So those two are equivalent:

image

However, typing in 1^2^3 results in the following: ["Power",["Power",{"num":"1"},2],3]

Negative number to the power

Futhermore, as I've been taught it, if one writes -1^3, they mean -(1^3). MathJson also doesn't seem to reflect on that ["Power",{"num":"-1"},3]
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions