Skip to main content

Posts

Showing posts with the label Programs to try using 2D-Array

Programs to try using 2D-Array

1.Write programs for matrix arithmetic. a)addition b)subtraction c)multiplication 2.Find transpose of a given matrix.(university question) 3.Find the trace of a matrix.( sum of the diagonal element) 4.Find sum of each rows and columns of a matrix. 5.Find the norm of a matrix.(1-norm .Find sum of absolute value of element column wise.Find the max). 6.Given two square matrices A and B of same order. Check whether AB equal BA. 7.Check whether the given matrix is symmetric.(university question) 8.Check whether a given matrix is an identity matrix. 9. Calculate determinant of a 3 x 3 matrix. 10.Find the saddle points in a matrix. 11.Given matrix A.B,C of size 3x3 find 3A-2B+AC 12. marks(out of 150) of 5 students in 3 subjects are stored in matrix form.Find a)top marks in each subject b)Number of failed students in each subject c)average mark in each subject. d)Number of supply subjects each students have. 13.Print all prime numbers from a matrix.(university question) 14.Write a C program t