answersLogoWhite

0


Best Answer

#include<stdio.h>

int main()

{

double matrix[10][10],a,b, temp[10];

int i, j, k, n;

printf("Enter the no of variables: ");

scanf("%d", &n);

printf("Enter the agumented matrix:\n");

for(i = 0; i < n ; i++){

for(j = 0; j < (n+1); j++){

scanf("%lf", &matrix[i][j]);

}

}

for(i = 0; i < n; i++){

for(j = 0; j < n; j++){

if(j>i){

a = matrix[j][i];

b = matrix[i][i];

for(k = 0; k < n+1; k++){

matrix[j][k] = matrix[j][k] - (a/b) * matrix[i][k];

}

}

}

}

printf("The Upper triangular matrix is: \n");

for( i = 0; i < n; i++){

for(j = 0; j < n+1; j++){

printf("%.2f", matrix[i][j]);

printf("\t");

}

printf("\n");

}

printf("\nThe required result is: ");

for(i = n-1; i>=0; i--){

b = matrix[i][n];

for(j = n-1 ; j > i; j--){

b -= temp[n-j]*matrix[i][j];

}

temp[n-i] = b/matrix[i][i];

printf("\n%c => %.2f",97+i, temp[n-i]);

}

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Numerical methods gauss elimination and gauss Jordan method?

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program for solving gauss seidal method?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a gaussmeter?

A Gauss Meter, or magnetometer, is an electronic device that is used to measure the strength of magnetic fields. Gauss Meters are commonly used to measure the strength of magnets and magnetic effects in electronics. They can also be used as metal detectors.


How do you draw a cycle in a c program?

/*PROGRAM TO IMPLEMENT GAUSS-jordan method.#include#define MX 20main(){float a[MX] [MX+1],m,p;int i,j,k,n;puts("\n how many equations?:");scanf("%d",&n);for(i=0;i


What is the Formula for power flux density?

I assume you mean flux density, In which case the formula is flux per m2 or (Wb)/m2 This unit is known as the Tesla (T). Therefore: (T)=(Wb)/(m2) hope this helps sinewave


Why do a Voltage transformer give me a CLIPPED output signal?

Because the voltage on the primary winding is too high and the core gets saturated. When this happens the transformer effect cannot kep increasing the voltage on the secondary winding, clipping the output. Either reduce the voltage on the primary of get a oriented iron core with at least 10,000 gauss flux capacity.


What is the use of field strength meter?

FIELD STRENGTH METERAn instrument used to give relative measurements of the radiation fields close to an operating transmitter.Generally used to determine the strength of the signal from a transmitter.An FM field strength meter can be used to find hidden bugs or trasmitting devices.I believe also that they can be used to determin the stregth of a magnet as well however they are refered to as a gauss meter or a magnetic field strength meter.

Related questions

What are 3 methods to solving a system of linear equations?

u can use gauss jorden or gauss elimination method for solving linear equation u also use simple subtraction method for small linear equation also.. after that also there are many methods are available but above are most used


What are the advantages of gauss elimination method?

There are no answer for that..


Write FORTRAN90 program using gauss-quadrature rule?

you can finde integral with 4 gauss quadrature in book for meshfree writed by G.R.Liu after one chaper there is a program .in that is program that use gauss-quadrature for integral with fortran. excuse me for my bad writing.


What is difference between doolittle and gauss elimenaton method?

kuta panchod ha ya method....................................sala


Solve the following systems of simultaneous linear equations using Gauss elimination method and Gauss-Seidel Method?

Solve the following systems of simultaneous linear equations using Gauss elimination method and Gauss-Seidel Method 2x1+3x2+7x3 = 12 -----(1) x1-4x2+5x3 = 2 -----(2) 4x1+5x2-12x3= -3 ----(3) Answer: I'm not here to answer your university/college assignment questions. Please refer to the related question below and use the algorithm, which you should have in your notes anyway, to do the work yourself.


What did Carl Friedrich Gauss discover?

the method of adding all the numbers from 1~100


C programming code for gauss Jordon method to solve quadratic equation?

how to use gauss programming to find LM unit root test with structural breaks and kpss


Write a c language program that solves linear equations using gauss-jordan elimination method?

Too complex to show here as a Wiki.Answer hoy pareha ta way i answer.......... pag sure uie.........


What is Gauss method?

Gauss's method was to find the sum of 1-100. He tried adding with pairs 1 + 100 = 101, 2 + 99 = 101 and so on. Each pairs was going to equal 101. Half of 100 is 50, 50 x 101 = 5,050.


Can we transform columns in gauss elimination method?

yes it is possible.not only columns but also rows can be transformed.


What did carl f gauss discover in maths?

He proved the "fundamental theorem of algebra" and developed a method of minimizing statistical error called "the method of least squares" which is still used today.


What is the sum of the first 1000 positive integers?

Using Gauss's method, 1+2+3...1000= 500x1001=500500 Answer:500500