How do I correctly type in the following functions into matlab

1 visualización (últimos 30 días)
Maya Jenkins
Maya Jenkins el 28 de Mayo de 2020
Respondida: Ameer Hamza el 28 de Mayo de 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)

Respuestas (1)

Ameer Hamza
Ameer Hamza el 28 de Mayo de 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);

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by