Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

using a previously solved variable in another equation

So I just started using sage but I can't find this (or I don't know how to formulate it).

I have an equation that I solved and I want to use that solved variable in a new equation:

a, b, c, d = var('a b c d') eq1=a+b==d eq2=solve([eq1],b) eq3=c/eq2

but this doesn't work and of course I can do c/b but then it just gives me c/b and I want c/(d-a) as an answer.