PS for Reading Week
- Write a programme with a function that calculates x^n/n!, you shouldn't calculate x^n and n! separately because n! quickly becomes too large for int, instead you should multiply x/r for r from one to n. Use this function in a programme that calculates sine and cosine using the power series. Work out how accurate these approximations are at pi/2 for different values of n. The trigonometric function are in the cmath package and the easiest way to get pi is to write double pi=4*atan(1), atan() gives the arc tan.