Replies: 2 comments 1 reply
-
woot!! mathjs.rationalize("(a+b)(c+d)(e+f)").toString() |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think you can utilize Docs: https://mathjs.org/docs/reference/functions/simplify.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to figure out if its possible to switch between formulations. I've tried using Simplify, and it doesn't seem to do much at all for this kind of algebraic manipulation.
(a + b) * (c +d) <=> (a c) + (bc) + (ad) + (bd)
I'm trying to do a little bit of poprositional algebra trivial query rewriting, switching between AND and ORs of positive literals, but it's the same Distributive Law as in regular algebra, so I thought this library might be an off the shelf solution.
Beta Was this translation helpful? Give feedback.
All reactions