标题: 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) \