165PROGRAM SHEETProgram forRotating a FigureDescriptionFormula for coordinate transforma-tion:(x , y ) # ( x' , y' )x' = x cos' – y sin'y' = x sin' + y cos'Graphing of rotation of any geometric figure by' degrees.ExampleTo rotate by 30° the triangle defined by points A (2, 0.5), B (6, 0.5), and C (5, 1.5)Notes• Use the cursor keys to move the pointer around the display.• To interrupt program execution, press A while the graphic screen is on the display.• The triangle cannot be drawn if the result of the coordinate transformation operation exceedsView Window parameters.Preparation and operation• Store the program written on the next page.• Execute the program as shown below.No.5Memory ContentsABCDEFGx 1y 1x 2y 2x 3y 3x'1y'1x'2y'2x'3y'3HIJKLMNOPQRSTUVWXYZ0 XYB(x2, y 2)A(x 1, y 1)C(x 3, y 3 )