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

2008-09-07 Thread davedo2

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 under it. No more need to rely on
large SAGE VM modules, just upgrade SAGE when new releases come out.
You can easily download worksheets to Linux (and/or move/copy them to
windoze via Samba.)

Just a thought, I've been operating that way for several years with
ZERO problems...Dave

On Sep 7, 4:41 am, Jannick Asmus <[EMAIL PROTECTED]> wrote:
> ... just for the record
>
> On 07.09.2008 12:29, Jannick Asmus wrote:
>
> > Could you name any other VMs - I thought that it was
> > obligatory to use VM Player.
>
> http://en.wikipedia.org/wiki/List_of_VMware_software
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



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

2008-09-07 Thread Mike Hansen

Hi Stan,

On Wed, Sep 3, 2008 at 2:14 AM, Stan Schymanski <[EMAIL PROTECTED]> wrote:
>
> Has anyone had time to verify if this is a bug? I suspect that it
> could be fixed quite easily and I think that it would be VERY helpful
> to be able to do "Evaluate All" reliably in a notebook, as this could
> save many people a lot of time if they work on long notebooks over
> several sessions.

I've posted a patch at http://trac.sagemath.org/sage_trac/ticket/3075
which should fix this issue.  Could you please apply the patch and let
me know if it works for you?

Thanks
--Mike

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Operand % and SymbolicVariable do not match?

2008-09-07 Thread John Cremona

Sorry, I have no idea.

John

2008/9/7 Rolandb <[EMAIL PROTECTED]>:
>
> Hi. Is that the reason for the following behaevior:
>
> sage: var('a,b')
> sage: print repr(simplify(function('(a)^(a+b)')))
> sage: print repr(simplify(function('a%(a+b)')))
> sage: #print repr(simplify(function('(a)%(a+b)'))) gives
> enless loop !!!
> a^(b + a)
> a(b + a) !!! Suddenly % gone
>
> Roland
>
> On 7 sep, 12:33, "John Cremona" <[EMAIL PROTECTED]> wrote:
>> The symbolic ring is not the most obvious place to do arithmetic
>> operations such as reducing one thing modulo another: that's a job for
>> a polynomial ring:
>>
>> sage: R.=QQ[]
>> sage: x%y
>> x
>> sage: y%x
>> y
>> sage: def proc(a,b): return a%b
>> :
>> sage: proc(x,y)
>> x
>> sage: proc(y,x)
>> y
>>
>> John
>>
>> 2008/9/7 Rolandb <[EMAIL PROTECTED]>:
>>
>>
>>
>> > Hi. I want to use x%y for two variables x,y. This doesn't work as the
>> > following example shows:
>>
>> > sage: var('x,y')
>> > sage: def proc(a,b): return a%b
>> > sage: print proc(6,3)
>> > sage: print proc(x,y)
>>
>> > 0
>> > Traceback (most recent call last):
>> >  File "", line 1, in 
>> >  File "/home/notebook/sage_notebook/worksheets/admin/38/code/13.py",
>> > line 9, in 
>> >exec compile(ur'print proc(x,y)' + '\n', '', 'single')
>> >  File "/usr/local/sage/local/lib/python2.5/site-packages/sympy/
>> > plotting/", line 1, in 
>>
>> >  File "/home/notebook/sage_notebook/worksheets/admin/38/code/13.py",
>> > line 7, in proc
>> >def proc(a,b): return a%b
>> > TypeError: unsupported operand type(s) for %: 'SymbolicVariable' and
>> > 'SymbolicVariable'
>>
>> > What to do? Roland
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



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

2008-09-07 Thread John Cremona

I think that as matrix(v) returns a row matrix while transpose(v)
returns a column suggests that "someone" is thinking of vectors as
row-matrices!  Which is not surprising given the way
solve(matrix,vector) works.

John

