Your best bet is to write a function that takes different parameters that comprise the equation and have the actual function evaulate the formula for you; there is no way to pull this from a database and have it be evaulated in code that i know of.
Read this if you want to know how to get a correct reply for your question:
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
Technical Editor for: Professional Search Engine Optimization with ASP.NET