It hints the expresion was wrong when I solve the equations as follow:
>>syms rs xs rp xp
>> [xs,xp]=solve(rs*rp^2/(rs^2+(xs+xp)^2))==rp, xp*rs^2+xs^2*xp+xs*xp^2==0,[xs, xp])
Why?

 Akzeptierte Antwort

VBBV
VBBV am 4 Apr. 2022

0 Stimmen

syms rs xs rp xp
[xs,xp]=solve(rs*rp^2./(rs^2+(xs+xp)^2)==rp, xp*rs^2+xs^2*xp+xs*xp^2==0,[xs, xp])
xs = 
xp = 

4 Kommentare

Parenthesis is closed at incorrect location
syms rs xs rp xp
[xs,xp]=solve(rs*rp^2./(rs^2+(xs+xp)^2)==rp, xp*rs^2+xs^2*xp+xs*xp^2==0,[xs, xp])
%)
Xizeng Feng
Xizeng Feng am 4 Apr. 2022
would you pls point out where is the correct position.
Xizeng Feng
Xizeng Feng am 4 Apr. 2022
Oh, I found it! thank you very much!
VBBV
VBBV am 4 Apr. 2022
please accep the answer if it solved , thanks :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 4 Apr. 2022

Kommentiert:

am 4 Apr. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by