Question: HELP WITH C++ program The Function For this assignment your program is to evaluate the following function for a range of X and Y values:
HELP WITH C++ program



The Function For this assignment your program is to evaluate the following function for a range of X and Y values: f(X, Y)=Xcos(x)'sin(Y) Calculating the X and Y Vectors One of the first steps in the process will be to calculate the X and Y vectors based on user input. For any range of real ( floating point ) numbers ranging from a minimum to a maximum in N steps of delta each, the four quantities are related by: (max- min) nSteps delta where the +1 accounts for both endpoints of the range. ( Example: If max and min are 20 and 10 respectively, and delta is 2.5, then nSteps is 5, and the equally distributed data points are at where the +1 accounts for both endpoints of the range. (Example: If max and min are 20 and 10.0, 12.5, 15.0, 17.5, and 20.0.) Knowing any 3 of the above terms allows you to calculate the 4th. For this program you are asked to read in a different set of the 3 for X and for Y just to reinforce this point. Once you know nXsteps and nYsteps, you can allocate the vectors to the needed sizes In order to loop through a range of floating point values, you want to use an integer counter (since it has no round-off error), and calculate the values from the integer loop counter with a minimum of operations, e.g. without cumulative addition, which tends to yield errors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
