LINEAR EQUATIONS please help

This is a discussion on LINEAR EQUATIONS please help within the C Programming forums, part of the General Programming Boards category; ok i've composed the code using the method of elimination, and i have successfully worked out the value of and ...

  1. #16
    Registered User
    Join Date
    Sep 2008
    Posts
    10
    ok i've composed the code using the method of elimination, and i have successfully worked out the value of and X and Y in ax+by= c1 and dx+ey=c2.
    but there is one more thing i need to ask, my code only shows the answer if the equations have a unique solution. BUT how do i tell the user if the equations has a infinite number of solutions or NO solutions at all?

  2. #17
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Well, how do YOU know if the equations have an infinite number of solutions, or no solutions at all?

  3. #18
    Registered User
    Join Date
    Sep 2008
    Posts
    10
    Quote Originally Posted by tabstop View Post
    Well, how do YOU know if the equations have an infinite number of solutions, or no solutions at all?
    well i know that if the equations are incosistent then it has no solutions , and if the equations are linearly dependent then it has infinitely many solutions. BUT how do i show that in my C program

  4. #19
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by apple_ranger View Post
    well i know that if the equations are incosistent then it has no solutions , and if the equations are linearly dependent then it has infinitely many solutions. BUT how do i show that in my C program
    Yes, but how do YOU know that the equations are inconsistent? (They don't say "inconsistent" on them -- how do you figure out they're inconsistent? That logic is what needs to go in the program.)

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Read coefficients of linear equations from file into 2d array
    By omaralqady in forum C++ Programming
    Replies: 6
    Last Post: 06-20-2009, 07:39 AM
  2. solution to a linear system of equations
    By e4321 in forum C++ Programming
    Replies: 4
    Last Post: 01-15-2009, 08:00 PM
  3. Simultaneous linear Equations
    By dvd4alll in forum C# Programming
    Replies: 8
    Last Post: 02-08-2008, 06:11 PM
  4. Solving linear equations
    By PJYelton in forum C++ Programming
    Replies: 1
    Last Post: 12-05-2002, 05:00 PM
  5. Linear equations
    By amandad40 in forum C Programming
    Replies: 1
    Last Post: 10-29-2002, 03:54 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21