[sage-support] Re: Real symbolic variable

2015-01-29 Thread Christophe Bal
I've just tried *a = var(a)assume(a, real)* *print a.is_real()* This prints *False*. Why ? *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python **amateur developer* 2015-01-28 21:56 GMT+01:00

Re: [sage-support] Re: Real symbolic variable

2015-01-29 Thread Vegard Lima
Hi, On Thu, Jan 29, 2015 at 12:33 PM, Christophe Bal projet...@gmail.com wrote: I've just tried a = var(a) assume(a, real) print a.is_real() This prints False. Why ? I can't answer why, but an option is to use var('a',domain='real') but that seems to behave a bit strangely: sage: a =

Re: [sage-support] Re: Real symbolic variable

2015-01-29 Thread Christophe Bal
Thanks for the argument domain. For the end of the code, this sounds like a bug. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python **amateur developer* 2015-01-29 13:04 GMT+01:00 Vegard Lima

Re: [sage-support] Re: Sage and latest debian problem

2015-01-29 Thread Jeroen Demeyer
On 2015-01-29 10:00, Rahul Wani wrote: Even I have similar problem. Even I have installed latest binutils library Which version is the latest binutils? Debian's latest might not be latest enough. -- You received this message because you are subscribed to the Google Groups sage-support group.

Re: [sage-support] Re: Real symbolic variable

2015-01-29 Thread Christophe Bal
For the bug, in the following example proposed by Vegrad LIma, the 1st and last line look contradictory in a dynamical language. *sage: a = var('a') sage: a.is_real() False* sage: assume(a,real) sage: a.is_real() False sage: a = var('a',domain='real') sage: a.is_real() True sage: a = 2+2*I

Re: [sage-support] Real symbolic variable

2015-01-29 Thread Michael Orlitzky
On 01/29/2015 06:14 PM, Christophe Bal wrote: Hello. Indeed, I just want to define complex number via the algebraic form z=a+i*b. expr.simplify_real() will be a great tool. I will be patient... It's actually already there, but at moment all you'll get out of it is abs(x) == sqrt(x^2).

Re: [sage-support] Re: Real symbolic variable

2015-01-29 Thread William Stein
On Thu, Jan 29, 2015 at 4:58 AM, Christophe Bal projet...@gmail.com wrote: Thanks for the argument domain. For the end of the code, this sounds like a bug. No -- I thought somebody would answer, but nobody did. The following is definitely *not* a bug: sage: a = 2+2*I sage: a.is_real()

Re: [sage-support] Real symbolic variable

2015-01-29 Thread Michael Orlitzky
On 01/28/2015 03:56 PM, Christophe Bal wrote: Hello. How can I define a symbolic variable that is a real number ? Therer is an optional argument real in the latest versions of Sympy but this not work in Sage. There isn't much support for declaring a variable real in Sage. By default every

Re: [sage-support] Real symbolic variable

2015-01-29 Thread Christophe Bal
Hello. Indeed, I just want to define complex number via the algebraic form z=a+i*b. expr.simplify_real() will be a great tool. I will be patient... *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python

Re: [sage-support] How to close a plot.

2015-01-29 Thread Michael Orlitzky
On 01/28/2015 10:27 AM, Volker Braun wrote: On Wednesday, January 28, 2015 at 4:18:50 PM UTC+1, kcrisman wrote: Does anyone think this might be useful to add to the FAQ or documentation (if so, where?)? IMHO we should not make any guarantees about the behavior of showing plots besides

Re: [sage-support] symmetric functions, unexpanded

2015-01-29 Thread john_perry_usm
Gentlemen! I only returned to this today, but I get it now. Thanks! I'm not sure whom to mark as best answer, though; both seem equally good. john perry On Saturday, January 24, 2015 at 2:54:22 PM UTC-6, Andrew Ohana wrote: On Fri, Jan 23, 2015 at 8:13 PM, john_perry_usm john@usm.edu

Re: [sage-support] Re: Real symbolic variable

2015-01-29 Thread Vegard Lima
On Thu, Jan 29, 2015 at 11:55 PM, William Stein wst...@gmail.com wrote: This is because Python is a *dynamically* typed language.Thinking that doing something like a = var('a',domain='real') would have any impact on what a = BLAH means would only make sense in a statically

Re: [sage-support] Re: Real symbolic variable

2015-01-29 Thread Christophe Bal
I also think that the 2nd use if var should erase the 2nd. Le 30 janv. 2015 07:17, Vegard Lima vegard.l...@gmail.com a écrit : On Thu, Jan 29, 2015 at 11:55 PM, William Stein wst...@gmail.com wrote: This is because Python is a *dynamically* typed language.Thinking that doing something like