[sage-support] Re: efficient determinant of matrix over polynomial ring

2008-09-08 Thread phil
On Sep 5, 10:14 am, Martin Albrecht <[EMAIL PROTECTED]> wrote: > On Friday 05 September 2008, phil wrote: > > > R. = QQ[] > > C = random_matrix(R,10,10) > > Cdet = C.determinant() > > Here's a workaround: > sage: %time d2 = R(C._singular_().det()) Thanks for the tip. After making that change, S

[sage-support] Re: problem with python within python

2008-09-08 Thread David Philp
On 09/09/2008, at 2:25 AM, Marshall Hampton wrote: > I am trying to use the Python Imaging Library which I can only manage > to install in my OS X framework verison of python. So as a kludge I > am trying to run that system python from within Sage's python. But > when I do: > > import os > os.

[sage-support] Re: Wrong plotting!

2008-09-08 Thread Jason Merrill
On Sep 8, 4:12 pm, Sand Wraith <[EMAIL PROTECTED]> wrote: > Hi all! > > I do not know - it is an bug, or my mistake. I am trying to plot sum > of a few same functions: > > This is my function: > B=10*sqrt( pi)/7; > b=pi/7; > c(f)=B*exp(-(b*f)^2); > plot(c(f),(f,-5,5)); > > in the output i see co

[sage-support] Wrong plotting!

