Added a better version of taylor series where it calculates an equation