[sage-support] Re: Sage inside MediaWiki

2009-05-13 Thread kilucas
On May 12, 11:07 pm, mabshoff michael.absh...@mathematik.uni- dortmund.de wrote: On May 12, 3:05 pm, kilucas kevin.lu...@concave.co.uk wrote: On May 12, 8:39 pm, David Joyner wdjoy...@gmail.com wrote: SNIP Conversely, I've also since spotted reference to MoinMoin within Sage. I've

[sage-support] Location of a file that is loaded

2009-05-13 Thread Simon King
Hi! When one does sage: load('path/to/filename') then eventually some unpickle function (or __setstate__ method) is called. Is it possible to determine the value 'path/to/filename' (or 'path/ to/') inside the unpickle function? In other words: Does the 'load' function temporarily store the

[sage-support] Re: Location of a file that is loaded

2009-05-13 Thread Mike Hansen
Hello, Looking at the code for load in enlightening. Here's the bit that is relevant for you: ## Load file by absolute filename X = loads(open(filename).read(), compress=compress) try: X._default_filename = os.path.abspath(filename) except AttributeError: pass

[sage-support] Re: Usage Styles and using scipy

2009-05-13 Thread Kevin Horton
On 12 May 2009, at 21:46, kcrisman wrote: You can also shift-click on the blue bar to bring up a nice editor, in which you can enter latex code like you did above. This basically is a nice way of editing text in between cells. For an example, do what you did above (put that text in

[sage-support] Re: Usage Styles and using scipy

2009-05-13 Thread Mike Hansen
On Wed, May 13, 2009 at 3:44 AM, Kevin Horton khorto...@rogers.com wrote: Well done Jason - Thanks! The baffling part is why you don't get this editor when you click the Edit button in a notebook worksheet.  As it sits now, with no obvious visual clue that this editor even exists, most users

[sage-support] Re: Usage Styles and using scipy

2009-05-13 Thread Jason Grout
Kevin Horton wrote: Well done Jason - Thanks! The baffling part is why you don't get this editor when you click the Edit button in a notebook worksheet. As it sits now, with no obvious visual clue that this editor even exists, most users would never discover its existence. Are

[sage-support] matrix times variable

2009-05-13 Thread Laurent
Ciao everyone ! I'm trying to make some computation with matrices (with some variables x,y,z). For that, I'm following the document : http://www.sagenb.org/home/pub/217/ When I type (in a notebook) the following, it works : A = matrix([[7, 0, 0], [0, -2, 4], [0, 6,

[sage-support] Re: Location of a file that is loaded

2009-05-13 Thread simon . king
Dear Mike, On May 13, 12:31 pm, Mike Hansen mhan...@gmail.com wrote: Looking at the code for load in enlightening. Thank you. I don't know why, but I forgot to try load??. Here's the bit that is relevant for you: ## Load file by absolute filename X = loads(open(filename).read(),

[sage-support] Re: matrix times variable

2009-05-13 Thread simon . king
Dear Laurent, please do not use an existing thread for asking a completely different question. Better open a new thread. On May 13, 12:55 pm, Laurent moky.m...@gmail.com wrote: +++ $ sage --

[sage-support] Re: matrix times variable

2009-05-13 Thread mabshoff
On May 13, 4:12 am, simon.k...@uni-jena.de wrote: Dear Laurent, please do not use an existing thread for asking a completely different question. Better open a new thread. Yep. Also do not open a thread by replying to an email from sage-devel by changing the subject since the Groups figure

[sage-support] Re: matrix times variable

2009-05-13 Thread Laurent
Yep. Also do not open a thread by replying to an email from sage-devel by changing the subject since the Groups figure out what you replied to. Woops... I though that nobody would have noticed. Clear, I don't do it again. This is likely the version in the Ubuntu 9.04 repo. Maxima in

[sage-support] Re: sage in html

2009-05-13 Thread Mikie
OK, I have it working in Sage. How do I start it in an html page? On May 13, 8:59 am, Mikie thephantom6...@hotmail.com wrote: Thanks for your patience.  I am using xwindows on the CentOS server. When I load the twist.py file using gedit, it looks like an html file.  When I get into Sage I

[sage-support] Re: characters of the symmetric group

2009-05-13 Thread Jason Bandlow
David Joyner wrote: On Tue, May 12, 2009 at 6:43 PM, amps arat...@gmail.com wrote: I see that there is a function to compute the character table of the symmetric group, but is there one where you input two partitions and it outputs the value of the character indexed by the first partition

[sage-support] Re: No sans-serif font in notebook latex entries

2009-05-13 Thread Brian Hawkins
I did not know about the %latex command, thanks for the tip. Looking at the symbol table, I found one that serves my particular purpose well: \top. $M^\top$ renders as I'd like for a transpose and avoids using an unsupported font in jsMath. Brian On May 12, 4:55 am, Jason Grout

[sage-support] Re: characters of the symmetric group

2009-05-13 Thread David Joyner
On Wed, May 13, 2009 at 10:33 AM, Jason Bandlow jband...@gmail.com wrote: David Joyner wrote: On Tue, May 12, 2009 at 6:43 PM, amps arat...@gmail.com wrote: I see that there is a function to compute the character table of the symmetric group, but is there one where you input two partitions

[sage-support] VMWare Player versions for Sage 3.4.1

2009-05-13 Thread kilucas
I've had two attempts at installing the VMWare Player v2.5.2 on a Windows XP Pro PC. Both times the Player will not start correctly - it crashes Windows almost immediately the player has started. So I'm not even getting as far as starting Sage. So I'm tempted to try earlier versions of the

[sage-support] Re: No sans-serif font in notebook latex entries

2009-05-13 Thread John H Palmieri
On May 13, 9:49 am, Brian Hawkins hawkins.br...@gmail.com wrote: I did not know about the %latex command, thanks for the tip. Looking at the symbol table, I found one that serves my particular purpose well: \top.  $M^\top$ renders as I'd like for a transpose and avoids using an unsupported

[sage-support] cube roots

2009-05-13 Thread Bill Page
Can someone explain this apparently inconsistent result? -- | Sage Version 3.4, Release Date: 2009-03-11 | | Type notebook() for the GUI, and license() for information.|

[sage-support] Re: cube roots

2009-05-13 Thread Mike Hansen
On Wed, May 13, 2009 at 6:58 PM, Bill Page bill.p...@newsynthesis.org wrote: Can someone explain this apparently inconsistent result? It's just operator precedence: sage: -(2.0^(1/3)) -1.25992104989487 sage: (-2.0)^(1/3) 0.629960524947437 + 1.09112363597172*I --Mike

[sage-support] Re: cube roots

2009-05-13 Thread Bill Page
On Wed, May 13, 2009 at 10:46 PM, Mike Hansen wrote: On Wed, May 13, 2009 at 6:58 PM, Bill Page wrote: Can someone explain this apparently inconsistent result? It's just operator precedence: sage: -(2.0^(1/3)) -1.25992104989487 sage: (-2.0)^(1/3) 0.629960524947437 + 1.09112363597172*I

[sage-support] Re: cube roots

2009-05-13 Thread Alex Ghitza
On Thu, May 14, 2009 at 1:19 PM, Bill Page bill.p...@newsynthesis.org wrote: On Wed, May 13, 2009 at 10:46 PM, Mike Hansen wrote: On Wed, May 13, 2009 at 6:58 PM, Bill Page wrote: Can someone explain this apparently inconsistent result? It's just operator precedence: sage: -(2.0^(1/3))

[sage-support] Re: cube roots

2009-05-13 Thread Bill Page
On Wed, May 13, 2009 at 11:23 PM, Alex Ghitza wrote: On Thu, May 14, 2009 at 1:19 PM, Bill Page wrote: On Wed, May 13, 2009 at 10:46 PM, Mike Hansen wrote: On Wed, May 13, 2009 at 6:58 PM, Bill Page wrote: Can someone explain this apparently inconsistent result? It's just operator

[sage-support] Re: cube roots

2009-05-13 Thread Robert Bradshaw
On May 13, 2009, at 8:49 PM, Bill Page wrote: On Wed, May 13, 2009 at 11:23 PM, Alex Ghitza wrote: On Thu, May 14, 2009 at 1:19 PM, Bill Page wrote: On Wed, May 13, 2009 at 10:46 PM, Mike Hansen wrote: On Wed, May 13, 2009 at 6:58 PM, Bill Page wrote: Can someone explain this apparently

[sage-support] Re: cube roots

2009-05-13 Thread Bill Page
On Wed, May 13, 2009 at 11:54 PM, Robert Bradshaw wrote: This is because the branch in which the positive real root is real is taken. We're opting for continuity and consistency with complex numbers. If I wrote: sage: ComplexField(53)(-2.0)^(1/3) 0.629960524947437 + 1.09112363597172*I that

[sage-support] Re: No sans-serif font in notebook latex entries

2009-05-13 Thread John H Palmieri
On May 13, 4:57 pm, John H Palmieri jhpalmier...@gmail.com wrote: On May 13, 9:49 am, Brian Hawkins hawkins.br...@gmail.com wrote: I did not know about the %latex command, thanks for the tip. Looking at the symbol table, I found one that serves my particular purpose well: \top.  

[sage-support] Re: cube roots

2009-05-13 Thread Robert Bradshaw
On May 13, 2009, at 9:11 PM, Bill Page wrote: On Wed, May 13, 2009 at 11:54 PM, Robert Bradshaw wrote: This is because the branch in which the positive real root is real is taken. We're opting for continuity and consistency with complex numbers. If I wrote: sage: