Re: [sage-cell] Re: [sage-devel] Sage cells in interact wiki

2016-09-19 Thread Andrey Novoseltsev
On Monday, 19 September 2016 18:59:08 UTC-6, Jason Grout wrote: > > Some ideas: > > Is the MoinMoin sage cell extension enabled? > https://github.com/sagemath/sagecell/blob/master/contrib/moinmoin/sagecell.py. > If > it is enabled, was MoinMoin updated and the extension no longer works? > While

Re: [sage-devel] Re: How to check that something is a real number?

2016-09-19 Thread Bill Page
In keeping with Richard's suggestion, in Sage I think a good _algebraic_ definition of 'real' is bool(x/2+conjugate(x)/2 == x) So sage: def RN(x): : try: : return bool(x/2+conjugate(x)/2 == x) : except: : return false which also works whenever conjuga

[sage-devel] Sage contributor in AAUP journal

2016-09-19 Thread kcrisman
Some of you may be interested in this article by Paul-Olivier Dehaye: https://www.aaup.org/article/mooc-platforms-surveillance-and-control -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails fro

Re: [sage-cell] Re: [sage-devel] Sage cells in interact wiki

2016-09-19 Thread Jason Grout
Some ideas: Is the MoinMoin sage cell extension enabled? https://github.com/sagemath/sagecell/blob/master/contrib/moinmoin/sagecell.py. If it is enabled, was MoinMoin updated and the extension no longer works? Thanks, Jason On Mon, Sep 19, 2016 at 8:48 PM William Stein wrote: > On Mon, Sep 1

Re: [sage-cell] Re: [sage-devel] Sage cells in interact wiki

2016-09-19 Thread William Stein
On Mon, Sep 19, 2016 at 1:46 PM, Andrey Novoseltsev wrote: > On Monday, 19 September 2016 10:53:27 UTC-6, William wrote: >> >> This seems to be an absolutely *massive* issue, which I'm sure was caused >> by some API change by Andrey. These wiki pages have worked fine for about >> 7 years, so it'

[sage-devel] Re: How to check that something is a real number?

2016-09-19 Thread rjf
If arg(x) is 0 and x is a number, then it is a real number. Maxima calls this carg() for complex arg. Carg will also work for some things that are not of numeric type, but symbolic in some way. . Like sqrt(x^2+y^2) is real if domain=real Good luck On Monday, September 19, 2016 at 7:37:18

Re: [sage-devel] Sage cells in interact wiki

2016-09-19 Thread Paul Masson
I copied the generated source from a couple pages to an empty file and added a link to the SageMathCell script, https://sagecell.sagemath.org/static/embedded_sagecell.js";> and the interacts run (albeit with numerous deprecation errors). There is no problem with the SageMathCell server, the

Re: [sage-devel] Sage cells in interact wiki

2016-09-19 Thread Andrey Novoseltsev
On Monday, 19 September 2016 10:53:27 UTC-6, William wrote: > > This seems to be an absolutely *massive* issue, which I'm sure was caused > by some API change by Andrey. These wiki pages have worked fine for about > 7 years, so it's annoying that they are all suddenly broken. > > > I guess it w

Re: [sage-devel] Re: How to check that something is a real number?

2016-09-19 Thread Thierry
Hi, On Mon, Sep 19, 2016 at 06:54:29PM +0200, Jeroen Demeyer wrote: > On 2016-09-19 18:37, Travis Scrimshaw wrote: > >The closest I can get is "foo in RR". This fails for CC(2.3, 0), but I > >consider that to be a real number. > > I would say it's a complex number which happens to have a real val

Re: [sage-devel] Getting rid of reset() and restore()?

2016-09-19 Thread William Stein
On Mon, Sep 19, 2016 at 9:56 AM, Jeroen Demeyer wrote: > On 2016-09-19 18:50, William Stein wrote: > >> That's only "dangerous" if you expect reset to do the same thing as >> restart sage >> > > I would guess that users *do* expect that. sage: reset? Docstring: Delete all user-defined variab

Re: [sage-devel] Getting rid of reset() and restore()?

2016-09-19 Thread Jeroen Demeyer
On 2016-09-19 18:50, William Stein wrote: That's only "dangerous" if you expect reset to do the same thing as restart sage I would guess that users *do* expect that. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group

Re: [sage-devel] Re: How to check that something is a real number?

2016-09-19 Thread Jeroen Demeyer
On 2016-09-19 18:37, Travis Scrimshaw wrote: The closest I can get is "foo in RR". This fails for CC(2.3, 0), but I consider that to be a real number. I would say it's a complex number which happens to have a real value. But it is not a real number. It's the difference between *coercion* and

Re: [sage-devel] Sage cells in interact wiki

2016-09-19 Thread William Stein
This seems to be an absolutely *massive* issue, which I'm sure was caused by some API change by Andrey. These wiki pages have worked fine for about 7 years, so it's annoying that they are all suddenly broken. > I guess it was meant to use the Sage cell server to make the examples actually work bu

