[sage-support] Re: Plot aspect ratio and export of plots

2009-01-08 Thread William Stein
On Wed, Jan 7, 2009 at 12:21 AM, rev wrote: > > Taking example from the tutorial: > c=circle((0,0), .5, rgbcolor=(1,1,0)) > c.show(figsize=[5,5]) > shows me a well-proportioned circle. > My question is how do I save this circle to file? > save(c, filename="plot.eps") > exports ellipse which it sh

[sage-support] Re: PSLQ available?

2009-01-08 Thread William Stein
On Thu, Jan 8, 2009 at 11:24 AM, Rolandb wrote: > > Hi, > Are algorithms like PSLQ available? I think there is no PSLQ implementation in Sage. > If yes, please give a simple example so that I fully understand the > commands. What problem do you want to solve using the PSLQ algorithm. There ar

[sage-support] Re: Adding pyserial to Sage in OSX

2009-01-08 Thread mabshoff
On Jan 8, 8:39 pm, Kenny wrote: > Hi, Hi Kenny, > I've been using Python for many years and recently installed Sage on > my MacBook Pro running OS X. So far I'm liking it quite a bit. > > What is the best way to add support for a package not included in > Sage? I'm currently using a serial li

[sage-support] Adding pyserial to Sage in OSX

2009-01-08 Thread Kenny
Hi, I've been using Python for many years and recently installed Sage on my MacBook Pro running OS X. So far I'm liking it quite a bit. What is the best way to add support for a package not included in Sage? I'm currently using a serial link (later to be Ethernet) to send packets from the Mac to

[sage-support] Re: Interpolation

2009-01-08 Thread Carl Witty
On Jan 8, 11:17 am, Harald Schilly wrote: > On Jan 8, 5:16 pm, "William Stein" wrote: > > > Since you're correcting me[...]  It's not at all clear > > that this is a numerical problem. > > Yes, i am not sure either, but the subject-topic is interpolation and > that's why i thought it is polynomi

[sage-support] Re: "Drop-in" Python scripts?

2009-01-08 Thread mabshoff
On Jan 8, 12:03 pm, ztnews wrote: Hi, > Forgive me if this is too obvious.  I'm still evaluating/learning the > basics of SAGE No problem, this is what a support group is for :) > Just how compatible is SAGE with Python?  By which I mean, should I be > able to just "drop-in" an existing/wo

[sage-support] Re: "Drop-in" Python scripts?

2009-01-08 Thread Martin Albrecht
On Thursday 08 January 2009, ztnews wrote: > Forgive me if this is too obvious. I'm still evaluating/learning the > basics of SAGE > > Just how compatible is SAGE with Python? By which I mean, should I be > able to just "drop-in" an existing/working python script and have it > run, or should I e

[sage-support] Re: illegal instruction error warnings

