taylor function

Taylor expansion (one dimension)