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

2019-02-27 Thread Pierre Guillot
> I presume your polynomial entries are mostly constants, otherwise > you'd get a really huge polynomial as an answer. Do you know if your > matrix has many rows/columns with just one non-0? This could be a good > heuristic to do for sparse determinants, get rid of these first of > all... all the

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

2019-02-26 Thread Pierre Guillot
>Can Sage do this determinant on its own? Sage tries to convert the matrix to a dense one before computing the determinant (the documentation for sparse matrices says so). And as a result, you never see the end of it, no. -- You received this message because you are subscribed to the Google

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

2019-02-26 Thread Pierre Guillot
would be a very useful addition (for some people). Magma constructs > sparse matrices using SparseMatrix() with several interfaces including > > (m::RngIntElt, n::RngIntElt, Q::SeqEnum[Tup]) -> MtrxSprs > > The m by n sparse matrix, whose entries are given by the tuples in &

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

2019-02-26 Thread Pierre Guillot
Thanks! I think to know where the issue is : M= random_matrix(ZZ, 10, sparse= True, density= 0.1) M._magma_init_(magma)

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

2019-02-26 Thread Pierre Guillot
Why should it be so hard to enter it into Magma? is there any workaround that is worth trying? I could somehow directly write magma code into a file, and then hope that loading that would be faster, but I'm not sure why i would do better than the existing magma interface... thanks! Pierr

[sage-support] Re: persistent homology?

2017-09-12 Thread Pierre
I tried to follow the instructions, in a brand new cocalc project. This failed, with $ URL='https://gforge.inria.fr/frs/download.php/file/37020/' $ DIRNAME='2017-08-22-15-45-31_GUDHI_2.0.1-rc1' $ TARBALL=$DIRNAME'.tar.gz' $ curl -C - --retry 99 -o $TARBALL $URL$TARBALL $ tar xzf

[sage-support] Re: persistent homology?

2017-08-26 Thread Pierre
in a jupyter notebook ? ** can I change DIRNAME='2017-08-22-15-45-31_GUDHI_2.0.1-rc1' to DIRNAME='gudhi' ? It would be more readable :-) thanks again! Pierre -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from

Re: [sage-support] cyclic algebras

2017-07-10 Thread Pierre
eld(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, Pierre <pierre@gmail.com > > wrote: > > Hi all ! > > > > I wanted to know whether

[sage-support] cyclic algebras

2017-07-10 Thread Pierre
ted fields, PARI has functions accessible through sage to find points on conics. If any of the above can be facilitated by Sage for p odd, it would be great. Thanks! Pierre -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubsc

[sage-support] Re: persistent homology?

2017-05-14 Thread Pierre
Thanks everyone for the answers. If i ever reach the stage when i can run gudhi on some computer, and then the stage when i can install it on my own computer, then i'll contemplate the project of writing an interface to sage -- but don't hold your breath... On Friday, May 12, 2017 at 7:57:31

[sage-support] persistent homology?

2017-05-12 Thread Pierre
quite old.) Incidentally, if anybody has managed to install GUDHI either on Mac OSX or on SMC, i'd be interested to know how this was achieved. Thanks! Pierre -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this grou

[sage-support] differences between the "image()" and "column_space()" commands on a matrix

2017-05-09 Thread Pierre
Does somebody know the differences between the "image()" and "column_space()" commands on a matrix ? The definition seems the same but the answers are different... Thanx. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from

[sage-support] sage-7.6 build fails on Fedora-21

2017-03-28 Thread Jose Gaetan Pierre
sage-7.6 fails on fedora-21 (7.4 built ok). error occurred during dochtml build of graphs. Traceback (most recent call last): File "", line 131, in File "", line 106, in invoke File "", line 113, in newest_first_order File "", line 92, in print_stackframe File

[sage-support] networkx has no attribute 'read_dot'

2016-11-21 Thread Pierre
changed names? thanks, Pierre -- 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-support+unsubscr...@googlegroups.com. To post to this group, send ema

[sage-support] Sage always crashes

2016-09-01 Thread Pierre-Yves Bienvenu
Hi, I'm trying to use Sage 7.3 on Ubuntu. I've downloaded the archive, used archive manager to extract it and got a directory SageMath. Inside I double click the sage executable. The terminal opens and after a lot of lines starting with "patching" it says "SageMath version 7.3, release

Re: [sage-support] Re: libgap bug trying to concatenate lists