2008/9/7 Jason Merrill <[EMAIL PROTECTED]>:
>
> 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, 4)
>> sage: matrix(QQ,1,5,[v])
>> [0 1 2 3 4]
>> sage: matrix(QQ,5,1,list(v))
>>
>> [0]
>> [1]
>> [2]
>> [3]
>> [4]
>>
>> I got neither of those right the first time!  I know that v*v is short
>> for the dot product, which is also (row v)*(col v), but sometimes one
>> wants (col v)*(row v) as a rank 1 nxn matrix:
>>
>> sage: matrix(QQ,5,1,list(v)) * matrix(QQ,1,5,[v])
>>
>> [ 0  0  0  0  0]
>> [ 0  1  2  3  4]
>> [ 0  2  4  6  8]
>> [ 0  3  6  9 12]
>> [ 0  4  8 12 16]
>>
>> I suggest that vector methods row_matrix() and col_matrix() would be useful.
>
> It might be nice to have row_matrix() and col_matrix(), as you
> suggest, but you can do the conversions right now like this:
>
> sage: matrix(v)
> [0 1 2 3 4]
>
> sage: transpose(v)
>
> [0]
> [1]
> [2]
> [3]
> [4]
>
> sage: parent(transpose(v))
> Full MatrixSpace of 5 by 1 dense matrices over Integer Ring
>
> # This is a bug, I guess
> sage: matrix(transpose(v))
> Traceback (most recent call last)
> ...
> TypeError: _matrix_() takes exactly one argument (0 given)
>
> sage: matrix(QQ,v)
> [0 1 2 3 4]
>
> sage: matrix(QQ,transpose(v))
>
> [0]
> [1]
> [2]
> [3]
> [4]
>
>
> Regards,
>
> JM
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Operand % and SymbolicVariable do not match?

2008-09-07 Thread Rolandb

Hi. Is that the reason for the following behaevior:

sage: var('a,b')
sage: print repr(simplify(function('(a)^(a+b)')))
sage: print repr(simplify(function('a%(a+b)')))
sage: #print repr(simplify(function('(a)%(a+b)'))) gives
enless loop !!!
a^(b + a)
a(b + a) !!! Suddenly % gone

Roland

On 7 sep, 12:33, "John Cremona" <[EMAIL PROTECTED]> wrote:
> The symbolic ring is not the most obvious place to do arithmetic
> operations such as reducing one thing modulo another: that's a job for
> a polynomial ring:
>
> sage: R.=QQ[]
> sage: x%y
> x
> sage: y%x
> y
> sage: def proc(a,b): return a%b
> :
> sage: proc(x,y)
> x
> sage: proc(y,x)
> y
>
> John
>
> 2008/9/7 Rolandb <[EMAIL PROTECTED]>:
>
>
>
> > Hi. I want to use x%y for two variables x,y. This doesn't work as the
> > following example shows:
>
> > sage: var('x,y')
> > sage: def proc(a,b): return a%b
> > sage: print proc(6,3)
> > sage: print proc(x,y)
>
> > 0
> > Traceback (most recent call last):
> >  File "", line 1, in 
> >  File "/home/notebook/sage_notebook/worksheets/admin/38/code/13.py",
> > line 9, in 
> >    exec compile(ur'print proc(x,y)' + '\n', '', 'single')
> >  File "/usr/local/sage/local/lib/python2.5/site-packages/sympy/
> > plotting/", line 1, in 
>
> >  File "/home/notebook/sage_notebook/worksheets/admin/38/code/13.py",
> > line 7, in proc
> >    def proc(a,b): return a%b
> > TypeError: unsupported operand type(s) for %: 'SymbolicVariable' and
> > 'SymbolicVariable'
>
> > What to do? Roland
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



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

2008-09-07 Thread Jason Merrill

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, 4)
> sage: matrix(QQ,1,5,[v])
> [0 1 2 3 4]
> sage: matrix(QQ,5,1,list(v))
>
> [0]
> [1]
> [2]
> [3]
> [4]
>
> I got neither of those right the first time!  I know that v*v is short
> for the dot product, which is also (row v)*(col v), but sometimes one
> wants (col v)*(row v) as a rank 1 nxn matrix:
>
> sage: matrix(QQ,5,1,list(v)) * matrix(QQ,1,5,[v])
>
> [ 0  0  0  0  0]
> [ 0  1  2  3  4]
> [ 0  2  4  6  8]
> [ 0  3  6  9 12]
> [ 0  4  8 12 16]
>
> I suggest that vector methods row_matrix() and col_matrix() would be useful.

It might be nice to have row_matrix() and col_matrix(), as you
suggest, but you can do the conversions right now like this:

sage: matrix(v)
[0 1 2 3 4]

sage: transpose(v)

[0]
[1]
[2]
[3]
[4]

sage: parent(transpose(v))
Full MatrixSpace of 5 by 1 dense matrices over Integer Ring

# This is a bug, I guess
sage: matrix(transpose(v))
Traceback (most recent call last)
...
TypeError: _matrix_() takes exactly one argument (0 given)

sage: matrix(QQ,v)
[0 1 2 3 4]

sage: matrix(QQ,transpose(v))

[0]
[1]
[2]
[3]
[4]


Regards,

JM
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



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

2008-09-07 Thread seb

