Challenge: Solving the Task Using SLE
Uppgift
Swipe to start coding
We have already considered how to solve the SLE using inversed matrix. But we can also use np.linalg.solve(A, y)
method that calculates the solution of the SLE:
A * x = y
.
Your task is to solve the system using both these methods and compare the results:
- Use
np.linalg.solve()
method. - Use
np.inv()
method to calculate inversed matrix and provide solution using:x = A_inv @ y
.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 8
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 4.76
Challenge: Solving the Task Using SLE
Svep för att visa menyn
Uppgift
Swipe to start coding
We have already considered how to solve the SLE using inversed matrix. But we can also use np.linalg.solve(A, y)
method that calculates the solution of the SLE:
A * x = y
.
Your task is to solve the system using both these methods and compare the results:
- Use
np.linalg.solve()
method. - Use
np.inv()
method to calculate inversed matrix and provide solution using:x = A_inv @ y
.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Awesome!
Completion rate improved to 4.76Avsnitt 2. Kapitel 8
single