can anyone please provide the matlab code to solve and find the value of k for the given equation
ω^2= gκ tanh κd
given
d=100
g=9.8
ω= 0:0.01:10

댓글 수: 3

darova
darova 2019년 9월 2일
Did try something?
Rik
Rik 2019년 9월 2일
It is probably the best strategy to try to rewrite the formula with algebra. Other than that my question would be the same as Darova: what have you tried so far?
Ankita Som
Ankita Som 2019년 9월 3일
i am a PhD student. I am writing a code on a wave spectrum and this equation is a part of it. I cannot solve this one algebraically. though i have the results using function option. bt i want the algebraic one proceed with my code

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

 채택된 답변

Dimitris Kalogiros
Dimitris Kalogiros 2019년 9월 2일
편집: Dimitris Kalogiros 2019년 9월 2일

0 개 추천

Hi A. Hossain
Try this:
clear; clc;
syms w d k
d=100
g=9.8
for w=0:0.01:10
fprintf('----- w = %f -----\n', w);
eq=w.^2==g*k*tanh(k*d)
vpasolve(eq)
fprintf('\n\n');
end
Of Course, it does not provide an analytical solution, but a numerical one.

댓글 수: 3

darova
darova 2019년 9월 2일
Looks like homework
Ankita Som
Ankita Som 2019년 9월 3일
not at all. i am writing a code on wave spectrum and this equation is a part of the code where i am stuck
Ankita Som
Ankita Som 2019년 9월 3일
i have used this code before but i want the analytical solution to proceed with my code

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

추가 답변 (0개)

카테고리

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

태그

질문:

2019년 9월 2일

댓글:

2019년 9월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by