As a additional information - the plot3d() method of RubiksCube uses
jmol and this seems to work ok (this is sage 3.1.1) so the problem
seems not to be jmol or the platform.

On Sep 6, 5:20 pm, "Timothy Clemans" <[EMAIL PROTECTED]>
wrote:
> This is a known problem. Unfortunately there is several new bugs in
> the current Notebook, and this is one of them. We are working on a
> testing protocol for the Notebook so future releases don't have new
> bugs in the Notebook.
>
> On Sat, Sep 6, 2008 at 11:59 AM, seb <[EMAIL PROTECTED]> wrote:
>
> > I just get a black (blank) jmol applet. Is this a known problem?
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



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

2008-09-07 Thread Jannick Asmus

... just for the record

On 07.09.2008 12:29, Jannick Asmus wrote:

> Could you name any other VMs - I thought that it was 
> obligatory to use VM Player.

http://en.wikipedia.org/wiki/List_of_VMware_software

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Operand % and SymbolicVariable do not match?

2008-09-07 Thread John Cremona

The symbolic ring is not the most obvious place to do arithmetic
operations such as reducing one thing modulo another: that's a job for
a polynomial ring:

sage: R.=QQ[]
sage: x%y
x
sage: y%x
y
sage: def proc(a,b): return a%b
:
sage: proc(x,y)
x
sage: proc(y,x)
y

John


2008/9/7 Rolandb <[EMAIL PROTECTED]>:
>
> Hi. I want to use x%y for two variables x,y. This doesn't work as the
> following example shows:
>
> sage: var('x,y')
> sage: def proc(a,b): return a%b
> sage: print proc(6,3)
> sage: print proc(x,y)
>
> 0
> Traceback (most recent call last):
>  File "", line 1, in 
>  File "/home/notebook/sage_notebook/worksheets/admin/38/code/13.py",
> line 9, in 
>exec compile(ur'print proc(x,y)' + '\n', '', 'single')
>  File "/usr/local/sage/local/lib/python2.5/site-packages/sympy/
> plotting/", line 1, in 
>
>  File "/home/notebook/sage_notebook/worksheets/admin/38/code/13.py",
> line 7, in proc
>def proc(a,b): return a%b
> TypeError: unsupported operand type(s) for %: 'SymbolicVariable' and
> 'SymbolicVariable'
>
> What to do? Roland
>
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



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

2008-09-07 Thread John Cremona

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, 4)
sage: matrix(QQ,1,5,[v])
[0 1 2 3 4]
sage: matrix(QQ,5,1,list(v))

[0]
[1]
[2]
[3]
[4]

I got neither of those right the first time!  I know that v*v is short
for the dot product, which is also (row v)*(col v), but sometimes one
wants (col v)*(row v) as a rank 1 nxn matrix:

sage: matrix(QQ,5,1,list(v)) * matrix(QQ,1,5,[v])

[ 0  0  0  0  0]
[ 0  1  2  3  4]
[ 0  2  4  6  8]
[ 0  3  6  9 12]
[ 0  4  8 12 16]

I suggest that vector methods row_matrix() and col_matrix() would be useful.

John


