Python functions
Use these questions as a learning tool. Treat them like a quiz. Answer in your mind, and using the tool, and writing them down. Make it stick!
- Quiz yourself
- How much can you remember without this list (below)?
- What is missing from this list?
- Don’t just go through the posted notes to answer this. First, recall everything you can, and try it out. Then review notes to recall what you missed.
- Develop the “muscle memory” of using the tool
- How is a simple array created, assigned, and indexed?
- What about a matrix?
- Why use np.array to create arrays?
- How is accessing array elements for matrices different for numpy and regular Python?
- What is the boilerplate for numpy (how to import and use numpy?)
- What is the name of the function for solving a linear system of equations?
- How to take the matrix-vector or matrix-matrix multiplication? There were two ways.
- What is the name of the function for solving nonlinear equations?
- What is the boilerplate for accessing this function?
- How do you use this function?
- When solving multiple nonlinear equations, what is the function style we used?