Multiple choice

What is the correct C language expression for the following mathematical expression? Sin2x + Cos2x + Sin(ex + log10x)

  1. pow(sinx,2) + cos(2*x) + sin(exp(x) + log10(x))

  2. pow(sin,2x) + cos(2*x) + sin(exp(x) + log10(x))

  3. pow(sinx,2) + cos(2x) + sin(exp(x) + log10(x))

  4. pow(sinx,2) + cos(2*x) + sin(exp(x) + log10(x))

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

For sinx, cosx, ex and log10x , the functions are sin(x), cos(x), exp(x) and log10(x), respectively. Hence, the correct expression is pow(sinx,2) + cos (2*x) + sin(exp(x) + log10(x)).