Added triangular functions
Minor correction to math func doc