Closed philsupertramp closed 3 years ago
Treat parentheses as encapsulated equations. Add equation math node. Equation node needs to evaluate differently. It needs to return the value of its containing equation. Handle equation like numerical, not as an operator.
Current implementation is somewhat smart and capable of commutative properties as well as associative properties. Yet it lacks a proper priority system. In order to be able to simplify and evaluate equations further, like calculating derivatives/integrals, transforming into systems of linear equations, solving ordinary or partial differential equations. As well as restructuring equations on the fucking fly!
I got this idea yesterday. Let's make it real. Use a NN to convert written language to string representation of equation, then convert equation into symbolic, to allow instant plot of written equations 🤯🥳
This is the highly unexpected and surprisingly super effective schema, apparently it worked out of the box albeit that wasn't my intention to that time.
In: x + 1 + y
Tree:
0: +
1: x +
2: 1 y
Nodes as parentheses:
(x + (1 + y))
closes #31