[sage-support] Re: Possible error: isogeny classes

2023-11-26 Thread John Cremona
https://github.com/sagemath/sage/issues/36780 On Saturday, 25 November 2023 at 15:11:53 UTC John Cremona wrote: > Thanks for this report, which certainly indicates a bug. I will look into > it as the code here was written by me. I note that the two curves have CM > (by the order o

[sage-support] Re: Possible error: isogeny classes

2023-11-25 Thread John Cremona
session becauses of caching of previously computed results). John Cremona On Friday, 24 November 2023 at 03:50:54 UTC hbetx9 wrote: > Hi, > > In some work on isogeny clases, my team ran across the following of two > elliptic curves which are isogenous but sage reports diffe

Re: [sage-support] graph question about orientation of polyhedra

2023-06-19 Thread John Cremona
ve its orientation flipped. John > > > > On Mon, Jun 19, 2023 at 2:00 PM Dima Pasechnik wrote: > > > > oh, right, what I suggested isn't what you asked for, sorry. > > > > > > On Mon, 19 Jun 2023, 13:56 John Cremona, wrote: > >> > >&

Re: [sage-support] graph question about orientation of polyhedra

2023-06-19 Thread John Cremona
:18 PM UTC+1 Dima Pasechnik wrote: > On Mon, Jun 19, 2023 at 11:18 AM John Cremona wrote: > > > > I have some quite small graphs which are polyhedral, each is the > 1-skeleton of a (connected convex) polyhedron such as a cube, tetrahedron, > etc, constructed from a list of

[sage-support] graph question about orientation of polyhedra

2023-06-19 Thread John Cremona
I have some quite small graphs which are polyhedral, each is the 1-skeleton of a (connected convex) polyhedron such as a cube, tetrahedron, etc, constructed from a list of edge pairs. I can get the faces of one of these, say G, via G.faces(). This returns a list of lists of vertices, each one

[sage-support] tracking memory usage

2023-01-20 Thread John Cremona
I'm sure I have seen posts about this but cannot find them or guess the appropriate commands. In testing variants of some new and algorithms to compute the same thing I know how to measure the CPU time taken using cputime(), but is there a way I can tell how much memory was used -- the maximum

Re: [sage-support] evaluation of polynomials mod 8

2022-09-27 Thread John Cremona
Thanks! On Tuesday, September 27, 2022 at 3:02:25 PM UTC+1 Kwankyu wrote: > This bug is tracked now in > > https://trac.sagemath.org/ticket/34591 > > On Tuesday, September 27, 2022 at 6:31:39 PM UTC+9 wdjo...@gmail.com > wrote: > >> On Tue, Sep 27, 2022 at

[sage-support] evaluation of polynomials mod 8

2022-09-27 Thread John Cremona
Am I doing something stupid here, or is this a bug? sage: R = Integers(8) sage: RXY. = R[] sage: F = X^3-X^2*Y+X*Y^2+Y^3 sage: F([4,2]) 6 sage: 4^3-4^2*2+4*2^2+2^3 56 sage: (4^3-4^2*2+4*2^2+2^3) % 8 0 Why does F not evaluate to 0 mod 8 at X=4, Y=2? Rather obviously, each of the terms in F(4,2)

Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-10 Thread John Cremona
As expected, using firefox to navigate to the file in .sage works fine. But also, I found that within a notebook the 3d display is just fine on chromium too -- complete with rotation and zooming in and out. That is very nice. On Tuesday, November 9, 2021 at 7:36:43 PM UTC John H Palmieri

Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-09 Thread John Cremona
Thanks for all the replies. I did not respond earlier just because I have my Google groups set to daily summary for this group which meant that none of the replies even landed in my inbox until today's summary. That's not very helpful of Google. OK, so for the time being I ll use Firefox to

[sage-support] trouble displaying 3D graphics

2021-11-08 Thread John Cremona
I don't often use 3D graphics, but when I run implicitplot3d() I get a file permissions error (on ubuntu 20.04): # example from the docstring sage: var('x,y,z') (x, y, z) sage: implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3)) Launched html viewer for Graphics3d Object Over in my

Re: [sage-nt] Re: [sage-support] AssertionError when finding roots over the Real Algebraic Field

2021-09-22 Thread John Cremona
More generally uf all the coefficients can be coerced into AA then the roots in QQbar not in AA come in pairs. On Wed, 22 Sep 2021, 09:23 Dima Pasechnik, wrote: > > > On Wed, Sep 22, 2021 at 9:19 AM Dima Pasechnik wrote: > >> >> >> On Wed, Sep 22, 2021 at 8:10 AM Tracy Hall wrote: >> >>> I

[sage-support] Does anyone know what this means?

