フィルターのクリア

bagaimana penyelesaian persamaan linear dan non linearnya

1 回表示 (過去 30 日間)
Alma
Alma 2023 年 3 月 17 日
回答済み: Bhanu Prakash 2023 年 3 月 17 日
f(x) = cos x - sqrt(x) in [0, 1]
  1 件のコメント
Rik
Rik 2023 年 3 月 17 日
Have a read here and here. It will greatly improve your chances of getting an answer.
You can find guidelines for posting homework on this forum here. If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks). If your main issue is with understanding the underlying concept, you may consider re-reading the material you teacher provided and ask them for further clarification.

サインインしてコメントする。

回答 (1 件)

Bhanu Prakash
Bhanu Prakash 2023 年 3 月 17 日
Hi Alma,
As per my understanding, you want to solve the non-linear equation "f(x)" in the range "[0,1]".
To solve a system of non-linear equations, the function "fsolve" can be used. Please look at the following code, for your reference:
x=0:1;
f=@(x) cos(x)-sqrt(x);
s=fsolve(f,x);
where, "f" is the non-linear equation, "x" is the range and "s" is the required solution.
You can refer to the documention of "fsolve" here:
Hope this answer helps you.
Thanks,
Bhanu Prakash.

カテゴリ

Help Center および File ExchangeSystems of Nonlinear Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by