[sage-support] Expand an expression and a notebook problem

2009-02-25 Thread Fall In Love with Sage
1. How can I expand (a + b + c + d)^4 in Sage? 2. How can I see all my notebooks in Sage? I have a few notebooks. However, I do not remember their names. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from th

[sage-support] Re: How can I import a .py -file to Sage?

2009-02-05 Thread Fall In Love with Sage
Thank you both! On Feb 6, 12:55 am, Minh Nguyen wrote: > Hi, > > On Fri, Feb 6, 2009 at 9:45 AM, Fall In Love with Sage > > wrote: > > > I tried the code unsuccessfully: > >   a = open([x.replace(',',' ').split() for x in open('

[sage-support] How can I import a .py -file to Sage?

2009-02-05 Thread Fall In Love with Sage
I tried the code unsuccessfully: a = open([x.replace(',',' ').split() for x in open('/Applications/ sage/test.py').readlines()] a Similarly, the next code too: a = open(for x in open('/Applications/sage/test.py').readlines() a --~--~-~--~~~---~--~~ To p

[sage-support] Re: How can you read a .txt/csv file in Sage?

2009-02-05 Thread Fall In Love with Sage
Thank you! It works now :) On Feb 5, 9:54 pm, David Joyner wrote: > On Thu, Feb 5, 2009 at 2:48 PM, Fall In Love with Sage > > > > wrote: > > > Thank you for your response! > > > The problem is now in the following codes: > > 1. > >   f = open(&

[sage-support] Re: How can you read a .txt/csv file in Sage?

2009-02-05 Thread Fall In Love with Sage
age: SAGE_ROOT > '/home/wdj/sagefiles/sage-3.3.alpha1' > > Hope this helps. > > On Thu, Feb 5, 2009 at 2:11 PM, Fall In Love with Sage > > wrote: > > > My .txt/csv -file looks like in Vim: > > 1,4 > > 2,5 > > 3,6 > > I can have b

[sage-support] How can you read a .txt/csv file in Sage?

2009-02-05 Thread Fall In Love with Sage
My .txt/csv -file looks like in Vim: 1,4 2,5 3,6 I can have both filetypes. I am not sure, which one Sage supports. Open two columns in Sage: - I know that the file needs be at Sageroot. My Sage is installed at ~/ apps/Sage in Mac. Where in ~/apps/Sage do I need to put the file? This question is