2021-07-27 Thread John Cremona
At the end of a run of some code I have run before, without seeing this: /usr/local/sage/sage-9.3/local/lib/python3.9/site-packages/prompt_toolkit/renderer.py:514: DeprecationWarning: The explicit passing of coroutine objec ts to asyncio.wait() is deprecated since Python 3.8, and scheduled for

[sage-support] having trouble entering multiline code

2021-03-22 Thread John Cremona
I havethe problem reported here -- but apparently solved in ipython 7.1.1, but I am using sage-9.2 with ipython 7.13.0 (as reported by "sage -ipython"). https://stackoverflow.com/questions/52947493/ipython-how-to-continue-code-on-the-next-line I start entering a loop like this sage: for n in

Re: [sage-support] gp in Sage

2020-09-02 Thread John Cremona
st of these are congruent to 1 mod 4 so the j-value is j((1+sqrt(d))/2) , only those which are 0 mod 4 are on the imaginary axis with values j(sqrt(D)/2) as in your list. THere is a big theory of complex multiplcation behind these facts, but I don'y think that "gp in Sage" is an accurate

[sage-support] recovering the last Sage command while it is still running

2020-08-20 Thread John Cremona
Suppose I enter a command at the Sage prompt and it runs and runs, producing vast amounts of output to the screen (too much to scroll back), during which I start to wonder if I typed the command correctly or perhaps added a 0 to a parameter by mistake. I don't want to interrupt the computation.

[sage-support] summing infinite series

2020-06-12 Thread John Cremona
I never deliberately use the Symbolic Ring since I believe in algebra. But I wanted to simplify some quite complicated expressions involving infinite series in one variable called 'p', nothing more complicated that geometric series, and from sum? I learned that this could be done in SR. However

[sage-support] Re: Endomorphism Rings of Elliptic Curves

2020-01-22 Thread John Cremona
I suspect the question might have been referring to elliptic curves over finite fields. In the ordinary case you can ask for the Frobenius order and know that the endomorphism ring is between that and the maximal order of its field of fractions (an imaginary quadratic field) but as far as I

[sage-support] Re: Minor bug in EllipticCurve's global_minimal_model()

2020-01-11 Thread John Cremona
On Saturday, January 11, 2020 at 10:49:08 AM UTC, Benjamin Matschke wrote: > > Computing the global minimal model of an elliptic curve over a number > field isomorphic to QQ... > > sage: K. = NumberField(x-1) > sage: E = EllipticCurve(K,[0,2]) > sage: E.global_minimal_model() > > ... raises an

Re: [sage-support] Unexpected error for asking diagonalizability

2019-11-08 Thread John Cremona
On Fri, 8 Nov 2019 at 01:33, saad khalid wrote: > This functionality seems to be intended somehow? At least, it is made > reference to in the documentation: > http://doc.sagemath.org/html/en/reference/matrices/sage/matrix/matrix2.html > Look at the part after: > "A matrix that is not

Re: [sage-support] Re: Solve equation efficiently

2019-07-30 Thread John Cremona
On Tue, 30 Jul 2019 at 05:56, Kwankyu wrote: > > > On Thursday, July 25, 2019 at 12:08:20 AM UTC+9, chandra chowdhury wrote: >> >> I have matrices B and C of size (m,n) over integer with m>n. >> I know there is matrix A of size (m,m) such that >> AB=C. How to find A efficiently in Sage? >> > Try

Re: [sage-support] Counting Points of Multivariate Polynomials Over Finite Fields

2019-07-09 Thread John Cremona
As far as I know the answer is "no" except for elliptic and hyperelliptic curves. John Cremona On Tue, 9 Jul 2019 at 00:47, Caleb Robelle wrote: > I am using sage version 7.3 on Linux mint 18. I was wondering if there are > algorithms to count points of multivariate polynom

Re: [sage-support] Polynomial over prime field

2019-06-17 Thread John Cremona
On Mon, 17 Jun 2019 at 13:02, chandra chowdhury wrote: > Hi, > I have multi variable polynomial over integers say f(x,y,z). > I want to define it over GF(5) efficiently. > > For that I am doing this: > > > R=PolynomialRing(GF(5), 3, 'X') > Z = list(R.gens()) > > But g=R(f(Z)) is not working. >

Re: [sage-support] Re: starting sage with no history file

2019-05-22 Thread John Cremona
On Wed, 22 May 2019 at 11:18, John Cremona wrote: > > > On Wed, 22 May 2019 at 11:17, John Cremona wrote: > >> >> >> On Wed, 22 May 2019 at 10:27, slelievre >> wrote: >> >>> Le mercredi 22 mai 2019 10:00:34 UTC+2, John Cremona a écrit : &

Re: [sage-support] Re: starting sage with no history file

