[sage-support] Re: sagenb issues

2011-10-27 Thread leif
swapping, which of course slows down the build process or may even freeze your machine [at least for a while].) [I'm not sure whether that's mentioned anywhere in the Sage documentation, but rather doubt it is.] -leif [1] http://www.gnu.org/software/make/manual/make.html#Options-Summary -- To post

[sage-support] Re: sagenb issues

2011-10-27 Thread leif
On 27 Okt., 19:12, Volker Braun vbraun.n...@gmail.com wrote: On Thursday, October 27, 2011 11:01:19 AM UTC-4, leif wrote: Setting MAKE to make -jN when (re-)building Sage doesn't limit the *total* number of build jobs to N; It does limit the total number of build jobs within the current

[sage-support] Re: Issues with assigning color values to multiple plots.

2011-10-27 Thread leif
On 28 Okt., 01:51, Eric Kangas eric.c.kan...@gmail.com wrote: plot([derivative((f(x), a) for a in [0,1,..3]], (x,0,2*pi), color = ()) Just curious: Any reason to use [0,1,..3] instead of just [0..3] or even the pure Python syntax: range(4) ? -leif -- To post to this group, send email

[sage-support] Re: Issues with assigning color values to multiple plots.

2011-10-27 Thread leif
] sage: srange(0.0,pi+pi/3,pi/3.0) [0.000, 0.333*pi, 0.667*pi, pi] -leif -- 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

[sage-support] Re: Ticket # 5310 and related issues

2011-10-31 Thread leif
, which could speed up things significantly if you call it repeatedly. It could also (optionally) use PARI's prime table instead of a modulo-30 wheel. -leif -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr

[sage-support] Re: Fwd: sage broken on latest ubuntu; solutions

2011-10-31 Thread leif
and/or Ubuntu 11.10). (For earlier Sage versions, i.e. 4.7.1 and some 4.7.2.alpha*, a different Symmetrica spkg is needed as well as setting LDFLAGS=-ldl for the Singular 3-1-1-4 spkg.) The R/readline issue is meanwhile tracked at http://trac.sagemath.org/sage_trac/ticket/11970 . -leif -- To post

[sage-support] Does anyone use SAGE_LOAD_ATTACH_PATH?

2013-05-14 Thread leif
in /Sage's/ documentation, and on #14523 [1], we're wondering whether it could/should be removed, although this would presumably be done on another ticket.) -leif [1] http://trac.sagemath.org/sage_trac/ticket/14523#comment:13 ff. [2] http://sagemath.org/doc/reference/misc/sage/misc

[sage-support] Re: Cardinality of 512-bit curve

