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

how to write it in matlab

댓글 수: 5

Steven Lord
Steven Lord 2023년 3월 28일
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
((cos((2*pi)/4))^2)*(sin((5*pi)/7)^2)+((tan((pi/3)*(log(35))/(sqrt(17))
This statement is incomplete.
Mohammed Ali
Mohammed Ali 2023년 3월 28일
never mind i got the right answer
(cos((2*pi)/4)^2)*(sin((5*pi)/7)^2)+((tan((pi/3)*(log(35))))/sqrt(17))
(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.
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

댓글을 달려면 로그인하십시오.

답변 (1개)

Sai
Sai 2023년 4월 4일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2023년 3월 28일

답변:

Sai
2023년 4월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by