compute-engine
compute-engine copied to clipboard
parsing F=3g/h and solving for g returns empty array
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 not include screenshots of code.
const expression = computeEngine.parse("F=3g/h");
const solveFor = "g";
const solution = expression.solve(solveFor);
console.log(solution) // returns empty array
console.log(expression.json) // looks like it's the correct MathJSON
Actual Result
empty array : [ ]
Expected Result
g= Fh / 3
Environment
"@cortex-js/compute-engine": "^0.29.1", "vue": "^3.5.12",