| 
January 28th, 2008, 01:20 AM
| | Member | | Join Date: Jan 2008
Posts: 91
Country: Thanks: 23
Thanked 0 Times in 0 Posts
| | Linear equations and matlab 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
5.9c + 2.6p + a = 2000
c = 2p or c - 2p = 0
am i correct???? if so..how would i put that into matlab??? | 
January 28th, 2008, 01:40 AM
|  | Flow Master | | Join Date: Dec 2007 Location: Zeitgeist
Posts: 12,237
Country: Thanks: 2,574
Thanked 4,761 Times in 4,193 Posts
| | Quote:
Originally Posted by b00yeah05 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. | ..
__________________ There are two things you should never try to prove: the impossible and the obvious. The greater danger for most of us lies not in setting our aim too high and falling short; but in setting our aim too low and achieving our mark. (Michelangelo Buonarroti) To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
| | The following users thank mr fantastic for this useful post: | |  | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -7. The time now is 09:16 PM. | | |
 | |  |