I was able to get an answer in my calculator as x = 0.017623 by I want to show this on MATLAB.

 채택된 답변

Torsten
Torsten 2023년 2월 14일
편집: Torsten 2023년 2월 14일

0 개 추천

f = @(y) cosh(y).*sinh(y)-5/3*y ;
y = 0:0.01:1 ;
plot(y,f(y))
syms x y
assume (x,'real')
eqn = cosh(y).*sinh(y)-5/3*y==0;
ynum = vpasolve(eqn,0.9)
ynum = 
0.9192963573251805500925015133287
format long
xnum = double(solve(ynum-3.79e-5*x^(-2.5)==0,x))
xnum =
0.017622741398035

댓글 수: 3

Mason Condren
Mason Condren 2023년 2월 14일
Is there anyway to do this without plotting and creating a vector. I want it to be as simplistic as possible to show the equation needed to be solved.
Torsten
Torsten 2023년 2월 14일
Yes, you can remove the first 3 lines of the code if you know that the approximate position of the root of cosh(y).*sinh(y)-5/3*y = 0 is 0.9 without making a plot.
Mason Condren
Mason Condren 2023년 2월 14일
Okay thank you very much

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

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2023년 2월 14일

댓글:

2023년 2월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by