Skip to content

sunilbishnoi1/ICS_EquationSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

ICS_CP_The-coders

##Equation Solver Program in C This program allows solving different types of equations, including a pair of linear equations, quadratic equations, linear equations, and three linear equations in three variables.

##Prerequisites C Compiler: Ensure you have a C compiler installed to compile and run the program. For example, GCC (GNU Compiler Collection) can be used.

##Features Pair of Linear Equations: Determines the solutions or if there are infinitely many/no solutions for the given pair of equations. Quadratic Equation: Computes the roots of the quadratic equation (real, repeated real, or complex). Linear Equation: Finds the solution of a linear equation or identifies if it has no solution or infinite solutions. Three Linear Equations in Three Variables: Solves a system of three linear equations and displays the values of x, y, and z if solutions exist.

Usage

  1. Run the program.
  2. Choose the type of equation you want to solve.
  3. Enter the coefficients or constants when prompted.
  4. Get the solutions for the equations based on your input.

File Input/Output

This program also supports reading equations from a file. Use the following format in the file:

  • For quadratic equations: quadratic ax^2+bx+c=0
  • For single-variable linear equations: linear_one_variable ax+b=0
  • For two-variable linear equations: linear_two_variable ax+by+c=0 dx+ey+f=0

##Select Equation Type: Follow the on-screen instructions to select the type of equation you want to solve and input the required coefficients or values.

##Exit the Program: To exit the program, select option 5 when prompted.

##Usage Instructions: Pair of Linear Equations (a1x + b1y + c1 = 0 and a2x + b2y + c2 = 0): Input coefficients a1, b1, c1, a2, b2, c2 for the two equations.

Quadratic Equation (ax^2 + bx + c = 0): Enter coefficients a, b, c for the quadratic equation.

Linear Equation (ax + b = 0): Input the coefficient 'a' and constant term 'b' for the linear equation.

Three Linear Equations in Three Variables: Provide coefficients in the form of a 3x3 matrix and constants as a 3x1 matrix.

##Program Flow The program presents a menu to choose the type of equation to solve. It prompts for input based on the selected equation type and provides solutions or specific messages depending on the input.

Contributors

  • [MAYANK DAHIYA]
  • [SHARAN]
  • [ARMAN]
  • [SUNIL BISHNOI]

About

my first project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages