We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with decimal and x for isEqual
import { ComputeEngine } from '@cortex-js/compute-engine' const engine = new ComputeEngine() const expr1 = '0.5x' const expr2 = '\\frac{x}{2}' const parsedExpr1 = engine.parse(expr1) const parsedExpr2 = engine.parse(expr2) console.log(parsedExpr1.isEqual(parsedExpr2)) // false and it should be true
parsedExpr1.isEqual(parsedExpr2) return false
parsedExpr1.isEqual(parsedExpr2)
There is the same problem with \\frac{1}{2}x or with with the other fractions in decimal notation.
\\frac{1}{2}x
parsedExpr1.isEqual(parsedExpr2) return true
ComputeEngine 0.24.1
The text was updated successfully, but these errors were encountered:
Same here. Strange that complicated expressions like in example:
let a = ce.parse('\\frac{3*(x-1)}{(x-1)}'); let b = ce.parse('3'); console.log(a.isEqual(b));
work fine. Is there any hope for a solution this bug?
Sorry, something went wrong.
No branches or pull requests
Description
Problem with decimal and x for isEqual
Steps to Reproduce
Actual Behavior
parsedExpr1.isEqual(parsedExpr2)
return falseThere is the same problem with
\\frac{1}{2}x
or with with the other fractions in decimal notation.Expected Behavior
parsedExpr1.isEqual(parsedExpr2)
return trueEnvironment
ComputeEngine 0.24.1
The text was updated successfully, but these errors were encountered: