|
-
Apr 30th, 2001, 09:26 PM
#1
Thread Starter
New Member
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
-
Apr 30th, 2001, 11:23 PM
#2
Addicted Member
M = (D * (x/N)) + (C * x)
M = x (D/N + C)
x = MN/(D+CN)
What is M ? N? C? D ?
-
Apr 30th, 2001, 11:32 PM
#3
Thread Starter
New Member
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
-
May 2nd, 2001, 10:08 AM
#4
Fanatic Member
Algebra...
Originally posted by Active.
M = (D * (x/N)) + (C * x)
M = x (D/N + C)
x = MN/(D+C N)
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]
-
May 2nd, 2001, 02:45 PM
#5
Thread Starter
New Member
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
-
May 2nd, 2001, 10:21 PM
#6
Addicted Member
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 ???
-
May 4th, 2001, 10:44 AM
#7
Fanatic Member
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]
-
May 4th, 2001, 08:49 PM
#8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|