[sage-support] Re: A simple question about solve()

2009-06-04 Thread Mike Hansen
On Thu, Jun 4, 2009 at 4:22 PM, fred.ri...@gmail.com wrote: > > I have the same question about solve(). I have a system of quadratic > equations, and i want only the solution real of the system. > > I tried to define the space for all the variables i used, with assume > ()  but solve() return all

[sage-support] Re: A simple question about solve()

2009-06-04 Thread fred.ri...@gmail.com
I have the same question about solve(). I have a system of quadratic equations, and i want only the solution real of the system. I tried to define the space for all the variables i used, with assume () but solve() return all the solution complex or real. Does exist any solution in order to avoi

[sage-support] Re: A simple question about solve()

2009-04-15 Thread Nasser Abbasi
On Apr 15, 3:34 am, Diravan wrote: > I need to solve a very simple equation x^2 + 1 = 0 and I don't want > any complex solutions. > I tried this > x = var('x') > assume(x,'real') > solve(x^2 + 1 == 0) > but the output is [x == -1*I, x == I] > Does exist any solution in order to avoid this ? T

[sage-support] Re: A simple question about solve()

2009-04-15 Thread Robert Bradshaw
On Apr 15, 2009, at 3:34 AM, Diravan wrote: > > I need to solve a very simple equation x^2 + 1 = 0 and I don't want > any complex solutions. > I tried this > x = var('x') > assume(x,'real') > solve(x^2 + 1 == 0) > but the output is [x == -1*I, x == I] > Does exist any solution in order to avoid t