how I can define a pattern for expression with parantheses. see row 3 in the table.patterns definition for row 3
You can nest product patterns within sum patterns. So it’s not that there are parentheses, it’s about how the terms and factors break down. In this case, you have 1 + 2(9 - x), so it is a sum on the outside of 1 + a product, and that product is 2 * a difference.
You can also match to specific numbers with the .satisfies(“x=”) term. So it could look like this:
validPattern = p.sum( p1, p.product( p2, p.sum(p9, pX).allowNegativeTerms ) )
I made a new table with no CL so you can see the relevant part easily.
Makes lot of sense.
Thank you very much.
Itzik
בתאריך יום ו׳, 13 בספט׳ 2024, 1:19, מאת Daniel Wekselgreene via Computation Layer Support Forum <notifications@desmos.discoursemail.com>: