Answer to Question #159827 in C for Osama Ahmed

Question #159827

a)     Implement the following equation

 

x4 sin(45x) + x3 cos(25 x) + x2 tan(30 x) + 12x-1 +  cos(108 x2 )

 

Where value of x will be 5.


1
Expert's answer
2021-01-29T17:00:38-0500
#include <stdio.h>
#include <math.h>

int main()
{
    int x = 5;
    double result;
    result = pow(x, 4) * sin(45 * x) + pow(x, 3) * cos(25 * x) +
            pow(x, 2) * tan(30 * x) + 12 * pow(x, -1) + cos(108 * pow(x, 2));
    printf("%f\n", result);
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS