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
Printable View
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
M = (D * (x/N)) + (C * x)
M = x (D/N + C)
x = MN/(D+CN)
What is M ? N? C? D ?
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
This is what i got, without the extra N.Quote:
Originally posted by Active.
M = (D * (x/N)) + (C * x)
M = x (D/N + C)
x = MN/(D+CN)
M = (D * (x/N)) + (C * x)
M = x (D/N + C)
x = MN/(D+C)
I'm not nit-picking Active! :rolleyes: 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 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
How will you simplify (D/N) + C ??Quote:
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! :rolleyes: 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
(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 ???
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...:rolleyes::p
Laterz
To err is human. ;)
No one is perfect ! so cheer up ! :D