[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: Comple

[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 wrote: > On May 13, 9:49 am, Brian Hawkins 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 tr

[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 t

[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 som

[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? >>> >>>

[sage-support] Re: cube roots

2009-05-13 Thread Alex Ghitza
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 precedence: >> >> sage: -(2.0^(1/3)) >> -1.2

[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.09112

[sage-support] Re: cube roots

2009-05-13 Thread Mike Hansen
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 --Mike --~--~-~--~~~---~--~-

[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: No sans-serif font in notebook latex entries

2009-05-13 Thread John H Palmieri
On May 13, 9:49 am, Brian Hawkins 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 font in jsMath. > >

[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 VMWare

[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 wrote: > > David Joyner wrote: >> On Tue, May 12, 2009 at 6:43 PM, amps 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 valu

[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 wrote: > Rob B

[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 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 >> evaluated a

[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 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 have to type each line by

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

2009-05-13 Thread Kevin Horton
On 13 May 2009, at 06:51, Jason Grout wrote: > Kevin Horton wrote: >> >> 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 i

[sage-support] Re: sage in html

2009-05-13 Thread Mikie
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 have to type each line by hand? Is there a easier way? When I am finished the notebook is started. Then what do I do? On May 12, 6

[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 i

[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 figu

[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 wrote: > +++ > $ sage > -- > | SAGE Version 3

[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 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(), compress=c

[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: "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

[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 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 > d

[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 (p

[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 S

[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 va

[sage-support] Re: Sage inside MediaWiki

2009-05-13 Thread kilucas
On May 12, 11:07 pm, mabshoff wrote: > On May 12, 3:05 pm, kilucas wrote: > > > On May 12, 8:39 pm, David Joyner wrote: > > > > > Conversely, I've also since spotted reference to MoinMoin within Sage. > > I've not yet explored what benefits this might confer but, once I > > know, I might the