Simplify symbolic expressions with custom constraints
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Risposte (1)
Vedere anche
Categorie
Scopri di più su Assumptions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!