24.3: Practice Nutrition
- Page ID
- 68247
Big Annie’s Mac and Cheese fans want to improve the levels of protein and fiber for lunch by adding broccoli and canned chicken. The nutrition information for the foods in this problem are
Nutrient | Mac and Cheese | Broccoli | Chicken | Shells and White Cheddar |
---|---|---|---|---|
Calories | 270 | 51 | 70 | 260 |
Protein (g) | 10 | 5.4 | 15 | 9 |
Fiber (g) | 2 | 5.2 | 0 | 5 |
She wants to achieve the goals with exactly 400 calories, 30 g of protein, and 10 g of fiber by choosing the combination of these three or four serving. (Assume that we can have non-integer proportions for each serving.)
We consider all four choices of food together. Formulate the problem into a system of equations \(Ax=b\). Create your matrix \(A\) and the column vector \(b\) in np.matrix
.
In this and next question, we only consider three out of the four choices. What proportions of these servings of the three food (Mac and Cheese, Broccoli, and Chicken) should be used to meet the goal? (Hint: formulate it as a system of equations and solve it).
She found that there was too much broccoli in the proportions from part (b), so she decided to switch from classical Mac and Cheese to Annie’s Whole Wheat Shells and White Cheddar. What proportions of servings of the new three food should she use to meet the goals?
Based on the solutions to parts (b) and (c), what are the possible proportions of serving for the four food that meet the goal.
Solve the system of equations from part (a). You need to first decide the three outcomes: One solution, None solution, Infinite many solutions. Then for One solution, write down the solution; for Infinite many solutions, write down all the solutions with free variables.