2008/9/7 Jason Merrill <[EMAIL PROTECTED]>:
>
> On Sep 6, 7:26 pm, Jason Merrill <[EMAIL PROTECTED]> wrote:
>> Is there a simple way to think of the difference between a vector with
>> n elements, and a 1 by n matrix in Sage.  When would I want to use one
>> instead of the other?
>>
>> sage: m = matrix([1,2,3,4,5])
>> sage: parent(m)
>> Full MatrixSpace of 1 by 5 dense matrices over Integer Ring
>>
>> sage: v = vector([1,2,3,4,5])
>> sage: parent(v)
>> Ambient free module of rank 5 over the principal ideal domain Integer
>> Ring
>>
>> m seems to have many more methods than v, but looking at matrix? and
>> vector? didn't make things perfectly clear.
>
> mhansen caught up with me on IRC and cleared things up a bit.  I
> thought I'd paste in the conversation for the benefit of any others
> who are wondering.
>
> [9:22pm] mhansen: jwmerrill: I don't know if I understand your
> question about matrices and vectors.  What are you trying to do?
> [9:22pm] mhansen: "Vectors" in Sage are elements of a free module /
> vector space.
> [9:23pm] mhansen: One usually thinks about matrices as representing
> homomorphisms between such spaces.
> [10:01pm] jwmerrill: mhansen: re vectors/matrices, I'm not trying to
> do anything too specific
> [10:01pm] jwmerrill: just trying to fit my head around sage
> [10:02pm] mhansen: Well, they're very different mathematical objects
> that just happened to have 5 "numbers" associated with them.
> [10:04pm] jwmerrill: fair enough
> [10:05pm] mhansen: Addition is defined component-wise for both of them
> and they both support scalar multiplication.
> [10:05pm] jwmerrill: can you right multiply either of them by an
> appropriately sized matrix?
> [10:06pm] mhansen: Yep.
> [10:06pm] mhansen: Vectors have no notion of being a "row vector" or
> "column vector".
> [10:06pm] jwmerrill: oh, that's interesting
> [10:07pm] mhansen: So, if you have a vector of size n, you can act on
> it on either side with an nxn matrix.
> [10:08pm] jwmerrill: ok
> [10:08pm] mhansen: Multiplying two vectors is a shortcut for the inner
> product on that space (typically the standard dot product).
> [10:09pm] jwmerrill: got it
> [10:09pm] jwmerrill: one of the things I was wondering about was what
> kind of sage object should represent the type of thing that ode
> solvers would want as the jacobian
> [10:11pm] jwmerrill: in practice, it has to be a function that returns
> a collection of numbers
> [10:11pm] jwmerrill: when evaluated at some point
> [10:11pm] jwmerrill: is that more like a vector, or a matrix?
> [10:12pm] jwmerrill: Hubbard and Hubbard makes a point of making the
> distinction that the gradient is a vector, but the jacobian is a row
> matrix
> [10:13pm] jwmerrill: but I didn't really get what the point was, other
> than that the gradient can change if you have a different inner
> product rule, but the jacobian doesn't need any inner product at all
> [10:15pm] mhansen: Yes, I would do the Jacobian as a matrix.
> [10:15pm] mhansen: You can evaluate matrices over the symbolic ring in
> Sage.
> [10:15pm] mhansen: sage: m = matrix(SR, [[x, x+1],[2*x,0]]); m
> [10:15pm] mhansen: [x x + 1]
> [10:15pm] mhansen: [  2*x0]
> [10:15pm] mhansen: sage: m(2)
> [10:15pm] mhansen: [2 3]
> [10:16pm] mhansen: [4 0]
> [10:16pm] jwmerrill: ok, cool
>
> JM
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



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

2008-09-07 Thread Jannick Asmus

David,

thanks for your quick reply!

On 07.09.2008 12:22, David Philp wrote:
>  > The VM Player crashed heavily on my WinXP machine after using SAGE
> 
> In my experience VMWare is a pretty stable product as is Linux. I  
> would be very surprised if Sage crashed either of them except  
> indirectly, i.e. it exposed an unrelated hardware or software issue  
> with your machine.
> 
> You could try stress testing your machine in other ways an maybe then  
> try some other VMs.

That's true. The only thing I want my machine to do is running - without 
any surprises. Could you name any other VMs - I thought that it was 
obligatory to use VM Player.

> D

J.

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



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

2008-09-07 Thread David Philp

 > The VM Player crashed heavily on my WinXP machine after using SAGE

In my experience VMWare is a pretty stable product as is Linux. I  
would be very surprised if Sage crashed either of them except  
indirectly, i.e. it exposed an unrelated hardware or software issue  
with your machine.

You could try stress testing your machine in other ways an maybe then  
try some other VMs.

D

and
> wxMaxima simultaneously. This forced me to deinstall and reinstall the
> VM Player and unzipping the SAGE-zip file - not to mention that there
> was a decent sequence of rebooting needed. :-( The worksheets seem  
> to be
> lost as well because I suppose they are somewhere saved in the now
> corrupted SAGE folder.
>
> Does anyone know if this is due some battle between SAGE and  
> wxMaxima in
> the background? Just asking to understand and to avoid such really  
> time
> consuming works to set up my machine again.
>
> Thanks for your input.
>
>
> Best wishes,
> J.
>
> Using SAGE 3.0.6, VM Player 2.0.5 on WinXP
>
> >


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



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

2008-09-07 Thread Jannick Asmus

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 after using SAGE and 
wxMaxima simultaneously. This forced me to deinstall and reinstall the 
VM Player and unzipping the SAGE-zip file - not to mention that there 
was a decent sequence of rebooting needed. :-( The worksheets seem to be 
lost as well because I suppose they are somewhere saved in the now 
corrupted SAGE folder.

Does anyone know if this is due some battle between SAGE and wxMaxima in 
the background? Just asking to understand and to avoid such really time 
consuming works to set up my machine again.

Thanks for your input.


Best wishes,
J.

Using SAGE 3.0.6, VM Player 2.0.5 on WinXP

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---