Answered step by step
Verified Expert Solution
Question
1 Approved Answer
language - Python Bob, Daniela, and Luke are shopping for fruit at a store that only sells fruit bowis. A fruit bowl contains sone fruit
language - Python
Bob, Daniela, and Luke are shopping for fruit at a store that only sells fruit bowis. A fruit bowl contains sone fruit and the price of a fruit bowl is the total price of all of its individual fruit. The store has mangos for $1.00, strawberries ($3.00, and apricots ($5.00. The price of each of these can be written in a vector: $$ \vec(v) - \begin(matrix) 1 3 5W \endbatrix) 35 The store sells the follow follow the fruit bowls #1: 4 of each fruit #2: 1 mangos and 3 apricots #3: 4 strawberries and 2 apricots #4: 12 apricots Question 20 Let's suppose the store changes their fruit prices, but you don't know what they changed their prices fo Bob, Daniela, and Luke buy the same quantity of fruit baskets and the number of fruit in each basket is the same, but now they each spent these amounts: 40 100 120 Use np. linalg, inv and the above final costs to compute the new prices for the individual fruits Complete the followin, block of code: In : def new_price(A, B, x): # Finish this! new VE+ return new_y Bob, Daniela, and Luke are shopping for fruit at a store that only sells fruit bowis. A fruit bowl contains sone fruit and the price of a fruit bowl is the total price of all of its individual fruit. The store has mangos for $1.00, strawberries ($3.00, and apricots ($5.00. The price of each of these can be written in a vector: $$ \vec(v) - \begin(matrix) 1 3 5W \endbatrix) 35 The store sells the follow follow the fruit bowls #1: 4 of each fruit #2: 1 mangos and 3 apricots #3: 4 strawberries and 2 apricots #4: 12 apricots Question 20 Let's suppose the store changes their fruit prices, but you don't know what they changed their prices fo Bob, Daniela, and Luke buy the same quantity of fruit baskets and the number of fruit in each basket is the same, but now they each spent these amounts: 40 100 120 Use np. linalg, inv and the above final costs to compute the new prices for the individual fruits Complete the followin, block of code: In : def new_price(A, B, x): # Finish this! new VE+ return new_y
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started