Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2011-04-29
年龄: 35
帖子: 1
声望力: 0 ![]() |
![]()
以y=x^2+4*x+3为例,编写程序,求得两根!!!急急急急急急急急急急急急急急急急急,
用matlab,前面是 eps=1.e-5; maxitn=10000.; itn=0.; a=input('lower bound='); delx=input('initial increment='); ` ` ` ` `也不知道对不对,希望各位帮帮我,谢谢!!! |
![]() |
![]() |
![]() |
#2 |
初级会员
注册日期: 2011-05-06
帖子: 1
声望力: 0 ![]() |
![]()
p=[1 4 3];
answer=roots(p); 直接调用上面的函数就行了 |
![]() |
![]() |