Pattern Matching documentation + Expression identification
Issue #149
closed
Is there any documentation about how to use the pattern matching?
I get from the user pre defined expression, and trying to check if it is linear / polynomial equation:
a+2b+5=4c - Linear equation a^2 + b^7 = f^3 - polynomial
Can the pattern matching help me do it?
Thanks
Comments (2)
-
repo owner -
repo owner - changed status to closed
Please use the Github issue tracker to open a new issue if this issue shouldn't be closed Github issues
- Log in to comment
This should match a linear expression a+b*x:
This should match a quadratic expression with nonzero linear term:
I started a patterns and rules description document.
For your use case the CoefficientList or the PolynomialQ function will probably better suitable?