[sympy] Re: Multiple Heads in Mercurial Repository

2009-05-03 Thread Ondrej Certik
On Wed, Apr 22, 2009 at 8:36 AM, Ondrej Certik wrote: > On Wed, Apr 22, 2009 at 5:21 AM, Ted Horst wrote: >> >> I've been using the mercurial mirror at http://hg.sympy.org/sympy- >> git.hg and the last few days it has started growing multiple heads. >> Did something go wrong with the git-mercuri

[sympy] Re: Function substitution ?

2009-05-03 Thread Akshay Srinivasan
Ondrej Certik wrote: > On Sun, May 3, 2009 at 9:25 AM, Akshay Srinivasan > wrote: > >> Is there anyway I can replace functions without bothering about the >> functional arguments? I mean say I have an expression like: >> >> expr=tan(x) + tan(y) >> >> I want to be able to do something like : >>

[sympy] Re: Function substitution ?

2009-05-03 Thread Ondrej Certik
On Sun, May 3, 2009 at 9:25 AM, Akshay Srinivasan wrote: > > Is there anyway I can replace functions without bothering about the > functional arguments? I mean say I have an expression like: > > expr=tan(x) + tan(y) > > I want to be able to do something like : > > expr.subs(tan(),sin()/cos()) > >

[sympy] Re: pure Python parser for Python expressions

2009-05-03 Thread Ondrej Certik
On Sun, May 3, 2009 at 9:30 AM, Robert Kern wrote: > > On Sun, May 3, 2009 at 11:06, Robert Kern wrote: >> On Sun, May 3, 2009 at 10:59, Ondrej Certik wrote: >> >>> Google app engine supports eval(), so we may just write a simple >>> preparser based on the "re" module (also available on the app

[sympy] Re: pure Python parser for Python expressions

2009-05-03 Thread Robert Kern
On Sun, May 3, 2009 at 11:06, Robert Kern wrote: > On Sun, May 3, 2009 at 10:59, Ondrej Certik wrote: > >> Google app engine supports eval(), so we may just write a simple >> preparser based on the "re" module (also available on the app engine), >> that converts things like 1/2 to Integer(1)/Int

[sympy] Function substitution ?

2009-05-03 Thread Akshay Srinivasan
Is there anyway I can replace functions without bothering about the functional arguments? I mean say I have an expression like: expr=tan(x) + tan(y) I want to be able to do something like : expr.subs(tan(),sin()/cos()) ,to get: sin(x)/cos(x) + sin(y)/cos(y) ,so that the respective functiona

[sympy] Re: limit error

2009-05-03 Thread Ondrej Certik
On Sun, May 3, 2009 at 9:05 AM, antonio sacchi wrote: > > if I found other error, Do I have to report it? If you do, it'd be awesome. Every bug report is very valuable. Ondrej --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[sympy] Re: pure Python parser for Python expressions

2009-05-03 Thread Robert Kern
On Sun, May 3, 2009 at 10:59, Ondrej Certik wrote: > Google app engine supports eval(), so we may just write a simple > preparser based on the "re" module (also available on the app engine), > that converts things like 1/2 to Integer(1)/Integer(2) and "x" to > Symbol("x") and we should be fine.

[sympy] Re: limit error

2009-05-03 Thread antonio sacchi
if I found other error, Do I have to report it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to

[sympy] pure Python parser for Python expressions

2009-05-03 Thread Ondrej Certik
Hi, currently sympy has this nice feature that it can parse any Python expressions and convert things like 1/2 into Integer(1)/Integer(2): In [2]: sympify("1/2+x+y+sin(z)") Out[2]: 1/2 + x + y + sin(z) This is implemented in sympy/core/ast_parser.py using python ast and it has only about 70 lin

[sympy] Re: limit error

2009-05-03 Thread Ondrej Certik
On Sun, May 3, 2009 at 8:40 AM, antonio sacchi wrote: > > hi, > > maybe another limit error(?): > limit ((log(1+2*x)*(1+sin(2*x))-2*x)/(1-cos(2*x)),x,0) > 0 > > it should be 1 Yes, it seems like a bug. Please report it in our issues --- when I get some time, I'll go over all the failing li

[sympy] Re: limit error

2009-05-03 Thread antonio sacchi
hi, maybe another limit error(?): >>> limit ((log(1+2*x)*(1+sin(2*x))-2*x)/(1-cos(2*x)),x,0) 0 it should be 1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to symp