Calculate the source code of Taylor expansion