[sage-support] Re: install sage on Windows 10 using new ubuntu bash shell?

2016-09-29 Thread leif
dows without using a virtual > machine or anything? That would be sweet... > > I though I'd ask before trying it. There's been some related discussion on sage-devel in July [1]. Partially deviating from the topic, but perhaps still interesting. -leif [1] http://groups.google.com/group/sa

[sage-support] Re: sage crash report

2016-09-27 Thread leif
n only rarely answer questions from replies, of which a couple weren't necessary with proper generated system information either. -leif -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop rec

[sage-support] Re: Cosine function erro

2016-09-12 Thread leif
Which version? (Works for me in 7.3.) -leif -- 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 t

[sage-support] Re: Interface to lie broken in sage 7.3?

2016-09-12 Thread leif
/lie # clean up old versions Someone^TM borked it in May, apparently. Presumably simpler to just edit the broken script in $SAGE_ROOT/local/bin than to patch and reinstall LiE... (The real executable apparently is somewhere below $SAGE_ROOT/local/lib/LiE/.) -leif -- You received this messa

[sage-support] Re: Computation has been running for a very long time...

2016-09-12 Thread leif
uess sage: macaulay2.pid() gives you the PID. There are certainly smarter ways on SMC. -leif > > Here is the code I ran: > > | > reset() > macaulay2.eval(""" > K = toField(QQ[zet]/(zet^8 - zet^6 + zet^4 - zet^2 + 1)) > needsPackage "InvariantRing&q

[sage-support] Re: Sage Crash Report

2016-09-11 Thread leif
leif wrote: > Fabio Di Cosmo wrote: >> IPython post-mortem report >> >> {'commit_hash': u'b630b41', >> 'commit_source': 'installation', >> 'default_encoding': 'UTF-8', >> 'ipython_path': >> '/usr/lib/sagemath/local/lib/python2.7/site-pack

[sage-support] Re: Sage Crash Report

2016-09-11 Thread leif
constant::constant(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, GiNaC::ex (*)(unsigned int, _object*), std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int) Looks like you downloaded the wrong binary for your distro; your

[sage-support] Re: adding all gap packages

2016-09-10 Thread leif
ossible to even automatically blacklist packages (completely, or just for use with libGAP). -leif > This probably can be fixed, or libGAP can be made compatible with them > (although the latter is perpetuating what is basically a GAP fork). > > Dima -- You received this mess

[sage-support] Re: Easy way to combine fractions in Sage?

2016-09-10 Thread leif
Thanks! Well, not sure what you want to do with the result, but there's for example sage: (A/3 + B/2).numerator_denominator() (2*A + 3*B, 6) If you just want to *see* the common "denominator" and factors, simply taking the reciprocal 1/(A/3 + B/2) (aka ~(...) in Sage) might be convenien

[sage-support] Re: adding all gap packages

2016-09-10 Thread leif
g Sage, then calling gap_reset_workspace() again. If I'm not mistaken, you could afterwards load the GAP packages you want, before calling gap_reset_workspace() once again, in order to make them part of your saved workspace. HTH, -leif > I think these days diskspace isn't much of an issue,

[sage-support] Re: Sage always crashes

2016-09-07 Thread leif
t sufficient to just have all *scripts* and templates on GitHub, rather than the generated content (and the actual files themselves that get mirrored)? -leif > On Wed, Sep 7, 2016 at 4:47 PM, Dima Pasechnik <dimp...@gmail.com> wrote: >> I'd try the following: >> >&

[sage-support] Re: Support for digraph6 format?

2016-09-06 Thread leif
y with an optional parameter for backwards compatibility), the patch is trivial: --- a/src/sage/graphs/graph_input.py +++ b/src/sage/graphs/graph_input.py @@ -138,7 +140,7 @@ def from_dig6(G, dig6_string): if n == -1: n = len(dig6_string) ss = dig6_string[:n] -n, s = lengt

[sage-support] Re: Sage always crashes

2016-09-03 Thread leif
leif wrote: > John Cremona wrote: >> On 2 September 2016 at 16:36, leif <not.rea...@online.de >> <mailto:not.rea...@online.de>> wrote: >> >> John Cremona wrote: >> > Since I had never tried downloading and running a binary, I thought I >

[sage-support] Re: Sage always crashes

2016-09-02 Thread leif
/ program from Volker, such that they "patch" themselves upon installation / first attempt to run 'sage'. Loads of (absolute) paths in scripts but also binaries and libraries thereby get (again) hardcoded to the actual installation folder. -leif > If it > really is necessary

[sage-support] Re: Sage always crashes

2016-09-01 Thread leif
ould be "ipython-4.2.1/"; probably there's also "ipython_genutils-0.1.0/".) But to be honest, I have no idea whether that's also immediately true for the binary distributions during installation. Just look for ".sage/" in your home folder; you may have to enable "show hi

[sage-support] Re: Sage Crash Report

2016-08-31 Thread leif
Smells like you downloaded the wrong Sage binary, in other words, your distro is too old for the one you had chosen. The version tag 3.4.21 is from GCC 5.x, your GCC is presumably 4.8 or 4.9 (from Debian 7 or 8, respectively, I think). HTH, -leif -- You received this message because you

[sage-support] Re: huge virtual memory size when launching 7.3

2016-08-30 Thread leif
leif wrote: > William Stein wrote: >> On Tue, Aug 30, 2016 at 9:56 AM, Thierry Dumont >> <tdum...@math.univ-lyon1.fr> wrote: >>> I have two computers, and sage installed on both: >>> >>> 1) Ubuntu 12.04 , sage-7.3 on an nfs mount,y >>> &

[sage-support] Re: huge virtual memory size when launching 7.3

2016-08-30 Thread leif
it more complicated to see how much memory a Sage process actually *uses*. > I think this is a hack that is used by PARI/GP, due to their > "interesting" primitive (but fast!) memory design. And GAP / libgap. In this recent case I guess the latter is (once again) to bla

[sage-support] Re: Problem compiling 7.3 from source

2016-08-25 Thread leif
Luis Finotti wrote: > On Wednesday, August 24, 2016 at 5:41:37 PM UTC-4, leif wrote: > > Luis Finotti wrote: > > I can't compile 7.3 using Debian Unstable. > > Do you intentionally (try to) build Sage's GCC? (I have to admit I > haven't tried

[sage-support] Re: Using sage for student quizzes

2016-08-25 Thread leif
no doubt my > university would not like it either. I'll have a look and see if it is > manageable. The real issue is writing the content from scratch. Perhaps also ask on sage-education; there doesn't seem to be much traffic, but one never knows... (There in addition is a French sage-educat

[sage-support] Re: Problem compiling 7.3 from source

2016-08-25 Thread leif
leif wrote: > Dima Pasechnik wrote: >> Do we support gcc 6.1.1 now? > > Sure. (Modulo building Sage's GCC 4.9.3 with it... ;-) ) The only thing we missed in Sage 7.3 is Givaro's testsuite, which currently only builds when manually passing '-std=c++98' in CXXFLAGS. -leif -

[sage-support] Re: Problem compiling 7.3 from source

2016-08-25 Thread leif
Dima Pasechnik wrote: > Do we support gcc 6.1.1 now? Sure. (Modulo building Sage's GCC 4.9.3 with it... ;-) ) (6.2 has just been released, but that's a bugfix release in the 6.x series.) -leif > This is what is used during the build. -- You received this message because you are subs

[sage-support] Re: Problem compiling 7.3 from source

2016-08-24 Thread leif
log, which should tell you /why/ Sage attempts to build and use its own GCC. Presumably your system lacks g++ and/or gfortran; if you install these from your distro, Sage won't have to build them. -leif > Here is some info on the system: > > | > System: Host:finottim83 Kernel:4.7.0-

[sage-support] Re: The server of Sage 7.3 for Mac OS 10.11.6 (the app version) will not start!

2016-08-24 Thread leif
e your version of Xcode, but I don't really know. -leif [1] http://ask.sagemath.org/question/8531/install-problem-app-on-mac-os-x/ [2] http://ask.sagemath.org/question/34548/sage-on-macbookair/ > Here is the error report from the

[sage-support] Re: Using sage for student quizzes

2016-08-24 Thread leif
ted in some way in case they do]. But it's probably already too difficult to in legal sense correctly formulate such documents -- especially when it comes to "cloud" services... ;-) (How proper "anonymization" would perhaps in addition have to happen is just another controversial

[sage-support] Re: Using sage for student quizzes

2016-08-24 Thread leif
ant? My university > wouldn't allow to store the student's personal information on servers in > the USA. OT, but if I'm not mistaken, that's actually current law in the EU. (Which doesn't imply everybody cares...) -leif -- You received this message because you are subscribed to the Go

[sage-support] Re: Problem with git and trac server

2016-08-21 Thread leif
. > How can I correct this problem ? See the following thread on sage-devel: http://permalink.gmane.org/gmane.comp.mathematics.sage.devel/88529 So I think you can simply retry pushing your changes. -leif -- You received this message because you are subscribed to the Google Groups &quo

[sage-support] Re: Sage crash report

2016-08-15 Thread leif
Volker Braun wrote: > Missing dependency on gsl on arch? Don't think so, as libgsl.so must have been there during link of the extension module. Either ldconfig has messed up the links, or probably some RUN_PATH issue. (Or he really took some [incomplete] binary built elsewhere.) -l

[sage-support] Re: Sage crash report

2016-08-15 Thread leif
Dima Pasechnik wrote: > it is also ipython 5.0, which, as we know, is problematic. But -- perhaps surprisingly, the error /here/ is unrelated to IPython. I guess it's Sage 7.4.beta0 though. -leif -- You received this message because you are subscribed to the Google Groups "sage

[sage-support] Re: Sage crash report

2016-08-14 Thread leif
sition, > 97 denominator, > 98 det, > 99 dimension, > 100 dim, > 101 discriminant, > 102 disc, > > /usr/lib/python2.7/site-packages/sage/misc/functional.py i

[sage-support] Re: Lambda functions vs. defining functions

2016-08-11 Thread leif
(pre-)defined to be a symbolic variable, hence from Python's point of view has a value assigned such that f(x) can be evaluated before calling diff(). I.e., diff(g(y),y) won't work unless you also define y to be a symbolic variable (no matter what formal parameter name you use in the Pyt

[sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-11 Thread leif
tall all packages for, say, Ubuntu Linux, but > Sage has not that many available. As mentioned on the ticket Dima created, the python3 package should still have type "experimental" at this point. -leif -- You received this message because you are subscribed to the Google Grou

[sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread leif
Dima Pasechnik wrote: > On Wednesday, August 10, 2016 at 10:39:44 AM UTC+1, leif wrote: > > Dima Pasechnik wrote: > > this is now https://trac.sagemath.org/ticket/21199 > <https://trac.sagemath.org/ticket/21199> > > Is it at all supposed to be use

[sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-10 Thread leif
bly confusing and dangerous. -leif > On Wednesday, August 10, 2016 at 9:34:59 AM UTC+1, Dima Pasechnik wrote: > > > > On Wednesday, August 10, 2016 at 9:22:46 AM UTC+1, Dima Pasechnik wrote: > > > > On Wednesday, August 10, 2016 at 9:1

[sage-support] Re: Installation problems under Mac OS X El Capitan v10.11.6

2016-08-09 Thread leif
send email to sage-rele...@googlegroups.com >> <mailto:sage-rele...@googlegroups.com>. >> Visit this group at https://groups.google.com/group/sage-release. >> For more options, visit https://groups.google.com/d/optout. -leif -- You received this message because you a

[sage-support] Re: "Could not import extension sage_autodoc"

2016-08-09 Thread leif
html/en/reference/tensor is empty. > > Any idea what's going on? You've presumably downgraded your Sage version by checking out some older, pre-#20545 one. You have to run 'make' after doing so (or in this case, './sage -b' might be sufficient, but running 'make' is safer). -lei

[sage-support] Re: Installation problems under Mac OS X El Capitan v10.11.6

2016-08-05 Thread leif
the latest version available for your OS version. (The binaries we publish can be produced from such a build, with some restrictions on build options, but that's a further step.) See [3] for instructions on how to build from source. -leif [1] http://www.sagemath.org/download-source.html [2] htt

[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

[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
suggestion in my other reply should still work as well, I think.) > A quicker solution might be to make sure you installed the version of Sage > from > > http://mirrors.mit.edu/sage/osx/intel/index.html > > whose label matches your version of OS X. Yep, there meanwhile is one spe

[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: trac mails are back on

2016-07-03 Thread leif
leif wrote: > Huh, we do no longer get notifications when a ticket gets closed?! > > (I mean for the post on the ticket closing it, not other posts afterwards.) Hmmm, after trying to "change" my preferences (notifications explicitly to the allegedly default ones), I'm ge

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

2016-07-03 Thread leif
Dima Pasechnik wrote: > Trac emails should work now (going via sendgrid.net). Please shout if > something is not working. Huh, we do no longer get notifications when a ticket gets closed?! (I mean for the post on the ticket closing it, not other posts afterwards.) -leif -- You re

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

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

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

  1   2   >