在抗击“非典”期间,学校课程安排受到很大的影响,因此对...新版11.pptVIP

  • 0
  • 0
  • 约1.42万字
  • 约 83页
  • 2018-09-03 发布于湖北
  • 举报

在抗击“非典”期间,学校课程安排受到很大的影响,因此对...新版11.ppt

在抗击“非典”期间,学校课程安排受到很大的影响,因此对...新版11.ppt

§2.4.2.2 switch statements 选择结构 switch (rem(n,4)==0) + (rem(n,2)==0) case 0 M = odd_magic(n) case 1 M = single_even_magic(n) case 2 M = double_even_magic(n) otherwise error(This is impossible) end * jgyj §2.4.2.3 for loops For循环 for n = 3:32 r(n) = rank(magic(n)); end * jgyj §2.4.2.4 while loops While(条件)循环 while b-a eps*b x = (a+b)/2; fx = x^3-2*x-5; if sign(fx) == sign(fa) a = x; fa = fx; else b = x; fb = fx; end end * jgyj §2.4.3 Functions(函数) Create a Function Call a Function function area=circle(r,s) %CIRCU

文档评论(0)

1亿VIP精品文档

相关文档