Re: [sage-devel] Getting rid of reset() and restore()?

2016-09-19 Thread William Stein
On Mon, Sep 19, 2016 at 3:49 AM, Jeroen Demeyer wrote: > Hello, > > is there anybody who uses the functions reset() or restore() from > src/sage/misc/reset.pyx > > They are meant to "reset" the global state in the interactive session to > what it was when Sage started up. This seems useless (why

[sage-devel] Re: How to check that something is a real number?

2016-09-19 Thread Travis Scrimshaw
The closest I can get is "foo in RR". This fails for CC(2.3, 0), but I consider that to be a real number. Best, Travis On Monday, September 19, 2016 at 9:37:18 AM UTC-5, Jeroen Demeyer wrote: > > Hello, > > is there a simple way to check in Sage that something is a real number > in some form?

[sage-devel] How to check that something is a real number?

2016-09-19 Thread Jeroen Demeyer
Hello, is there a simple way to check in Sage that something is a real number in some form? That is, I am looking for a predicate which returns True on all the following things: int(2) ZZ(2) float(2.3) QQ(23/10) RR(2.3) RDF(2.3) SR(2.3) 2*pi but not on things like "2.3" CC(2.3, 0) SR.symbol

Re: [sage-devel] Getting rid of reset() and restore()?

2016-09-19 Thread 'Martin R' via sage-devel
right. Am Montag, 19. September 2016 15:58:25 UTC+2 schrieb Jeroen Demeyer: > > On 2016-09-19 15:55, 'Martin R' via sage-devel wrote: > > I use it all the time, mainly for "x", "n", and "pi": > > But never reset() without arguments? > -- You received this message because you are subscribed to

Re: [sage-devel] Getting rid of reset() and restore()?

2016-09-19 Thread Jeroen Demeyer
On 2016-09-19 15:55, 'Martin R' via sage-devel wrote: I use it all the time, mainly for "x", "n", and "pi": But never reset() without arguments? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving e

Re: [sage-devel] Getting rid of reset() and restore()?

2016-09-19 Thread 'Martin R' via sage-devel
I use it all the time, mainly for "x", "n", and "pi": sage: n = 5 sage: del n sage: n --- NameError Traceback (most recent call last) in () > 1 n NameError: name 'n' is not defined sage: r

[sage-devel] Sage cells in interact wiki

2016-09-19 Thread Jeroen Demeyer
The "interact" wiki page https://wiki.sagemath.org/interact is seriously broken: I guess it was meant to use the Sage cell server to make the examples actually work but it doesn't do that anymore. What is worse: also the source code is not shown, making the examples almost totally useless...

Re: [sage-devel] Getting rid of reset() and restore()?

2016-09-19 Thread Vincent Delecroix
n 19 September 2016 at 13:12, Thierry wrote: > Hi, > > On Mon, Sep 19, 2016 at 12:49:27PM +0200, Jeroen Demeyer wrote: >> Hello, >> >> is there anybody who uses the functions reset() or restore() from >> src/sage/misc/reset.pyx > > > Various users are frequently asking for this, see e.g. this 3-ho

Re: [sage-devel] Getting rid of reset() and restore()?

2016-09-19 Thread Thierry
Hi, On Mon, Sep 19, 2016 at 12:49:27PM +0200, Jeroen Demeyer wrote: > Hello, > > is there anybody who uses the functions reset() or restore() from > src/sage/misc/reset.pyx Various users are frequently asking for this, see e.g. this 3-hours-old question on ask: https://ask.sagemath.org/question

[sage-devel] Getting rid of reset() and restore()?

2016-09-19 Thread Jeroen Demeyer
Hello, is there anybody who uses the functions reset() or restore() from src/sage/misc/reset.pyx They are meant to "reset" the global state in the interactive session to what it was when Sage started up. This seems useless (why not just quit Sage and restart it?) and dangerous (it resets glo

Re: [sage-devel] perl @INC

2016-09-19 Thread Jeroen Demeyer
On 2016-09-19 11:06, YannLC wrote: Should this be patched in Sage? patched upstream? left to the user? Certainly in upstream PARI. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it,

[sage-devel] perl @INC

2016-09-19 Thread YannLC
Hi, In Perl, Debian is removing '.' from @INC : https://lists.debian.org/debian-devel-announce/2016/08/msg00013.html This breaks the build for PARI on my machine. The workaround I used is just to add '.' to PERL5LIB when building sage. Should this be patched in Sage? patched upstream? left to

[sage-devel] Re: unexpected equality

2016-09-19 Thread Ralf Stephan
On Sunday, September 18, 2016 at 11:27:17 PM UTC+2, rjf wrote: > > looks to me like you should use some kind of decision procedure that gets > the right answer. > Doesn't it boil down to where functions have rational or algebraic versus irrational or transcendental values? -- You received this