#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int a[10][10],i,j,n,m,trace=0,norm=0;
clrscr();
printf("Enter the order of the matrix(no. of rows and columns) : ");
scanf("%d%d",&n,&m);
if(n == m)
{
printf("Trace is exist\n");
printf("Enter matrix elements\n");
for(i=0;i<=n-1;i++)
{
for(j=0;j<=m-1;j++)
{
scanf("%d\n",&a[i][j]);
}
}

for(i=0;i<=n-1;i++)
{
trace+=a[i][i];
for(j=0;j<=m-1;j++)
{
norm+=a[i][j]*a[i][j];
}
}
printf("Trace of the matrix :%d\n ",trace);
printf("Norm of the matrix :%d ",sqrt(norm));
}
else
printf("Trace and norm do not exist");
getch();
}

Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement
Corporate Services
  Web Design and development
  Web Promotion (SEO)
  Multimedia/CD Presentation
  Software development

  E.Commerce

Training@balujalabs

  Software Courses
  Hardware Courses
  Networking.Courses
  Mobile Repairing Courses
  UGC Degrees
Student Corner
 Programming & Projects
 Placement Papers
 Project Ideas
 Synopsis Ideas

  Franchise Section

 Administrator
Franchise Inquiry
 
 
Write a program find the trace and norm of a metric. Trace is designed as the sum of principal diagonal elements; norm is designed as the square root of the sum of the squares of all the elements in a matrix

 

 

 

 

 

 

 


 





Arrays

1 Read n numbers (n defined by programmer), Store them in one dimensional array and display the contents of that array on the screen.
2 Program to sort a list of n element using bubble sort.
3 Program to sort the list of an array using selection sort
4 Program to sort the elements of an array using insertion sort
5 Program to search an element in an array using linear search technique
6 Program to search an element using binary search technique
7 Program to print the elements of 2*2 matrixes.
8 Program to calculate the sum of all the elements of the matrix.
9 Program to find whether the given number is pallandrome or not
10 Program to merge two arrays in third one.
11 Program to input two matrices and print a matrix which is addition of these matrices
12 To find product of two matrices.
13 Program to initialize the elements of a metric and display them
14 Program to find transpose of a matrix.
15 Program to find smallest number of an array.
16 Program to generate the Fibonacci series.
17 Write a program find the trace and norm of a metric. Trace is designed as the sum of principal diagonal elements; norm is designed as the square root of the sum of the squares of all the elements in a matrix
18 Program to input a matrix; determine if it is a symmetrical matrix.

 

String

1 Program to find length of a string using str len() function
2 Program to combine two strings.
3 Program to copy a string from one string variable to another
4 Program to compare two strings.
5 Program to find reverse of a string.
6 Program to convert a string from upper case to lower case.
7 Program to compare two strings without using string functions
8 Program to check whether the string is or plain drome not
9 Program to print the string in an alphabetic order
10 Program to count the number of vowels and digits in a given string.
11 Program to copy one string to another without using library function.
12 Program to accept a string and convert all characters in a string from upper case to lower case without using string function
13 Program to extract a substring from the given string
     
Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement