Coffeequate
Coffeequate copied to clipboard
A computer algebra system for JavaScript.
Hi, it seems like the coffeequate.min.js file isn't on github anymore. Maybe I'm blind, sorry, but I can't find it. Can someone tell me, where I can get the file...
``` You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection: Error: Function name invalid, must be alphanumeric at new i ([REDACTED]\node_modules\coffeequate\coffeequate.min.js:7:30624) at Object.performAction ([REDACTED]\node_modules\coffeequate\coffeequate.min.js:6:5656) at...
I'm trying to solve a fairly simple equation, but I'm getting invalid results - Here's a small example - const util = require("util"); var CQ = require("coffeequate"); let expression =...
There is a Problem with the squareroot of a variable: The squareroot of a quadratic variable is the absolute value of the variable: False: CQ("(x**2)**(1/2)").toString() = "x" Correct: CQ("(x**2)**(1/2)").toString() =...
Roots
I've been taking a look into Coffeequate, and I like what I see. Does Coffeequate currently support roots (sqrt, for instance)? It's a pretty standard thing to have, but I...
I am using the following algorithm: ``` javascript SOLVER('x+y/z=25').sub({z:4,x:50}).solve("y").toString() ``` the answer should be -100. when i place this expression in node, it evaluates correctly, however, when i try to...
``` javascript var expr = CQ("a*x**3 - b = 0"); var sol = expr.solve("x"); sol[0].equals(CQ("(b/a)**(1/3)")); // false sol[0].simplify().equals(CQ("(b/a)**(1/3)")); // true ``` So `@expr.expandAndSimplify` isn't fully simplifying. I'm not really sure...
For example, [trying to substitute arrays](http://stackoverflow.com/questions/30350393/solving-simulataneous-equations-with-coffeequate/) makes CQ hang; the same occurs when you try and pass in a string. This should probably raise an error.