2019-05-22 Thread John Cremona
On Wed, 22 May 2019 at 11:17, John Cremona wrote: > > > On Wed, 22 May 2019 at 10:27, slelievre wrote: > >> Le mercredi 22 mai 2019 10:00:34 UTC+2, John Cremona a écrit : >>> >>> Paul Zimmermann suggested using -nodotsage, which apparently creates a >>

Re: [sage-support] Re: starting sage with no history file

2019-05-22 Thread John Cremona
On Wed, 22 May 2019 at 10:27, slelievre wrote: > Le mercredi 22 mai 2019 10:00:34 UTC+2, John Cremona a écrit : >> >> Paul Zimmermann suggested using -nodotsage, which apparently creates a >> temporary .sage directory which I expect would be different for different >&g

Re: [sage-support] Re: starting sage with no history file

2019-05-22 Thread John Cremona
Paul Zimmermann suggested using -nodotsage, which apparently creates a temporary .sage directory which I expect would be different for different runs. This is not ideal since currently the scripts I am running this way make use of a %runfile command in ~/.sage/initsage to load all the functions

[sage-support] starting sage with no history file

2019-05-21 Thread John Cremona
(from the command line) appears not to. Am I missing something? John Cremona -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-suppor

Re: [sage-support] Print statement vs function in Sage-py3

2019-04-03 Thread John Cremona
On Wed, 3 Apr 2019 at 18:56, John H Palmieri wrote: > > > On Wednesday, April 3, 2019 at 10:11:19 AM UTC-7, kcrisman wrote: >> >> >> >> On Tuesday, April 2, 2019 at 6:03:23 PM UTC-4, Dima Pasechnik wrote: >>> >>> On Tue, Apr 2, 2019 at 10:47 PM wrote: >>> > >>> > Hello, Sage community. >>> >

Re: [sage-support] primes -- enhancement request

2019-03-12 Thread John Cremona
You did not say what command you were using. The documentation for both primes() and prime_range() show examples with much larger primes. John Cremona On Tue, 12 Mar 2019 at 11:25, Peter Luschny wrote: > ValueError: Cannot compute primes beyond 436273290 > > > I think SageMa

Re: [sage-support] Maple interface

2019-03-08 Thread John Cremona
Perhaps an easier way to debug this is to use the fact that the global maple object is defined in the Sage library by the assignment maple=Maple() (in sage/interfaces/maple.py) and if at the top of your Sage session you do maple = Maple(logfile="maple.log") then you can take a look in that file to

Re: [sage-support] about the speed of tha Magma interface

2019-02-26 Thread John Cremona
On Tue, 26 Feb 2019 at 17:01, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > I don't think this has ever been implemented in Sage. You > have to figure out how to create a sparse matrix in magma > and write Sage code to produce it. You can get inspiration > from the current code of

Re: [sage-support] Fwd: Sage Crash Report

2019-02-20 Thread John Cremona
On Wed, 20 Feb 2019 at 14:24, Douglas Webster wrote: > Thank you, Isuru, for the assistance, but I'm afraid it still isn't > working. The program is still crashing, but this time it seems to be the > elliptical curves module that is causing the problem. A copy of the crash > report is attached

Re: [sage-support] Re: please explain casting in this example

