Practice Lab
Runnable lab version for web reading.
Normed Spaces - Exercises
8 exercises covering norm axioms, non-norm counterexamples, unit balls, norm equivalence, completeness, operator norms, dual norms, and contraction mappings.
| Format | Description |
|---|---|
| Problem | Markdown cell with task description |
| Your Solution | Runnable scaffold with placeholders |
| Solution | Reference implementation with checks |
Difficulty Levels
| Level | Exercises | Focus |
|---|---|---|
| Easy | 1-3 | Core definitions and geometry |
| Medium | 4-6 | Convergence and operators |
| Hard | 7-8 | Duality and fixed points |
Code cell 2
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Code cell 3
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Exercise 1 (Easy) - Verify Norm Axioms
Check positivity, homogeneity, and triangle inequality for common norms.
Code cell 5
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Code cell 6
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Exercise 2 (Easy) - Find Non-Norm Counterexamples
Show why and quasi-norms fail.
Code cell 8
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Code cell 9
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Exercise 3 (Easy) - Unit Ball Geometry
Interpret , , and unit balls.
Code cell 11
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Code cell 12
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Exercise 4 (Medium) - Norm Equivalence Constants
Verify finite-dimensional norm inequalities.
Code cell 14
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Code cell 15
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Exercise 5 (Medium) - Cauchy and Completeness
Study rational approximations to an irrational limit.
Code cell 17
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Code cell 18
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Exercise 6 (Medium) - Operator Norm
Compute and sample-check a matrix spectral norm.
Code cell 20
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Code cell 21
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Exercise 7 (Hard) - Dual Norms and Holder
Verify dual norm inequalities numerically.
Code cell 23
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Code cell 24
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Exercise 8 (Hard) - Contraction Mapping
Implement a contraction and find its fixed point.
Code cell 26
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Code cell 27
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Exercise 9: Lipschitz Constants Across Norms
Estimate the operator size of a matrix under several vector norms, then explain why the chosen norm changes the certified Lipschitz constant.
Code cell 29
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Code cell 30
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Exercise 10: Contraction Rate in a Complete Normed Space
Iterate an affine contraction and estimate the observed error ratio. Connect the numerical behavior to the Banach fixed-point theorem.
Code cell 32
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.
Code cell 33
Python snippet
Run the code to see stdout, return values, and errors here.
Runs in your browser sandbox. DeepML does not send this code to the server.