How to solve simultaneous equations?

조회 수: 1(최근 30일)
Medhanand Kalluri
Medhanand Kalluri 2021년 10월 13일
답변: Bjorn Gustavsson 2021년 10월 14일
How to solve simultaionsequations such as this,
f1(x1,x2) = x1^2 + x1*x2 - 10;
f2(x1,x2) = x2 + 3*x1*x2^2 - 57;
with and without using symbolic functions for f1 and f2. Please do explain the process.
  댓글 수: 2
Medhanand Kalluri
Medhanand Kalluri 2021년 10월 14일
Like is there no tool to solve two equations? I've used fzero for a single variable equation (not system of equations) (but to use that I first entered the function as a string; then used str2func to convert it into a function; then used fzero).
1) Similar to fzero, is there an inbuilt function available? If there is how do we use it for simultaeous functions?
2) For symbolic functions (i.e. if we create f1 and f2 with x1 and x2 defined as sym variables) we can't use fzero, then how do we find the roots?

댓글을 달려면 로그인하십시오.


Bjorn Gustavsson
Bjorn Gustavsson 2021년 10월 14일
Using symbolic tools you have solve - look at the help and documentation for that function for examlpes. Your problem should reduce to a cubic polynomial so should be possible to check "semi-manually".

Community Treasure Hunt

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

Start Hunting!

Translated by