2019-02-16 Thread John Cremona
1. You can use srange which works like range but gives a list of Sage integers. 2. To coerce an int to a Sage Integer just use ZZ(): sage: srange(1,4) [1, 2, 3] sage: [type(i) for i in srange(1,4)] [, , ] sage: range(1,4) [1, 2, 3] sage: [type(i) for i in range(1,4)] [, , ] sage: [type(ZZ(i))

Re: [sage-support] how to specify a port when running jupyter notebook

2019-02-04 Thread John Cremona
On Mon, 4 Feb 2019 at 10:01, Jan Groenewald wrote: > Hi > > On Mon, 4 Feb 2019 at 11:58, J E Cremona > wrote: > >> Is it possible to specify which port the jupyter notebook server runs >> on? I think the default is , but sometimes a different one is used >> (e.g.8889 if is in use). I

Re: [sage-support] Re: attaching files in a jupyter notebook

2018-12-13 Thread John Cremona
On Wed, 12 Dec 2018 at 20:44, Nils Bruin wrote: > I would expect magic commands to work a little differently in the jupyter > gui than on the command line, so the possibility for an error doesn't > surprise me too much. It can probably be fixed. However, a straight-up > "attach('')" would

[sage-support] attaching files in a jupyter notebook

2018-12-12 Thread John Cremona
I have a file testcong.py which contains various functions I am developing, while testing them in a jupyter notebook. The first cell in the notebook has the "magic" line "%run testcong.py" and so whenever I make a change to the .py file I have to re-click on that cell. This gets tedious,

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread John Cremona
On Mon, 19 Nov 2018 at 13:45, Dima Pasechnik wrote: > > > On Monday, November 19, 2018 at 1:14:38 PM UTC, Kolen Cheung wrote: >> >> "shut up" is language issue? You dont know whats bad language. > > > I bet I can swear in more languages than you do: English, Russian, Dutch, > German, Ukrainian,

Re: [sage-support] Re: using parallel & fork decorators with timeout

2018-10-26 Thread John Cremona
to work out what makes the difference. John On Thu, 25 Oct 2018 at 19:15, Nils Bruin wrote: > On Thursday, October 25, 2018 at 9:12:56 AM UTC-7, Nils Bruin wrote: >> >> On Thursday, October 25, 2018 at 7:13:26 AM UTC-7, John Cremona wrote: >>> >>> sage: for res

Re: [sage-support] Deleting all zero rows in a matrix.

2018-10-02 Thread John Cremona
On Tue, 2 Oct 2018 at 08:56, wrote: > If I have a matrix [1,0,1] [0,1,1] [0,0,0], [0,0,0], how do I delete the > zero rows? (in this case rows 2 and 3). I know how to manually delete them, > but what about for all cases, regardless of input. I want to have all the 0 > rows deleted in any

Re: [sage-support] Re: jupyter notebook problem with 8,3

2018-08-09 Thread John Cremona
On 9 August 2018 at 12:20, Volker Braun wrote: > So whats in /home/jec/.sage/jupyter-4.1/jupyter_notebook_config.json > Ah! It contains { "NotebookApp": { "password": "sha1:af540ed8f4" } } (where I have deleted most of the password). I moved that file away and now all is

Re: [sage-support] Re: jupyter notebook problem with 8,3

2018-08-09 Thread John Cremona
ok/static/auth/js/main.min.js [D 12:15:00.764 NotebookApp] 304 GET /static/auth/js/main.min.js (::1) 2.14ms and still no token is appearing. Luckily I have other computers all working fine with 8.3, on which I have moved my current work... John > > > > On Thursday, Augus

Re: [sage-support] Re: jupyter notebook problem with 8,3

2018-08-09 Thread John Cremona
e of the error messages I get when trying to run Sage jupyter notebook are nothing to do with Sage. > > > On Wednesday, August 8, 2018 at 5:38:03 PM UTC+2, John Cremona wrote: >> >> I just updagred to 8.3 on a machine (ubuntu 16.04) where I have >> frequently run Sage bot

[sage-support] jupyter notebook problem with 8,3

2018-08-08 Thread John Cremona
I just updagred to 8.3 on a machine (ubuntu 16.04) where I have frequently run Sage both command-line and jupyter notebook previously. Now when I type sage --notebook=jupyter I see ┌┐ │ SageMath version 8.3, Release Date:

Re: [sage-support] binomial() puts

2018-08-08 Thread John Cremona
On 7 August 2018 at 20:56, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > The global binomial function is to be blamed. The one > in arith works fine > > sage: R. = ZZ[] > sage: sage.arith.all.binomial(q,2) > 1/2*q^2 - 1/2*q > sage: sage.arith.all.binomial(q,2).parent() > Univariate

Re: [sage-support] Re: Where is (the) kash?

2018-07-10 Thread John Cremona
On 10 July 2018 at 11:02, Dima Pasechnik wrote: > > > On Tuesday, July 10, 2018 at 10:58:45 AM UTC+1, John Cremona wrote: >> >> >> >> On 10 July 2018 at 10:48, Dima Pasechnik wrote: >> >>> I imagine it makes little sense to ask for open-sou

Re: [sage-support] Re: Where is (the) kash?

2018-07-10 Thread John Cremona
rg/ticket/22982 (a meta-ticket where kash is a >> part of) >> >> I think it's unfortunately a wasted effort (as far as kash goes)... >> >> >> On Tuesday, July 10, 2018 at 9:02:24 AM UTC+1, John Cremona wrote: >>> >>> Thanks for

Re: [sage-support] Re: Where is (the) kash?

2018-07-10 Thread John Cremona
Thanks for the replies. There should be a ticket opened for removing the current instructions to use kash, whether or not they are replaced by something else. John On 9 July 2018 at 23:48, Alexander Konovalov wrote: > Note that the Alnuth package for GAP switched from KANT to PARI/GP, > with

[sage-support] Where is (the) kash?

2018-07-09 Thread John Cremona
If you try (in Sage-8.2) sage: x = polygen(QQ) sage: f = x^12-2 sage: f.galois_group() you will see the message NotImplementedError: the package 'kash' was not found. You can install it by running 'sage -i kash' in a shell Sorry, computation of Galois groups of fields of degree bigger than 11

Re: [sage-support] Re: PariError: bug in LLL_cmbf [no factor], please report

2018-06-13 Thread John Cremona
On 13 June 2018 at 10:30, Jeroen Demeyer wrote: > Thanks for checking. In the mean time, I guess the problem might be > related to the fact that I'm using a non-default value for primelimit in GP > (100 instead of 50). > > But if you say that the problem is fixed by the PARI upgrade, I

Re: [sage-support] Re: PariError: bug in LLL_cmbf [no factor], please report

2018-06-13 Thread John Cremona
compiled: Jun 13 2018, gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) threading engine: single it seems to work fine. I see that you have opened a ticket. Thanks, John On 13 June 2018 at 09:40, John Cremona wrote: > > > On 13 June 2018 at 09:34, Jeroe

