Solve equation in interval

16 ビュー (過去 30 日間)
Veronika Puskelova
Veronika Puskelova 2020 年 11 月 29 日
編集済み: Walter Roberson 2021 年 4 月 22 日
f = x^2*exp(-x) % at interval x is <-1, 1>
fder = diff(f,x,1)
i need solution for fder in interval <-1 1>, but command solve(fder, [-1 1]) not work pls help

採用された回答

Setsuna Yuuki.
Setsuna Yuuki. 2020 年 11 月 29 日
編集済み: Setsuna Yuuki. 2020 年 11 月 29 日
You can try:
syms x
f = x^2*exp(-x)
fder = diff(f,x,1)
vpasolve(fder,[-1 1]) %change solve

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 11 月 29 日
syms x
solve([diff(x^2*exp(-x)), x <= 1, x >= -1])
ans = 
0

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by