Question: 2. a. Write a C program on omega.uta.edu to generate the following table of f(x) = x - x3/6 + x5/120 b. from x =

2. a. Write a C program on omega.uta.edu to generate the following table of f(x) = x - x3/6 + x5/120 b. from x = 0 to x = 4.0 with an increment of 0.1, and store the result to a separate file, table.dat. 0.000000 0.000000 0.100000 0.099833 3.500000 0.730990 3.600000 0.862848 3.700000 1.036497 3.800000 1.257597 3.900000 1.532184 4.000000 1.866667 c. Transfer the above date file from omega.uta.edu to a local folder. Launch gnuplot to read the file, table.dat, and plot the data along with sin x. This way, you can find out how good approximating sin x by the first three terms of Taylor series is. The graph should look like
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
