-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
Off-templateIssue does not follow templateIssue does not follow template
Description
Description
In a matfield, entered 2 matrices to perform an operation (1 2) +(3 4).
Latex is returned correctly
mathJSON returns errors
Steps to Reproduce
const expr = ce.parse('\\begin{bmatrix}1 & 2\\end{bmatrix}+\\begin{bmatrix}3 & 4\\end{bmatrix}')
expr.toMathJson()
Actual Result
MathJSON is
[
"Add",
[
"Error",
[
"ErrorCode",
"'incompatible-type'",
"number",
"'list<number>'"
]
],
[
"Error",
[
"ErrorCode",
"'incompatible-type'",
"number",
"'list<number>'"
]
]
]
Expected Result
mathJSON
[
"Add",
[
"Matrix",
[
"List",
[
"List",
1,
2
]
]
],
[
"Matrix",
[
"List",
[
"List",
1,
2
]
]
]
]
Environment
0.30.2
Metadata
Metadata
Assignees
Labels
Off-templateIssue does not follow templateIssue does not follow template