2009-01-08 Thread gellmu
(Hmmm... is this web interface pushing top-posting? I won't buy it. See below.) On Jan 6, 3:42 pm, mabshoff wrote: > On Jan 6, 12:03 pm, gellmu wrote: > ... > > I guess this is because my CPU is AMD Sempron(tm) Processor LE-1300. > > >    ***

[sage-support] Re: Accent marks in the Notebook

2009-01-08 Thread mabshoff
On Dec 10 2008, 1:44 am, mabshoff wrote: > On Dec 9, 3:23 pm, acardh wrote: > > Hi, > > > This works > > html(r'Donde $\Sigma$ es la sumatoria de los números... etc.' ) > > > but only works the first time. If you save & quit your work, after > > trying again it fails. This is because when savi

[sage-support] "Drop-in" Python scripts?

2009-01-08 Thread ztnews
Forgive me if this is too obvious. I'm still evaluating/learning the basics of SAGE Just how compatible is SAGE with Python? By which I mean, should I be able to just "drop-in" an existing/working python script and have it run, or should I expect some modifications will be required? And if so,

[sage-support] Re: error with X11

2009-01-08 Thread mabshoff
On Jan 8, 8:59 am, cpc wrote: Hi Phil, > When I try to plot a previously assigned data set using rpy: > > from rpy import * > r.plot(x,y) > > i get this: > Traceback (click to the left for traceback) > ... > rpy.RPy_RException: Error in X11() : X11 is not available > > What should I do to fix

[sage-support] error with X11

2009-01-08 Thread cpc
When I try to plot a previously assigned data set using rpy: from rpy import * r.plot(x,y) i get this: Traceback (click to the left for traceback) ... rpy.RPy_RException: Error in X11() : X11 is not available What should I do to fix this? Also the link to the tutorial for newbies by ted kosan

[sage-support] Re: problem running combinatorial functions

2009-01-08 Thread mabshoff
On Jan 8, 11:31 am, "Mike Hansen" wrote: > Hello, Hi Mike, > Sorry for coming in late on this.  One should really use the > Combinations constructor as it is much better behaved as it doesn't > use the GAP interface. > > sage: Combinations([1,2,3,4],2).list() > [[1, 2], [1, 3], [1, 4], [2, 3]

[sage-support] Re: problem running combinatorial functions

2009-01-08 Thread mabshoff
On Jan 8, 9:49 am, davidp wrote: > My set-up: Hi Dave, > Linux Fedora 9, 2.6.27.7-53.fc9.i686 > Thinkpad X40 > shell = bash  (with pretty minimal .bashrc and .bash_profile) > Sage Version 3.2.2, Release Date: 2008-12-18 from a binary, not an > upgrade > > I do have a .gaprc and had installed

[sage-support] PSLQ available?

2009-01-08 Thread Rolandb
Hi, Are algorithms like PSLQ available? If yes, please give a simple example so that I fully understand the commands. Thanks in advance! Roland --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, s

[sage-support] Re: problem running combinatorial functions

2009-01-08 Thread Mike Hansen
Hello, Sorry for coming in late on this. One should really use the Combinations constructor as it is much better behaved as it doesn't use the GAP interface. sage: Combinations([1,2,3,4],2).list() [[1, 2], [1, 3], [1, 4], [2, 3], [2, 4], [3, 4]] sage: Combinations([1,2,3,4],2).count() 6 We sho

[sage-support] Re: Interpolation

2009-01-08 Thread Harald Schilly
On Jan 8, 5:16 pm, "William Stein" wrote: > Since you're correcting me[...]  It's not at all clear > that this is a numerical problem. Yes, i am not sure either, but the subject-topic is interpolation and that's why i thought it is polynomial interpolation. There are of course other interpretati

[sage-support] Re: problem running combinatorial functions

2009-01-08 Thread davidp
My set-up: Linux Fedora 9, 2.6.27.7-53.fc9.i686 Thinkpad X40 shell = bash (with pretty minimal .bashrc and .bash_profile) Sage Version 3.2.2, Release Date: 2008-12-18 from a binary, not an upgrade I do have a .gaprc and had installed gap before installing sage. I tried removing .gaprc, but tha

[sage-support] Re: Magma problem in sage

2009-01-08 Thread Martin Albrecht
> Can you open a ticket? http://trac.sagemath.org/sage_trac/ticket/4955 -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF _www: http://www.informatik.uni-bremen.de/~malb _jab: martinralbre...@jabber.cc

[sage-support] Re: Magma problem in sage

2009-01-08 Thread William Stein
On Thu, Jan 8, 2009 at 8:43 AM, Martin Albrecht wrote: > >> The only idea I have to deal with this is to copy all of extcode/magma >> into .sage/extcode/magma say, and then have sage only use magma code >> that's in .sage/extcode/magma/. >> Whenever sage is upgraded, the .sage/extcode/magma would

[sage-support] Re: Magma problem in sage

2009-01-08 Thread Martin Albrecht
> The only idea I have to deal with this is to copy all of extcode/magma > into .sage/extcode/magma say, and then have sage only use magma code > that's in .sage/extcode/magma/. > Whenever sage is upgraded, the .sage/extcode/magma would have to get > deleted and re-copied, using a facility similar

[sage-support] Re: Magma problem in sage

2009-01-08 Thread William Stein
On Thu, Jan 8, 2009 at 5:48 AM, Martin Albrecht wrote: > >> RuntimeError: While attempting to compile /usr/local/sage-3.2.3/data/ >> extcode//magma/latex/latex.m (Data file non-existent): >> Can't open lock file /usr/local/sage-3.2.3/data/extcode//magma/latex/ >> latex.lck for writing (Permission

[sage-support] Re: Illegal instruction -- python "$@"

2009-01-08 Thread William Stein
On Thu, Jan 8, 2009 at 5:55 AM, protagonist wrote: > > hi, > > i ran into an error using sage (from the command line). > > i tried this on 'ubuntu 8.10 (intrepid)' on an intel pentium. > (the very same script works perfectly well on 'ubuntu 6.10 (edgy)' > on an amd64.) > > the script test.spyx: >

[sage-support] Re: Interpolation

2009-01-08 Thread William Stein
On Thu, Jan 8, 2009 at 5:16 AM, Harald Schilly wrote: > > On Jan 7, 6:23 pm, "William Stein" wrote: >> ... If you have enough such constraints, then >> all coefficients will be uniquely determined... > > No, it's interpolation. Calculating the exact solution is actually a > problem due to high f

[sage-support] Re: Interpolation

2009-01-08 Thread Harald Schilly
On Jan 7, 6:16 pm, "Santanu Sarkar" wrote: > Let f(x,y,z) is polynomial in x,y,z with degree 4. But we don't know > the coefficient of the monomials of f. And we know f(x0,y0,z0) for > different x0,y0,z0 which are known to us. Can we find the coefficient > of the monomials of f using SAGE

[sage-support] Illegal instruction -- python "$@"

2009-01-08 Thread protagonist
hi, i ran into an error using sage (from the command line). i tried this on 'ubuntu 8.10 (intrepid)' on an intel pentium. (the very same script works perfectly well on 'ubuntu 6.10 (edgy)' on an amd64.) the script test.spyx: import sage.all from sage.matrix.all import matrix from sage.rings.

[sage-support] Re: Magma problem in sage

2009-01-08 Thread Martin Albrecht
> RuntimeError: While attempting to compile /usr/local/sage-3.2.3/data/ > extcode//magma/latex/latex.m (Data file non-existent): > Can't open lock file /usr/local/sage-3.2.3/data/extcode//magma/latex/ > latex.lck for writing (Permission denied) > > While attempting to compile /usr/local/sage-3.2.3

[sage-support] Re: Interpolation

2009-01-08 Thread Harald Schilly
On Jan 7, 6:23 pm, "William Stein" wrote: > ... If you have enough such constraints, then > all coefficients will be uniquely determined... No, it's interpolation. Calculating the exact solution is actually a problem due to high frequency components and disturbances. Interpolation tries to avoid

[sage-support] Re: Interpolation

2009-01-08 Thread Harald Schilly
On Jan 7, 6:16 pm, "Santanu Sarkar" wrote: > Let f(x,y,z) is polynomial in x,y,z with degree 4. But we don't know > the coefficient of the monomials of f. And we know f(x0,y0,z0) for > different x0,y0,z0 which are known to us. Can we find the coefficient > of the monomials of f using SAGE ea

[sage-support] Plot aspect ratio and export of plots

2009-01-08 Thread rev
Taking example from the tutorial: c=circle((0,0), .5, rgbcolor=(1,1,0)) c.show(figsize=[5,5]) shows me a well-proportioned circle. My question is how do I save this circle to file? save(c, filename="plot.eps") exports ellipse which it should. Controlling aspect ratio in show() seems to be the only

[sage-support] Magma problem in sage

2009-01-08 Thread gmax
I just compiled Sage 3.2.2 on a Linux 32 bit machine running the latest SLED distribution. I also have Magma installed on this machine. When I log in as a user "george" and try to evaluate 2+2 within a Sage notebook by using Magma, I get the following error message. On the other hand, Maple works