Linear equations

This is a discussion on Linear equations within the C Programming forums, part of the General Programming Boards category; Just one more question........nearly working now. Is there a way to stop the user from entering values that do not ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    4

    Smile Linear equations

    Just one more question........nearly working now. Is there a way to stop the user from entering values that do not have a root?

  2. #2
    Black Mage Extraordinaire VegasSte's Avatar
    Join Date
    Oct 2002
    Posts
    167
    Why don't you test the input value to see if it produces a root after it has been input, and tell the user whether the number is valid or not?

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. LINEAR EQUATIONS please help
    By apple_ranger in forum C Programming
    Replies: 18
    Last Post: 09-08-2008, 05:49 AM
  4. Simultaneous linear Equations
    By dvd4alll in forum C# Programming
    Replies: 8
    Last Post: 02-08-2008, 06:11 PM
  5. Solving linear equations
    By PJYelton in forum C++ Programming
    Replies: 1
    Last Post: 12-05-2002, 05:00 PM

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