mathmatical expressions evaluation

Kent Johnson kent3737 at yahoo.com
Thu Dec 23 06:05:35 EST 2004


Tonino wrote:
> thanks all for the info - and yes - speed is not really an issue and no
> - it is not an implementation of a complete financial system - but
> rather a small subset of a investment portfolio management system
> developed by "another company" ...
> 
> What I am trying to achieve is to parse a formula(s) and generate a
> result ...

Why do you need to parse the formulas at runtime? It sounds like they are known in advance and you 
could just write functions to implement the calculations.

Kent

> 
> I will look into the pyparsing suggested and maybe even leave out
> numarrays for now - as it seems a bit overkill ...
> 
> The formula are a bit complex and maybe even difficult to write out
> Thanks all - I will post my progress ;)
> 



More information about the Python-list mailing list