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

2011-07-21 Thread Robert Bradshaw
On Wed, Jul 20, 2011 at 4:09 PM, Jose Guzman wrote: > 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/loca

Re: [sage-support] extending the Expression class

2011-07-21 Thread Burcin Erocal
Hi, On Wed, 20 Jul 2011 17:02:49 -0700 (PDT) Steven Pollack wrote: > 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

[sage-support] solve( ..., solution_dict=True) does not always return a list

2011-07-21 Thread Clemens Heuberger
In the fourth call of solve below, solve(..., solution_dict=True) does not return a list, but a dictionary, in contrast to the documentation ("solution_dict - bool (default: False); if True, return a list of dictionaries containing the solutions.") f(x)=x-1 g(x)=0 print solve(f(x)==0,x) print solv

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

2011-07-21 Thread achrzesz
Try something like this: from mpmath import * mp.dps = 30; mp.pretty = True f=[lambda s00, s01, s10, s11, k, p:0.55*k*s00 + 0.6*k*s01 + 0.6*k*s10 + 0.6*p*s01 + 0.6*p*s10 +0.55*p*s11 + 33*s00 + 33*s01 + 33*s10 + 33*s11 - 33.0, lambda s00, s01, s10, s11, k, p:0.55*k*s00 + 0.6*k*s01 + 0.6*k*s10 + 3

[sage-support] Re: solve( ..., solution_dict=True) does not always return a list

2011-07-21 Thread Marshall Hampton
Ticket 8553 doesn't fix this, so while it is a related issue this will need a ticket of its own. Looking at the source its not clear to me why your last example doesn't return a list. I created http://trac.sagemath.org/sage_trac/ticket/11618 to address this. Hopefully someone from 8553 can fix t

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

2011-07-21 Thread Craig Jolley
Thanks, this at least gives a reasonable answer and will work in the short-term. I'm still confused about why solve() didn't work, though. On Thu, Jul 21, 2011 at 11:44 PM, achrzesz wrote: > > Try something like this: > > from mpmath import * > mp.dps = 30; mp.pretty = True > > f=[lambda s00, s