[sage-support] solve() gives incorrect answers for nonlinear system?

2011-07-20 Thread Craig Jolley
Hi... I'm very new to Sage, and I've run into some trouble. I have the following system of equations, which come from a model of a simple protein phosphorylation network: s00,s01,s10,s11,k,p = var('s00 s01 s10 s11 k p') eq1 = 0.55*k*s00 + 0.6*k*s01 + 0.6*k*s10 + 0.6*p*s01 + 0.6*p*s10 + 0.55*p*s1

[sage-support] extending the Expression class

2011-07-20 Thread Steven Pollack
Hi everyone, I noticed that a thread was developed for this sort of thing (http:// groups.google.com/group/sage-support/browse_thread/thread/ d50dc3bc2bdbeab0/34798c0585fc034f?lnk=gst&q=nicolas&fwc=1#), but I'm a newbie, and a lot of it went over my head. Is there a simple to create a subclass of

[sage-support] including a python module built with autotools in Sage

2011-07-20 Thread Jose Guzman
Hi everybody, I am trying to install a Python module in Sage that uses autotools as its build system. I would like to install it in my local Sage, so I type: >>> ./configure --prefix=$HOME/sage-4.7/local PYTHON=$HOME/sage-4.7/local/bin/python >>> make >>> make install which returns: >>> /bi

Re: [sage-support] Re: Lattice Reduction of two matrix

2011-07-20 Thread William Stein
On Wed, Jul 20, 2011 at 8:00 AM, Maarten Derickx wrote: > I just found out that getting the transformation matrix is possible using > some more low level part of the sage interface (i.e. use the ntl wrapper > directly). > > sage: B=ntl.mat_ZZ(5,5,range(25)) > sage: B.LLL(return_U=True) > (2, 1250,

[sage-support] Pydev and Sage (help!)

2011-07-20 Thread Steven Pollack
Hi, I've been googling around to find a way to set up pydev and sage, and have had nothing but the worst of luck. sage 4.7 is located in /home/steven/sage-4.7, and I've created a "sage_python" python interpreter who's location is "/home/steven/ sage-4.7/local/bin/python". I've set the following

[sage-support] Re: Lattice Reduction of two matrix

2011-07-20 Thread Maarten Derickx
I just found out that getting the transformation matrix is possible using some more low level part of the sage interface (i.e. use the ntl wrapper directly). sage: B=ntl.mat_ZZ(5,5,range(25)) sage: B.LLL(return_U=True) (2, 1250, [ [1 -2 1 0 0] [2 -3 0 1 0] [3 -4 0 0 1] [1 0 0 0 0] [-3 1 0 0 0]