Results 1 to 2 of 2

Math Help - Linear equations and matlab

  1. #1
    Member
    Joined
    Jan 2008
    Posts
    91

    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???
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Flow Master
    mr fantastic's Avatar
    Joined
    Dec 2007
    From
    Zeitgeist
    Posts
    16,948
    Thanks
    5
    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.
    ..
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. MatLab: Non-linear differential equations
    Posted in the Math Software Forum
    Replies: 3
    Last Post: June 30th 2010, 03:47 AM
  2. linear equations in matlab
    Posted in the Math Software Forum
    Replies: 8
    Last Post: December 7th 2009, 10:32 AM
  3. Matlab and linear algebra
    Posted in the Math Software Forum
    Replies: 0
    Last Post: April 22nd 2009, 11:13 PM
  4. Replies: 3
    Last Post: February 27th 2009, 07:05 PM
  5. MATLAB linear programming
    Posted in the Math Software Forum
    Replies: 0
    Last Post: January 31st 2009, 02:02 PM

Search Tags


/mathhelpforum @mathhelpforum