查看单个帖子
旧 2009-06-30, 21:44   #1
beijiangxue
初级会员
 
注册日期: 2009-06-30
帖子: 2
声望力: 0
beijiangxue 正向着好的方向发展
默认 求助:关于maltab的M函数

function y=Bi(x)
%函数名:Bi
%函数功能:计算函数Bi
%参数:x,t
y=(1/pi)*int((exp((-(t^3)/3)+x*t)+sin((t^3)/3+x*t)),t,0,inf)
end
y=Bi(0.1)

为什么有错误:
??? function y=Bi(x)
|
Error: Function definitions are not permitted at the prompt or in scripts.

此帖于 2009-07-11 22:56 被 yuwk77 编辑。 原因: 题目意义不明确
beijiangxue 当前离线   回复时引用此帖