matlab code help for equation solving
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
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?
採用された回答
Dimitris Kalogiros
2019 年 9 月 2 日
編集済み: Dimitris Kalogiros
2019 年 9 月 2 日
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 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!