Hi Roland,
On 21 Jul., 06:33, Rolandb rola...@planet.nl 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
Are all your relations polynomial? Then the standard solution is
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)?
Simon, thanks!
But in general there is no (Sage) algoritm to simplify expressions
given some equalities?
Rolandb
On 21 jul, 08:05, Simon King simon.k...@uni-jena.de wrote:
Hi Roland,
On 21 Jul., 06:33, Rolandb rola...@planet.nl wrote:
Hi,
How to simplify an expression if you have