Nicole White
Nicole White
Please feel free to work on this @mabotkin. I did explore complex numbers at some point (hence the stuff in complex.js) but did not get around to incorporating it.
I think it makes perfect sense to maintain a Vector as an array of Expressions. That'll make basic operations pretty simple.
How are you doing with this? I've been playing around with some code locally but I don't want to step on your toes if you're still working on it.
Sure, we're over here: https://gitter.im/nicolewhite/algebra.js
Woah awesome @viktorstrate !!! Will get this added to the docs.
I think this does make sense but it is a large breaking change, so would need to be released under a new major version, unfortunately. I will think about it...
I definitely like the idea of choosing which operation to simplify by. You can follow the development of this over on the [simplify](https://github.com/nicolewhite/algebra.js/tree/simplify) branch.
I'm thinking I'll use `\cdot` for the multiplication symbol in .toTex, unless you think it should be `\times`.
Even in the case of e.g. `5(2x)`?
FYI, I've started working on the next step of this, namely the ability to have parentheses around unsimplified multiplications. ``` js var exp = new Expression("x").add(2); // x + 2...