Re: [sage-support] Re: PariError: bug in LLL_cmbf [no factor], please report

2018-06-13 Thread John Cremona
On 13 June 2018 at 09:34, Jeroen Demeyer wrote: > On 2018-06-13 10:25, John Cremona wrote: > >> THanks for looking into this Jeroen (I hoped you would). The file >> bug.gp <http://bug.gp> you attached causes an error in the latest gp >> (version 2.10.0), afte

Re: [sage-support] Re: PariError: bug in LLL_cmbf [no factor], please report

2018-06-13 Thread John Cremona
THanks for looking into this Jeroen (I hoped you would). The file bug.gp you attached causes an error in the latest gp (version 2.10.0), after increasing parisizemax I get the same error message. But I compiled that more than a week ago so probably before we send a bug report upstream we should

[sage-support] Re: PariError: bug in LLL_cmbf [no factor], please report

2018-06-12 Thread John Cremona
Sorry, I forgot to attach the polynomials. (Exercise for the reader: recompute them with a few lines of Sage using the hint in my original post). On 12 June 2018 at 17:26, John Cremona wrote: > The error in the subject line comes from running the attached code which > defines two

[sage-support] PariError: bug in LLL_cmbf [no factor], please report

2018-06-12 Thread John Cremona
The error in the subject line comes from running the attached code which defines two monic integral polynomials in QQ[x], both irreducible and defining the same number field of degree 44, and trying to find a root of the second in the number field defined by the first: Trying K.is_isomorphic(L)

Re: [sage-support] Re: editor for sage commands

2018-05-23 Thread John Cremona
On 23 May 2018 at 15:11, Emmanuel Charpentier wrote: > Dear Francesco, > > Le dimanche 20 mai 2018 18:57:54 UTC+2, Francesco a écrit : >> >> I tried to use emacs with sage-shell-mode, but I have some difficulty to >> configure all things. >> > > What is (are) the

Re: [sage-support] Re: editor for sage commands

2018-05-20 Thread John Cremona
On Sun, 20 May 2018, 17:57 Francesco, wrote: > I tried to use emacs with sage-shell-mode, but I have some difficulty to > configure all things. Furthermore I am a new user of emacs.. > Is there a clear guide of the operations to configure sage-shell-mode of >

[sage-support] jupyter notebook writefile magic: no end-of-line at the end

2018-05-01 Thread John Cremona
I was using the jupyter notebook's magic %%writefile, where you put "%%writefile [-a] filename.py" at the top of a cell and then evaluating the cell writes the cell's contents to the file (overwriting by default, or appending if you give the -a flag). I found that the file so written to has the

Re: [sage-support] scalar restriction in extension field

2018-04-16 Thread John Cremona
On 16 April 2018 at 12:04, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > On 16/04/2018 09:21, fanxue...@iie.ac.cn wrote: > >> I have constructed a big prime field: >> >>> p=68235916425158872634653027 F=GF(p) >>> > Here is what I get > > sage: p = 68235916425158872634653027 >

Re: [sage-support] points on a Fermat curve

2018-04-13 Thread John Cremona
This looks like a bug to me: sage: F=GF(3) sage: R.=F[] sage: C=Curve(X^8+Y^8-Z^8) sage: C.count_points(1) # correct count over GF(3^1) [4] sage: C.count_points(8) # should give counts over GF(3^n) for n=1..8 but it crashes TypeError: F (=[X^8 + Y^8 - Z^8]) must be a list or tuple of

Re: [sage-support] Re: Displaying Sagetex code

2018-03-19 Thread John Cremona
Harald, you might be interested in this example: https://arxiv.org/src/1306.6818v3/anc/X13.pdf John Cremona On 19 March 2018 at 10:59, Emmanuel Charpentier < emanuel.charpent...@gmail.com> wrote: > > > Le dimanche 18 mars 2018 19:28:02 UTC+1, Harald Helfgott a écrit : >&

[sage-support] Request for a large download of data

2018-03-13 Thread John Cremona
>From the bug-report spreadsheet: I am a PhD student in Mathematics at Oxford interested in identifying modular forms given their q expansions. To do this it would be useful to have a copy of the `webnewforms` collection listed here

Re: [sage-support] Re: Is this a bug?

