Re: [sage-support] SAGE cluster?

2011-03-04 Thread Volker Braun
MPI is more comparable to Mathematica's underlying MathLink C libraries. We also have an mpi4py optional spkg that maps the C to a Python API, essentially one-to-one. Its not pretty, but if you know MPI then you can immediately use it. There is a mini-introduction and a sample program at http:/

[sage-support] Re: Unhelpful error message

2011-03-04 Thread kcrisman
On Mar 4, 12:17 am, Robert Bradshaw wrote: > On Wed, Mar 2, 2011 at 5:16 PM, kcrisman wrote: > > > On Mar 2, 5:05 pm, achrzesz wrote: > >> I'm not sure if this is relevant but > >> sage: power_mod(2,-1,990) > >> also gives helpful error message > >> and checking for exponent -1 is not necessar

Re: [sage-support] SAGE cluster?

2011-03-04 Thread David Kirkby
On 4 March 2011 11:30, Volker Braun wrote: > MPI is more comparable to Mathematica's underlying MathLink C libraries. We > also have an mpi4py optional spkg that maps the C to a Python API, > essentially one-to-one. Its not pretty, but if you know MPI then you can > immediately use it. There is a

Re: [sage-support] Re: Unhelpful error message

2011-03-04 Thread Michael Madison
Sent from my iPod On Mar 4, 2011, at 6:00 AM, kcrisman wrote: > > > On Mar 4, 12:17 am, Robert Bradshaw > wrote: >> On Wed, Mar 2, 2011 at 5:16 PM, kcrisman wrote: >> >>> On Mar 2, 5:05 pm, achrzesz wrote: I'm not sure if this is relevant but sage: power_mod(2,-1,990) also

Re: [sage-support] Re: Unhelpful error message

2011-03-04 Thread Robert Bradshaw
On Fri, Mar 4, 2011 at 6:00 AM, kcrisman wrote: > > > On Mar 4, 12:17 am, Robert Bradshaw > wrote: >> On Wed, Mar 2, 2011 at 5:16 PM, kcrisman wrote: >> >> > On Mar 2, 5:05 pm, achrzesz wrote: >> >> I'm not sure if this is relevant but >> >> sage: power_mod(2,-1,990) >> >> also gives helpful er

[sage-support] Re: SAGE cluster?

2011-03-04 Thread Harald Schilly
Apart from MPI, you can update IPython and use it's capabilities for managing a cluster and running code in parallel. sage -sh easy_install -U ipython I am not sure, but it might also work without updating. Anyways, read on here http://ipython.scipy.org/doc/manual/html/parallel/parallel_process

[sage-support] Re: jmol in OS X on Chrome

2011-03-04 Thread Benjamin Jones
I was confused by this, and I wouldn't consider myself a total newcomer -- maybe a partial newcomer. It seems like a checksum or hash could be check at the very least to compare the file or URL give at the command line and the cached file before anything is unpacked and installed. -- Benjamin Jone

[sage-support] Re: 3DPlot error

2011-03-04 Thread Benjamin Jones
You can try upgrading the Sage Jmol package manually. This has fixed some problems on Mac + Chrome systems. See this thread: http://groups.google.com/group/sage-support/browse_thread/thread/47046e1c81d75d24 -- Benjamin Jones On Feb 28, 1:13 pm, Thomas Rike wrote: > On Feb 28, 2011, at 2:27 AM,

Re: [sage-support] SAGE cluster?

2011-03-04 Thread Calcpage
Well my Computing Independent Study class (aka CIS(theta)) put together our cluster (aka Shadowfax). Apparently they found documentation on http://www.sagemath.org about using parallel python or mpi4py in SAGE. Does that work? TIA, A. Jorge Garcia Applied Math & CS Baldwin SHS & Nassau CC h

Re: [sage-support] SAGE cluster?

2011-03-04 Thread Harald Schilly
On Fri, Mar 4, 2011 at 17:17, Calcpage wrote: > put together our cluster (aka Shadowfax) I don't know anything about that cluster, what management software does it run? For example, when you update ipython you can submit your engines [1] to the cluster nodes via the oracle grid engine [2] [1] st

[sage-support] modifying a plot after creation

2011-03-04 Thread Jonathan Bober
Sometimes I plot a function that takes a long time to compute: P = plot(f, 0, 10) # (wait a long time) and then I decide that, oops, I wanted that plot to be red, or I wanted the lines to be dashed, or... So then I make a new plot by typing P = plot(f, 0, 10, rgbcolor=(1, 0, 0)) # (wait a long

[sage-support] Re: modifying a plot after creation

2011-03-04 Thread kcrisman
On Mar 4, 7:54 pm, Jonathan Bober wrote: > Sometimes I plot a function that takes a long time to compute: > > P = plot(f, 0, 10) # (wait a long time) > > and then I decide that, oops, I wanted that plot to be red, or I wanted > the lines to be dashed, or... > > So then I make a new plot by typin

Re: [sage-support] modifying a plot after creation

2011-03-04 Thread D. S. McNeil
> Is there a way to change the color, or change the line type, etc. > without recalculating the plot (and waiting a long time again)? I'm not sure where the slowness is coming in for you. If the issue is that f takes a long time to compute -- as opposed to the plotting itself being really slow fo

[sage-support] Re: modifying a plot after creation

2011-03-04 Thread kcrisman
> Note that you need to use "randomize=False" in plot if you're doing > this, because otherwise the plot positions are different each time > (!), so caching the function is useless.  I don't understand the > motivation for having that be the default behaviour. > Better than having a set algorithm

Re: [sage-support] SAGE cluster?

2011-03-04 Thread A. Jorge Garcia
OK, so IPython uses mpi4py and openmpi? TIA, A. Jorge Garcia Applied Math and CompSci http://shadowfaxrant.blogspot.com http://www.youtube.com/calcpage2009 -Original Message- From: Harald Schilly To: sage-support@googlegroups.com Sent: Fri, Mar 4, 2011 7:02 pm Subject: Re: [sage-suppor

Re: [sage-support] Re: modifying a plot after creation

2011-03-04 Thread D. S. McNeil
>> Note that you need to use "randomize=False" in plot if you're doing >> this, because otherwise the plot positions are different each time >> (!), so caching the function is useless.  I don't understand the >> motivation for having that be the default behaviour. > > Better than having a set algor

[sage-support] Random Permutation

2011-03-04 Thread Santanu Sarkar
How one can generate random permutation over the set A={1,2,...,50}? -- 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 this group at http://groups.google.com/group

Re: [sage-support] Random Permutation

2011-03-04 Thread Mike Hansen
On Sat, Mar 5, 2011 at 6:38 AM, Santanu Sarkar wrote: > How one can generate random permutation over the set > A={1,2,...,50}? sage: Permutations(50).random_element() [23, 40, 6, 27, 33, 43, 4, 34, 8, 39, 10, 35, 14, 41, 37, 21, 50, 44, 13, 46, 7, 16, 1, 2, 31, 38, 49, 36, 12, 28, 9, 5, 3, 19, 32

[sage-support] Re: Random Permutation

2011-03-04 Thread Jason Grout
On 3/4/11 11:38 PM, Santanu Sarkar wrote: How one can generate random permutation over the set A={1,2,...,50}? I think this does it: sage: Permutations(50).random_element() [11, 4, 30, 48, 49, 36, 22, 16, 27, 6, 44, 33, 13, 50, 9, 35, 15, 12, 26, 45, 1, 18, 2, 40, 19, 10, 28, 7, 37, 46, 25,