1,395 bytes added
, 22:50, 27 June 2017
<div style="font-size:30px">'''MATRIXROTATE (a,NumberOfSteps)'''</div><br/>
*<math>a</math> is any matrix.
*<math>NumberOfSteps</math> number of steps.
==Description==
*This function showing the rotation of the matrix.
*In <math>MATRIXROTATE (a,NumberOfSteps)</math>, <math>a</math> is any matrix of any order.
*Here it is rotating the matrix around its center.
*So each entries will go right or left and up or down according to the number of steps to be given.
*For example <math>MATRIXROTATE([[1,-1],[2,-2]],1)=
{| class="wikitable"
|-
| 2 || 1
|-
| -2 || -1
|}
*So here 1st row entries are rotated in to 2nd column.
*Also 2nd rows are rotated in to 1st column entries.
==Examples==
1. MATRIXROTATE([[6,9,12],[43,16,-17],[3,8,10]],2)
{| class="wikitable"
|-
| 3 || 43 || 6
|-
| 8 || 16 || 9
|-
|10 || -17 ||12
|}
2. MATRIXROTATE([[3,8,12,16,10],[22,16,54,11,14],[32,76,89,78,54],[10,13,76,23,41],[67,34,51,90,14]],3)
{| class="wikitable"
|-
| 10 || 32 || 22 || 3 || 8
|-
| 67 || 76 || 13 || 76 || 12
|-
|34 || 23 ||89 ||16 || 16
|-
| 51 || 78 || 11 || 54 || 10
|-
|90 || 14 || 41 || 54 || 14
|}
==See Also==
*[[Manuals/calci/MATRIXREVERSE | MATRIXREVERSE ]]
*[[Manuals/calci/MATRIXRANK | MATRIXRANK]]
*[[Manuals/calci/MDETERM | MDETERM]]
==References==
*[https://en.wikipedia.org/wiki/Rotation_matrix Rotation Matrix]
*[[Z_API_Functions | List of Main Z Functions]]
*[[ Z3 | Z3 home ]]