Ask Your Question

zhoraster's profile - activity

2023-02-15 23:55:32 +0200 received badge  Notable Question (source)
2020-08-07 12:46:02 +0200 received badge  Popular Question (source)
2018-03-04 08:21:12 +0200 received badge  Supporter (source)
2018-03-04 08:20:18 +0200 received badge  Scholar (source)
2018-03-02 22:38:37 +0200 received badge  Student (source)
2018-03-02 20:56:38 +0200 received badge  Editor (source)
2018-03-02 20:55:42 +0200 commented question Weird solve() problem

Yes, the same in 8.1. Thanks.

2018-03-02 12:58:39 +0200 commented question Weird solve() problem

I have version 8.0, so I'll update and check if the problem persists.

2018-03-02 11:53:40 +0200 asked a question Weird solve() problem

I try to solve the equation $$ a^2 + b^2 + 2 a^2 b^2 = c^2 $$ in integers. Using

 var('a,b,c')
assume(a,'integer')
assume(b,'integer')
assume(c,'integer')
solve([a^2 + b^2 + 2*a^2*b^2 == c^2],[a,b,c],solution_dict=True)

gives Pythagorean triples:

{c: t1^2 + t2^2, b: 2*t1*t2, a: t1^2 - t2^2}

which clearly do not satisfy the equation (unless $t_1=t_2$ or $t_2t_2 = 0$). It seems that solve() does not see the term $2a^2b^2$; trying

solve([a^2 + b^2 + 2222*a^2*b^2 == c^2],[a,b,c],solution_dict=True)

gives the same (wrong) result.

UPDATE: The problem does not exist in the newest version (8.1).