Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#3 |
初级会员
注册日期: 2008-10-16
年龄: 44
帖子: 3
声望力: 0 ![]() |
![]()
谢谢zqh0260。
我用int做过,也不行。如果把quad改为int,会有如下出错信息 ??? Function 'ge' is not defined for values of class 'sym'. Error in ==> ceshi4 at 2 if x>=0。 另外,如果我把上面那段程序改为 function y=ceshi(x) if x>=0 y=x; else y=0 end 然后运行quad('ceshi',0,1)则完全没有问题。 很奇怪。 |
![]() |
![]() |