2008-09-08 Thread Sand Wraith
Hi all! I do not know - it is an bug, or my mistake. I am trying to plot sum of a few same functions: This is my function: B=10*sqrt( pi)/7; b=pi/7; c(f)=B*exp(-(b*f)^2); plot(c(f),(f,-5,5)); in the output i see correct graphic. Then i have define a function to calculate sum: def specsum(x,Fd

[sage-support] Re: Difference between a vector and a 1 by n matrix

2008-09-08 Thread Robert Bradshaw
On Sep 7, 2008, at 6:56 AM, Jason Merrill wrote: > > On Sep 7, 6:30 am, "John Cremona" <[EMAIL PROTECTED]> wrote: >> It should be lightly easier than it is to convert a vector of >> length n >> to either an nx1 matrix or a 1xn matrix: >> >> sage: v = vector(srange(5)) >> sage: v >> (0, 1, 2, 3,

[sage-support] Re: Heavy crashes of SAGE/VM Player on WinXP

2008-09-08 Thread Robert Bradshaw
On Sep 7, 2008, at 2:11 AM, Jannick Asmus wrote: > > Hi, > > as newbie I am encountering some IT problems with SAGE causing heavy > crashes. I am not sure if this is the right place to ask. But > answers on > this are highly appreciated. > > The VM Player crashed heavily on my WinXP machine aft

[sage-support] problem with python within python

2008-09-08 Thread Marshall Hampton
I am trying to use the Python Imaging Library which I can only manage to install in my OS X framework verison of python. So as a kludge I am trying to run that system python from within Sage's python. But when I do: import os os.system('/Library/Frameworks/Python.framework/Versions/Current/bin/

[sage-support] Re: How to change PATH from Sage?

2008-09-08 Thread Justin C. Walker
On Sep 8, 2008, at 07:58 , Simon King wrote: > > Dear Justin, > > On Sep 8, 4:45 pm, Simon King <[EMAIL PROTECTED]> wrote: >> If it was no misprint: >> I did the change of PATH in a module that i imported, and i was using >> the new PATH in a *different* module. Can this be the reason why it >>

[sage-support] Re: How to change PATH from Sage?

2008-09-08 Thread Simon King
Dear Justin, On Sep 8, 4:45 pm, Simon King <[EMAIL PROTECTED]> wrote: > If it was no misprint: > I did the change of PATH in a module that i imported, and i was using > the new PATH in a *different* module. Can this be the reason why it > didn't work (different name space)? Apparently it was a m

[sage-support] Re: How to change PATH from Sage?

2008-09-08 Thread Simon King
Dear Justin, On Sep 8, 4:19 pm, "Justin C. Walker" <[EMAIL PROTECTED]> wrote: > You can do something like this > > sage: XXX=os.environ['PATH']## Save in case you want to restore > later during this run > sage: os.environ['PATH']=XXX + ":/tmp" This is pretty much what i tried in the first pl

[sage-support] Re: How to change PATH from Sage?

2008-09-08 Thread Justin C. Walker
On Sep 8, 2008, at 05:41 , Simon King wrote: > > Dear David, > > On Sep 8, 2:09 pm, "David Joyner" <[EMAIL PROTECTED]> wrote: >> I haven't tried this but I would imagine you could run a bash script >> which sets the environment variables like this: >> ... > > It did not work. I wrote a shell scr

[sage-support] Re: How to change PATH from Sage?

2008-09-08 Thread Simon King
Dear David, On Sep 8, 2:09 pm, "David Joyner" <[EMAIL PROTECTED]> wrote: > I haven't tried this but I would imagine you could run a bash script > which sets the environment variables like this: > ... It did not work. I wrote a shell script SetMyPath that changes the PATH, and i tested that from

[sage-support] Re: How to change PATH from Sage?

2008-09-08 Thread David Joyner
On Mon, Sep 8, 2008 at 7:57 AM, Simon King <[EMAIL PROTECTED]> wrote: > > Dear team, > > in some Sage/Cython program i am also using some executables. More > precisely, it is a Gap sub-process that needs to run these > executables. > > Now i wonder whether it is possible to change my PATH from wit

[sage-support] How to change PATH from Sage?

2008-09-08 Thread Simon King
Dear team, in some Sage/Cython program i am also using some executables. More precisely, it is a Gap sub-process that needs to run these executables. Now i wonder whether it is possible to change my PATH from within a Sage session. I know that i can get the PATH with sage: os.environ['PATH']

[sage-support] Re: Heavy crashes of SAGE/VM Player on WinXP

2008-09-08 Thread Jason Grout
davedo2 wrote: > A different approach that might actually teach you more would be to > download the current version of vmware server from here: > > http://www.vmware.com/download/server/ > > Then install a minimal version of Linux (I would suggest Ubuntu 8.04) > and install the SAGE source code

[sage-support] Re: converting between lists and vectors?

2008-09-08 Thread AlexGhitza
This is related to http://trac.sagemath.org/sage_trac/ticket/3847 I have just put up a patch that fixes this issue. Best, Alex On Aug 28, 8:35 pm, "John Cremona" <[EMAIL PROTECTED]> wrote: > There are two separate things going on here. > > I think this is a bug: > > sage: vector(range(3)) > T

[sage-support] Re: Tutorial examples for 3d plots don't work on OS X 10.5 or 10.4

2008-09-08 Thread Proton Soup
a few days ago i was banging my head against the wall with the tutorial after installing sage, then just now decided to search the support group here. i have the same sort of behavior as gary, with the jmol site working fine, as well as the sagenb site: http://groups.google.com/group/sage-support

[sage-support] Re: Erratic behaviour with "Evaluate All" in a notebook

2008-09-08 Thread Skylar
Indeed, I believe that I have experienced the same. On Aug 27, 6:02 am, Stan Schymanski <[EMAIL PROTECTED]> wrote: > Dear all, > > When I click on Action... -> Evaluate All in my notebooks (sage 3.1.1 > on Mac OS 10.4.11), the cells do not seem to be evaluated in the > chronological order, leadin

[sage-support] Re: Erratic behaviour with "Evaluate All" in a notebook

2008-09-08 Thread Stan Schymanski
Dear Mike, Thanks a lot for the patch. Unfortunately, I am travelling until 23 Sept and unable to hook up my laptop to the internet, so I can only test it when I come back. Cheers Stan On Mon, Sep 8, 2008 at 11:32 AM, Mike Hansen <[EMAIL PROTECTED]> wrote: > > Hi Stan, > > I've posted a patch a

[sage-support] Re: Heavy crashes of SAGE/VM Player on WinXP

2008-09-08 Thread Jannick Asmus
Dave, thanks. That sounds pretty reasonable. I will give it a try. Best wishes, J. On 08.09.2008 04:13, davedo2 wrote: > A different approach that might actually teach you more would be to > download the current version of vmware server from here: > > http://www.vmware.com/download/server/ >