how to solve three implicit equation?

1 回表示 (過去 30 日間)
Inam Ullah
Inam Ullah 2015 年 10 月 22 日
コメント済み: Inam Ullah 2015 年 10 月 23 日
Sir, I am try to solve a question and I stuck here how to solve this equation.
xy=5
xz= 15
and I want the value of x,y,z where y+z = 1 How to solve in Matlab. Please guide me.

採用された回答

Stefan Raab
Stefan Raab 2015 年 10 月 22 日
編集済み: Stefan Raab 2015 年 10 月 22 日
Hi, at first you have to declare x, y and z as symbolic variables:
syms x y z;
Then you can use the function solve():
result = solve(x*y==5, x*z == 15, y+z==1, [x y z]);
You can then access the results via result.x, result.y and result.z . Next time you could use Google, I found the solution in less than a minute: http://www.mathworks.com/matlabcentral/answers/248493-how-to-solve-implicit-symbolic-equations-using-mupad
Kind regards, Stefan
  1 件のコメント
Inam Ullah
Inam Ullah 2015 年 10 月 23 日
thanks Sir. It works.

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

その他の回答 (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