Skip to content

\cdot y parses incorrectly #33

Open
@bengolds

Description

@bengolds

There are a few different signs that can be used for multiplication: *, \cdot, and \times. They are inconsistent in how they parse when an argument is missing.

x * y       => [ 'Multiply', 'x', 'y' ]       👍
x \cdot y   => [ 'Multiply', 'x', 'y' ]       👍
x \times y  => [ 'Multiply', 'x', 'y' ]       👍

-- Right side missing
x *         => [ 'Multiply', 'x', 'Missing' ] 👍
x \cdot     => [ 'Multiply', 'x', 'Missing' ] 👍
x \times    => [ 'Multiply', 'x', 'Missing' ] 👍

-- Left side missing
  * y       => [ 'Multiply', 'Missing', 'y' ] 👍
  \cdot y   => [ 'Multiply', '\\cdot', 'y' ]  ❌ 
  \times y  => [ 'Multiply', '\\times', 'y' ] ❌ 

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