How do I solve this simultaneous equation below

6 ビュー (過去 30 日間)
Adam
Adam 2022 年 9 月 17 日
コメント済み: Torsten 2022 年 9 月 17 日
The question is solve this simulataneous eqaution and verify the soultion by plotting the functions in the domain -5 is less then or equal to x or is less then or equal to 5.
simulataneous equation is
x^2 +1 = y
7 - x = y
Just want to be pointed in the rigth direction because I have no idea how to do this.
  3 件のコメント
Adam
Adam 2022 年 9 月 17 日
yes i do
Torsten
Torsten 2022 年 9 月 17 日
And what's the problem then in MATLAB ?
syms x
f1 = x^2+1;
f2 = -x+7;
sol = solve(f1==f2)
sol = 
hold on
fplot(f1,[-5 5])
fplot(f2,[-5,5])
hold off

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

回答 (1 件)

Sam Chak
Sam Chak 2022 年 9 月 17 日
Verify with MATLAB:
x = roots([1 1 -6])
x = 2×1
-3 2
Can I leave you to find y as a simple exercise?

カテゴリ

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