Hi Roland,

Would this help?

sage: var ('a b x1 x2 y1 y2')
(a, b, x1, x2, y1, y2)
sage: expression = (a*x1^2 + b*x2^2)*y1 + b*y2^2
sage: expression.subs_expr((a*x1^2 + b*x2^2) == 0)
b*y2^2

Stan

Rolandb wrote:
> Hi,
> How to simplify an expression if you have some known relations
> (equalities)? Example:
>
> relation: 0 = a*x1^2 + b*x2^2
> expression = (a*x1^2 + b*x2^2)*y1+b*y2^3
>
> Given the relation, the expression could be simplified to b*y2^2. But
> how in Sage?
> Tnx in advance. Rolandb
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to