Making approximation to symplify lengthy expressions

2007-12-11 Thread Suresh Jeevanandam
Dear all, Let's say I have an expression: 1/(a+b) I want to be able to simplify this to 1/a if we know that a is much, much greater than b. Is there a way to achieve this already in sympy. If not, I think this would be a nice feature for engineering people who would always be making some approxi

Re: Making approximation to symplify lengthy expressions

2007-12-11 Thread Ondrej Certik
Dear Suresh, > Dear all, > > Let's say I have an expression: > 1/(a+b) > > I want to be able to simplify this to 1/a if we know that a is much, > much greater than b. Is there a way to achieve this already in sympy. > If not, I think this would be a nice feature for engineering people > who would

Re: Making approximation to symplify lengthy expressions

2007-12-11 Thread Ondrej Certik
On Dec 11, 2007 7:08 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > Dear Suresh, > > > Dear all, > > > > Let's say I have an expression: > > 1/(a+b) > > > > I want to be able to simplify this to 1/a if we know that a is much, > > much greater than b. Is there a way to achieve this already in sympy

Re: Making approximation to symplify lengthy expressions

2007-12-11 Thread Kirill Smelkov
Suresh, On Tue, Dec 11, 2007 at 09:47:58AM -0800, Suresh Jeevanandam wrote: > > Dear all, > > Let's say I have an expression: > 1/(a+b) > > I want to be able to simplify this to 1/a if we know that a is much, > much greater than b. Is there a way to achieve this already in sympy. > If not, I t

Using typical values,ranges for symbols

2007-12-11 Thread Suresh Jeevanandam
Dear all, I want to propose these features. The symbols must include these informations as well, these would be optional while symbol creation. 1) typical range 2) typical value ( the symbol would take a value around this value.) The Expression class must have functions which can calculate the t

Re: Making approximation to symplify lengthy expressions

2007-12-11 Thread Ondrej Certik
On Dec 11, 2007 7:06 PM, Kirill Smelkov <[EMAIL PROTECTED]> wrote: > > Suresh, > > On Tue, Dec 11, 2007 at 09:47:58AM -0800, Suresh Jeevanandam wrote: > > > > Dear all, > > > > Let's say I have an expression: > > 1/(a+b) > > > > I want to be able to simplify this to 1/a if we know that a is much,

Re: Using typical values,ranges for symbols

2007-12-11 Thread Kirill Smelkov
On Tue, Dec 11, 2007 at 10:25:30AM -0800, Suresh Jeevanandam wrote: > > Dear all, > I want to propose these features. > > The symbols must include these informations as well, these would be > optional while symbol creation. > 1) typical range > 2) typical value ( the symbol would take a value ar

Re: Using typical values,ranges for symbols

2007-12-11 Thread Ondrej Certik
On Dec 11, 2007 7:33 PM, Kirill Smelkov <[EMAIL PROTECTED]> wrote: > > On Tue, Dec 11, 2007 at 10:25:30AM -0800, Suresh Jeevanandam wrote: > > > > Dear all, > > I want to propose these features. > > > > The symbols must include these informations as well, these would be > > optional while symbol c

Re: Using typical values,ranges for symbols

2007-12-11 Thread Ondrej Certik
On Dec 11, 2007 7:25 PM, Suresh Jeevanandam <[EMAIL PROTECTED]> wrote: > > Dear all, > I want to propose these features. > > The symbols must include these informations as well, these would be > optional while symbol creation. > 1) typical range > 2) typical value ( the symbol would take a value a

Re: Strange Error: SystemError: NULL result without error in PyObject_Call

2007-12-11 Thread Ondrej Certik
On Dec 10, 2007 2:06 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > On Dec 10, 2007 2:01 PM, julius <[EMAIL PROTECTED]> wrote: > > > > Hi All! > > > > I got a strange error which looks to me more like a problem of python > > itself than of sympy. Before i report it i first want to post it > > any

Re: Using typical values,ranges for symbols

2007-12-11 Thread Suresh Jeevanandam
On Dec 11, 11:34 pm, "Ondrej Certik" <[EMAIL PROTECTED]> wrote: > On Dec 11, 2007 7:25 PM, Suresh Jeevanandam <[EMAIL PROTECTED]> wrote: > > > > > > > Dear all, > > I want to propose these features. > > > The symbols must include these informations as well, these would be > > optional while symb