Find a maximum of two variable particular function
1 回表示 (過去 30 日間)
古いコメントを表示
Behrang Elgameh
2019 年 10 月 27 日
回答済み: Walter Roberson
2019 年 10 月 27 日
Dear friends,
I just had a problem finding the maximum of this equation.
fs = @ (x, t) wn ^ 2 * m * (1-cos (pi * x) / (2 * L)) * Impulse / (m * 3. * wn). * exp (-. 05. * wn. * t). * sin (wn. * t);
I took the derivatives as follows but finding the answer is not easy
fsx = diff (fs, x)
fst = diff (fs, t)
0 件のコメント
採用された回答
Walter Roberson
2019 年 10 月 27 日
syms wn m x t L Impulse
fs = @ (x, t) wn ^ 2 * m * (1-cos (pi * x) / (2 * L)) * Impulse / (m * 3. * wn).* exp (-.05.* wn.* t).* sin (wn.* t);
fsx = diff(fs,x)
fst = diff(fs,t)
sol = solve([fsx,fst], [x t],'returnconditions',true)
Really you get a family of solutions because of the periodicity of the trig functions.
The returned values will include all of the maxima and minima and saddle points, so you will need to do further tests to determine which each of them is. You probably cannot complete those tests without knowing at least the signs of some of those variables such as m.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!