Re: [sage-support] Problem with the minus sign in symbolic expression

2016-12-08 Thread John Cremona
You should say which Sage version you are using, and also give the complete code. In Sage 7.4 I get this: sage: var('x1','x2') (x1, x2) sage: a1=vector([76,83]) sage: b1=62 sage: x=vector([x1,x2]) sage: f1=b1-a1.dot_product(x) sage: f1 -76*x1 - 83*x2 + 62 which looks good. Perhaps you mistyped

[sage-support] Problem with the minus sign in symbolic expression

2016-12-08 Thread Anastasia Theodouli
Hi all! In my code, I have a multivariate polynomial with a sign symbol which doesn't return the correct result. I.e. The code snippet is as follows: sage: f1=b1-a1.dot_product(x) a1 is a vector with values (76, 83), b1 is scalar with value 62, x is a vecto