Added power, exp and log functions for formulas.