结果出现复数。
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
果博东方登录网址【gb2032 .com】
am 12 Okt. 2022
Kommentiert: Cassandra Myers
am 23 Mär. 2023
unction output=myfun(x)
output(1)=x(1)^2-108*x(1)+x(2)^2+x(4)+2660;
output(2)=x(1)^2-108*x(1)+x(2)^2+x(5)+2659.7664;
output(3)=5.3*sqrt(x(1)^2-108*x(1)+x(2)^2+2660)-x(3)*sqrt(108*x(1)-x(1)^2-x(2)^2-1259.51)+x(6);
为什么结果出现负数
0 Kommentare
Akzeptierte Antwort
果博东方公司网站【gb2032 .com】
am 12 Okt. 2022
形如sqrt(108*x(1)-x(1)^2-x(2)^2-1259.51)这种地方,取个x为全零的向量,可不就对负数开方得到复数的虚部了?
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Parallel Computing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!