Re: [sage-support] regex in sage

2009-11-29 Thread Yotam Avital
Great, thanks On Sun, Nov 29, 2009 at 6:12 PM, Minh Nguyen wrote: > Hi Yotam, > > On Mon, Nov 30, 2009 at 3:03 AM, Yotam Avital wrote: > > Hi. > > > > I'm considering using sage as the main tool for my Ph.D research that > will > > start soon. My resear

[sage-support] regex in sage

2009-11-29 Thread Yotam Avital
Hi. I'm considering using sage as the main tool for my Ph.D research that will start soon. My research will involve some analysis of proteins and DNA data (such as sequence). Is there a tool in sage for text analysis? mostly regular expressions. I assume there is a tool built it in python. Thank

Re: [sage-support] Re: functions in sage

2009-11-29 Thread Yotam Avital
Thanks. I think I got it. On Sun, Nov 29, 2009 at 12:48 PM, Harald Schilly wrote: > On Nov 29, 10:50 am, Yotam Avital wrote: > > > > 1. def f(x): return x^2 > > That's a pure Python function, it's in some way "universal" but you > cannot derivate it

[sage-support] functions in sage

2009-11-29 Thread Yotam Avital
Hi. What is the difference between the following 3 ways: 1. def f(x): return x^2 2. f(x) = x^2 3. x = var('x') f(x) = x^2 thanks. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For

Re: [sage-support] Re: numerical approximation in sage.

2009-11-27 Thread Yotam Avital
0:46 PM, John H Palmieri wrote: > On Nov 27, 10:03 am, Yotam Avital wrote: > > Hello. > > > > In the tutorials there is an example for numerical approximation: > > > > var('x y p q') > > (x, y, p, q) > > eq1 = p+q==9 > > eq2 = q*y+p*

[sage-support] numerical approximation in sage.

2009-11-27 Thread Yotam Avital
Hello. In the tutorials there is an example for numerical approximation: var('x y p q') (x, y, p, q) eq1 = p+q==9 eq2 = q*y+p*x==-6 eq3 = q*y^2+p*x^2==24 solns = solve([eq1,eq2,eq3,p==1],p,q,x,y, solution_dict=True) [[s[p].n(30), s[q].n(30), s[x].n(30), s[y].n(30)] for s in solns] [[1.000, 8.

Re: [sage-support] indentation in the output using notebook.

2009-11-27 Thread Yotam Avital
great thanks. On Fri, Nov 27, 2009 at 3:47 PM, Minh Nguyen wrote: > Hi Yotam, > > On Fri, Nov 27, 2009 at 9:10 PM, Yotam Avital wrote: > > Hi. > > > > I have a minor prolem: > > > > I'm going through the sage tutorial and I got a little problem wh

[sage-support] indentation in the output using notebook.

2009-11-27 Thread Yotam Avital
Hi. I have a minor prolem: I'm going through the sage tutorial and I got a little problem when I try to create a simple table. I'm trying to do what is going here: http://www.sagemath.org/doc/tutorial/tour_help.html#functions-indentation-and-counting when I put the following commands: for i in

[sage-support] creating a sage icon

2009-11-25 Thread Yotam Avital
Hi. I want to create an icon that will launch sage in it's notebook mode immediately. Is it possible? I'm using mandriva linux. Thanks. Yotam -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegr

[sage-support] Re: Creating a growing array in sage

2009-11-01 Thread Yotam Avital
0.48 On Sun, Nov 1, 2009 at 4:05 PM, MaxTheMouse wrote: > > > > On Nov 1, 7:20 am, Yotam Avital wrote: > > This is not what I want. > > > > sage: !cat file1 > > 1 3 > > 2 0 > > 3 10 > > sage: !cat file2 > > 1 29 > &

[sage-support] Re: Creating a growing array in sage

2009-10-31 Thread Yotam Avital
This is not what I want. sage: !cat file1 1 3 2 0 3 10 sage: !cat file2 1 29 2 21 3 -19 sage: a=numpy.loadtxt('file1') sage: b=numpy.loadtxt('file2') sage: out = a b sage: out array([[ 1., 3. ,29], [ 2., 0. ,21], [ 3., 10. ,-19]]) On Sun, Nov 1, 2009 at 3:02 AM, Jason