11.9. Homework 9 - Function to Calculate 2-Dimensional Array DataΒΆ
Write a C program that uses a function to calculate for the
equation below over the range of values:
with a step
size of
and
with a step size of
.
Use the following function prototype for the function f(x, y):
double f(double, double);
Print the calculated values as a matrix of values where the columns represent x values and the rows (lines) represent the y values. Print the numbers with 3 digit precision.
In case you are wondering what the data should look like, below is a plot of the data (made using MATLAB).