2018-02-28 Thread John Cremona
On 28 February 2018 at 13:49, Ralf Stephan wrote: > Why should I define x when Sage gives me a polynomial with x, doesn't it > already know it? > > That's what a user would ask and, frankly, s/he would be right. > Here is one reason. In this example: sage:

Re: [sage-support] Memory leak in loops (SageMath 8.1)

2017-12-15 Thread John Cremona
I think Marco (who works with me) took my suggestion to simplify his problem code as much as possible before posting a little too literally. Marco, send in something closer to what you showed me yesterday (which was about factorization of polynomials of degree 4 in F[X,Y,Z] with F a quite small

Re: [sage-support] Re: multiuser jupyter notebook server?

2017-10-31 Thread John Cremona
gt; It would actually be good to figure this out in a good way, under the ODK > umbrella. > > Cheers, > Dima > > > On Tuesday, October 31, 2017 at 9:39:12 AM UTC, John Cremona wrote: >> >> With the old Sage notebook one could start a server running and allow >

[sage-support] multiuser jupyter notebook server?

2017-10-31 Thread John Cremona
With the old Sage notebook one could start a server running and allow multiple users to create accounts and log into it (say behind a firewall for security). Is that possible with the Jupyter notebook? I have tried but unsuccessfully except as follows: when jupyter starts up (i.e. I type 'sage

Re: [sage-support] Re: which browser

2017-10-23 Thread John Cremona
2017 at 7:38:58 AM UTC-7, John Cremona wrote: >> >> On 20 October 2017 at 15:34, John Cremona <john.c...@gmail.com> wrote: >> > I am running Sage on a linux machine which has chromium-browser as the >> > default browser, but when I type >> > >> > s

[sage-support] Re: which browser

2017-10-20 Thread John Cremona
On 20 October 2017 at 15:34, John Cremona <john.crem...@gmail.com> wrote: > I am running Sage on a linux machine which has chromium-browser as the > default browser, but when I type > > sage --notebook=jupyter > > it starts firefox and opens in a tab there. How can I get

[sage-support] which browser

2017-10-20 Thread John Cremona
I am running Sage on a linux machine which has chromium-browser as the default browser, but when I type sage --notebook=jupyter it starts firefox and opens in a tab there. How can I get it to use chrome? John -- You received this message because you are subscribed to the Google Groups

Re: [sage-support] Re: dividing polynomials without ending up in quotient field

2017-10-18 Thread John Cremona
On 18 October 2017 at 10:00, Dima Pasechnik wrote: > > > On Wednesday, October 18, 2017 at 9:28:50 AM UTC+1, Robin van der veer > wrote: >> >> Hello, >> >> If I have, say, >> >> R = PolynomialRing(QQ, 'x', 5) >> >> And I have two polynomials, one of which divides the other.

[sage-support] Fwd: typos wanted

2017-09-08 Thread John Cremona
-- Forwarded message -- From: paul zimmermann Date: 8 September 2017 at 09:27 Subject: typos wanted To: john.crem...@gmail.com John, please could you post the following to sage-support (and maybe sage-devel)? Thank you, Paul

Re: [sage-support] 8.0 Installation Guide Error

2017-09-04 Thread John Cremona
On 4 September 2017 at 07:53, Pstrang Rzekle wrote: > Installation Guide for 8.0, Section "3.7 Installation in a Multiuser > Environment" > and also here: > http://doc.sagemath.org/html/en/installation/source.html#installation-in-a-multiuser-environment > > erroneously inform

[sage-support] Re: [forwarded from bug tracker]

2017-08-16 Thread John Cremona
Apologies, that was supposed to go to lmfdb-support. Ignore! John On 16 August 2017 at 08:48, John Cremona <john.crem...@gmail.com> wrote: > This is a very minor comment about the description/definition of "GL_2 > type" in the genus 2 curve page (after clicking the "G

[sage-support] [forwarded from bug tracker]

2017-08-16 Thread John Cremona
This is a very minor comment about the description/definition of "GL_2 type" in the genus 2 curve page (after clicking the "GL_2 type" link). The last sentence is a bit misleading. Perhaps it should say "the endomorphism algebra is 2-dimensional over Q" as opposed to "the endomorphism algebra is

Re: [sage-support] Re: Polynomial factorization over modular ring

2017-08-15 Thread John Cremona
is that polynomials over Z/25Z do not form a unique factorization domain (or even a domain) so even the definition of what factors you might want to see is unclear. Following Nils, for a prime power modulus, a sensible definition is to take an approximation of the p-adic factorization. The for

Re: [sage-support] cyclic algebras

2017-07-10 Thread John Cremona
On 10 July 2017 at 14:56, Nils Bruin <nbr...@sfu.ca> wrote: > On Monday, July 10, 2017 at 3:38:27 PM UTC+2, John Cremona wrote: >> >> Sage does have a function is_norm() for number field elements so the >> underlying algebraic problem should be solvable. > > &

Re: [sage-support] cyclic algebras

2017-07-10 Thread John Cremona
Sage does have a function is_norm() for number field elements so the underlying algebraic problem should be solvable. Example (p=3): sage: Q3. = CyclotomicField(3) sage: a=2+3*z sage: b=3+4*z sage: x=polygen(Q3) sage: L.=Q3.extension(x^3-a) sage: b.is_norm(L) False On 10 July 2017 at 14:23,

Re: [sage-support] Computation just stops, no output or error message

2017-06-07 Thread John Cremona
My guess is that the output is buffered, i.e. it does not get actually written out unti lthe buffer reaches some size. You can get python to flush the output after every output statement and then see what is happening a bit better. John On 7 June 2017 at 16:33, Robin van der veer

Re: [sage-support] Re: accumulating many defunct child processes

2017-06-05 Thread John Cremona
On 5 June 2017 at 20:04, John Cremona <john.crem...@gmail.com> wrote: > Thanks for the suggestions. I was implementing something like Dima's > suggestion and noticed that the function has 3 different return > statements, one of which is not normal (some runtime error in M

Re: [sage-support] Re: accumulating many defunct child processes

2017-06-05 Thread John Cremona
is even less documented, and >> it's hard to say exactly what to do >> with is. A documentation bug? >> >> >> >> >> On Monday, June 5, 2017 at 2:44:32 PM UTC+1, John Cremona wrote: >>> >>> On a linux (ubuntu 16.

[sage-support] accumulating many defunct child processes

2017-06-05 Thread John Cremona
On a linux (ubuntu 16.04) machine I am running one instance of Sage version 7.6. In a loop I am calling a function of my own which interfaces to Magma; that function starts with mag = Magma() then there are a whole lot of mag.eval() statements and af ew others with which I collect the content

Re: [sage-support] EllipticCurve gens()/gens_certain() caching problem

2017-05-24 Thread John Cremona
derscore to indicate that they are internal and not normally intended for use by users). John Cremona On 24 May 2017 at 00:29, Lee Morgenstern <lmorgenste...@roadrunner.com> wrote: > How do I disable caching for elliptic curve gens() results? > > The cache doesn't store (or check) enough informat

Re: [sage-support] Discrete Logarithm

2017-05-11 Thread John Cremona
n answer is about the latter. Not really: generators of the additive group are coprime to p, not to p-1. Perhaps Johan was thinking of the fact that if g is one multiplicative generator (aka primitive root) then g^k is another if and only if gcd(k,p-1)=1. John Cremona > > For very large p such

Re: [sage-support] Re: Use of \Bold in latex methods, and SageTeX

2017-05-08 Thread John Cremona
ack to 2009: > see sage/misc/latex_macros.py. I am also surprised since I have used SageTeX before without this problem! In fact I was running it on a tex file which used to work. On a different computer though... John > > -- > John > > > On Monday, May 8, 2017 at 12:25:12

[sage-support] Use of \Bold in latex methods, and SageTeX

2017-05-08 Thread John Cremona
In Sage 7.6: sage: latex(QQ) \Bold{Q} but \Bold is not a standard LaTeX macro. However, sage: show(QQ) \newcommand{\Bold}[1]{\mathbf{#1}}\Bold{Q} shows that the macro is defined somewhere in Sage itself. Next, if I create a file mini.tex containing \documentclass{article}

Re: [sage-support] Re: Computing discrete logs in polynomial rings modulo another polynomial over non-prime-power

2017-04-09 Thread John Cremona
On 9 April 2017 at 15:20, Simon King wrote: > Hi Bill, > > On 2017-04-08, 'Bill Cox' via sage-support > wrote: >> I want to test finding the discrete log in the circle group over Z/Zm -- >> discrete logs of g^a mod m, where g is a complex

Re: [sage-support] Incorrect output of a sum

2017-03-31 Thread John Cremona
It works fine if you insert * between the parentheses -- no implicit multiplication: sage: gamma3(a,b,c,j) = 1/((e^(2*pi*i*(a*j/16))-1)*(e^(2*pi*i*(b*j/16))-1)*(e^(2*pi*i*(c*j/16))-1)) sage: sum(gamma3(1,2,9,j) for j in [1..7]).n() 3.00 - 0.249*I On 31 March 2017 at

Re: [sage-support] Using Galois fields for less than 2^16, crashes and restarts Kernel

2017-03-14 Thread John Cremona
You should not need to import anything. For example sage: F = GF(2^3) sage: type(F) sage: F = GF(2^4) sage: type(F) sage: F = GF(2^16) sage: type(F) Note that the type will depend on the cardinality since Sage uses different backend implementations. Unless you have very some very unusual

Re: [sage-support] Error during Laplace transform of exp(i*x)

2017-03-06 Thread John Cremona
Your question is puzzling since i is a constant, and 1/(s-i) = (s+i)/(s^2+1) so the expressions are equal. John Cremona On 6 Mar 2017 17:35, "Hemanth G" <ghem...@gmail.com> wrote: > Dear All, > > How do you make SageMath to consider the term "i" as

Re: [sage-support] Silly Cython question

2017-02-22 Thread John Cremona
On 21 February 2017 at 22:02, Watson Ladd wrote: > > > On Tuesday, February 21, 2017 at 1:07:43 PM UTC-8, Jeroen Demeyer wrote: >> >> On 2017-02-21 22:02, Watson Ladd wrote: >> > I am having trouble figuring out which imports I need to get the >> > right names to appear >>

Re: [sage-support] Re: Lattice reduction over polynomial lattice

2017-02-21 Thread John Cremona
On 21 February 2017 at 08:38, 'Martin R. Albrecht' via sage-support wrote: > Hi, > > I don’t think this is implemented in Sage. I think it is: searching for weak_popov_form finds results in matrix/matrix2.pyx with a method M.weak_popov_form(), though admittedly the

Re: [sage-support] v3 (3d vector gives an error)

2017-02-06 Thread John Cremona
; On Feb 5, 2017 5:38 PM, "Henri Girard" <henri.gir...@gmail.com> wrote: >> >> Thanks >> >> >> Le 05/02/2017 à 23:32, John Cremona a écrit : >> >> V3 is not a vector! >> >> On 5 Feb 2017 21:42, "Henri Girard" <henri.gir..

Re: [sage-support] v3 (3d vector gives an error)

2017-02-05 Thread John Cremona
V3 is not a vector! On 5 Feb 2017 21:42, "Henri Girard" wrote: > The third vector is an error, is it a bug ? > > v1=vector([3,4,-6]) > v2=vector([-4,3,10]) > v3=v1.dot_product(v2) > p1=v1.plot(color='red') > p2=v2.plot(color='green') > p3=v3.plot() > >

Re: [sage-support] Re: How to resume working in SAGE after 10 years?

2017-01-13 Thread John Cremona
is certainly old (7.5 has just been released)! John Cremona On 13 January 2017 at 15:17, Charles Pique <wvphysic...@gmail.com> wrote: > The online site where I worked with SAGE (sagenb.org) was taken down because > of spammers according to > https://ask.sagemath.org/question/3627

Re: [sage-support] Re: splitting field vs. Galois closure

2017-01-06 Thread John Cremona
On 5 January 2017 at 20:01, Nils Bruin <nbr...@sfu.ca> wrote: > On Thursday, January 5, 2017 at 11:27:05 AM UTC-8, John Cremona wrote: >> >> > I'm tempted to say: beware of memory leaks. Caching an extension on the >> > base >> > field would probably im

Re: [sage-support] Re: splitting field vs. Galois closure

2017-01-05 Thread John Cremona
On 5 January 2017 at 18:15, Nils Bruin <nbr...@sfu.ca> wrote: > On Thursday, January 5, 2017 at 2:27:06 AM UTC-8, John Cremona wrote: >> >> I have a degree 5 polynomial whose Galois group is large (S_5): >> >> sage: x = polygen(QQ) >> sage: f = x^5 - 6*x^3

[sage-support] splitting field vs. Galois closure

2017-01-05 Thread John Cremona
I have a degree 5 polynomial whose Galois group is large (S_5): sage: x = polygen(QQ) sage: f = x^5 - 6*x^3 - x^2 + 6*x - 1 I can compute its splitting field easily, thanks to code written by Jeroen Demeyer I believe: sage: %time L = f.splitting_field(names='b') CPU times: user 1min 1s, sys:

Re: [sage-support] "Precision too low for generators, not given"

2017-01-05 Thread John Cremona
On 5 January 2017 at 09:27, Jeroen Demeyer wrote: > Sorry, I was wrong. I actually looked at the PARI source code this time and > the warning comes from the bnfisprincipal() function to determine the class > of a given ideal in the class group (so, in particular, it can be

Re: [sage-support] "Precision too low for generators, not given"

2017-01-05 Thread John Cremona
On 4 January 2017 at 20:31, Jeroen Demeyer wrote: > I think it means that PARI didn't compute the unit group for certain number > fields. Since you don't need the unit group, I see no issue. >From what I know of the algorithm used -- and one should ask the pari list to be

Re: [sage-support] Citing SAGE

2016-12-29 Thread John Cremona
http://www.sagemath.org/library-publications.html#CiteSage On 29 December 2016 at 10:49, Fjordforsk A/S wrote: > Hello, which references for SAGE are best for manuscripts? > > I used the following: > > > > Stein, W. (2015). SageMath Mathematics Software (Version 6.5). >

  1   2   3   4   5   6   7   >