ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 26 Aug 2014 15:00:51 -0500using a previously solved variable in another equationhttps://ask.sagemath.org/question/23934/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.
Tue, 26 Aug 2014 10:39:30 -0500https://ask.sagemath.org/question/23934/using-a-previously-solved-variable-in-another-equation/Answer by tmonteil for <p>So I just started using sage but I can't find this (or I don't know how to formulate it).</p>
<p>I have an equation that I solved and I want to use that solved variable in a new equation:</p>
<p>a, b, c, d = var('a b c d')
eq1=a+b==d
eq2=solve([eq1],b)
eq3=c/eq2</p>
<p>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.</p>
https://ask.sagemath.org/question/23934/using-a-previously-solved-variable-in-another-equation/?answer=23936#post-id-23936I propose to close this question as duplicate of http://ask.sagemath.org/question/23933/use-a-symbolic-solved-variable-in-another-later-equation/
Tue, 26 Aug 2014 10:44:59 -0500https://ask.sagemath.org/question/23934/using-a-previously-solved-variable-in-another-equation/?answer=23936#post-id-23936Comment by wzawzdb for <p>I propose to close this question as duplicate of <a href="http://ask.sagemath.org/question/23933/use-a-symbolic-solved-variable-in-another-later-equation/">http://ask.sagemath.org/question/2393...</a></p>
https://ask.sagemath.org/question/23934/using-a-previously-solved-variable-in-another-equation/?comment=23946#post-id-23946ah yeah ofcourse, thought it didnt go throughTue, 26 Aug 2014 15:00:51 -0500https://ask.sagemath.org/question/23934/using-a-previously-solved-variable-in-another-equation/?comment=23946#post-id-23946