[sage-devel] Re: making a reset() makes it impossible to "quit"

2017-03-29 Thread Aidan
My bad, I misread what John meant. I thought he was asking whether what should be preserved under reset was defined by IPython, or sage. He was asking about the commands themselves though. On Wednesday, March 29, 2017 at 11:01:50 AM UTC-7, Aidan wrote: > > > It looks like they are a mix of

[sage-devel] Re: making a reset() makes it impossible to "quit"

2017-03-29 Thread Aidan
It looks like they are a mix of IPython and Sage. >From sage.misc.reset: # Exclude these from the reset command. # DATA, base64 -- needed by the notebook EXCLUDE = set(['sage_mode', '__DIR__', 'DIR', 'DATA', 'base64']) I may be completely wrong, but that's my guess. On Wednesday, March 29,

Re: [sage-devel] Re: making a reset() makes it impossible to "quit"

2017-03-29 Thread William Stein
On Wed, Mar 29, 2017 at 10:48 AM, John H Palmieri wrote: > It looks like a bug to me. > > ┌┐ > │ SageMath version 7.6, Release Date: 2017-03-25 │ > │ Type "notebook()" for

[sage-devel] Re: making a reset() makes it impossible to "quit"

2017-03-29 Thread John H Palmieri
It looks like a bug to me. ┌┐ │ SageMath version 7.6, Release Date: 2017-03-25 │ │ Type "notebook()" for the browser-based notebook interface.│ Type "help()" for help.

Re: [sage-combinat-devel] Improvements to FreeAlgebra

2017-03-29 Thread Nicolas M. Thiery
Hi Simon, Thanks for getting in touch, On Wed, Mar 29, 2017 at 02:34:28PM +, Simon King wrote: > Just to make people aware: 9 years ago, it was decided to > override Parent.__contains__ for CombinatorialFreeModule, > thus working around Sage's coercion framework. I guess we > should

Re: [sage-devel] algdep (PARI) with clang on FreeBSD

2017-03-29 Thread Thierry
Hi, On Wed, Mar 29, 2017 at 08:00:14AM -0700, Dima Pasechnik wrote: > > > On Wednesday, March 29, 2017 at 2:23:14 PM UTC+1, Jeroen Demeyer wrote: > > > > On 2017-03-29 11:24, Dima Pasechnik wrote: > > > Is the following a bug, or not: > > > > A bug in what :-) > > > > in pari (why don't

[sage-devel] making a reset() makes it impossible to "quit"

2017-03-29 Thread jplab
Hi, Is the following normal: sage: a=2; a 2 sage: reset() sage: a Traceback (most recent call last): ... NameError: name 'a' is not defined sage: quit Traceback (most recent call last): ... NameError: name 'quit' is not defined See the question on AskSage:

Re: [sage-devel] algdep (PARI) with clang on FreeBSD

2017-03-29 Thread Dima Pasechnik
On Wednesday, March 29, 2017 at 2:23:14 PM UTC+1, Jeroen Demeyer wrote: > > On 2017-03-29 11:24, Dima Pasechnik wrote: > > Is the following a bug, or not: > > A bug in what :-) > in pari (why don't they chop off a factor of x^j, it costs next to nothing) (or Sage can do this, too) > This

[sage-combinat-devel] Improvements to FreeAlgebra

2017-03-29 Thread Simon King
Hi! Just to make people aware: 9 years ago, it was decided to override Parent.__contains__ for CombinatorialFreeModule, thus working around Sage's coercion framework. I guess we should try to remove the custom CombinatorialFreeModule.__contains__, which is why I created #22707 (the branch hasn't

Re: [sage-devel] algdep (PARI) with clang on FreeBSD

2017-03-29 Thread Jeroen Demeyer
On 2017-03-29 11:24, Dima Pasechnik wrote: Is the following a bug, or not: A bug in what :-) This is already interesting (on Linux): sage: float(RR(3).sqrt()) 1.7320508075688772 sage: float(RDF(3).sqrt()) 1.7320508075688772 sage: float(RR(sqrt(3))) 1.7320508075688772 sage:

[sage-devel] algdep (PARI) with clang on FreeBSD

2017-03-29 Thread Dima Pasechnik
Is the following a bug, or not: # Sage 7.6 built with clang 3.8 on x86_64 FreeBSD 11.0 (see #22679) sage: z=(1/2)*(1+RDF(sqrt(3))*CDF.0); z 0.5 + 0.8660254037844386*I sage: [z.algdep(k) for k in [2..6]] [x^2 - x + 1, x^3 - x^2 + x, x^3 - x^2 + x, x^5 + x^2, x^5 + x^2] # Sage 7.6 on x86_64 Linux