Mathematical Question

This is a discussion on Mathematical Question within the C++ Programming forums, part of the General Programming Boards category; Basically, say we have int A; int B; int C; What I want is... the higher A, the less B ...

  1. #1
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330

    Mathematical Question

    Basically, say we have

    int A;
    int B;
    int C;

    What I want is...

    the higher A, the less B is, but how much less depends on C. So, if C was 100, and A was 1, then B would be 100. But if C was 100, and A was 100, B would be 1 (for all the consecutive numbers)

    Can anyone help?

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    47
    by your explanation, I don't even see how C fits into the equation. From what I read, you just want

    A = 1, B = 100
    A = 2, B = 99
    ....etc.

    How does C fit into that?

  3. #3
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330
    C doesn't = D

    That's basically what I want... The higher A, the less B...

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    194
    Then is this what you want?

    B = 101 - A;

    If A is 1 then B will be 100
    If A is 2 then B will be 99
    etc etc.

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    15
    B is inversely proportional to A. So
    B=C/A.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  2. writing mathematical operations in C
    By p_s_ross in forum C Programming
    Replies: 2
    Last Post: 06-13-2003, 03:04 AM
  3. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 08:22 PM
  4. Question about linked lists.
    By cheeisme123 in forum C++ Programming
    Replies: 6
    Last Post: 02-25-2003, 12:36 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

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