solve by substitution method

조회 수: 4 (최근 30일)
angie
angie 2011년 3월 16일
편집: Walter Roberson 2018년 9월 16일
4x+5y=-15
x=3-8y
  댓글 수: 1
Matt Tearle
Matt Tearle 2011년 3월 16일
Do you have a MATLAB question?

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

답변 (3개)

Matt Fig
Matt Fig 2011년 3월 16일
Do you have a question? One related to MATLAB?
  댓글 수: 2
Matt Tearle
Matt Tearle 2011년 3월 16일
attack of the Matt Police!
Matt Fig
Matt Fig 2011년 3월 16일
HaHa, I didn't even see your first comment till now!

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


Walter Roberson
Walter Roberson 2011년 3월 17일
syms x y
yexpr = solve(4*x+5*y+15*x,y);
xval = solve(subs(3-8*y+15*x,yexpr),x);
yval = solve(subs(4*x + 5*y + 15*x, x, xval),y);
(There is at least one shorter method.)

omer ozdemir
omer ozdemir 2018년 9월 15일
편집: Walter Roberson 2018년 9월 15일
how can be solved this problem?
suppose that a polynominal can be expressed by
f(x)= x^5+3*x^4+4*x^3+2*x^2+3*x+6
If one wants to substitute x by s-1/s+1, the function f(x) can be changed into a function of s.
thanks.
  댓글 수: 2
Walter Roberson
Walter Roberson 2018년 9월 15일
You can use subs() and simplify() from the Symbolic toolbox.
Note that f(s) will not be a polynomial.
omer ozdemir
omer ozdemir 2018년 9월 16일
thanks.

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

카테고리

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