unformed is right, there are programs out there that do this. However, it's not an easy task. You might have a better tasking using Maple, Mathematica, or anything similar to this as the actual calculator for your program instead of coding it yourself. (And save a LOT of time..) If you have access to any of these programs, it's definitely worth a look into. As for how to do it, I'm not sure how to go about that.

Destined