From 3de213d8d00e038cc683f098086d836028066473 Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Sat, 2 Mar 2024 15:21:29 +0000 Subject: [PATCH 1/4] GitHub Classroom Feedback --- .github/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/.keep diff --git a/.github/.keep b/.github/.keep new file mode 100644 index 0000000..e69de29 From 9bc4b8e7792d789cd5930d527a457140d681a12a Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Sat, 2 Mar 2024 15:21:29 +0000 Subject: [PATCH 2/4] Setting up GitHub Classroom Feedback From 4f5e8067a285f2f53cc16244e32c28642d3535f3 Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Sat, 2 Mar 2024 15:21:31 +0000 Subject: [PATCH 3/4] add deadline --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3d047dd..1398ceb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-24ddc0f5d75046c5622901739e7c5dd533143b0c8e959d652212380cedb1ea36.svg)](https://classroom.github.com/a/1Btf62fS) ## C++ Assignment: Solving System of Linear Equations ### Objective: From a3d6492efd429223b130c9668f8db2eb3ebc7352 Mon Sep 17 00:00:00 2001 From: Manya Gupta <142630781+manyagupta0209@users.noreply.github.com> Date: Sun, 3 Mar 2024 23:56:51 +0530 Subject: [PATCH 4/4] added code for Gauss Jordan Method --- lineareq.cpp | 80 ++++++++++++++++++++++++++++++++++++++++++++ lineareq_output.png | Bin 0 -> 18856 bytes 2 files changed, 80 insertions(+) create mode 100644 lineareq.cpp create mode 100644 lineareq_output.png diff --git a/lineareq.cpp b/lineareq.cpp new file mode 100644 index 0000000..ce7fe88 --- /dev/null +++ b/lineareq.cpp @@ -0,0 +1,80 @@ +#include +#define SIZE 10 +using namespace std; + +int main() +{ + float a[SIZE][SIZE], x[SIZE], ratio; + int i,j,k,n,c=0; + + /* Setting precision and writing floating point values in fixed-point notation. */ + cout<< setprecision(3)<< fixed; + + /* Inputs */ + /* 1. Reading number of unknowns */ + cout<<"Enter number of unknowns: "; + cin>>n; + + /* 2. Reading Augmented Matrix */ + cout<<"Enter Coefficients of Augmented Matrix: "<< endl; + for(i=0;i