solve by substitution method
6 ビュー (過去 30 日間)
古いコメントを表示
4x+5y=-15
x=3-8y
回答 (3 件)
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.)
0 件のコメント
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
2018 年 9 月 15 日
You can use subs() and simplify() from the Symbolic toolbox.
Note that f(s) will not be a polynomial.
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!