I need this input into MATLAB. I'm so lost on how to code it.

Evaluate the integral sintcos tdt .

I have already solved and found the answer to be -cost 2cost cos t + C 5 9 7

I just need to prove my work with MATLAB

Respuesta :

Answer:

>>syms t

>>f=sin(t)*cos(t);

>>int(f)

Step-by-step explanation:

It's actually pretty easy, just use symbolic variables.

First, create the symbolic variable t using this command:

syms t

Now define the function

f=sin(t)*cos(t)

Finally use the next command in order to calculate the indefinite integral:

int(f)

I attached a picture in which you can see the procedure and the result.

Ver imagen carlos2112