[sage-support] Re: Substitution with symbolic equations

2009-05-15 Thread Paul Sargent
On 15 May 2009, at 16:33, Mike Hansen wrote: > > In Sage 4.0 which will be released within the week, you'll be able to > do the following: > > sage: var("a b c d e") > (a, b, c, d, e) > sage: e1 = a == b + c > sage: e2 = d == e * a > sage: e3 = e2.subs(e1); e3 > d == (b + c)*e Well, that's what

[sage-support] Re: Substitution with symbolic equations

2009-05-15 Thread Mike Hansen
Hello, On Fri, May 15, 2009 at 5:06 AM, Paul Sargent wrote: > Lets give ourselves two symbolic equations: > > sage: var("a b c d e") > sage: e1 = a == b + c > sage: e2 = d == e * a > > Now, lets say I want to know what c is in terms of b, d & e. By hand > I'd substitute e1 in e2, and then solve

[sage-support] Re: Substitution with symbolic equations

2009-05-15 Thread Stan Schymanski
Not sure if this is what you are after, but the following would give you the solution: sage: solve([e1,e2],c,a) [[c == (d - b*e)/e, a == d/e]] You can give n equations to solve and solve for n variables. Solve will insert one into another automatically. An equation has a different syntax to a