..An orange juice company wants to make 1000 litres of new fruit juice blend out of three types of juice: cranberry, pear and apple juice. the three types of juice can be bought sperately from wholesalers at the following prices: cranberry juice cost $5.90 per litre, pear juice costs $2.60 a litre, apple juice $1.00 per litre. The company wants to spend a total of $2000 in purchasing the three types of juice. The only other constraint is that there must be twice as much pear juice as there is cranberry juice in the final blend, since cranberry juice is quite sour.
(a) Write thse constraints as a sytem of linear equations....
(b) use matlab to solve the system of linear equations
so far i have the constraints which i think are correct....they are:
c + p + a = 1000 Mr F says: Good.
5.9c + 2.6p + a = 2000 Mr F says: Good.
c = 2p or c - 2p = 0 Mr F says: Almost good. Unfortunately, it says there's twice as much cranberry as there is pear (if p = 60, c = 120, for example. See?). You want it the other way around, chum ...... You want p = 2c.
am i correct???? Mr F says: Well, now you know.
if so..how would i put that into matlab??? Mr F says: Well, I can't help you there. I still use an abacus. But when you figure it out, at least I've saved you from 'garbage in, garbage out' syndrome.