-
Notifications
You must be signed in to change notification settings - Fork 279
Absolute value of unknowns (in equations) #49
Comments
Mmh that's quite interesting in terms of pedagogy. I haven't really thought about it but at first it seems we could have a sort-of tree structure for equations with "AND" and "OR" nodes, and operate on that tree in steps in the same way you currently operate on expression trees. For example, starting from a single root node You could also imagine a slightly more complex example. Say we start with the system
The initial tree structure would be
The first step would deal with the absolute value and we would get
then we could distribute the conjunction over the disjunction to get
We would then eliminate the right branch of the "OR" node because In a short example like this it seems it would work and be easy to follow, but in this specific case the reasoning "x >= 0 so I can just remove the absolute value" would also be correct (and shorter). What do you think? |
I hadn't thought about it much yet, but that sounds quite reasonable! Since this will be a pretty big decision, I think it's worth doing research into what other CAS do as well. |
This is blocked on #128 (new parser) because we need to support multiple equations.
e.g. |x| + 3 = 4 can solve for x by separating it into
x + 3 = 4
and-x + 3 = 4
to support these, we'd also have to support multiple equations (related issue: #48)
The text was updated successfully, but these errors were encountered: