Results 1 to 8 of 8

Thread: Solving equation that should be simple but is not?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    15

    Solving equation that should be simple but is not?

    Hello,

    I have been trying for a long time to solve the following equation with out and luck at all. Please help me.


    M = (D * (x/N)) + (C * x)

    I am trying to solve this for x.


    Thanks


    Dave C

  2. #2
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    M = (D * (x/N)) + (C * x)

    M = x (D/N + C)

    x = MN/(D+CN)

    What is M ? N? C? D ?
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    15
    Thank you very mucholy...

    The function I gave you is used to calculate total cost of a product to charge the customer including delivery..

    Total = (DeliveryCharge * (Units / ChPerUnits)) + (UnitCost + Units)

    ChPerUnits is : Apply delivery charge for every Units Units.

    We are setting max transactions for our merchant so needed to calculate Given a Total how many units of a product could be sold in a single transaction.

    Thanks Again.

    Dave C

  4. #4
    Fanatic Member
    Join Date
    Sep 2000
    Location
    UK.
    Posts
    728

    Question Algebra...

    Originally posted by Active.
    M = (D * (x/N)) + (C * x)
    M = x (D/N + C)
    x = MN/(D+CN)
    This is what i got, without the extra N.
    M = (D * (x/N)) + (C * x)
    M = x (D/N + C)
    x = MN/(D+C)

    I'm not nit-picking Active! Just pointing this out cus the dude says he was using it for customer billing etc, just wanted to clarify it and make sure he got it right.

    Laterz
    Digital-X-Treme
    Contact me on MSN Messenger: [email protected]

    [VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
    / (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    15
    Digital-X-Treme I'm not the expert but I can prove an equation and your version of Active's function does not work.

    For example...
    M = (D * (x/N)) + (C * x)
    1095 = (5 *(30/10))+(36*30)

    So x = 30 (number of units) and the Total M = 1095

    Given Active's formula...

    x = MN/(D+CN)
    =(1095 * 10) / (5 + (36*10)
    = 10950 / 365
    x = 30

    But with your's
    x = MN/(D+C)
    = (1095*10) / (5+36)
    = 10950 / 41
    x (is not)= 267.073170731707317073170731707317


    Thanks all the same but I think I will use Active's one. Perhaps I put you wrong because In my message of thanks to Active I made a typo in the formula.

    > Total = (DeliveryCharge * (Units / ChPerUnits)) + (UnitCost + Units)

    Should have been ...+ (UnitCost * Units)


    Dave C

  6. #6
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209

    Re: Algebra...

    Originally posted by [Digital-X-Treme]
    This is what i got, without the extra N.
    M = (D * (x/N)) + (C * x)
    M = x (D/N + C)
    x = MN/(D+C)

    I'm not nit-picking Active! Just pointing this out cus the dude says he was using it for customer billing etc, just wanted to clarify it and make sure he got it right.

    Laterz
    How will you simplify (D/N) + C ??

    (D/N) + C = (D+CN)/N

    Ok...If you don't get it...Step by step..

    M = (D * (x/N)) + (C * x)

    M = x (D/N + C) 'Taking out common x

    M = x(D+CN)/N

    MN = x(D+CN)

    there fore x = MN/(D+CN)

    Get it ???
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

  7. #7
    Fanatic Member
    Join Date
    Sep 2000
    Location
    UK.
    Posts
    728

    Smile Digital-X bows his head in shame...

    I apologise to Loopfish and Active I made a mistake when i was re-arranging at the following point...

    m = dx/n+cx
    mn = dx+cnx

    ...when multiplying both sides by x here, i forgot to multiply the c term by n, resulting in the missing n from the final answer...

    Laterz
    Digital-X-Treme
    Contact me on MSN Messenger: [email protected]

    [VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
    / (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]

  8. #8
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    To err is human.

    No one is perfect ! so cheer up !
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width