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.Sat, 07 Oct 2017 14:47:45 -0500Get the coefficient of the constanthttps://ask.sagemath.org/question/39058/get-the-coefficient-of-the-constant/ I have the following equation :
(x - 1)^2 - (x - 2)^2 - (y - 1)^2 + y^2 + (z - 3)^2 - (z - 4)^2 == 1.75000000000000
which I factorized to :
2*x + 2*y + 2*z - 51/4
And then I would like to extract the `-51/4` but the `.coefficient()` doesn't work for constant so I have no idea to get the constant value.Sat, 07 Oct 2017 04:19:12 -0500https://ask.sagemath.org/question/39058/get-the-coefficient-of-the-constant/Comment by dan_fulea for <p>I have the following equation :</p>
<pre><code>(x - 1)^2 - (x - 2)^2 - (y - 1)^2 + y^2 + (z - 3)^2 - (z - 4)^2 == 1.75000000000000
</code></pre>
<p>which I factorized to :</p>
<pre><code>2*x + 2*y + 2*z - 51/4
</code></pre>
<p>And then I would like to extract the <code>-51/4</code> but the <code>.coefficient()</code> doesn't work for constant so I have no idea to get the constant value.</p>
https://ask.sagemath.org/question/39058/get-the-coefficient-of-the-constant/?comment=39068#post-id-39068This is already the question
[https://ask.sagemath.org/question/39060/get-the-constant-value-of-an-equation/](https://ask.sagemath.org/question/39060/get-the-constant-value-of-an-equation/)
Please post the same question only once.Sat, 07 Oct 2017 14:47:45 -0500https://ask.sagemath.org/question/39058/get-the-coefficient-of-the-constant/?comment=39068#post-id-39068