solve mathematical equation with 1 unknown (equations are dynamically built)

Posted by chris-gr on Stack Overflow See other posts from Stack Overflow or by chris-gr
Published on 2010-04-27T07:59:04Z Indexed on 2010/04/27 8:03 UTC
Read the original article Hit count: 395

Filed under:
|

Hi, I have to built dynamically equations like following:

x + x/3 + (x/3)/4 + (x/3/4)/2 = 50

Now I would like to evaluate this equation and get x. The equation is built dynamically. x is the leaf node in a taxonomy, the other 3 nodes are the super concepts. The divisor represents the number of children of the child nodes.

Is there a library that allows to build such equations dynamically and resolve x?

Thanks, Chris

© Stack Overflow or respective owner

Related posts about mathematical

Related posts about equation