Question: Exercise 7 ( * * * ) : Consider the equation f ( x ) = 2 * sin ( pi * x ) +

Exercise 7(***): Consider the equation f(x)=2*sin(pi*x)+3*cos(pi*x)
Write a program that computes the values of f(x) for the following values of x: 0.25,0.5,1,2. Your program should allow the user to enter the value from the standard input and the results will be displayed as follows:
/*****************************************************************/
Value of x Value of f(x)
0.253.5355
0.5
1
2
/***********************************************************************/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!