MATLAB Answers

How do I correctly type in the following functions into matlab

1 view (last 30 days)
Maya Jenkins
Maya Jenkins on 28 May 2020
Answered: Ameer Hamza on 28 May 2020
∫▒[1+〖sin〗^2⁡θ csc⁡θ ] dθ
∫▒1/(1+sin⁡θ ) dθ
∫_( 0)^( π)▒〖sin⁡t dt〗
and
∫_( -π∕4)^(〖 π〗∕4)▒〖〖sec〗^2⁡θ dθ〗
for the first one i have tried: int(1+(sin*theta^2)*csc\theta)
for the second i tried: int(1/(1+sin\theta))
for the third i have tried:
syms x
f=(sin*t)
a=0
b=pi
int(f, a, b)

  0 Comments

Sign in to comment.

Answers (1)

Ameer Hamza
Ameer Hamza on 28 May 2020
This is correct syntax
syms theta t
f1 = 1 + sin(theta)^2*csc(theta);
f2 = 1/(1+sin(theta));
f3 = sin(t);
f4 = sec(theta).^2;
f1_int = int(f1, theta, 0, pi/2);
f2_int = int(f2, theta, 0, pi/2);
f3_int = int(f3, t, 0, pi);
f4_int = int(f4, theta, -pi/4, pi/4);

  0 Comments

Sign in to comment.