### Need help with taylor series assignment!

closed account (4oS6URfi)
Hey guys I'm having trouble with this assignment for class, can someone please help me out? The assignment is involving taylor series sin(x) and cos(x). It basically has to do this:

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
You have to enter a value first!

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
You have to enter a value first!

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
You have to enter a value first!

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.

Wrong choice. Only options 1-4 are available.

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
Wrong choice. Only options 1-4 are available.

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
Please give a value for the angle: 1.24
Please give a value for the approximation order n: 7

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
The sine of x is: 0.945784
Using Taylor series it is: 0.945784

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
The cosine of x is: 0.324796 Using Taylor series it is: 0.324796

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
Please use the modify option to enter a new angle.

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
Old angle = 1.24
Old approximation = 7 Please give new angle: 1.10 Please give new n: 2

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
The sine of x is: 0.891207
Using Taylor series it is: 0.891588

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
The cosine of x is: 0.453596 Using Taylor series it is: 0.456004

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.
Are you sure you want to quit? (Y/N): N

1. To enter the data.
2. To calculate and approximate the sin(x)
3. To calculate and approximate the cos(x)
4. To modify data.
0. To quit.