Borrar filtros
Borrar filtros

〖cos〗^2 (2π/4)sin(​5π/7)^2+ta​n(π/3 ln⁡35 )/√17

8 visualizaciones (últimos 30 días)
Mohammed Ali
Mohammed Ali el 28 de Mzo. de 2023
Respondida: Sai el 4 de Abr. de 2023
how to write it in matlab
  5 comentarios
Torsten
Torsten el 28 de Mzo. de 2023
(cos((2*pi)/4))^2
ans = 3.7494e-33
(sin((5*pi)/7))^2
ans = 0.6113
(tan((pi/3)*(log(35))))
ans = 0.6574
sqrt(17)
ans = 4.1231
Now put the parts together.
Torsten
Torsten el 28 de Mzo. de 2023
You shouldn't use so many brackets:
cos(2*pi/4)^2 * sin(5*pi/7)^2 + tan(pi/3*log(35)) / sqrt(17)
ans = 0.1594
(cos((2*pi)/4)^2)*(sin((5*pi)/7)^2)+((tan((pi/3)*(log(35))))/sqrt(17))
ans = 0.1594

Iniciar sesión para comentar.

Respuestas (1)

Sai
Sai el 4 de Abr. de 2023
Hi Mohammed,
I understand that you wanted to perform the above mathematical operation in MATLAB
You can follow the below approach to solve the mathematical operation:
a = (cos(2*pi/4))^2
b = (sin(5*pi/7))^2
c = tan((pi/3)*(log(35)))/sqrt(17)
Ans = (a*b)+c
Hope this helps you resolve the query.

Categorías

Más información sobre Get Started with MATLAB 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