Simplify symbolic expressions with custom constraints
5 views (last 30 days)
Show older comments
Is it possible to algebraically simplify a symbolic expression based on a custom assumption on the symbolic variables?
Let's take a simple example. Suppose we have:
syms x y
u = x^3 + x * y^2 + y ;
Let's say we want to add the following assumption on the symbolic variables:
x^2 + y^2 = 1
Upon which, u would simplify to
u = x + y
Is something like this possible?
I stumbled upon the following related pages, but none seemed to enable adding a custom expression for the simplification
1 Comment
Answers (1)
See Also
Categories
Find more on Assumptions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!