C Program to find the determinant of a Matrix

C Program to find the determinant of a Matrix  Size id Define By User#include#include int a[20][20],m;int determinant(int f[20][20],int a);int main(){  clrscr();  int i,j;  printf(“———————————————————————-\n”);  printf(“—————–CODE BY PROGRAMMING SEEKERZZ ————————\n”);  printf(“———————————————————————-\n”);  printf(“\n\nEnter order of matrix : “);  scanf(“%d”,&m);  printf(“\nEnter the elements of matrix\n”);  for(i=1;i<=m;i++)  {  for(j=1;j<=m;j++)  {  printf(“a[%d][%d] = “,i,j);  scanf(“%d”,&a[i][j]);  }  }  printf(“\n\n———- Matrix AContinue reading “C Program to find the determinant of a Matrix”

Augmented Matrix Solution By reducing it to Row Echelon Form in Java

Augmented Matrix Solution By reducing it to Row Echelon Form And then Calculate the result by backward substitution (Code in Java) package echolon;import java.util.Scanner;/** * * @author usman */public class Echolon {     Scanner usman=new Scanner(System.in);    int i,j,k,n,a;    float [][] A=new float[20][20];    float  sum;    float c;    float [] x=new float[10];        public  Echolon(){ Continue reading “Augmented Matrix Solution By reducing it to Row Echelon Form in Java”

Augmented Matrix Solution By reducing it to Row Echelon Form in C++

Augmented Matrix Solution By reducing it to Row Echelon Form And then Calculate the result by backward substitution  (Code In C++)….#include#includeclass row{    int i,j,k,n,a;    float A[20][20],c,x[10],sum;    public:    row(){    sum=0.0;    cout<<"\nEnter the order of matrix: ";    cin>>n;    a=n;    cout<<"\nEnter the elements of augmented matrix row-wise:\n\n";    for(i=1;Continue reading “Augmented Matrix Solution By reducing it to Row Echelon Form in C++”

GPA Calculator in JAVA

package usman1;import java.util.Scanner;public class Usman1 {public static void main (String args[]){   String grade = “”;  double credit1;  double credit2;  double credit3;  double credit4;  double gradeValue=0;  double totPtsClass1=0;  double totPtsClass2=0;  double totPtsClass3=0;  double totPtsClass4=0;  double totPts=0;  double totalCredits= 0;  double gpa;   Scanner console = new Scanner (System.in);  System.out.println(“Please enter the number of credits ofContinue reading “GPA Calculator in JAVA”

Transpose Of A Matrix in C++

#include#includevoid main(){clrscr();int a[10][10];int b[10][10];int row=0,col=0,i,j;cout<<"\n Enter No of Rows And Colomn: ";cin>>row>>col;cout<<"\n Enter the values in matrix: (row by row) ";for(i=1;i<=row;i++){for(j=1;j<=col;j++){cin>>a[i][j];}}for(i=1;i<=row;i++){cout<<endl;for(j=1;j<=col;j++){cout<<a[i][j]<<"  \t";}}for(i=1;i<=col;i++){for(j=1;j<=row;j++){b[j][i]=a[i][j];} }cout<<endl;cout<<"\n Transpose Of The Matrix You Enter:-\n";for(i=1;i<=row;i++){cout<<endl;for(int j=1;j<=col;j++){cout<<b[i][j]<<"  \t";}}getch();      } Another Screen Short of Code in C.

Scientific Calculator in C++

#include#include#includeint main (){clrscr();float a,b,PI;int c;cout<<endl;cout<<"******************************* Calculator *************************************\n";cout<<"================================================================================\n";cout<<"Operations\t"<<"\tTrigonometric Functions"<<"\t\tLogarithmic Functions\n";cout<<"================================================================================\n";cout<<"1: Division\t\t"<<"7: Sin\t\t"<<"\t\t13: Log"<<endl;cout<<endl;cout<<"2: Multiplication\t"<<"8: Cos\t\t"<<"\t\t14: Log with base 10"<<endl;cout<<endl;cout<<"3: Subtraction\t\t"<<"9: Tan\t\t"<<endl;cout<<endl;cout<<"4: Addition\t\t"<<"10: Inverse of Sin"<<endl;cout<<endl;cout<<"5: Exponent\t\t"<<"11: Inverse of Cos"<<endl;cout<<endl;cout<<"6: Square root\t\t"<<"12: Inverse of Tan"<<endl;cout<<endl;cout<<"Enter the function that you want to perform : ";cin>>c;cout<<endl;PI=3.14159265;switch(c){case 1:cout<<"Enter 1st number : ";cin>>a;cout<<endl;cout<<"Enter 2nd number : ";cin>>b;cout<<endl;cout<<"Division = "<<a/b<<endl;break;case 2:cout<<"Enter 1stContinue reading “Scientific Calculator in C++”

Linear Algebra toolkit

This Linear Algebra Toolkit is composed of the modules listed below. Each module is designed to help a linear algebra student learn and practice a basic linear algebra procedure, such as Gauss-Jordan reduction, calculating the determinant, or checking for linear independence.===================================================== One of the most Important Tool used for solving Matrix and Matrix operations: “Matrix Calculator”Continue reading “Linear Algebra toolkit”

C Program to find the Inverse of the Matrix

#include #include float detrminant(float[][], float); void cofactors(float[][], float); void trans(float[][], float[][], float); void main() { float a[25][25], n, d; int i, j; printf(“Enter the order of the matrix:\n”); scanf(“%f”, &n); printf(“Enter the elemnts into the matrix:\n”); for (i = 0; i < n; i++) { for (j = 0; j < n; j++) { scanf("%f",Continue reading “C Program to find the Inverse of the Matrix”

How to add two matrix (size is define by user)

#include int main(){int l,m,z,n;int matrixA[10][10];int matrixB[10][10];int matrixC[10][10]; cout<<"enter the dimension of the first matrix"<<endl;cin>>l>>m;cout<<"enter the dimension of the second matrix"<<endl;cin>>z>>n;if(m!=z||z!=m){cout<<"error in the multiblication enter new dimensions"<<endl;cout<<"enter the dimension of the first matrix"<<endl;cin>>l>>m;cout<<"enter the dimension of the second matrix"<<endl;cin>>z>>n;} else{cout<<"enter the first matrix"<<endl;for(int i=0;i<l;i++){for(int j=0;j<m;j++){     cin>>matrixA[i][j];     }     }cout<<"enter the second matrix"<<endl;for(int i=0;i<z;i++){for(int j=0;j<n;j++){ Continue reading “How to add two matrix (size is define by user)”