VF完善程序题 20
已知Y(k)+2Y(k-1)+3Y(k-2)=3U(k)+7U(k-1)U(K)=(1/3)^k+1(k<=0时Y(k)=0)求Y(10)settalkoffy1=0y2...
已知Y(k)+2Y(k-1)+3Y(k-2)=3U(k)+7U(k-1)
U(K)=(1/3)^k+1(k<=0时Y(k)=0)
求Y(10)
set talk off
y1=0
y2=0
_____
for k=1 to 10
U=(1/3)^(k+1)
Y=3*U+7*U1-2*Y1-3*Y2
U1=U
Y2=Y1
Y1=Y
endfor
?Y
set talk on
return
原因? 谢谢 展开
U(K)=(1/3)^k+1(k<=0时Y(k)=0)
求Y(10)
set talk off
y1=0
y2=0
_____
for k=1 to 10
U=(1/3)^(k+1)
Y=3*U+7*U1-2*Y1-3*Y2
U1=U
Y2=Y1
Y1=Y
endfor
?Y
set talk on
return
原因? 谢谢 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询