Guide
Component guide
A live reference and regression test for lesson-authoring components.
Motivation
A vector is an element of a vector space. Its norm is and its SVD is
Sample text for checking the serif reading font, with bold, italic, and inline code. A broken reference m42.nada.
Proof
By induction on dimension . The case is trivial.
∎Key idea
Every linear transformation is a rotation, a stretch, and another rotation.
Code
import numpy as np
print(np.eye(2))
import numpy as np
A = np.array([[2.0, 1.0], [1.0, 3.0]])
w, V = np.linalg.eigh(A)
print("eigenvalues:", w)
A @ Vimport matplotlib.pyplot as plt
t = np.linspace(0, 2*np.pi, 200)
plt.plot(np.cos(t), np.sin(t), label="circle")
plt.plot(*(A @ np.vstack([np.cos(t), np.sin(t)])), label="A · circle")
plt.axis("equal"); plt.legend(); plt.title("Image of the unit circle")
plt.show()import torch
torch.cuda.is_available()This cell needs the local lab (PyTorch with your GPU). Start it with
npm run lab and open the connection link.Definition of the Euclidean norm.
1/3
What is the rank of ?
Calculate .
Implement
norma(x) to return the Euclidean norm without using np.linalg.norm.def norma(x):
# your code here
passShift+Enter to run
Prove: If is symmetric, .
0
Let and .
Step 1 of 3. What do we know about a scalar?
| Method | Cost | Stable |
|---|---|---|
| LU | with pivoting | |
| QR | yes |