[sage-support] Re: how to use jsmath in notebook

2010-07-23 Thread 3DRaven
Yes. I was referring to an interactive equation editor. Is there a possibility? I would like to write expressions such as x ^ 2 and see the in cell mathematical formula or At least this way as: http://www.math.union.edu/ ~ dpvc/talks/2006-12-08.IMA/editor.html -- To post to this group, send

[sage-support] Re: Functional Programming doubt

2010-07-23 Thread vdelecroix
I am iterating through all partitions p of a fixed length k ( let's say using Partitions (size, length=k) ) and I have written a function which return true if the partition p has atleast one part repeated. I can use a for loop and get the thing done easily. But is there a way I can use

Re: [sage-support] Re: how to use jsmath in notebook

2010-07-23 Thread Mitesh Patel
On 07/23/2010 01:15 AM, 3DRaven wrote: Yes. I was referring to an interactive equation editor. Is there a possibility? I would like to write expressions such as x ^ 2 and see the in cell mathematical formula or At least this way as: http://www.math.union.edu/ ~

Re: [sage-support] Using css in sage notebook

2010-07-23 Thread Mitesh Patel
On 07/21/2010 09:01 AM, Sven wrote: Entering the follwing string in the notebook yields the words Hello World colored in red: 'html body h1 style=color:#FFHello World/h1 /body / html' Entering the following string in the notebook yields the words Hello World colored in the default

[sage-support] corrupted notebook

2010-07-23 Thread Daniel Friedan
I seem to have corrupted my notebook. I copied a worksheet, then renamed it. The new name contained the character '^'. Of course I can't be sure this was the cause, but I don't think I did anything else. Below is the Traceback when I try to start the notebook server. I'd be grateful for any

[sage-support] 2+2 gives Unable to start macaulay2

2010-07-23 Thread Alain Schremmer
(1) This newbee just installed Sage on Mac PPC OS X 10.4.11, apparently successfully. (2) I was able to start a notebook. (3) I then opened the tutorial introduction and typed 2+2 in my notebook and clicked on evaluate but got a RuntimeError instead of 4 (4) After I clicked to get the

[sage-support] Re: 2+2 gives Unable to start macaulay2

2010-07-23 Thread kcrisman
Dear Alain, Thanks for your support request. Is it possible that you somehow have macaulay selected in the dropdown menu at the top of the worksheet, rather than sage? This seems the most likely thing. Good luck, and please report back. You may also want to open up just a blank worksheet, to

Re: [sage-support] Functional Programming doubt

2010-07-23 Thread Mike Hansen
On Thu, Jul 22, 2010 at 10:04 PM, vasu tewari.v...@gmail.com wrote: I am iterating through all partitions p  of a fixed length k ( let's say using Partitions (size, length=k) ) and I have written a function which return true if the partition p has atleast one part repeated. I can use a for

Re: [sage-support] Re: 2+2 gives Unable to start macaulay2

2010-07-23 Thread Alain Schremmer
Well, thanks to you: The dropdown menu indeed had macaulay selected. So, this case is closed ... but then ... Grateful regards --schremmer On Jul 23, 2010, at 12:34 PM, kcrisman wrote: Dear Alain, Thanks for your support request. Is it possible that you somehow have macaulay selected in

[sage-support] Re: Importing a Python module

2010-07-23 Thread KvS
On Jul 21, 2:34 am, Mike Hansen mhan...@gmail.com wrote: On Tue, Jul 20, 2010 at 9:27 AM, KvS keesvansch...@gmail.com wrote: Thanks for the quick reply. I tried putting from sage.all import * Could you post the code tohttp://sage.pastebin.com.  It is better to avoid using import * and

[sage-support] Weird matrix bug

2010-07-23 Thread VictorMiller
There's a bug in assigning 1 x 1 submatrices. assigning any submatrices with dimensions bigger than 1 seems to work as expected: sage: A = matrix(GF(2),100,100) sage: C1 = matrix(GF(2),[[1]]) sage: C2 = matrix(GF(2),[[0,1],[1,0]]) sage: A[88:90,88:90] = C2 # this is ok however sage:

[sage-support] Re: Weird matrix bug

2010-07-23 Thread Jason Grout
On 7/23/10 11:35 AM, VictorMiller wrote: There's a bug in assigning 1 x 1 submatrices. assigning any submatrices with dimensions bigger than 1 seems to work as expected: sage: A = matrix(GF(2),100,100) sage: C1 = matrix(GF(2),[[1]]) sage: C2 = matrix(GF(2),[[0,1],[1,0]]) sage: A[88:90,88:90]

Re: [sage-support] corrupted notebook

2010-07-23 Thread William Stein
On Fri, Jul 23, 2010 at 4:53 AM, Daniel Friedan dfrie...@gmail.com wrote: I seem to have corrupted my notebook.  I copied a worksheet, then renamed it.  The new name contained the character '^'.   Of course I can't be sure this was the cause, but I don't think I did anything else. You could:

[sage-support] Re: Functional Programming doubt

2010-07-23 Thread vasu
Awesome. Thanks all !! On Jul 23, 10:11 am, Mike Hansen mhan...@gmail.com wrote: On Thu, Jul 22, 2010 at 10:04 PM, vasu tewari.v...@gmail.com wrote: I am iterating through all partitions p  of a fixed length k ( let's say using Partitions (size, length=k) ) and I have written a function

[sage-support] Python expression to Cython function?

2010-07-23 Thread KvS
Dear all, I'm sorry if this is a 'utfs' question, but I couldn't really find a clear answer. I would like to do some numerical operations on a Sage function (/expression) provided by the user (i.e. typed in the notebook). Ideally I would like to have this function available as a Cython function

Re: [sage-support] Python expression to Cython function?

2010-07-23 Thread William Stein
On Fri, Jul 23, 2010 at 2:27 PM, KvS keesvansch...@gmail.com wrote: Dear all, I'm sorry if this is a 'utfs' question, but I couldn't really find a clear answer. I would like to do some numerical operations on a Sage function (/expression) provided by the user (i.e. typed in the notebook).

[sage-support] Re: Python expression to Cython function?

2010-07-23 Thread KvS
On Jul 24, 7:32 am, William Stein wst...@gmail.com wrote: On Fri, Jul 23, 2010 at 2:27 PM, KvS keesvansch...@gmail.com wrote: Dear all, I'm sorry if this is a 'utfs' question, but I couldn't really find a clear answer. I would like to do some numerical operations on a Sage function