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

parsing F=3g/h and solving for g returns empty array

Open LasseMunk opened this issue 6 months ago • 0 comments

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",

LasseMunk avatar Apr 22 '25 20:04 LasseMunk