Solve equation in interval

조회 수: 52 (최근 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 CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by