#include"stdio.h"
#include"conio.h"
#include"math.h"
void main()
{
int i,j;
float a[3][4],b[3][4],c[4][4];
float x,y,z,p,q,r;
m:
printf("\nEnter the coefficients: ");
for(i=0;i<3;i++)
for(j=0;j<3;j++)
scanf("%f",&a[i][j]);
printf("\nEnter the constants: ");
for(i=0;i<3;i++)
scanf("%f",&a[i][3]);
if(a[0][0]!=0.0)
{
p=a[1][0];
q=a[0][0];
r=a[2][0];
for(j=0;j<=3;j++)
{
b[0][j]=-(p/q)*a[0][j];
a[1][j]+=b[0][j];
c[0][j]=-(r/q)*a[0][j];
a[2][j]+=c[0][j];
}
p=a[2][1];
q=a[1][1];
for(j=0;j<=3;j++)
{
b[1][j]=-(p/q)*a[1][j];
a[2][j]+=b[1][j];
}
printf("\n\nThe matrix becomes\n");
for(i=0;i<3;i++)
{
for(j=0;j<4;j++)
{
printf("%.4f\t",a[i][j]
}
printf("\n");
}
z=a[2][3]/a[2][2];
y=(a[1][3]-a[1][2]*z)/a[1][1];
x=(a[0][3]-a[0][2]*z-a[0][1]*y)/a[0][0];
printf("\nThe solution is");
printf("\nX=%f, Y=%f , Z=%f",x,y,z);
}
else
{
printf("\nThe first cofficient must not be zero,Enter again");
goto m;
}
}
That they, along with the equations, are invisible!
As there is no system of equations shown, there are zero solutions.
hhgjk
Any two numbers that make one of the equations true will make the other equation true.
It isa linear expression,a binomial expression,an algebraic expression,a polynomial expression.
The answer will depend on what kinds of equations: there are linear equations, polynomials of various orders, algebraic equations, trigonometric equations, exponential ones and logarithmic ones. There are single equations, systems of linear equations, systems of linear and non-linear equations. There are also differential equations which are classified by order and by degree. There are also partial differential equations.
Gaussian elimination is used to solve systems of linear equations.
Algebraic equations, trigenometric equations, linear equations, geometric equations, partial differential equations, differential equations, integrals to name a few.
Elimination and substitution are two methods.
It is called solving by elimination.
There is no simple answer. Sometimes, the nature of one of the equations lends itself to the substitution method but at other times, elimination is better. If they are non-linear equations, and there is an easy substitution then that is the best approach. With linear equations, using the inverse matrix is the fastest method.
There are several methods to solve linear equations, including the substitution method, elimination method, and graphical method. Additionally, matrix methods such as Gaussian elimination and using inverse matrices can also be employed for solving systems of linear equations. Each method has its own advantages depending on the complexity of the equations and the number of variables involved.
By the substitution method By the elimination method By plotting them on a graph
Elimination and substitution are two methods.
Key topics:Solving linear equations and inequalities.Systems of equations.Word problems involving algebraic expressions.
You should use multiplication to solve a system of linear equations by elimination when the coefficients of one variable in the two equations are not easily aligned for direct elimination. This often occurs when the coefficients are not opposites or when they are not easily manipulated to create a zero in one of the variables. By multiplying one or both equations by a suitable value, you can create equal or opposite coefficients, allowing you to eliminate one variable and solve the system more efficiently.
Too complex to show here as a Wiki.Answer hoy pareha ta way i answer.......... pag sure uie.........