2013-05-15 Thread leif
package for this, for convenience? (It would also be slightly smaller than PARI's .tgz ...) -leif On Wednesday, May 15, 2013 8:07:48 PM UTC+8, John Cremona wrote: On 15 May 2013 10:47, John Cremona john.c...@gmail.com The PARI package in Sage only has the small database of modular

[sage-support] Re: problem applying patches

2013-05-15 Thread leif
(i.e., there's a version in $SAGE_ROOT/local/bin/), just to sort out such issues. -leif On Wednesday, May 15, 2013 2:28:33 PM UTC-5, John H Palmieri wrote: On Wednesday, May 15, 2013 12:08:57 PM UTC-7, Ben wrote: I am trying to help someone install patches on their sage

[sage-support] Re: problem applying patches

2013-05-15 Thread leif
middle columns, which is CR LF in hexadecimal notation.) -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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

[sage-support] Re: Problem with Sage 5.9 on startup

2013-05-16 Thread leif
installation is probably better (safer and less error-prone) as well. Just to make sure: Does /usr/share/sage-5.9/devel/sagenb/sagenb/misc/sphinxify.py exist? -leif === -- | Sage

[sage-support] Re: Get an error message when trying to install sage cell server

2013-05-19 Thread leif
*think* a binary distribution might work as well, but I'm not sure.) -leif I am running this on a kubuntu virtual machine (VMWare) but I don't see that should matter. Is there another way to achieve this? Can I just download and unzip the archive? If this is the case, where do I unzip it to? Any

[sage-support] Re: Get an error message when trying to install sage cell server

2013-05-27 Thread leif
: No module named _ssl Install OpenSSL and rebuild Python. I.e., in the VM do: $ sudo apt-get install libssl-dev $ ./sage -f spkg/standard/python-* -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups

[sage-support] Re: Unexpected EOF while looking for matching `''?

2013-06-03 Thread leif
Volker Braun wrote: socket.gethostname() returns illegal hostname, thats great. Apple, what the heck! ROFL. I first thought the apostrophe may come from the path of the Sage installation. Worth a ticket? -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received

[sage-support] Re: Unexpected EOF while looking for matching `''?

2013-06-03 Thread leif
Volker Braun wrote: On Monday, June 3, 2013 8:47:17 AM UTC+1, leif wrote: Worth a ticket? Not sure; Apparently OSX does escape illegal characters usually, though clearly some people get bitten by this. Might be dependent on whether the name was entered during installation / upgraded from

[sage-support] Re: Unexpected EOF while looking for matching `''?

2013-06-03 Thread leif
setting up / invoking shell commands I think) where we could run into trouble. For starters, you just broke the sage cleaner again. ? I just quoted the changes that have been made. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you

[sage-support] Re: how to keep up to a certain degree of a multivariate polynomial?

2013-06-04 Thread leif
sage: f.truncate(x,3) x^2*y^4 + x*y + x + y + 1 sage: f.truncate(x,3).truncate(y,3) x*y + x + y + 1 -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group

[sage-support] Re: Can Sage do high-precision polynomial integration?

2013-06-06 Thread leif
-leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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

[sage-support] Re: Can Sage do high-precision polynomial integration?

2013-06-06 Thread leif
leif wrote: Mike wrote: Is it possible (in Sage 5.9) to do high-precision simple integration (e.g. of polynomials)? The following is an example of what doesn't work: while the coefficients of q are known to 30 digits, the coefficients of the integrals are known to at most 15. a=RealField(100

[sage-support] Re: Why in .sage |try: Nf.v=NumberField(Z**2 -D)| fails with syntax error but works on new line ?

2013-06-08 Thread leif
Georgi Guninski wrote: This fails with syntax error, but works if Nf.v is on new line: K.Z=ZZ[] for D in [ 1 .. 20]: try: Nf.v=NumberField(Z**2-D) except Exception,e: print e That's a Sage preparser bug, but it's bad style anyway... ;-) -leif

[sage-support] Re: Getting __name__ (or similar) of load-ed script?

2013-06-09 Thread leif
of them. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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

[sage-support] Re: Getting __name__ (or similar) of load-ed script?

2013-06-09 Thread leif
leif wrote: Emil wrote: I'd like to know if it's possible to get the filename of a script that's been run using the load or attach command at the sage: prompt. If I insert a print __name__ in the script I just get __main__. I know __name__ isn't the right thing, since I'm not dealing

[sage-support] Re: syntax error trying to run Sage 5.9 on OSX lion

2013-06-09 Thread leif
into some folder of an older one. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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: Getting __name__ (or similar) of load-ed script?

2013-06-09 Thread leif
Emil wrote: Thanks Leif. inspect.getfile() doesn't seem to do what I want. The situation is that I have a number of scripts, s1.sage, s2.sage, etc, and I'd like them to be able to write to a '.js' file with the same name as their filenames, e.g. s3.sage would write to s3.js, etc. I thought I

[sage-support] Re: Sage Speed Issues

2013-06-11 Thread leif
]: ... is identical to for M in [1..N]: ... since (e.g.) [1..0] yields the empty list. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving

[sage-support] Re: 5.9 build issue with Singular and bits/c++config.h

2013-06-12 Thread leif
if it didn't have bits/c++config.h at all. Before you make further attempts, could you save the offending cf_gmp.h (and the corresponding config.log, from spkg/build/singular-*/src/factory/ I think)? -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message

[sage-support] Re: 5.9 build issue (source build)

2013-06-12 Thread leif
(formerly in $SAGE_ROOT/spkg/logs/). -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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: 5.9 build issue with Singular and bits/c++config.h

2013-06-12 Thread leif
leif wrote: chexmix wrote: In file included from ../kernel/si_gmp.h:4:0, from ../kernel/structs.h:15, from weight0.c:13: ../factory/cf_gmp.h:2501:28: fatal error: bits/c++config.h: No such file or directory #include bits/c++config.h

[sage-support] Re: 5.9 build issue with Singular and bits/c++config.h

2013-06-12 Thread leif
leif wrote: What does, in a Sage subshell ('./sage --sh'), the following give: $ echo '#include gmp.h' gen_cf_gmp.cc $ $CXX -M gen_cf_gmp.cc | grep gmp.h Oh, forgot: And what does in contrast $ $CXX -I$SAGE_LOCAL/include -M gen_cf_gmp.cc | grep gmp.h give? -leif (Do that in some

[sage-support] Re: 5.9 build issue (source build)

2013-06-12 Thread leif
gmp.h Thanks, -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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: Capturing output, was: 5.9 build issue (source build)

2013-06-12 Thread leif
Stephen Montgomery-Smith wrote: On 06/12/2013 11:04 AM, leif wrote: chexmix wrote: I ran a script session to capture the build output. P.S.: You don't have to do that. There's $SAGE_ROOT/logs/install.log (cumulative, usually mostly unreadable when 'make' is run with multiple jobs

[sage-support] Re: 5.9 build issue (source build)

2013-06-12 Thread leif
arojas wrote: El miércoles, 12 de junio de 2013 23:01:52 UTC+2, leif escribió: What does, in a Sage subshell ('./sage --sh'), the following give? $ echo '#include gmp.h' gen_cf_gmp.cc $ $CXX -I$SAGE_LOCAL/include -M gen_cf_gmp.cc | grep gmp.h /opt/sage/local/include/gmp.h /usr

[sage-support] Re: solve() free variable substitution

2013-06-12 Thread leif
.) Tedious, of course... A /bit/ more automated: sage: var(','.join([str(v) for v in a[0].variables()])) or rather sage: var(','.join([str(v) for v in a[0].rhs().variables()])) To replace all occurrences, you can then e.g. also do sage: [ eqn.subs(z38=3) for eqn in a ] -leif -- () The ASCII

[sage-support] Re: solve() free variable substitution

2013-06-12 Thread leif
leif wrote: robin hankin wrote: hello, sage 5.9 If solve() gives an unspecificed integer, how do I substitute a particular value into the expression? subs() does not work as expected/desired because the free variables don't seem to be defined. sage: a=solve(sin(x)==0,x,to_poly_solve='force

[sage-support] Re: solve() free variable substitution

2013-06-12 Thread leif
kcrisman wrote: On Wednesday, June 12, 2013 8:09:02 PM UTC-4, leif wrote: robin hankin wrote: hello, sage 5.9 If solve() gives an unspecificed integer, how do I substitute a particular value into the expression? subs() does not work as expected/desired

[sage-support] Re: 5.9 build issue (source build)

2013-06-13 Thread leif
leif wrote: arojas wrote: El miércoles, 12 de junio de 2013 23:01:52 UTC+2, leif escribió: What does, in a Sage subshell ('./sage --sh'), the following give? $ echo '#include gmp.h' gen_cf_gmp.cc $ $CXX -I$SAGE_LOCAL/include -M gen_cf_gmp.cc | grep gmp.h /opt/sage/local

[sage-support] Re: Ellipsis suddenly appears?

2013-06-17 Thread leif
, 6.00] Especially try preparse() of both; the latter returns a generator, while the former returns a list. I'm not sure what suddenly was meant to say; did the behaviour differ in previous versions of Sage? (It doesn't in Sage 5.8, nor 5.2, say.) -leif -- () The ASCII Ribbon Campaign

[sage-support] Re: Sage 5.10 released - no bdist for 32-bit Precise

2013-06-20 Thread leif
... ;-) ) -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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

[sage-support] Re: Problem installing 5.10 withy ppa on Ubuntu 13.04

2013-06-22 Thread leif
version of it) included in the PPA distro? -leif Before this I get: Removing /usr/lib/sagemath/local/lib/python2.7/site-packages/SciTools_-1.0-py2.7.egg-info Writing /usr/lib/sagemath/local/lib/python2.7/site-packages/SciTools_-1.0-py2.7.egg-info cp: impossible de créer le fichier standard

[sage-support] Re: Sage 5.9 build issue with Singular on Slackware

2013-06-23 Thread leif
setting CPP)? Cheers, -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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: Too many primes dividing d!

2013-06-24 Thread leif
, sorry. Thanks for pointing this out. The code now autodetects the nummber of bits in an unsigned long, and that is the bound on the number of primes factors which can be handled. Couldn't you just use uint64_t instead? Just asking... -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML

[sage-support] Re: problem compiling sage-5.10

2013-06-24 Thread leif
], preliminary fixed spkg is here: http://boxen.math.washington.edu/home/leif/Sage/spkgs/singular-3-1-5.p8.spkg (Download and copy that into spkg/standard/, then resume the build by typing 'make' again.) -leif [1] http://trac.sagemath.org/sage_trac/ticket/14737 -- () The ASCII Ribbon

[sage-support] Re: Heartbleed bug / Sage's OpenSSL spkgs

2014-04-15 Thread leif
) -- using ./sage -f http://sagemath.org/packages/archive/openssl-1.0.0.p0.spkg (and reinstalling pyopenssl etc. as above); versions prior to and including 1.0.0 didn't have the heartbeat TLS extension. In any case, don't forget to restart any running services using that OpenSSL library. -leif

[sage-support] Re: How to install latest sage version on window 7 + Question following the online sage tutorial guide

2014-04-15 Thread leif
leif wrote: leun...@gene.com wrote: Q2: I tried to follow the online sage tutorial (http://www.sagemath.org/doc/tutorial/tour_algebra.html). The session of using maxima to do laplace transform. I copied the exact command de1 = maxima(2*diff(x(t),t, 2) + 6*x(t) - 2*y(t)) lde1 = de1

[sage-support] Re: Zero power zero

2014-04-16 Thread leif
, and IIRC we also had endless discussions a couple of times on sage-devel.) Tertium tamen datur, -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop

[sage-support] Re: find Nth prime with Sage

2014-04-16 Thread leif
to include the open source libraries primesieve and primecount in Sage which would provide a much faster Primes iterator, prime_range, prime_pi, and nth_prime, however so far these haven't made it in. And I just noticed that http://trac.sagemath.org/ticket/11475 is still bit-rottening... -leif

[sage-support] Re: SAGE CPLEX

2014-04-18 Thread leif
on them. The relevant linker command line arguments are -framework CoreFoundation -framework IOKit. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group

[sage-support] Re: Random Primitive

2014-04-19 Thread leif
#sage.rings.finite_rings.finite_field_base.FiniteField.multiplicative_generator -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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

[sage-support] Re: Computational geometry in the plane: in Sage?

2014-04-22 Thread leif
=/path/to/system/atlas/libs ./sage -f atlas $ env SAGE_UPGRADING=yes make build (Note sure whether some Cython extension modules need to get rebuilt/relinked as well, and if so, whether the dependencies are complete in that the above would automatically rebuild them.) -leif -- () The ASCII Ribbon

[sage-support] Re: Installing Python module in Sage (Ubuntu)

2014-04-24 Thread leif
$ sage -i /path/to/python_package.tar{,.gz,.bz2} Don't know whether that still works. (And IIRC, the name of the tarball had to match the top-level folder in it, but that's /usually/ the case. If not, simply renaming the tarball should be sufficient.) -leif -- () The ASCII Ribbon Campaign

[sage-support] Re: Solving Trigonometric Equations

2014-04-26 Thread leif
=AFQjCNHgkg8ryusZlGzg19QM7ogKmufo4Asig2=tYRBajv8jhJmWVbA9_6R0A Read: http://www.csulb.edu/~woollett/mbe4solve.pdf ;-) -leif quote chapter 4.1.1: Maxima's ability to solve equations is limited, but progress is being made in this area. I guess (because I don't know so much about Maxima symbolic

[sage-support] Re: M.right_eigenvectors() brings old error

2014-05-02 Thread leif
().eigenvectors_left(extend) -leif While eigenvectors_right() works perfectly good, right_eigenvectors() says: Traceback (most recent call last): File , line 1, in module File /tmp/tmpHySbp1/___code___.py, line 24, in module exec compile(u'M.right_eigenvectors() File , line 1

[sage-support] Re: M.right_eigenvectors() brings old error

2014-05-02 Thread leif
leif wrote: Dima Pasechnik wrote: On 2014-05-02, leif not.rea...@online.de wrote: Dima Pasechnik wrote: On 2014-05-02, Michał Migacz migacz.mic...@gmail.com wrote: Hello It happens on sagenb.org which runs Sage 5.11, for which http://trac.sagemath.org/ticket/10346 is already closed. Do

[sage-support] Re: M.right_eigenvectors() brings old error

2014-05-02 Thread leif
Nils Bruin wrote: On Friday, May 2, 2014 8:38:16 AM UTC-7, leif wrote: return self.transpose().eigenvectors_left(extend) def eigenvectors_right(self, extend=True): So 'extend' is defined where the call happens... Stylistically it seems to be a keyword argument

[sage-support] Re: Want all real solutions to a Simple trig equation

2014-05-03 Thread leif
be difficult to get them all Not difficult, but would take infinitely long to get them all... Note that one could use assume() to get a finite subset. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups

[sage-support] Re: Want all real solutions to a Simple trig equation

2014-05-03 Thread leif
' indicate arbitrary integers.) assume() doesn't seem to have an impact here, and passing further relations to solve() doesn't seem to give useful results either. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed

[sage-support] Re: Error installing package singular-3.1.5.p9

2014-05-04 Thread leif
that Sage 6.2.rc2 has been released today, so you might also try that [1], or wait hopefully at most a few days until 6.2 gets released. -leif [1] http://boxen.math.washington.edu/home/release/sage-6.2.rc2/sage-6.2.rc2.tar.gz -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You

[sage-support] Re: Optional GAP packages in Sage 6.2

2014-05-09 Thread leif
database_gap and you'll get the new style 4.7.4 versions. (After that, 'sage --optional' will correctly report that they're installed.) -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups sage-support group

[sage-support] Re: possible bug in DiscreteHiddenMarkovModel - NaN produced in output matrices

2014-05-09 Thread leif
, such that you can check the effects of your changes. But before starting to modify the code, you should create a branch for your work such that you can always easily switch back to a clean version of Sage. See [1]. -leif P.S.: Thanks for your very nice bug report! [1] http

[sage-support] Re: Fwd: KASH Sage Package with Windows

2014-05-16 Thread leif
virtual machine, see [2]. -leif [1] http://page.math.tu-berlin.de/~kant/download.html [2] http://sagemath.org/doc/installation/binary.html#microsoft-windows -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups

[sage-support] Re: error message

2014-05-18 Thread leif
local/var/lib/sage/installed/, you can see which packages *have been* successfully installed so far.) You can also just issue 'make' again, and see whether the build error persists; if so, at some point what's causing it will pop up near the end of the output... ;-) -leif -- () The ASCII

[sage-support] Re: splitting_field

2014-05-18 Thread leif
ImportError: No module named splitting_field Where is the problem? No idea. Works for me. Do I need to install a package? No. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups sage-support group

[sage-support] Re: splitting_field

2014-05-18 Thread leif
-04' sage: Or did I just mess it up somehow? -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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

[sage-support] Re: splitting_field

2014-05-18 Thread leif
leif wrote: John Cremona wrote: You need 6.2. The splitting field functionality was only added since 6.1.1: ? sage: sage: R.x = PolynomialRing(QQ) sage: sage: K.a = NumberField(x^3 + 2) sage: sage: S.t = PolynomialRing(K) sage: sage: L.b = (t^2 - a).splitting_field() sage: sage: L Number

[sage-support] Re: sage 6.2

2014-05-19 Thread leif
/installation/binary.html#microsoft-windows which further indirectly points you to http://wiki.sagemath.org/SageAppliance (and http://www.sagemath.org/download-windows.html but the mirrors haven't synced yet, so wait a while or take the fresh 6.2 ova pointed to at the top of this message). -leif

[sage-support] Re: I can't create a matrix in Sage Version 6.1.1, Release Date: 2014-02-04

2014-05-22 Thread leif
(4,4, range(16)) sage: A [ 0 1 2 3] [ 4 5 6 7] [ 8 9 10 11] [12 13 14 15] sage: Looks like your installation was broken somehow^TM^. -leif --- AttributeErrorTraceback (most recent call

[sage-support] Re: Method to invert the birational map from degree 3 curve to its Weierstrass form?

2014-05-24 Thread leif
+ 3*x*y^2 - 2*x^2*z - 2*x*y*z - y^2*z + y*z^2 Defn: Defined on coordinates by sending (x : y : z) to (-12*x*z - 4*y*z : 32*x*z : x^2 - 28*x*z - 4*y*z) sage: e.inverse().defining_polynomials() [-12*x*z - 4*y*z, 32*x*z, x^2 - 28*x*z - 4*y*z] -leif On Saturday, May 24, 2014 4:38:48 PM UTC

[sage-support] Re: Memory Leak in mutipolynomial evaluation

2014-05-25 Thread leif
: for i in xrange(100): : a=f(1,0,0) : sage: get_memory_usage() 338.19921875 sage: gc.collect() 11 sage: get_memory_usage() 338.19921875 (Sage 6.2, MacOS X 10.6 x86_64) -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you

[sage-support] Re: caret interpreted as bitwise operator not power

2014-05-26 Thread leif
preparser replaces '^' by '**' internally when you load or run the file with 'sage'), simply rename your file to f.sage. Similar holds for '.pyx' vs. '.spyx'; the latter first gets preparsed. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because

[sage-support] Re: caret interpreted as bitwise operator not power

2014-05-26 Thread leif
to f.sage. Similar holds for '.pyx' vs. '.spyx'; the latter first gets preparsed. thanks for this Leif. Where do I look for documentation of this issue? The help page for load() discusses file extensions but does not mention preparsing. See for example http://sagemath.org/doc/tutorial

Re: [sage-support] Re: What is /path/to/file.sage when stored in cloud folder under project? For load('file.sage') ?

2014-05-29 Thread leif
this question wasn't SMC-specific. In contrast, if he'd asked how do I get the current working directory we probably would have sent him to #python, stackoverflow, or whatever. -leif On Wednesday, May 28, 2014 9:17:23 AM UTC-4, Dima Pasechnik wrote: On Wednesday, 28 May 2014 14:15:23 UTC+1, Dima

[sage-support] Re: How do you convert a string reprsentation of a polynomial back to a polynomial in a polynomial ring

2014-05-30 Thread leif
2010 -0700 Date: Sun Apr 4 16:47:15 2010 +0200 Date: Wed Mar 10 15:39:58 2010 -0800 Date: Mon Mar 8 14:09:13 2010 -0800 So at least a few developers are aware of it. -leif And, this one still mentions Mercurial for the development among other things!!! I have opened a ticket to change

[sage-support] Re: Bivariate polynomial Euclid's division algorithm support

2014-05-30 Thread leif
! (assuming the the original questioner likes it too, of course). Yes, indeed (and it's just one of a couple). http://ask-simon.sagemath.org/ ? -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups sage-support

[sage-support] Re: How do you convert a string reprsentation of a polynomial back to a polynomial in a polynomial ring

2014-05-30 Thread leif
' [BIG SNIP] You can use foo.parent() or parent(foo) instead. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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

[sage-support] Re: How do you convert a string reprsentation of a polynomial back to a polynomial in a polynomial ring

2014-05-30 Thread leif
leif wrote: Stephen Kauffman wrote: I'm trying to become cognizant of your caveats about conversion. What I've tried to write is a recursive function to convert polynomials (statements) in the Free BooleanPolynomialRing() to corresponding probability polynomials (statements) over QQ. I haven't

[sage-support] Re: Error in warning directive when installing

2014-06-01 Thread leif
' instead of just 'reference'), docbuilding simply gets stuck, i.e., hangs indefinitely; cf. recent threads on sage-devel (and probably better post there). My impression is that docbuilding with Python's multiprocessing doesn't work reliably, but so far failed to really track this down. -leif

[sage-support] Re: In Sage Notebook R outputs only show up at the end of the processing

2014-06-01 Thread leif
William Stein wrote: On Sun, Jun 1, 2014 at 6:06 PM, Fred Gruber fgru...@gmail.com wrote: Thanks William If I could just run an R command in the background and then just do sink [sync?] to sink() is an R command. -leif redirect the outputs to a log file then I would be able to check

[sage-support] Re: In Sage Notebook how to run a process in the background

2014-06-02 Thread leif
multiprocessing should also work. Not sure whether Sage's @parallel decorators play well in the notebook (and the master process/computation won't return until the children have finished AFAIK, so it's not asynchronous to the evaluation of other cells). -leif On Monday, June 2, 2014 7:31:48 AM UTC

[sage-support] Re: Error in warning directive when installing

2014-06-02 Thread leif
Jose Guzman wrote: On 01/06/14 17:59, leif wrote: Jose Guzman wrote: When trying to install Sage 6.2 from sources I got the following error: File /home/jguzman/sage-6.2/src/doc/common/builder.py, line 1477, in module getattr(get_builder(name), type)() File /home/jguzman/sage-6.2

[sage-support] Re: Segmentation fault in singular multi-polynomial factor() function

2014-06-04 Thread leif
leif wrote: Dominique Laurain wrote: I usually factor small polynomials...but this time I got a Segmentation fault for a bigger one...is it ok to get that error (no control of enough memory or processor task force to get the result) ? Maybe I want t much :-) ... over the quota

[sage-support] Re: Segmentation fault in singular multi-polynomial factor() function

2014-06-05 Thread leif
leif wrote: leif wrote: Dominique Laurain wrote: I usually factor small polynomials...but this time I got a Segmentation fault for a bigger one...is it ok to get that error (no control of enough memory or processor task force to get the result) ? Maybe I want t much :-) ... over the quota

[sage-support] Re: Segmentation fault in singular multi-polynomial factor() function

2014-06-05 Thread leif
Dominique Laurain wrote: Thanks leif for your help.. Since some weeks, I have a strange (final destination) feeling falling too much into deep software traps at office or at home... Work-around: Works in Sage 6.2 if you define f (i.e., u, v and w) the right way: sage: R.u,v,w=QQ[] sage: f

[sage-support] Re: Segmentation fault in singular multi-polynomial factor() function

2014-06-05 Thread leif
leif wrote: Dominique Laurain wrote: Thanks leif for your help.. Since some weeks, I have a strange (final destination) feeling falling too much into deep software traps at office or at home... Work-around: Works in Sage 6.2 if you define f (i.e., u, v and w) the right way: Sorry, my bad

[sage-support] Re: Segmentation fault in singular multi-polynomial factor() function

2014-06-06 Thread leif
. I'll otherwise probably do so, and check whether the patch applies clean to our version (and is sufficient for it). -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe

[sage-support] Re: Sage posts PowmInsecureWarning: Not using mpz_powm_sec. when launched

2014-06-08 Thread leif
silence the warning (probably by patching our pycrypto package further)? The easiest solution is of course to simply report this upstream... ;-) (MPIR 2.7.0.alpha4 still lacks mpz_powm_sec().) -leif On Sunday, June 8, 2014 11:21:20 AM UTC+1, Martin Albrecht wrote: On Saturday 07 Jun

[sage-support] Re: Sage posts PowmInsecureWarning: Not using mpz_powm_sec. when launched

2014-06-08 Thread leif
is not going to implement special functions safe w.r.t. side-channel attacks.) -leif On Sunday, June 8, 2014 5:16:47 PM UTC+1, leif wrote: Volker Braun wrote: Neat, but the flask openid shouldn't and doesn't implement SSL using pycrytpo. Looking at the source, what triggers

[sage-support] Re: Segmentation fault in singular multi-polynomial factor() function

2014-06-09 Thread leif
leif wrote: Volker Braun wrote: Reported at http://www.singular.uni-kl.de:8002/trac/ticket/621 Fix committed upstream: https://github.com/Singular/Sources/commit/28f4fe9464722511718050dfab7cd61d29898968 If somebody^TM opens a ticket (or has already done so), please cc me or post the ticket

[sage-support] Re: Segmentation fault in singular multi-polynomial factor() function

2014-06-09 Thread leif
leif wrote: leif wrote: If somebody^TM opens a ticket (or has already done so), please cc me or post the ticket # here. I'll otherwise probably do so, and check whether the patch applies clean to our version (and is sufficient for it). /Of course/^TM the patch from the pull request isn't

[sage-support] Re: Sage not finding Gambit's command line tools

2014-06-11 Thread leif
I try to use them within sage I get the error `'module' object has no attribute 'nash'` for example. Is there something I've forgotten to do? Well, hard to tell without looking at your package. Is it available somewhere? Trac ticket? -leif P.S.: This seems to be more suited to discuss

[sage-support] Re: How to inspect the existence and install a python package in the cloud

2014-06-11 Thread leif
, but plain Python packages. In that case, you could use pkg_resources, e.g. import pkg_resources pkg_resources.get_distribution(foo) # may raise DistributionNotFound pkg_resources.get_distribution(foo).version or simply try to 'import foo'... ;-) -leif On Wednesday, June 11, 2014 12

[sage-support] Re: Options for the Sage expand function

2014-06-14 Thread leif
jeanbigbo...@gmail.com wrote: Excuse the top-posting, the google groups UI is not as convenient for excerpting as emacs and a good Usenet server... A couple of Sage groups (including this) are available on/through gmane.org as well (gmane.comp.mathematics.sage.*). -leif -- () The ASCII

[sage-support] Re: Error Building sage-6.2: Error installing package mpir-2.6.0.p4

2014-06-17 Thread leif
is below. I'm trying to make sage in redhat version 5.7 Tikanga. The system is 64Bit, CPU is an Intel Xeon processor. Any help would be greatly appreciated. Many thanks! Hmmm, could you perhaps upload the full MPIR build log (logs/pkgs/mpir-2.6.0.p4.log) somewhere? -leif -- () The ASCII Ribbon

[sage-support] Re: Segmentation fault in singular multi-polynomial factor() function

2014-06-19 Thread leif
*v*w^3 + 1136*u*v^2*w^3 + 740*u^2*w^4 + 1140*u*v*w^4 + 296*u*w^5 - 52*u^3*w^2 - 256*u^2*v*w^2 - 184*u*v^2*w^2 - 256*u^2*w^3 - 412*u*v*w^3 - 184*u*w^4 + 36*u^2*w^2 + 60*u*v*w^2 + 60*u*w^3 - 8*u*w^2 print Factor f : ,f.factor() This is now fixed in Sage 6.3.beta4, released today. -leif

[sage-support] Re: tutoriatutorial() tries to start wine under gnome-3.12

2014-06-19 Thread leif
() ? (notebook() will also pop up your default browser, and then open Sage notebooks in it). By the way, you can set Sage's default browser by exporting SAGE_BROWSER=... in the shell before running 'sage'... -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- You received

[sage-support] Re: Fwd: help regarding sage instalation

2014-06-19 Thread leif
with less threads, in case you were using more than one.) -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML E-Mail -- 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

[sage-support] Re: Fwd: help regarding sage instalation

2014-06-20 Thread leif
leif wrote: William Stein wrote: -- Forwarded message -- From: Pramod Shukla pkshu...@to.infn.it mailto:pkshu...@to.infn.it Date: Jun 19, 2014 7:25 AM Subject: help regarding sage instalation While installing sage in my computer I came across some problem which unfortunately I

[sage-support] Re: trac mails are back on

2016-06-22 Thread leif
Dima Pasechnik wrote: > Trac emails should work now Yes, thanks. > (going via sendgrid.net). Why that? I'm getting ugly HTML mails with obfuscated links (and of course phishing attempt alerts). > Please shout if > something is not working. I won't click on them... B) -leif

[sage-support] Re: Seaborn in sage

2016-07-27 Thread leif
'-q' added to the options; see the following trac tickets for more details: https://trac.sagemath.org/ticket/20779 https://trac.sagemath.org/ticket/20563 (same issue, i.e. with movq) (Both a bit stalled at the moment, but give more info on the general problem with Xcode versions < 7.0.) -le

[sage-support] Re: Seaborn in sage

2016-07-27 Thread leif
ut you /may/ run into similar problems ("No such instruction: ...") when for example building NTL, since Apple's old GAS doesn't support AVX, BMI etc. Then you can try what I suggested, or see #20779 (and #21064 especially for NTL). -leif > Le mercredi 27 juillet 2016 19:45:55

[sage-support] Re: Seaborn in sage

2016-07-27 Thread leif
answers. Oh, interesting. (I thought you were running MacOS X 10.9.) Which version actually is it? Yosemite (10.10) or already El Capitan (10.11)? -leif > Le mercredi 27 juillet 2016 20:46:40 UTC+2, Laurent Decreusefond a écrit : > > I will try this one since I'm already working

  1   2   >