数学建模社区-数学中国

标题: mahtematica中的一道计算题 [打印本页]

作者: ingmuy    时间: 2015-1-20 20:25
标题: mahtematica中的一道计算题
本帖最后由 ingmuy 于 2015-1-20 20:25 编辑 ! r( Y; o! f. a, h% f0 X

. T& U; @8 t( X0 k+ fA matrix can be rotated by performing a number of successive operations. Rotate the6 j% p; @5 b2 e$ T
matrix {{1,2,3},{4,5,6}} clockwise by 90 degrees, obtaining" T5 X( o& T4 K& v  N: W
{{4,1},{5,2},{6,3}}, in two steps. Use TableForm to display the results.
# j' @/ D) j# P% W4 x* x; D
; z0 k$ M3 e$ Z$ [3 U! k# ?3 A3 \  B使用apply,而不是map.
) U* m" j0 S' o5 s作法如下:
8 _% _+ ~8 ^+ _7 e- P) {5 J. x
  ], x: d* @+ E/ c) \

未命名.bmp (1.26 MB, 下载次数: 341)

作法

作法


作者: 402    时间: 2015-1-21 08:05
好玩的呢) w5 q3 w2 }6 ~





欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5