Title | BCSL 058 Computer oriented Numerical techniques Lab solved assignment 2019 20 |
---|---|
Author | DhRuv BhaTt |
Course | Bachelor of computer application |
Institution | Indira Gandhi National Open University |
Pages | 17 |
File Size | 651.7 KB |
File Type | |
Total Downloads | 199 |
Total Views | 647 |
Warning: TT: undefined function: 32 Warning: TT: undefined function: 32 1techiyaBCA Solved Assignment 2019- 20Course Code : BCSL- 058Course Title : Computer oriented Numerical techniques LabAssignment Number: BCA(5)/L-058/Assignment/2019- 20Q1. Write a program in C/C++ to find the solution of system...
www.techiya.in
www.techiya.in BCA Solved Assignment 2019-20 Course Code : BCSL-058 Course Title : Computer oriented Numerical techniques Lab Assignment Number: BCA(5)/L-058/Assignment/2019-20
Q1. Write a program in C/C++ to find the solution of system of linear equations (given below), by suing Gauss- Elimination method: 𝑥+𝑦+𝑧𝑧=2 𝑥−2𝑦+3𝑧=14 𝑥+3𝑦−6𝑧𝑧=−23 Ans: program.c #include #include #include int main() { int n,i,j,k; float a[10][10]={0.0}, x[10]={0.0}; float pivot = 0.0; float factor = 0.0; float sum = 0.0; printf("Gauss Elimination \n\n"); printf("Enter number of equations:"); scanf("%d",&n); printf("%d\n",n); printf("\n\t Input Coefficients a[i, j+1], row-wise\n"); for(i=1;i...