Re: [sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread Walter Carlip
Okay, using the init.sage file with "gap._eval_using_file_cutoff = 10" seems to work now. Thanks. Have a new question, which should perhaps go somewhere else, but I'll try asking here. When I execute the gap command "SaveWorkspace("MyWorkspace");" in a sage notebook, I get the reply "tru

[sage-support] Sage fails to solve a polynomial (2nd order) system. What am I doing wrong ?

2012-06-29 Thread mazkime
Hello, I am new to Sage and I want to use it to solve non-linear systems, used to model physical phenomenons. I unfortunately met some problems trying to solve a non-linear system composed of 3 polynoms (2nd order) I first successfully solved the linear problem, but when I try with the non-line

Re: [sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread Walter Carlip
I'm in the lab now experimenting. Executing gap._eval_using_file_cutoff = 1000 in sage mode in a notebook does solve the problem. However, putting this line in a file named init.sage in the .sage directory does *not* work. The lab guru here suspects that sage is not finding the init.sage

Re: [sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread Ivan Andrus
On Jun 29, 2012, at 6:54 PM, Walter Carlip wrote: > This would, at least, be a relatively simple command to enter, though I don't > like the idea of students having to switch > back and forth from "sage" to "gap". (Even my tutors kept coming for help in > our practice session, only to realize t

[sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread Jason Grout
On 6/29/12 11:48 AM, Walter Carlip wrote: Jason -- Thanks for quick followup. I'm not sure what it would mean for me to "publish" such a worksheet, since students will not have any access to any of my pages. I was thinking that you would maybe have an initial tutorial worksheet that you would

Re: [sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread Walter Carlip
This would, at least, be a relatively simple command to enter, though I don't like the idea of students having to switch back and forth from "sage" to "gap". (Even my tutors kept coming for help in our practice session, only to realize they had somehow switched to "sage". The drop-down menu for

[sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread Walter Carlip
Jason -- Thanks for quick followup. I'm not sure what it would mean for me to "publish" such a worksheet, since students will not have any access to any of my pages. (In fact, in the lab, I myself won't have any worksheets.) Also, perhaps I'm a little dense, but am new to this se

Re: [sage-support] installation problems

2012-06-29 Thread Ray
On June 28, 2012 09:25:18 AM Jeroen Demeyer wrote: > On 2012-06-26 20:40, rst wrote: > > package source: > > www.cecm.sfu.ca/sage/linux/64bit/sage-5.0.1-linux-64bit-ubuntu_10.04.3_lts > > -x86_64-Linux.tar.lzma > This is the *binary* distribution. If you want to build Sage yourself, > use the *sou

[sage-support] Re: Graph editor not working in 5.0.1?

2012-06-29 Thread kcrisman
On Friday, June 29, 2012 11:34:47 AM UTC-4, Jason Grout wrote: > > On 6/29/12 10:33 AM, kcrisman wrote: > > I'm having trouble on Mac (FF and Safari) getting the graph_editor() to > > work. It loads, but clicking does not create points. Any ideas? Maybe I > > did something wrong. > > > > I d

Re: [sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread kcrisman
> > > I also tried executing > > gap._eval(, allow_use_file=False) > > Just gap.eval, I think. > in the notebook, both under sage (which I thought would be correct) and > under gap, and both reported back syntax > errors and did not work. > > > -- To post to this group, send email

[sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread Jason Grout
On 6/29/12 11:06 AM, Walter Carlip wrote: Assuming I can get the commands in the init.sage file in .sage to work, we have the basis of a solution, but I'm not entirely sure how to get these init.sage files into the home directories of each student. When sage starts up, how does it go about creat

Re: [sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread Walter Carlip
Karl & Ivan -- Ahh. Thanks for tracking this down. I tried switching to sage and executing "gap._eval_using_file_cutoff = 1000", and this seems to have solved the immediate problem. However, I can't have my students do this every session, so using the init.sage file would

[sage-support] Re: Graph editor not working in 5.0.1?

2012-06-29 Thread Jason Grout
On 6/29/12 10:33 AM, kcrisman wrote: I'm having trouble on Mac (FF and Safari) getting the graph_editor() to work. It loads, but clicking does not create points. Any ideas? Maybe I did something wrong. I didn't see a Trac ticket about this. http://trac.sagemath.org/sage_trac/ticket/8222 seems un

[sage-support] Graph editor not working in 5.0.1?

2012-06-29 Thread kcrisman
I'm having trouble on Mac (FF and Safari) getting the graph_editor() to work. It loads, but clicking does not create points. Any ideas? Maybe I did something wrong. I didn't see a Trac ticket about this. http://trac.sagemath.org/sage_trac/ticket/8222 seems unrelated, and indeed untouched

[sage-support] Re: graphics save svg to string

2012-06-29 Thread Jason Grout
On 6/29/12 5:55 AM, Pedro Cruz wrote: Consider this sequence: g = Graphics() g += ... primitives.. g.save("tempfile.svg") Is there any command like: one_str = g.savestring("svg") that avoids opening and reading "tempfile.svg" ? Thank you. Not easily. You can use matplotlib to do it directly (

[sage-support] Re: Faster sage command line startup?

2012-06-29 Thread Jason Grout
On 6/29/12 1:18 AM, Ivan Andrus wrote: If you want something really fast you can look into sage-forker which simply starts a shell session, then forks when ever you ask for another session: https://github.com/jasongrout/sage-forker I have used it in the past and it worked quite well. The bigge

Re: [sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread Ivan Andrus
On Jun 29, 2012, at 2:12 PM, kcrisman wrote: > On Friday, June 29, 2012 5:42:14 AM UTC-4, Ivan Andrus wrote: > There are two ways that sage sends data to GAP. The first is to send it line > by line, and the second is to send it via a file. This last is used when > there is a lot of data because

Re: [sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread Ivan Andrus
On Jun 29, 2012, at 2:32 PM, kcrisman wrote: > Just to clarify, Ivan means that at the top of the worksheet you could do > > %auto > gap._eval_using_file_cutoff = 1000 > > Of course, you'd have to be in "sage" evaluation mode to do this, not "gap". > This might be a good workaround. > > Anoth

Re: [sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread kcrisman
Just to clarify, Ivan means that at the top of the worksheet you could do %auto gap._eval_using_file_cutoff = 1000 Of course, you'd have to be in "sage" evaluation mode to do this, not "gap". This might be a good workaround. Another possible workaround might also be to just indent less, though

Re: [sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread kcrisman
On Friday, June 29, 2012 5:42:14 AM UTC-4, Ivan Andrus wrote: > > There are two ways that sage sends data to GAP. The first is to send it > line by line, and the second is to send it via a file. This last is used > when there is a lot of data because, IIRC, it's faster. However, this > mess

[sage-support] graphics save svg to string

2012-06-29 Thread Pedro Cruz
Consider this sequence: g = Graphics() g += ... primitives.. g.save("tempfile.svg") Is there any command like: one_str = g.savestring("svg") that avoids opening and reading "tempfile.svg" ? Thank you. -- To post to this group, send email to sage-support@googlegroups.com To unsu

[sage-support] Re: Multiplicity of roots nummerical

2012-06-29 Thread achrzesz
Notice that roots gives you the multiplicity sage: f=(x-1)^2 sage: f.roots(ring=RealField()) [(1.00, 2)] sage: f=x^3-x-1 sage: f.roots(ring=RealField()) [(1.32471795724475, 1)] sage: f.roots(ring=RDF) [(1.32471795724, 1)] sage: f.roots(ring=CDF) [(-0.662358978622 - 0.562279512062*I, 1

[sage-support] Multiplicity of roots nummerical

2012-06-29 Thread Noud
Hi, I have some polynomials over the RealField() and I would like to find the approximate roots of the polynomials numerical. This is not really a problem, sicne find_root does a good job finding these. But now I also want to know the (approximate) multiplicity of these roots. Is it possible to

Re: [sage-support] Re: Gap does not seem to work correctly inside Sage! Help!

2012-06-29 Thread Ivan Andrus
There are two ways that sage sends data to GAP. The first is to send it line by line, and the second is to send it via a file. This last is used when there is a lot of data because, IIRC, it's faster. However, this messes up the use of stdout e.g. Print. So what's happening is if the input i

Re: [sage-support] faster computation of big sums of products of multivariate polynomials

2012-06-29 Thread Burcin Erocal
Hi Christian, On Fri, 29 Jun 2012 00:10:32 -0700 (PDT) Christian Stump wrote: > I want to do some computations with multivariate polynomials in the group W > of type H4 (14400 elements). I have a summand for every element w \in W, > and a product of 4 polynomials in each summand: > > gens = [

[sage-support] faster computation of big sums of products of multivariate polynomials

2012-06-29 Thread Christian Stump
Hello -- I want to do some computations with multivariate polynomials in the group W of type H4 (14400 elements). I have a summand for every element w \in W, and a product of 4 polynomials in each summand: gens = [] for obj in gens_objects: p = 0 for w in W: mon_w = F[obj][w][0]