Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > Math Resources > Mathematics Software Discussion
Reply
 
Thread Tools Display Modes
  #1  
Old January 28th, 2008, 01:20 AM
Member
 
Join Date: Jan 2008
Posts: 91
Country:
Thanks: 23
Thanked 0 Times in 0 Posts
b00yeah05 is an unknown quantity at this point
Default 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???
Reply With Quote
Advertisement
 
  #2  
Old January 28th, 2008, 01:40 AM
mr fantastic's Avatar
Flow Master

 
Join Date: Dec 2007
Location: Zeitgeist
Posts: 12,237
Country:
Thanks: 2,574
Thanked 4,761 Times in 4,193 Posts
mr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond reputemr fantastic has a reputation beyond repute
Default

Quote:
Originally Posted by b00yeah05 View Post
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.
Reply With Quote
The following users thank mr fantastic for this useful post:
Donate to MHF
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 09:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.