compute-engine icon indicating copy to clipboard operation
compute-engine copied to clipboard

An engine for symbolic manipulation and numeric evaluation of math formulas expressed with MathJSON

Results 78 compute-engine issues
Sort by recently updated
recently updated
newest added

Hi all! I'm super interested in MathJSON, and I'm trying to set up MathLive/Compute in a personal project. I was working on comparing linear equations with simplify/evaluate/canonical and found that...

bug

The parser doesn't seem to handle Set complement correctly: ![CleanShot 2021-10-18 at 16 44 49](https://user-images.githubusercontent.com/446007/137821150-49b30a15-6a5b-411a-a851-2ce5bcfa3818.png) This appears to be `A^\complement`, which the latex parser interprets as: ```[ 'Power', 'A', '\complement']```...

Expression with square not sorted correctly because square does not get degree 2. You can see the difference before and after this PR in table below. | Expresssion | Canocical...

`replace` doesn't seem to handle wildcards as documented. Here are two cases where it fails, in slightly different ways: # 1 Rewrite "a*x + b*x" as "(a+b)*x" ```javascript const rewriteRule...

Calling `c.serialize` gives a `Maximum call stack size exceeded` error for any input: ```javascript c.serialize(c.parse('8')) c.serialize(c.parse('x')) // etc. -- all crash ``` This is happening on version 0.4.2.

I went through some mathematics notes and found the following interesting equations. I tested them on the compute engine demo page https://cortexjs.io/compute-engine/demo/ (Information for myself: Page 1 of ANA_UE_SS_21_Mo_1.pdf ,...

I'd love it if the compute-engine could handle arbitrary Unicode characters and parse them as variable names. A silly example would be `\begin{equation*} 🍕+3 \end{equation*}` A more reasonable example would...

bug

You're probably aware of this already, but text shouldn't get parsed. ![image](https://user-images.githubusercontent.com/10220080/123553006-3da26680-d779-11eb-9ca4-37e61b24c29e.png) So, something like the following ``` \begin{equation*} e^{i\pi\text{nope!?\lparen sum}} \end{equation*} ``` will get serialized as ``` ["Power","ExponentialE",["Multiply","ImaginaryUnit","Pi",["\\text",["Multiply","n","o","p",["Factorial","ExponentialE"]]]]] ```...

The following test cases fail to be turned into a canoical form. Some of them are pretty silly, others are somewhat sensible and should probably work. To reproduce any of...

bug

**To reproduce:** 1. Type in or copy in `\int_{\placeholder{⬚}}^{\placeholder{⬚}}3x` 2. Copy as mathjson. The result is `["Multiply",["Integral","","Missing","Missing"],{"num":"3"},"x"]` You can also try it rather nicely on this page https://cortexjs.io/compute-engine/demo/

bug