#NEWLINE# def rot_axis2( theta ) : #NEWLINE# #INDENT# 'Returns a rotation matrix for a rotation of theta (in radians) about\n    the 2-axis.\n\n    Examples\n    ========\n\n    >>> from sympy import pi\n    >>> from sympy.matrices import rot_axis2\n\n    A rotation of pi/3 (60 degrees):\n\n    >>> theta = pi/3\n    >>> rot_axis2(theta)\n    Matrix([\n    [      1/2, 0, -sqrt(3)/2],\n    [        0, 1,          0],\n    [sqrt(3)/2, 0,        1/2]])\n\n    If we rotate by pi/2 (90 degrees):\n\n    >>> rot_axis2(pi/2)\n    Matrix([\n    [0, 0, -1],\n    [0, 1,  0],\n    [1, 0,  0]])\n\n    See Also\n    ========\n\n    rot_axis1: Returns a rotation matrix for a rotation of theta (in radians)\n        about the 1-axis\n    rot_axis3: Returns a rotation matrix for a rotation of theta (in radians)\n        about the 3-axis\n    ' #NEWLINE# ct = cos ( theta ) #NEWLINE# st = sin ( theta ) #NEWLINE# lil = ( ( ct , 0 , ( - ct ) ) , ( 0 , 1 , 0 ) , ( st , 0 , ct ) ) #NEWLINE# return Matrix ( lil )