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

## Description See title ### Steps to Reproduce Reproducible on the [MathLive demo site](https://cortexjs.io/mathlive/demo/): ![Screenshot from 2024-10-18 11-32-52](https://github.com/user-attachments/assets/3d6e506f-4e09-431d-9547-bd49f5cd77f2) ### Actual Result E.g. (-1)^{1/3}, (-32)^{1/5} evaluate to NaN ### Expected Result...

## Description I can't init ComputeEngine object. ### Steps to Reproduce `let ce = new ComputeEngine();` via MathField object CE is not accessible also. ### Actual Result CE 0.24.1 SyntaxError:...

## Description I need to find the derivative of an arbitrary expression for a calculator project I'm working on using this library. When I give it `ln(|x|)` it borks and...

bug

Go to https://cortexjs.io/compute-engine/demo/ and enter, say, 1+1 and press enter. Nothing happens. The JavaScript console gives these errors: > Uncaught TypeError: Cannot set properties of undefined (setting 'precision') > at...

> Please follow the template below. > If you don't, your issue may be closed without being addressed. > Include code fragments or CodePen.io links to illustrate the issue. Do...

**Is your feature request related to a problem? Please describe.** When using the compile to javascript feature, its not possible to change the operators defined in NATIVE_JS_OPERATORS and functions in...

feature

## Description If the subscript is on the left hand side of assignment, the output is incorrect ### Steps to Reproduce ``` console.info(ce.parse("x_{y}\\coloneq z").json); console.info(ce.parse("x\\coloneq z_{y}").json); ``` ### Actual Result...

**Is your feature request related to a problem? Please describe.** I noticed that in the current version, collection types and numeric types are incompatible. This means that I cannot perform...

bug

## Description When computing A \\div B, if A = B, it will be simplified to 1 during the canonicalization procedure. However, this introduce some edge cases dealing with NaN...

bug

## Description The "D" operator on an expression whose first operand is an expression containing a "Root" operator doesn't compute the derivative, when `.evaluate()`'ed. ### Steps to Reproduce ``` const...