Git Product home page Git Product logo

Comments (2)

hmaurer avatar hmaurer commented on September 1, 2024

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 |x| + 3 = 4, we would transform it to an "OR" node with left branch x + 3 = 4 and right branch -x + 3 = 4.

You could also imagine a slightly more complex example. Say we start with the system

|x| = 3
x >= 0

The initial tree structure would be

AND(|x| = 3, x >= 0)

The first step would deal with the absolute value and we would get

AND(
  OR(x = 3, -x = 3),
  x >= 0
)

then we could distribute the conjunction over the disjunction to get

OR(
  AND(x = 3, x >= 0),
  AND(-x = 3, x >= 0),
)

We would then eliminate the right branch of the "OR" node because -x = 3 and x >= 0 are not satisfiable, and somehow contract x = 3 and x >= 0 (since they contain redundant information) to the single equation x = 3.

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?

from mathsteps.

evykassirer avatar evykassirer commented on September 1, 2024

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.

from mathsteps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.