Sezione 2. Capitolo 8
single
Challenge: Solving the Task Using SLE
Scorri per mostrare il menu
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 8
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione