Re: [sage-support] Re: Removing packages and different versions of python

2022-04-18 Thread Jean-Florent Raymond
Thanks, that answers my questions! Le 15/04/2022 à 20:00, Matthias Koeppe a écrit : On Friday, April 15, 2022 at 12:39:23 AM UTC-7 Jean-Florent Raymond wrote: In order to test something I would like to remove from my sage install a python package that I installed (and updated) some time ago

[sage-support] Removing packages and different versions of python

2022-04-15 Thread Jean-Florent Raymond
at can be installed to use with Sage, some of which are standard python (pip-installable) packages and some with different install scripts? Best, Jean-Florent. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this

Re: [sage-support] List all shortest paths between two vertices in a graph

2021-08-25 Thread Jean-Florent Raymond
s per loop (mean ± std. dev. of 7 runs, 1 loops each) sage: %timeit list(filter(lambda x: len(x) == 1+G.distance(u, v), G.shortest_simple_paths(u, v))) 66.6 ms ± 180 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) Jean-Florent. Le 24/08/2021 à 01:39, Beth Claire a écrit : > Hi, &g

Re: [sage-support] fails to get graph_editor() to work

2020-08-31 Thread Jean-Florent Raymond
Actually the problem came from ipycanvas (https://github.com/martinRenou/ipycanvas/issues/117 ) and not sage. Downgrading to version 0.4.7 ( sage -pip install ipycanvas==0.4.7 ) solved the problem. Le 31/08/2020 à 09:50, Dima Pasechnik a écrit : > On Mon, 31 Aug 2020, 08:29 Jean-Florent Raym

Re: [sage-support] fails to get graph_editor() to work

2020-08-31 Thread Jean-Florent Raymond
I can't click to create new nodes > nor drag any node with a mouse. > On Sunday, August 30, 2020 at 2:13:55 PM UTC-7 dim...@gmail.com wrote: > >> On Sun, Aug 30, 2020 at 10:03 PM pong wrote: >>> >>> Hi Jean-Florent, >>> >>> I did exactly just th

Re: [sage-support] fails to get graph_editor() to work

2020-08-30 Thread Jean-Florent Raymond
Hello, Yes, the directory where to run sage -pip install --upgrade --no-index -v . is the directory of the just cloned project (default: phitigra). There is no need to add 'phitigra' to the command line: pip will guess alone what to install from this directory. Jean-Florent. Le 30/08

Re: [sage-support] fails to get graph_editor() to work

2020-08-29 Thread Jean-Florent Raymond
...). Any feedback is welcome. Jean-Florent. Le 29/08/2020 à 08:27, pong a écrit : > I see. Is there a substitute for graph_editor()? It's fairly convenient. > > On Thursday, August 27, 2020 at 8:48:32 AM UTC-7 dim...@gmail.com wrote: > >> On Thu, Aug 27, 2020

Re: [sage-support] How to search a usage of a specific function?

2020-05-13 Thread Jean-Florent Raymond
Hello, To show the description of a function, you can type the name of the function followed by a question mark ("Mod?" in your case) and press Enter. If you want to show the source of the function, you can do the same thing with two question marks instead ("Mod??"). Le 13/05/2020 à 15:35, GZ D

Re: [sage-support] Sage Crash Report

2020-04-23 Thread Jean-Florent Raymond
Hello, Did you try to rebuild since the upgrade? If you upgraded a package that sage needs, then sage might complain that it cannot find the version it was used to. It seems to be the case with libntl according to the crash report you attached: ImportError: libntl.so.35: cannot open shared object

Re: [sage-support] building docs with sphinx-1.8.5 fails with existing _static

2020-04-23 Thread Jean-Florent Raymond
Hello, A workaround is to run "make" after "make doc-clean". It worked for me. Source: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/sage-devel/RHMEHCTp_pU/12BWV897AgAJ Related: https://github.com/sphinx-doc/sphinx/issues/7407 Best regards,

[sage-support] Re: simplify_trig does not work with matrix?

2020-02-14 Thread Jean-François Ingenbleek
Jove! it's stupidity on my part. Thanks Le jeudi 13 février 2020 16:16:23 UTC+1, Jean-François Ingenbleek a écrit : > > var("u,v,l",domain=RR) > sigma = vector([u*cos(v),u*sin(v),l*u]) > Dsigma = matrix([[diff(s,u) for s in sigma],[diff(s,v) for s in > sigma]]).tra

[sage-support] simplify_trig does not work with matrix?

2020-02-13 Thread Jean-François Ingenbleek
var("u,v,l",domain=RR) sigma = vector([u*cos(v),u*sin(v),l*u]) Dsigma = matrix([[diff(s,u) for s in sigma],[diff(s,v) for s in sigma]]).transpose() print(Dsigma) EFG = (Dsigma.transpose())*Dsigma EFG.simplify_trig() print(EFG) gives [ cos(v) -u*sin(v)] [ sin(v) u*cos(v)] [l

[sage-support] Re: euclidean space, tangent vector and norm

2020-02-06 Thread Jean-François Ingenbleek
Excuse me, I forgot the question: maybe there is simpler, but I do not understand where the error lies. Thank you in advance for your help Le jeudi 6 février 2020 16:45:06 UTC+1, Jean-François Ingenbleek a écrit : > > I would just like to calculate the norm of the vector tangent to a

Re: [sage-support] Re: warning sagemath9 matplotlib plotting bug

2020-02-02 Thread Jean-François Ingenbleek
i removed C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\; and it seems to work now! Big thank you! But now we have to manage the incompatibility with Miktex ... Le vendredi 31 janvier 2020 14:43:00 UTC+1, E. Madison Bray a écrit : > > On Friday, January 31, 2020 at 2:04:57 PM UTC+1

Re: [sage-support] Re: warning sagemath9 matplotlib plotting bug

2020-01-31 Thread Jean-François Ingenbleek
find TexLive help is really welcome Le jeu. 30 janv. 2020 à 15:46, Jean-François Ingenbleek < jingenb...@gmail.com> a écrit : > a better solution, is to remove texlive from your $PATH environment > variable > > hum, hum... how to do that? > thanks in advance > > Le

Re: [sage-support] Re: warning sagemath9 matplotlib plotting bug

2020-01-30 Thread Jean-François Ingenbleek
anuary 30, 2020 at 9:27:56 AM UTC+1, Dima Pasechnik wrote: >>> >>> >>> >>> On Thu, 30 Jan 2020, 08:09 Jean-François Ingenbleek, >>> wrote: >>> >>>> indeed >>>> >>>> Norton/McAfee/Symantec antivirus or antispyw

[sage-support] Re: warning sagemath9 matplotlib plotting bug

2020-01-30 Thread Jean-François Ingenbleek
your quick intervention Le mercredi 29 janvier 2020 14:21:03 UTC+1, Jean-François Ingenbleek a écrit : > > Be careful! Do not go to version 9 if you work under windows8 !! > > an instruction as simple as > > plot(x*sin(1/x),x,-2,2,plot_points=500) > > gives > > opt/sa

[sage-support] warning sagemath9 matplotlib plotting bug

2020-01-29 Thread Jean-François Ingenbleek
Be careful! Do not go to version 9 if you work under windows8 !! an instruction as simple as plot(x*sin(1/x),x,-2,2,plot_points=500) gives opt/sagemath-9.0/local/lib/python3.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This m

Re: [sage-support] sagemath 9 + Graph

2020-01-29 Thread Jean-François Ingenbleek
No nothing helps ... it doesn't work better. I think that you should not switch to sagemath9 if it is practically impossible to use matplotlib !! Le mardi 28 janvier 2020 13:07:08 UTC+1, E. Madison Bray a écrit : > > On Saturday, January 25, 2020 at 5:03:54 PM UTC+1, Je

Re: [sage-support] sagemath 9 + Graph

2020-01-26 Thread Jean-François Ingenbleek
delecr...@gmail.com> a écrit : > Dear Jean-Francois, > > When you do report an error having to do with the SageMath > installation (and not about "how to use SageMath"), it is > strongly advised to state precisely what is your setup. > SageMath installs on dozens of o

Re: [sage-support] sagemath 9 + Graph

2020-01-25 Thread Jean-François Ingenbleek
alas, it does not work at all ... I am a little lost in the multiple directories of sagemath (windows 8.1). You must warn against using sagemath 9.0 yet !! Le lun. 20 janv. 2020 à 11:05, Dima Pasechnik a écrit : > On Mon, Jan 20, 2020 at 9:44 AM Jean-François Ingenbleek > wrote: > &

Re: [sage-support] sagemath 9 + Graph

2020-01-20 Thread Jean-François Ingenbleek
More than an hour that the program displays the message ... is this normal? thanks a lot Le samedi 18 janvier 2020 16:18:59 UTC+1, dimpase a écrit : > > On Sat, Jan 18, 2020 at 02:00:06AM -0800, Jean-François Ingenbleek wrote: > > G = Graph({'A':['B','C&

[sage-support] sagemath 9 + Graph

2020-01-18 Thread Jean-François Ingenbleek
G = Graph({'A':['B','C']}) G.show() give this strange message /opt/sagemath-9.0/local/lib/python3.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment. 'Matplotlib is building the font cache using fc-list. '

[sage-support] Re: sagemath9 and python3

2020-01-11 Thread Jean-François Ingenbleek
Thank to Emmanuel! Le samedi 11 janvier 2020 11:49:08 UTC+1, Jean-François Ingenbleek a écrit : > > Hi, > > I just installed version 9 of Sagemath including version 3 of the Python > kernel. > > Does Sagemath contain its own version of Python3 so that it is possible to

[sage-support] sagemath9 and python3

2020-01-11 Thread Jean-François Ingenbleek
Hi, I just installed version 9 of Sagemath including version 3 of the Python kernel. Does Sagemath contain its own version of Python3 so that it is possible to uninstall another standalone version of Python3? Big thanks to everyone. -- You received this message because you are subscribed to

[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 thi

[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(1<<4) sage: n = next_prime(1<<3) sage: k = GF(p) sage: R. = PolynomialRing(k) sage: f = R.irreducible_element(n) sage: g = R.irreducible_element(n

[sage-support] Re: Blank result from animate().show() in notebook

2014-06-26 Thread Jean-Philippe Leconte
Good find! Thanks! This is exactly my problem (and also exactly the example I used in my first post). But this bug is not related to this animation in particular. Following from this commit in your referenc

[sage-support] Re: Blank result from animate().show() in notebook

2014-06-26 Thread Jean-Philippe Leconte
I don't believe that convert is not installed correctly, because everything works correctly in the Terminal. But here are the results: Evaluating 'from sage.misc.sage_ostools import have_program; have_program('convert')' in the notebook returns "True". Evaluating 'from subprocess import call; ca

[sage-support] Blank result from animate().show() in notebook

2014-06-25 Thread Jean-Philippe Leconte
Sage Version 6.2, Release Date: 2014-05-06 on Mac OS X 10.9.3 with ImageMagick installed using Homebrew When I first tried 'animate()' in the notebook, I got an error saying ImageMagick was needed. Evaluating 'os.environ["PATH"]' showed that the notebook environment PATH didn't include "/usr/lo

[sage-support] Re: using the value of a symbolic expression

2013-12-12 Thread jean-pat
thank you for your help, Doing print sol[0].rhs() failed on http://sagecell.sagemath.org with the message: AttributeError: 'Sequence_generic' object has no attribute 'roots' But the first method worked Le jeudi 12 décembre 2013 10:56:38 UTC+1, jean-pat a écrit : >

[sage-support] using the value of a symbolic expression

2013-12-12 Thread jean-pat
Hello, After having solved an equation, I'd like to use the result for another calculation (calculating y) or a ploting. How to convert sol into a numerical value? thank you jeanpat sol=solve(2*x+1==7,x) print sol print sol[0], type(sol), type(sol[0]) #y=2*sol+7 #print y #plot(sol,0) -- You

[sage-support] Sage Crash Report

2013-10-15 Thread Jean-Yves Thibon
*** IPython post-mortem report {'commit_hash': '858d539', 'commit_source': 'installation', 'default_encoding': 'UTF-8', 'ipython_path': '/Users/jyt/src/sage-5.12/local/lib/python2.7/site-packages/IPython', 'ipython_version':

[sage-support] Re: [newbie] lambda operator

2013-08-15 Thread Jean Dubois
Op donderdag 15 augustus 2013 13:42:40 UTC+2 schreef Jason Grout: > > On 8/15/13 5:24 AM, Jean Dubois wrote: > > pi = lambda x: pari(x).primepi() > > lambda is a way of making a short function without having to name it. > The result of the above line is that pi(x) will

[sage-support] [newbie] lambda operator

2013-08-15 Thread Jean Dubois
e-language" I understand what pi(x) (number of primes =< x) is but not how it is accomplished with the syntax above thanks for being patient with a newbie jean -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe fro

Re: [sage-support] Re: My local sage now asks for a user name and password, what to do?

2013-07-20 Thread jean delcourt
Thank, you, it works with login 'admin' jean 2013/7/19 P Purkayastha > On 07/18/2013 08:02 PM, jean delcourt wrote: > >> Same problem, and the solution of William does'nt work; when I open a >> console window, one ask me login and password, 'sage' an

Re: [sage-support] My local sage now asks for a user name and password, what to do?

2013-07-18 Thread jean delcourt
Same problem, and the solution of William does'nt work; when I open a console window, one ask me login and password, 'sage' and 'sage' are not accepted. I have had no problem with ancient version of Virtual Machine and Sage... (excuse my poor English), jean 2013/7/14

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 > > > wrote: > > > Dear William, > > > > > > Le dimanche 14 juillet 2013 2

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

2013-07-15 Thread Jean
Also, you could install a virtual machine and install a 32bits linux to build sage. J. -- 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] Re: Cross-compilation of Sage ?

2013-07-14 Thread Jean
Well, What about trying to compile Sage with your machine in your fridge? ;-) Otherwise, try pointing a fan on your laptop (namely the keyboard portion), or install it on a large heat-conducting surface. Also, if your laptop is quite old, it may have collected an impressive amount of dust in it

[sage-support] Re: Sage can also support you in choosing the best mobile plan ;)

2013-07-13 Thread Jean
:-) Cool text. -- 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 to sage-support@googl

[sage-support] Re: recurrent sequence

2013-07-13 Thread Jean
Raman, Could you put here the first two or three elements of this sequence? Thanks, J. -- 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.

Re: [sage-support] Re: recurrent sequence

2013-07-11 Thread Jean
The document Raman posted looks more like a definition of his sequence rather than a computer code. As for your code, yes, it would work. There is also something I was told in CS classes: "use temporary variables for temporary uses" While def whateverFloatsYourBoat(a): n=0 m=0 for i i

Re: [sage-support] Re: recurrent sequence

2013-07-10 Thread Jean
1)-> a_(n+1)/M_(n+1) and etc, > > Best, > Raman > > On 7/9/13, Jean > wrote: > > Could you be more explicit? There are values such as d_(n+1) defined > twice. > > > > J. > > > > > > > > On Tuesday, July 9, 2013 5:45:25

[sage-support] Re: recurrent sequence

2013-07-09 Thread Jean
Could you be more explicit? There are values such as d_(n+1) defined twice. J. On Tuesday, July 9, 2013 5:45:25 PM UTC+2, raman wrote: > > Hi everyone, > I have written a recurrent sequence in MAPLE. I wish to wite it in > SAGE too, but I do not know how. Can anyone help me? > Best > -- Y

[sage-support] Re: Confusing error message from desolve_laplace

2013-07-08 Thread Jean
I forgot: I am using SAGE version 5.9 *sage:* version() 'Sage Version 5.9, Release Date: 2013-04-30' -- 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-sup

[sage-support] Confusing error message from desolve_laplace

2013-07-08 Thread Jean
Hello Sage-lovers, While playing with SAGE and Dr. Joyner's tutorial on Sage and DE (dated 11-22-2007), I had a rather confusing error message. At some point, I forgot to put the dependent var in *desolve_laplace()*, which resulted in the message "... takes at least 2 arguments (2 given)". *sa

[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 > > Date: Thu, Jun 20, 2013 at 2:46 AM > Subject: question - SAGE > To: "wst...@uw.edu " > > > > Dear Professor William Stein, > > I am Savin Diana and I work at O

Re: [sage-support] Bug in solve?

2013-02-24 Thread Jean
Hello there, I have the same behavior on Fedora 18 x86_64 ;;; ;;; Detected access to protected memory, also kwown as 'bus or segmentation fault'. ;;; Jumping to the outermost toplevel prompt ;;; --- TypeError

[sage-support] Fedora 18 - sage fails to start after update to 5.7

2013-02-24 Thread Jean
de-5.7-1.fc18.noarch sagemath-core-5.7-1.fc18.x86_64 sagemath-doc-en-5.7-1.fc18.noarch After "yum install ipython", sage started without problem. Solution: could you include "ipython" as a dependency of sagemath-core in the Fedora 18 package? Thank you, Jean -- You received this m

[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 p

[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 On

[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 fr

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 u

[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 th

[sage-support] How to get the message from the standard output when interfacing gp and SAGE ?

2011-12-15 Thread Jean-François Biasse
#x27;\\g 1') that turns the debug mode on, but I have the same problem : it prints out too many things. Thanks Jean-François -- 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

[sage-support] Re: equation with complex number

2011-12-11 Thread jean-pat
thank you On 9 déc, 12:52, achrzesz wrote: > On Dec 9, 12:18 pm, David Joyner wrote: > > > > > > > > > > > This is a question for sage-support, which I am ccing. > > > On Fri, Dec 9, 2011 at 5:04 AM, Jean-Patrick Pommier > > > wrote:

[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, s

[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 wrote: > This is now #11561. > > On 1 juil, 10:59, Jean-Pierre Flori wrote: > > > > > > > > > Python was recently updated to not build with OpenSSL support o

[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 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.

[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 su

[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 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(1<<55,'t') > sage: a = K.random_element() > sage: while

[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(1<<55,'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-Pie

[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 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, J

[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 wrote: > and from ZZ_pE_c_to_list function > > On 16 juin, 01:18, Jean-Pierr

[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 wrote: > Which seems to come from list() method. > > On 16 juin, 00:09, Jean-Pierre Flori wrote: > > > > > > > > > I finally found the memleak in different si2sa_* functions in > >

[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 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 wrote: > > > > > >

[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 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

[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 wrote: > S the memleak seems to be located within creation or rather coercing > to MPolynomial_libsingular. > Calling gc.collect(

[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 wrote: > Thanks a

[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 wrote: > On 14/06/2011 21:58, Jean-Pierre Flori wrote: > > > > > On 14 juin, 08:44, Simon King  wrote: > >> Since sage-nt seems to agree that it is a bug, I opened trac ticket > &g

[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 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, only Python code whic

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

2011-06-13 Thread Jean-Pierre Flori
I created a ticket concerning the memleak: http://trac.sagemath.org/sage_trac/ticket/11468 I did not have the time to find the origin of the problem. Simon, I guess you could open another ticket with what you spotted. On 8 juin, 14:13, Simon King wrote: > On 8 Jun., 11:19, Jean-Pierre Fl

[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 wrote: > Hi > > Thanks for the he

[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(1<<50,'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] Re: Segfault while creating finite field homomorphism

2011-05-27 Thread Jean-Pierre Flori
This is now Trac #11390. On 27 mai, 15:41, Jean-Pierre Flori wrote: > I must admit that I do not know what that method call exactly does, > but calling it resolve the mentionned bug. > Moreover it is called in different places all over the file in a > similar manner so I have the fee

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

2011-05-27 Thread Jean-Pierre Flori
and a doctest hoping that someone with a better understanding of ntl and gf2x will confirm that it is ok or provide a correct fix. Cheers, On 27 mai, 15:22, Jean-Pierre Flori wrote: > Adding > >         (self._parent).F.restore() > before calling > cdef GF2X_c r = GF2X_IrredPol

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

2011-05-27 Thread Jean-Pierre Flori
Adding (self._parent).F.restore() before calling cdef GF2X_c r = GF2X_IrredPolyMod(GF2E_rep(self.x),GF2E_modulus()) fixes everything. Not sure yet why it does not get called before in that situation... On 27 mai, 15:03, Jean-Pierre Flori wrote: > Putting sig_on/sig_off aro

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

2011-05-27 Thread Jean-Pierre Flori
sage.rings.finite_rings.element_ntl_gf2e.FiniteField_ntl_gf2eElement.minpoly (sage/rings/finite_rings/element_ntl_gf2e.cpp:11156)() RuntimeError: build GF2XArgument: bad args What is also strange is that it only happens for the second element... On 27 mai, 14:49, Simon King wrote: > Hi Jean-Pierre, > > On 27 Mai, 14

[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 wrote: > Hi Jean-Pierre, > > On 27 Mai, 14:08, Je

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

2011-05-27 Thread Jean-Pierre Flori
sage: R. = 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] /home/jp/boulot/sage/sage-4.

[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.| -

Re: [sage-support] Difficulties with Sage installation on ubuntu 10.04 lts

2011-04-30 Thread jean-pierre.peigneux
Thank you for your advices,and sorry to disturb you again.I have modified some files and recompiled from sources ,now the fortran seems ok.I compiled sage deep enough but at the end I got the following messages of error. Could somebody can comment that ,I don't know what is ecl-10.4.1.spk and why

Re: [sage-support] Difficulties with Sage installation on ubuntu 10.04 lts

2011-04-27 Thread jean-pierre.peigneux
igneux/Bureau/Sage/sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux/spkg/build/atlas-3.8.3.p16 and type 'make check' or whatever is appropriate. Instead, the following commands setup all environment variables correctly and load a subshell for you to debug the error: (cd

Re: [sage-support] Re: Difficulties with Sage installation on ubuntu 10.04 lts

2011-04-26 Thread jean-pierre.peigneux
ic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) Le mardi 26 avril 2011 à 17:51 +0100, Dr. David Kirkby a écrit : > On 04/26/11 05:27 PM, jean-pierre.peigneux wrote: > > Th

Re: [sage-support] Re: Difficulties with Sage installation on ubuntu 10.04 lts

2011-04-26 Thread jean-pierre.peigneux
Thank you for fast answer ;I am joining the output of cat /proc/cpuinfo just below: processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 8 model name : AMD Athlon(tm) XP 2000+ stepping: 1 cpu MHz : 1666.732 cache size : 256 KB fdiv_bug

[sage-support] Difficulties with Sage installation on ubuntu 10.04 lts

2011-04-26 Thread jean-pierre.peigneux
Hello,I am a new comer I got the binary file sage-4.6.2-linux-32bit-ubuntu_10.04_lts-i686-Linux-i686-Linux In the proper directory I tried to start sage as recommended ./sage First I got the following message: i686-Linux-i686-Linux$ ./sage --

[sage-support] Re: var() function behavior changes when calculus.py is imported

2011-01-18 Thread Jean-Pierre Flori
> I see.  Why not just import that one function, in that case?  That is > a very natural thing to do.  Only import a whole namespace if you > really have to - it can really mess things up, as you have pointed > out. I'm aware of that, that piece of code was stupid because I was lazy when I wrote th

[sage-support] Re: var() function behavior changes when calculus.py is imported

2011-01-18 Thread Jean-Pierre Flori
Hi, > Huh.  Can I ask where one would import * from sage.calculus.calculus? In my badly written code. I wanted to call symbolic_sum which is not reachable by default, rather than sum when doing some tests. Cheers, JP -- To post to this group, send email to sage-support@googlegroups.com To unsub

[sage-support] var() function behavior changes when calculus.py is imported

2011-01-18 Thread Jean-Pierre Flori
When "from sage.calculus.calculus import *" is executed, the default var() function from sage.calculus.var (L4) gets replaced by another one from sage.symbolic.ring (L506). There is indeed an import made in sage.calculus.calculus (L370). However, the behavior of var() changes afterward because wh

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-30 Thread Jean-Pierre Flori
On 30 nov, 00:34, David Kirkby wrote: > On 29 November 2010 14:49, Jean-Pierre Flori wrote: > > > It now fails when building sqlite: > > >  /usr/local/gcc4/bin/gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME= > > how are you getting Sage to build with a gcc

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-29 Thread Jean-Pierre Flori
qlite3.so.0.8.6 ld: warning: option -o appears more than once, first setting taken ld: fatal: file libsqlite3.so.0: open failed: No such file or directory ld: fatal: File processing errors. No output written to .libs/ libsqlite3.so.0.8.6 collect2: ld returned 1 exit status make[2]: *** [libsqlite3.la] E

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-29 Thread Jean-Pierre Flori
owing error: gcc: gl/lib/strnlen.o: No such file or directory Replacing patch source code by the latest alpha from ftp://alpha.gnu.org/gnu/patch/ solved the issue. On 19 nov, 18:18, Jean-Pierre Flori wrote: > Hi, > > Everything runs fine now (after fighting with nfs). > I've even bu

[sage-support] Re: Issues with simplifying really simple expressions

2010-11-25 Thread Jean-Pierre Flori
I guess the problem is that currently Pynac do not process powers with symbolic exponents much. (x**a)**b, (x**b)**a and x**(a*b) won't match, but I guess that none of them is canonical. The only way to process (some of) them is through simplify() (and so through Maxima): sage: ((x^a)*(x^b)).simpli

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-19 Thread Jean-Pierre Flori
Hi, Everything runs fine now (after fighting with nfs). I've even built the new maxima and ecl, patched everything (one hunk failed, looked at it, it must be a test which has benn added after 4.5.1 release...) I'm now trying to run doctests of interfaces/maxima.py. I'll run it on the Sunblade 1500

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-18 Thread Jean-Pierre Flori
You were right, there is something wrong with the libgfortran file under SAGE_ROOT/local/lib/ . It was a symlink to "./../lib/libgfortran.so", strange. Sage is working with the libraries you posted above. Thanks ! -- To post to this group, send email to sage-support@googlegroups.com To unsubscri

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-18 Thread Jean-Pierre Flori
Hi, > Can you send me the output of > > $ gcc -v > $ gfortran -v > $ command -v gcc > $ cmmand -v gfortran > > on your system. > Here it is: bash-3.00$ gcc -v Reading specs from /usr/local/packages/gcc3/bin/../lib/gcc/sparc-sun- solaris2.10/3.4.3/specs Configured with: /sfw10/builds/build/sfw10-pa

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-17 Thread Jean-Pierre Flori
Thanks for taking care of this ! I was just trying to run tests on Solaris for the next Ecl and Maxima spgk's... I'll try downlaoding your lib tomorrow, I'm not at work right now and am too tired to ssh and etc... Just one point: we've got a quite recent gcc installed on our Solaris, I'd say gcc

[sage-support] Sage Solaris binary distribution and libgfortran

2010-11-17 Thread Jean-Pierre Flori
Hi, I unpacked Sage 4.5.1 binaries on Solaris, but when I try to launch Sage, it complains about missing libgfortran: ImportError: ld.so.1: python: fatal: libgfortran.so.3: open failed: No such file or directory I searched a bit and found something which looks related here: http://trac.sagemath.

[sage-support] Re: Segfault when printing a copy of symbolic object

2010-10-08 Thread Jean-Pierre Flori
I can confirm it fixes the bug, I'll add myself as a reviewer on Trac. If I understand correctly, originally, __copy__ function of element.pyx calls Expression.__new__(Expression) which should call an __init__ function (without argument ? but I don't know which ?) so _gobj is not initialized. When

  1   2   >