[sage-support] Re: Loading png/gif/jpg file in notebook

2007-07-27 Thread gani
Hi William: This works with links such as http://... , but with local files, I am not sure what is the right thing to do when the picture is in say /usr/ local/ for example. thanks, gani -- On Jul 27, 9:49 am, "William Stein" <[EMAIL PROTECTED]> wrote: > On 7/27/07, gani <[EMAIL PROTECTED]>

[sage-support] Re: More linear algebra problems

2007-07-27 Thread William Stein
On 7/27/07, Roger Mason <[EMAIL PROTECTED]> wrote: > I'm still trying to do some linear algebra with sage. > > sage: var('x1,y1,z1, x2,y2,z2, x3,y3,z3') > (x1, y1, z1, x2, y2, z2, x3, y3, z3) > sage: var('p1,p2,p3') > (p1, p2, p3) > sage: var('x,y,z') > (x, y, z) > sage: var('alpha, beta') > (alph

[sage-support] Re: Loading png/gif/jpg file in notebook

2007-07-27 Thread William Stein
On 7/27/07, gani <[EMAIL PROTECTED]> wrote: > > Hi, I was trying to load an image file in a notebook and I tried > several things like load('path/image.png') or even html code like SRC="path/image.png" ALT="pic"> and nothing seemed to work. Could you > tell me how to accomplish this? Here is an

[sage-support] Loading png/gif/jpg file in notebook

2007-07-27 Thread gani
Hi, I was trying to load an image file in a notebook and I tried several things like load('path/image.png') or even html code like and nothing seemed to work. Could you tell me how to accomplish this? thanks, gani -- --~--~-~--~~~---~--~~ To post to this group,

[sage-support] More linear algebra problems

2007-07-27 Thread Roger Mason
Hello, I'm still trying to do some linear algebra with sage. sage: var('x1,y1,z1, x2,y2,z2, x3,y3,z3') (x1, y1, z1, x2, y2, z2, x3, y3, z3) sage: var('p1,p2,p3') (p1, p2, p3) sage: var('x,y,z') (x, y, z) sage: var('alpha, beta') (alpha, beta) sage: p1 = transpose(matrix([[x1,y1,z1]])) sage: p1

[sage-support] Re: matrix basics

2007-07-27 Thread Dan Christensen
"William Stein" <[EMAIL PROTECTED]> writes: > Naive question: what exactly is broadcasting, and how might it be > useful in the context of SAGE? Joshua Kantor explained in more detail, but simply being able to do a[:,1:3] += 2 to add 2 to a portion of an array is already an illustration. Note t

[sage-support] Re: input/output

2007-07-27 Thread William Stein
On 7/27/07, mak <[EMAIL PROTECTED]> wrote: > I'm sorry to bother people with basic questions like this, but the No problem. Easy questions are fun to answer, and help improve the documentation. > documentation is far too technical for the casual user, and not easily > searchable either. So tr

[sage-support] Re: input/output

2007-07-27 Thread William Stein
On 7/27/07, David Joyner <[EMAIL PROTECTED]> wrote: > On 7/27/07, mak <[EMAIL PROTECTED]> wrote: > > > > 1. What's the most elegant way of writing a matrix into a file in > > pari-readable format? I can make it into a string, open a file, write > > the string, close the file. > > 2. How do I sp

[sage-support] Re: input/output

2007-07-27 Thread David Joyner
On 7/27/07, mak <[EMAIL PROTECTED]> wrote: > > 1. What's the most elegant way of writing a matrix into a file in > pari-readable format? I can make it into a string, open a file, write > the string, close the file. > > 2. How do I specify the directory where the file is saved? sage > seems to

[sage-support] Re: matrix basics

2007-07-27 Thread Joshua Kantor
Regarding the question about broadcating. Every numpy array has a shape parameter. By manipulating this you can control how an array of data is viewed and . A simple example is sage: import numpy sage: a=numpy.array(range(8)) sage: a array([ 0, 1, 2, 3, 4, 5, 6, 7]) sage: a.shape=(2,4) sag

[sage-support] input/output

2007-07-27 Thread mak
1. What's the most elegant way of writing a matrix into a file in pari-readable format? I can make it into a string, open a file, write the string, close the file. 2. How do I specify the directory where the file is saved? sage seems to not understand the path like '~/desiredpath/ desireddire