can you define an interval When you use 'fsolve' to define the initial value?

34 ビュー (過去 30 日間)
dcydhb dcydhb
dcydhb dcydhb 2019 年 5 月 13 日
編集済み: dcydhb dcydhb 2019 年 5 月 13 日
for one dimentional question,
when use
fzero
to get the roots ,we can define the intitial value as an interval
[x1,x2]
but how can we define the interval in the
fsolve
thanks a lot!!!

採用された回答

Walter Roberson
Walter Roberson 2019 年 5 月 13 日
  • fzero: only permits a single function of one variable. Permits a search range to be given
  • fsolve(): permits multiple functions of multiple variables. Does not permit a search range to be given -- no way to do a search range for fsolve()
  • solve(): permits multiple functions of multiple variables, but looks for closed form solutions. If the number of equations equals the number of variables, then if no closed form solution is found, will call vpasolve() for a numeric solution. Does not permit search ranges, but you can use assume() and assumeAlso() on variables to give hints about ranges
  • vpasolve(): permits multiple functions of multiple variables, looking for numeric solutions. Permits search ranges to be specified.

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by