필터 지우기
필터 지우기

Solving equation with tan

조회 수: 5 (최근 30일)
Joel Schelander
Joel Schelander 2021년 3월 25일
답변: Star Strider 2021년 3월 25일
I have an equation that needs to be solved numerically.
-125=-arctan(0.25*x)-0.2*x*180/pi
I know that the answer can be approximatedto 6, according to the exams "corrected answer"
I cant solve it with pen and paper so I wonder if there is anyway to solve this in MATLAB?

채택된 답변

Star Strider
Star Strider 2021년 3월 25일
Here is how I would solve it:
fcn = @(x) 125-atand(0.25.*x)-0.2*x*180/pi;
est_x = fzero(fcn, 10)
producing:
est_x =
5.9959
See the documentation for fzero for details.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by