Problem 2) a) Write a function to factorize a matrix A into A=LU with Doolitle's method (not use the existed command in Matlab or Python), use your function to solve the next problem. b) An electrical engineer supervises the production of three types of electrical components. Three kinds of material-metal,plastic, and rubber-are required for production. The amounts needed to produce each component are: Component 1 2 3 Metal, g/component 15 17 19 Plastic, g/component 0.30 0.40 0.55 Rubber, g/component 1.0 1.2 1.5 If totals of 3.89, 0.095, and 0.282 kg of metal, plastic, and rubber, respectively, are available each day, how many components can produced per day? (The following must be displayed: Matrix L, the solution of the system Ly = B, Matrix U, the solution of the system Ux = y).
a) Write a function to factorize a matrix A into A=LU with Doolitle’s method(not use the
existed command in Matlab or Python), use your function to solve the next problem.
b) An electrical engineer supervises the production of three types of electrical components.
Three kinds of material—metal,plastic, and rubber—are required for production. The
amounts needed to produce each component are:
Component
Metal,
g/component
Plastic,
g/component
Rubber,
g/component
1 15 0.30 1.0
2 17 0.40 1.2
3 19 0.55 1.5
If totals of 3.89, 0.095, and 0.282 kg of metal, plastic, and rubber, respectively, are available
each day, how many components can be produced per day?(The following results must be
displayed: Matrix L, the solution of the system Ly = B, Matrix U, the solution of the
system Ux = y).
Given That :
component | Metal | plastic | Rubber |
1 | 15 | 0.30 | 1 |
2 | 17 | 0.40 | 1.2 |
3 | 19 | 0.55 | 1.5 |
Total | 3.89 | 0.095 | 0.282 |
To find:
a)
Function to factorize a matrix A into A=LU with Doolitle’s method and
b)
Find the number of components per day
Step by step
Solved in 2 steps