-
Notifications
You must be signed in to change notification settings - Fork 111
Simplification Options #4
Comments
For the purposes of using this in tutorials it would be nice if there was an option to prevent any simplification when performing operations, e.g.
|
I definitely like the idea of choosing which operation to simplify by. You can follow the development of this over on the simplify branch. |
I'm thinking I'll use |
I think |
Even in the case of e.g. |
I'm for When possible e.g. in front of bracket like x(y+3), multiplication should be left implicit. |
|
FYI, I've started working on the next step of this, namely the ability to have parentheses around unsimplified multiplications. var exp = new Expression("x").add(2); // x + 2
exp = exp.multiply(5, false); // 5(x + 2) I also want to add more granular simplification options, so that you can do something like: exp = exp.simplify(???); // 5x + 5 * 2
exp = exp.simplify(???); // 5x + 10 Though I'm uncertain how I'll go about that. |
Allow the user to display intermediate steps when building expressions. The plan is to add a
simplify
argument to all Expression operations, where settingsimplify
tofalse
yields an unsimplified expression:Then, add a
simplify
method.Adding constants can also receive this argument.
And simplifying will combine these constants.
For multiplication:
This will yield something like:
I also want to add this argument to Fraction operations, so that any fraction manipulation that occurs within Expression operations also receives the
simplify=false
argument. Then you can display unreduced fractions.The text was updated successfully, but these errors were encountered: