Ask a New Question

Question

write a c programs to find the trace of a given matrix.
10 years ago

Answers

Anonymous
for an integer matrix,

int trace(int *a,int n) {
int t=0,i;
for (i=0;i<n;i++) {t += *(a[i*n+i])}
return t;
}
10 years ago

Related Questions

1. Do you like sci-fi programs? Do you like sci-fies? Do you like sci-fis? (Which one is correct?... Hello. Are there any programs with which we can change voice into text? How much are the programs? W... Find two programs that interest you at Education Planner and complete the chart below for each progr... write a quiz programs in Q Basic to ask 5 questions to the user and calculate the score Write a programs to calculate the average,score of student in a course write complete programs (assembly code) for the PIC16F84A to perform the following tasks using TMR0:... how to write complete programs for PIC16F84A to perform the CPU will execute two tasks in parallel.... although some of the programs created by FDR were seen as unconstitutional, which program is still a... Python programs that you write start out in which form? Select one: a. punch cards b. i... Programs may need to find a specific value within a list. For example, given a list with the values...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use