Hello,

any ideas how I might store a formula in a mysql database and access

it through my rails application. For example, say I have a model

Formula, which has two integer variables formula.var1 and

formula.var2. And each formula should have a stored formula that is

made up of only addition and multiplication by numbers and these

variables.

I want to be able to assign formula.expression=something and

formula.evaluate=expression evaluated at current variable

assignments.

Any idea what the best way to implement this might be. I am using

MySQL 4.1.25 and Rails 2.2.2.

Thanks,

Eyal