Get the coefficient of the constant

asked 2017-10-07 11:19:12 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

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.

edit retag flag offensive close merge delete

Comments

This is already the question https://ask.sagemath.org/question/39060/get-the-constant-value-of-an-equation/

Please post the same question only once.

dan_fulea gravatar imagedan_fulea ( 2017-10-07 21:47:45 +0200 )edit