2016-05-25 Thread Pierre
oh, I see. Tricky one. On Wednesday, May 25, 2016 at 5:24:48 PM UTC+2, vdelecroix wrote: > > On 25/05/16 10:11, Pierre wrote: > > By that reasoning, you should expect libgap lists to start with 1, as in > a > > GAP console, but they start with 0 as python lists (and

Re: [sage-support] Re: libgap bug trying to concatenate lists

2016-05-25 Thread Pierre
By that reasoning, you should expect libgap lists to start with 1, as in a GAP console, but they start with 0 as python lists (and i think it's GREAT : with the old pexpect interface, the lists starting with 1 used to create a lot of trouble). I'm pretty sure the idea was to have libgap lists

[sage-support] Re: libgap bug trying to concatenate lists

2016-05-25 Thread Pierre
PS on another example, using + on two GAP lists of length 2 and 6 respectively has produced a list of length 6, and I think it contains sums of elements taken from the lists, somehow. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To

[sage-support] libgap bug trying to concatenate lists

2016-05-25 Thread Pierre
Hi, This is on SMC. I think the following used to work (?), but I may be wrong. sage: G= libgap.SymmetricGroup(3) sage: foo= G.GeneratorsOfGroup() sage: foo + foo ... ValueError: libGAP: Error, no method found! Error, no 1st choice method found for `+' on 2 arguments One may try list(foo) +

[sage-support] Re: libgap, simple membership question

2016-03-30 Thread Pierre
> It also seems that "SymmetricGoup" has its elements live in a pexpect gap, > not in libgap. It might be attractive to move that too. > I was wondering about that: so many sage objects are really GAP objects wrapped up, with the old code using the pexpect interface, is the plan to re-write

[sage-support] Re: libgap, simple membership question

2016-03-30 Thread Pierre
. Of course one can use libgap.eval( p.cycle_string() ) but that's awkward. As is libgap.PermList( p ) Pierre -- 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, sen

[sage-support] Re: libgap, simple membership question

2016-03-30 Thread Pierre
sage: isContainedIn = libgap.function_factory(r'\in') > sage: isContainedIn(g, G) > true > > > > On Wednesday, March 30, 2016 at 11:39:14 AM UTC+2, Pierre wrote: >> >> Hi ! >> >> I've been playing with libgap, which is great (I love the fact that lists >>

[sage-support] libgap, simple membership question

2016-03-30 Thread Pierre
p(G, g) function, implememting solution (3). It would work in general (eg, verifying whether g is in a given conjugacy class, as returned by G.ConjugacyClasses() ). thanks! Pierre -- You received this message because you are subscribed to the Google Groups "sage-support" group. T

Re: [sage-support] graph plotting: heights option

2016-03-11 Thread Pierre
OK thanks, i'll do that. On Saturday, March 12, 2016 at 6:55:06 AM UTC+1, jori.ma...@uta.fi wrote: > > On Fri, 11 Mar 2016, Pierre wrote: > > > This is from the documentation of the plot method of the Digraph class: > > > > sage: T = list(graphs.trees(7)) > >

[sage-support] graph plotting: heights option

2016-03-11 Thread Pierre
misunderstand the 'heights' option, but I thought that the vertices 3 and 6, for example, would be on the same horizontal line, as would be 4, 5, 1. Not the case for me at all ! Thanks for you help, Pierre -- You received this message because you are subscribed to the Google Groups "

Re: [sage-support] Re: SageMathCloud: init.sage ignored for .sagews files

2016-02-27 Thread Pierre
On Wednesday, February 24, 2016 at 6:53:18 PM UTC+1, Volker Braun wrote: > > And emacs can edit remote files via ssh using tramp-mode, so you can run > just run emacs locally: > > C-x f ssh://hostname:filename > > Sorry i took me a while to respond, i kind of forgot about this thread for a

[sage-support] Re: SageMathCloud: init.sage ignored for .sagews files

2016-02-24 Thread Pierre
of keys do not work, like CTRL + , which is how i produce a \ normally. Given that the meta key is ESC, all in all i don't use emacs much under SMC. On Wednesday, February 24, 2016 at 5:57:40 PM UTC+1, Pierre wrote: > > >> Probably yes, but what you really want is a workaround. I w

[sage-support] Re: SageMathCloud: init.sage ignored for .sagews files

2016-02-24 Thread Pierre
> > > Probably yes, but what you really want is a workaround. I would suggest > you to write a normal .py file and import it in a sagews file. Start the > cell where you import with "% auto" and this cell will be executed > automatically on (re)start. I'm guessing that would help you. > >

[sage-support] Re: SageMathCloud: init.sage ignored for .sagews files

2016-02-24 Thread Pierre
PS and yes, my init.sage would be relevant even to use GAP, although not an awful lot -- in fact i have written a magic function to replace %gap, it works a little better for me, but I concede that it's not crucially important :-) -- You received this message because you are subscribed to

[sage-support] SageMathCloud: init.sage ignored for .sagews files

2016-02-24 Thread Pierre
(only?) way to do it on SMC is via a sage worksheet and the "%default_mode gap" magic. (I cannot really use GAP from the command line, as the brackets [ ] on my keyboard do not work in the SMC terminal !!!) thanks ! Pierre -- You received this message because you are subscribed to

[sage-support] Hide traceback

2015-11-27 Thread Pierre
it myself. Come to think of it, I have the same question about ipython/sage in a terminal. I seem to remember that with my local sage notebook, ages ago, this was the default, you had to click somewhere to see the traceback, I very much enjoyed that ! thanks ! Pierre -- You received this message

[sage-support] Importing ipynb

2015-11-12 Thread Stephane St-Pierre
How can we easily import .ipynb from SageMathCloud to SageMath (desktop) I tryed to download my NB but it saved as JSON file... And in SageMath we cannot import ipynb file (), but rst(?) HTML(??!!) but none of them give us what we need having a nb (.ipynb) file that we can execute, modifie,

Re: [sage-support] construction of a number field -- via QQbar?

2015-11-10 Thread Pierre
Oh yes, refreshing the page in my browser revealed that the computation was in fact over. I don't get the same minimal polynomial: Number Field in a with defining polynomial y^64 - 16*y^63 + 120*y^62 - 552*y^61 + 1060*y^60 + 9192*y^59 - 109548*y^58 + 594136*y^57 - 1818336*y^56 + 1418016*y^55 +

Re: [sage-support] construction of a number field -- via QQbar?

2015-11-10 Thread Pierre
6 + > 77999223597440406896*y^15 - 90519472303245161928*y^14 + > 54028667281044557920*y^13 + 41367302912532250064*y^12 - > 168969147746602154528*y^11 + 261672020286578277832*y^10 - > 244896792544276915584*y^9 + 104844130048796679732*y^8 + > 105596980415747506608*y^7 - 299690125602975518832*y^6 + >

[sage-support] construction of a number field -- via QQbar?

2015-11-10 Thread Pierre
= number_field_elements_from_algebraics([ra, rb, rc, rA, rC, rdelta], minimal= True) However this last command takes forever. (This is on SMC.) Is there anything else that I could try? Thanks ! Pierre -- You received this message because you are subscribed to the Google Groups "sage-su

Re: [sage-support] construction of a number field -- via QQbar?

2015-11-10 Thread Pierre
> > > (1) As in your first construction but replace each field constructed > after the forst with the corresponding absolute field. > > I have tried this but got something like: F0.= NumberField(x^2 - 2) F1.= F0.extension( polygen(F0)^2 - 5 ) L= F1.absolute_field("bar") L(foo0) ...

[sage-support] weird slowness with sagemathcloud

2015-07-26 Thread Pierre
these functions at all, I have to say (re.py???) This is in a jupyter notebook. Thanks ! Pierre -- 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-support

[sage-support] Re: SageMathCloud questions: plots, init.sage, etc

2015-07-21 Thread Pierre
I can answer a bit of my own question: (2) I've been trying to improve it to def showplot(g, **kwargs): import IPython.display save(g, 'a.png', kwargs) IPython.display.display(IPython.display.Image('a.png')) and tried showplot(my_plot, dpi= 1200) to get a larger image, but

Re: [sage-support] SageMathCloud questions: plots, init.sage, etc

2015-07-21 Thread Pierre Guillot
The space is no trouble. But see my second message, i had forgotten the **. Now that bit works! Le 21 juil. 2015 23:31, Justin C. Walker jus...@mac.com a écrit : On Jul 21, 2015, at 07:35 , Pierre wrote: Hi, I've been playing with the Jupyter notebook in sagemathcloud, it's very nice

Re: [sage-support] SageMathCloud questions: plots, init.sage, etc

2015-07-21 Thread Pierre Guillot
PS in case i did not make myself clear: things work for reasonable values of dpi, but not 1200 which is silly. Le 21 juil. 2015 23:33, Pierre Guillot pierre.guil...@gmail.com a écrit : The space is no trouble. But see my second message, i had forgotten the **. Now that bit works! Le 21 juil

[sage-support] SageMathCloud questions: plots, init.sage, etc

2015-07-21 Thread Pierre
this in the documentation somewhere) (4) This is a bit unrelated, but: does the editor on sagemathcloud (the one that pops up when you click on a .sage file) have any auto-completion features at all? Thanks ! Pierre -- You received this message because you are subscribed to the Google Groups sage-support

[sage-support] power series algebraic over field of rational fractions

2015-04-02 Thread Pierre
, by the way, please let me know ! (I myself haven't got an intuition yet for how difficult this is.) Thanks ! Pierre -- 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

Re: [sage-support] power series algebraic over field of rational fractions

2015-04-02 Thread Pierre
as a fraction P(x)/Q(x), exactly as in your other post. am I missing something? Pierre coefficients for each power of f. I have done something similar where K was a number field of quite large degree and d was about 200, so I'm sure it is possible in your case. If you post code which

Re: [sage-support] power series algebraic over field of rational fractions

2015-04-02 Thread Pierre
PS sorry i wrote to be clear : i know there is at least a relation P_0(x) + P_1(x) f + P_2(x) f^2 + ... + P_d(x) f^d i meant to end with = 0 . -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop

[sage-support] bug report with Rubik's cube functions

2015-03-19 Thread Pierre
. It seems that inverses are taken, since RubiksCube().move(R*U) displays something that corresponds to U^-1 * R^-1 (by which I mean U^-1 first, then R^-1). In a nutshell: the __str__ method in RubiksCube seems to be broken, somehow. This is all quite confusing ! best Pierre -- You received

[sage-support] Re: bug report with Rubik's cube functions

2015-03-19 Thread Pierre
I have just realized that CubeGroup().faces(U) also goes counterclockwise ! what a mess ! On Thursday, March 19, 2015 at 1:07:12 PM UTC+1, Pierre wrote: Hi, I have just realized this, and thought it would be helpful to know for anyone playing with Sage's Rubik's cube abilitites. Here

Re: [sage-support] bug report with Rubik's cube functions

2015-03-19 Thread Pierre
:18 PM UTC+1, David Joyner wrote: On Thu, Mar 19, 2015 at 8:07 AM, Pierre pierre@gmail.com javascript: wrote: Hi, I have just realized this, and thought it would be helpful to know for anyone playing with Sage's Rubik's cube abilitites. Here it is: While the following 3

[sage-support] Re: compiling sage 6.3 on a raspberry pi

2014-09-08 Thread Jean-Pierre Flori
On Monday, September 8, 2014 2:38:45 PM UTC+2, simon.ei...@vol.at wrote: Hi all, I am not sure if this message went through or not but it seems not. I just have a quick question. How easy is it now to compile sage 6.3 on a raspberry pi? I tried that with version 5.13 and this was

[sage-support] Problem with magma interface

2014-09-04 Thread Jean-Pierre Flori
That's the first time I use Sage-Magma interface. Am I doing something wrong? Thanks in advance. (Latest sage beta, magma 2.19-2) sage: p = next_prime(14) sage: n = next_prime(13) sage: k = GF(p) sage: R.x = PolynomialRing(k) sage: f = R.irreducible_element(n) sage: g = R.irreducible_element(n,

[sage-support] a bug with region_plot -- please help!

2014-08-29 Thread Pierre
with region_plot when I was drawing the triangles individually. Then I wrote up some code to draw a tiling (quite a lot of time, as you can imagine!), and was really disappointed to see the end result all scrambled because of this bug! should I use something other than region_plot? thanks! Pierre -- You

[sage-support] Re: a bug with region_plot -- please help!

2014-08-29 Thread Pierre
definition I don't know how to find. On Friday, August 29, 2014 7:19:32 PM UTC+2, Pierre wrote: Dear all, Let's draw two discs with region_plot: sage: disc1= region_plot(lambda x, y : x^2+y^2 1, (x, -1, 1), (y, -1, 1)) sage: disc2= region_plot(lambda x, y : (x-0.7)^2+(y-0.7)^2 0.5, (x, -2

Re: [sage-support] Re: a bug with region_plot -- please help!

2014-08-29 Thread Pierre
To track further the code you can use the magic import_statements inside Sage which tells you where to find a class/function {{{ sage: import_statements('HyperbolicTriangle') from sage.plot.hyperbolic_triangle import HyperbolicTriangle sage: HyperbolicTriangle?? }}} It appears

[sage-support] Re: How to do symbolic algebra in GF(2)={0,1}

2014-03-11 Thread Pierre
You can try sage: x= polygen(GF(2), a) and try a few expressions involving x. For example sage: 2*x 0 since 2=0 in GF(2). Pierre On Tuesday, March 11, 2014 3:25:04 PM UTC+1, Prakash Dey wrote: I am new to sage. x=var('a') print x*x*x*x+x*x*x+x*x+x How to do this symbolic algebra

[sage-support] hyperbolic triangles using disc model

2014-01-16 Thread Pierre
. Anyone knows about this? thanks! Pierre -- 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-support+unsubscr...@googlegroups.com. To post to this group, send email

Re: [sage-support] Cross-compilation of Sage ?

2013-07-15 Thread Jean-Pierre Flori
On Monday, July 15, 2013 10:14:35 AM UTC+2, Emmanuel Charpentier wrote: Dear William, Le lundi 15 juillet 2013 à 00:48 -0700, William Stein a écrit : On Mon, Jul 15, 2013 at 12:15 AM, Emmanuel Charpentier emanuel.c...@gmail.com javascript: wrote: Dear William, Le dimanche

[sage-support] Re: question - SAGE

2013-06-21 Thread Jean-Pierre Flori
On Friday, June 21, 2013 6:43:29 PM UTC+2, William stein wrote: -- Forwarded message -- From: Savin Diana savin...@univ-ovidius.ro javascript: Date: Thu, Jun 20, 2013 at 2:46 AM Subject: question - SAGE To: wst...@uw.edu javascript: wst...@uw.edu javascript: Dear

[sage-support] bug with variety(): order of the variables seem to matter!

2013-05-02 Thread Pierre
to reorder the variables until things work!!... any idea, anyone? thanks! Pierre -- 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-support+unsubscr

[sage-support] how to compute group extensions?

2013-01-14 Thread Pierre
in principle do the trick. However the documentation is for GAP rather than Sage and I'm not sure how to proceed. I thought maybe this would be trivial for someone around here... thanks! Pierre -- You received this message because you are subscribed to the Google Groups sage-support group

[sage-support] Re: how to compute group extensions?

2013-01-14 Thread Pierre
Thanks, I thought about this, but I'm not sure how to pick central elements of order 2 in a group, or more precisely in a group that is given by gap(SmallGroup(n,i)). I can try C= G.centre() and then get C.generators() but i'm not sure if I can assume anything about these generators (I doubt

Re: [sage-support] Re: how to compute group extensions?

2013-01-14 Thread Pierre Guillot
return True ... or something. 2013/1/14 Pierre pierre.guil...@gmail.com: Thanks, I thought about this, but I'm not sure how to pick central elements of order 2 in a group, or more precisely in a group that is given by gap(SmallGroup(n,i)). I can try C= G.centre() and then get C.generators

Re: [sage-support] Re: how to compute group extensions?

2013-01-14 Thread Pierre Guillot
sorry G should be H throughout, in my last post. 2013/1/14 Pierre Guillot pierre.guil...@gmail.com: partially answering my own question: for the lame but easy method, one can do the following. Having a putative group H, try: for x in [g for g in G.Centre().Elements() if g.Order() == 2

[sage-support] Re: Solving a functional equation

2012-10-16 Thread Pierre
Le lundi 8 octobre 2012 18:37:45 UTC+2, Pierre a écrit : Consider the functional equation (f*z + z * L(z,f)^2 + z * L(z,f+1) - L(z,f) == 0) This defines implicitly a bivariate function L(z,f). My goal is to find the Taylor development of L(z,0). I know from Bernhard

[sage-support] Solving a functional equation

2012-10-08 Thread Pierre
that the result is z^2 + 2z^3 + 4z^4 + 13z^5 + 42z^6 + 139z^7 + 506z^8 +1915z^9 + 7558z^10 + · · · How do I do that in SAGE? Thank you in advance. Pierre -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage

[sage-support] Re: Sage installation on windows : browser cannot connect

2012-05-09 Thread Jean-Pierre Flori
Today at some Sage meeting in Paris, we encountered this problem once more with Sage 4.7.2 vbox image within Windows 7. The image was correctly (or seemingly correctly) preconfigured with 8000 on the outside pointing toward 8000 on the inside and into 22. Once more it was possible to ssh

[sage-support] Re: Sage installation on windows : browser cannot connect

2012-05-09 Thread Jean-Pierre Flori
And I think that the port 8000 was dysfunctional because some service already listened on that port (I don't have the computer at hand anymore so cannot check...) as suggested by this result from a simple google query: http://superuser.com/questions/360236/why-is-system-listening-on-port-8000

[sage-support] Re: Sage installation on windows : browser cannot connect

2012-05-09 Thread Jean-Pierre Flori
On Wednesday, May 9, 2012 4:40:32 PM UTC+2, Volker Braun wrote: On Wednesday, May 9, 2012 10:33:22 AM UTC-4, Jean-Pierre Flori wrote: http://superuser.com/questions/360236/why-is-system-listening-on-port-8000 My money is on the following answer posted on the above ask page

Re: [sage-support] Re: Sage installation on windows : browser cannot connect

2012-04-18 Thread Jean-Pierre Flori
There is some Sage meeting this afternoon in Paris. I have a Windows 7 installation on my laptop, I'll give a VirtualBox installation a try, maybe I'll be more lucky than last time. That was particularly painful to have people ready to try Sage on their computer at a previous meeting, but being

[sage-support] Re: Sage installation on windows : browser cannot connect

2012-03-28 Thread Jean-Pierre Flori
I think I had the same problem although the VirtualBox port forwarding was correctly configured and I could not resolve it in the little time I had. My late conclusion was that maybe the Windows firewall is blocking the connection (even though it's a local one...) ? Could you try connecting to

[sage-support] Re: France : Sage is now available at l'agrégation

2012-03-13 Thread Pierre
That's good news. It's a long way until usage of Sage becomes standard in France, unfortunately. I hear that Lyon has made the transition from Maple and has been confronted with a lot of resistance from teachers who did not want to change their old habits... Here in Strasbourg we were about to

[sage-support] funny Cayley graph

2012-03-13 Thread Pierre
to this message, so I'll have to describe the result as very close to the Cayley graph of PSL(2, ZZ) rather than SL(2, ZZ)!! it looks as if one of my generators has order 2!! does anyone know what is going on? thanks! Pierre -- To post to this group, send email to sage-support@googlegroups.com

[sage-support] Re: funny Cayley graph

2012-03-13 Thread Pierre
. thanks again, pierre On 13 mar, 13:50, Tom Boothby tomas.boot...@gmail.com wrote: Pierre, Don't rely on the picture! sage: U = set(gr.edges()) sage: V = set(gr.reverse().edges()) sage: U.intersection(V) #for me, this is the empty set On Tue, Mar 13, 2012 at 3:26 AM, Pierre pierre.guil

[sage-support] Re: funny Cayley graph

2012-03-13 Thread Pierre
i think i see what is going on. By reducing the number of vertices plotted, it appears that the double edges are really little clusters of four edges! On 13 mar, 21:27, Pierre pierre.guil...@gmail.com wrote: Dear Tom, Thanks for your answer! I get the empty set, too. I really wonder what

[sage-support] Re: speed question, numpy vs CDF

2012-02-14 Thread Pierre
PY_NEW with a class that *requires* parameters to its __init__? ** more generally, is there a Cython tutorial that would be (just) sufficiently advanced to cover such an example? thanks! Pierre On 13 fév, 20:13, William Stein wst...@gmail.com wrote: On Mon, Feb 13, 2012 at 11:07 AM, Jason Grout

[sage-support] Re: speed question, numpy vs CDF

2012-02-14 Thread Pierre
, Pierre pierre.guil...@gmail.com wrote: Hey, thanks for all the responses. I use Cython occasionally, but i tend to restrict myself to basic C types and simple functions which do not import anything -- it seems I can learn an awful lot by studying your examples! Can i ask the following questions

[sage-support] Re: speed question, numpy vs CDF

2012-02-14 Thread Pierre
Nope!  If you just want to use Python's complex data type you could rewrite the code to not use any imports. just to be clear: you mean that the first two lines of Jason's code can be deleted, the class Matrix2 would still work as such? You may find chapter 3 of this book I'm writing

[sage-support] Re: speed question, numpy vs CDF

2012-02-13 Thread Pierre
Hitting the nail one the head! sounds like your solution (I mean numpy arrays with CDF elements, which I didn't know was possible) is going to be perfect for me. Thank you so much! On 13 fév, 01:30, Nils Bruin nbr...@sfu.ca wrote: On Feb 12, 1:39 pm, Pierre pierre.guil...@gmail.com wrote: i

[sage-support] Re: speed question, numpy vs CDF

2012-02-13 Thread Pierre
I see. Well I *do* have hundreds of 2x2 matrices to multiply out so i'm better off storing them as numpy matrices throughout... thanks for your explanations though. Pierre On 13 fév, 18:32, Robert Bradshaw rober...@math.washington.edu wrote: On Sun, Feb 12, 2012 at 4:30 PM, Nils Bruin nbr

[sage-support] speed question, numpy vs CDF

2012-02-12 Thread Pierre
pierre -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org

[sage-support] Multicolor torus

2011-11-28 Thread Jean-Pierre Flori
Dear all, Is there any way to draw easily a 3D multicolor torus with Sage ? I.e. using parametric_plot3d and an equivalent of adaptive=True, color=rainbow(60, 'rgbtuple') options ? Cheers, JP -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group,

[sage-support] Re: symmetric polynomials

2011-11-26 Thread Pierre
, Pierre pierre@gmail.com wrote: thanks for this. I thought about sage this afternoon and decided the easiest would be to pay a visit to david green and yourself in Jena and pick your brains... when i checked your homepage just to be certain and found out you're in Galway now ! Damn. (I

[sage-support] Python and SSL problem on Debian

2011-07-01 Thread Jean-Pierre Flori
Python was recently updated to not build with OpenSSL support on Debian, so I cannot build Sage anymore on my Debian Sid. http://packages.debian.org/changelogs/pool/main/p/python-defaults/python-defaults_2.6.6-14/changelog python2.6 (2.6.6-9) unstable; urgency=low * Build without OpenSSL v2

[sage-support] Re: Python and SSL problem on Debian

2011-07-01 Thread Jean-Pierre Flori
This is now #11561. On 1 juil, 10:59, Jean-Pierre Flori jpfl...@gmail.com wrote: Python was recently updated to not build with OpenSSL support on Debian, so I cannot build Sage anymore on my Debian Sid. http://packages.debian.org/changelogs/pool/main/p/python-defaults/pyt... python2.6 (2.6.6

[sage-support] Re: Python and SSL problem on Debian

2011-07-01 Thread Jean-Pierre Flori
And is nothing but a duplicate of #11447... Sorry for the noise. On 1 juil, 11:42, Jean-Pierre Flori jpfl...@gmail.com wrote: This is now #11561. On 1 juil, 10:59, Jean-Pierre Flori jpfl...@gmail.com wrote: Python was recently updated to not build with OpenSSL support on Debian, so

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-18 Thread Jean-Pierre Flori
This is now #11521. On 16 juin, 17:13, Jean-Pierre Flori jpfl...@gmail.com wrote: The following piece of code also seems to leak memory. The problem seems to occur while resolving the action of ZZ on E. sage: K = GF(155,'t') sage: a = K.random_element() sage: while 1: :     E

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-16 Thread Jean-Pierre Flori
The following piece of code also seems to leak memory. The problem seems to occur while resolving the action of ZZ on E. sage: K = GF(155,'t') sage: a = K.random_element() sage: while 1: : E = EllipticCurve(j=a); P = E.random_point(); 2*P; On 16 juin, 02:51, Jean-Pierre Flori jpfl

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
Thanks a lot, I'll have a look at that. On 15 juin, 14:26, Alastair Irving alastair.irv...@sjc.ox.ac.uk wrote: On 14/06/2011 21:58, Jean-Pierre Flori wrote: On 14 juin, 08:44, Simon Kingsimon.k...@uni-jena.de  wrote: Since sage-nt seems to agree that it is a bug, I opened trac ticket

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
S the memleak seems to be located within creation or rather coercing to MPolynomial_libsingular. Calling gc.collect() whithin the loop seem to fix or are least attenuate the problem. However, calling afterwards does not free memory back. On 15 juin, 14:29, Jean-Pierre Flori jpfl...@gmail.com

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
I finally found the memleak in different si2sa_* functions in sage.libs.singular.singular and provided a fix on Trac. On 15 juin, 21:50, Jean-Pierre Flori jpfl...@gmail.com wrote: S the memleak seems to be located within creation or rather coercing to MPolynomial_libsingular. Calling

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
But theres another memleak in the roots method of polynomial_zzpex... On 16 juin, 00:09, Jean-Pierre Flori jpfl...@gmail.com wrote: I finally found the memleak in different si2sa_* functions in sage.libs.singular.singular and provided a fix on Trac. On 15 juin, 21:50, Jean-Pierre Flori jpfl

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
Which seems to come from list() method. On 16 juin, 00:09, Jean-Pierre Flori jpfl...@gmail.com wrote: I finally found the memleak in different si2sa_* functions in sage.libs.singular.singular and provided a fix on Trac. On 15 juin, 21:50, Jean-Pierre Flori jpfl...@gmail.com wrote: S

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
and from ZZ_pE_c_to_list function On 16 juin, 01:18, Jean-Pierre Flori jpfl...@gmail.com wrote: Which seems to come from list() method. On 16 juin, 00:09, Jean-Pierre Flori jpfl...@gmail.com wrote: I finally found the memleak in different si2sa_* functions

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
Ok so the memleak comes from ZZ_pE_to_ZZ_pX in c_lib/src/ntl_wrap.cpp It should have been fixed by trac #1092, but has been reverted by commit 8503. I'll reopen #1092. On 16 juin, 02:07, Jean-Pierre Flori jpfl...@gmail.com wrote: and from ZZ_pE_c_to_list function On 16 juin, 01:18, Jean-Pierre

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-15 Thread Jean-Pierre Flori
this is now 11495 On 16 juin, 02:46, Jean-Pierre Flori jpfl...@gmail.com wrote: Ok so the memleak comes from ZZ_pE_to_ZZ_pX in c_lib/src/ntl_wrap.cpp It should have been fixed by trac #1092, but has been reverted by commit 8503. I'll reopen #1092. On 16 juin, 02:07, Jean-Pierre Flori jpfl

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-14 Thread Jean-Pierre Flori
On 14 juin, 08:44, Simon King simon.k...@uni-jena.de wrote: Since sage-nt seems to agree that it is a bug, I opened trac ticket #11474. Good ! About the original memleak, I tried looking at how EllipticCurves_finite_field (maybe not correct name) are created but could not find anything fishy,

[sage-support] Re: Memleak when deleting elliptic curve over finite field ?

2011-06-13 Thread Jean-Pierre Flori
, Jean-Pierre Flori jpfl...@gmail.com wrote: Using the following piece of code makes the memory footprint of sage grow indefinitely: I just noticed that elliptic curves are instances of sage.structure.parent.Parent, but violate the unique parent assumption: sage: K = GF(150,'t') sage: j

[sage-support] Re: Maxima problem?

2011-06-10 Thread Jean-Pierre Flori
FYI, the interface to Maxima changed in 4.7.1.alpha0 IIRC, so you could also try one of the more recent alphas available at: http://sage.math.washington.edu/home/release/ The things with MARKER are not involved in that new interface. On 10 juin, 08:34, NigelSmart ni...@cs.bris.ac.uk wrote: Hi

[sage-support] Memleak when deleting elliptic curve over finite field ?

2011-06-08 Thread Jean-Pierre Flori
Dear all, Using the following piece of code makes the memory footprint of sage grow indefinitely: sage: K = GF(150,'t') sage: j = K.random_element() sage: while 1: :E = EllipticCurve(j=j) :del E : This seems to be less dramatic with finite fields of char != 2 and inexistant

[sage-support] Segfault while creating finite field homomorphism

2011-05-27 Thread Jean-Pierre Flori
On my computer I get a segfault just doing : -- | Sage Version 4.7.rc1, Release Date: 2011-04-30 | | Type notebook() for the GUI, and license() for information.|

[sage-support] Segfault while inverting q-adic number with fixed modulus precision

2011-05-27 Thread Jean-Pierre Flori
sage: R.t = Zq(8,2,'fixed-mod') sage: 1/t (t^2 + 1) + (t^2 + 1)*2 + O(2^2) sage: 1/(t+t^2) /home/jp/boulot/sage/sage-4.7.rc1/local/lib/libcsage.so(print_backtrace +0x31)[0x7f3d2a9afdf2] /home/jp/boulot/sage/sage-4.7.rc1/local/lib/libcsage.so(sigdie+0x14) [0x7f3d2a9afe24]

[sage-support] Re: Segfault while creating finite field homomorphism

2011-05-27 Thread Jean-Pierre Flori
I'll take care of it with a fix hopefully. The value 16 is of course related to FF implementation. From 16 it uses NTL and GF2X. There's something nasty occuring in charpoly() or deeper. On 27 mai, 14:27, Simon King simon.k...@uni-jena.de wrote: Hi Jean-Pierre, On 27 Mai, 14:08, Jean-Pierre

  1   2   >