Find a maximum of two variable particular function

1 回表示 (過去 30 日間)
Behrang Elgameh
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)

採用された回答

Walter Roberson
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 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by