Quiz: Solve ODEs with Python
Main.PythonQuiz16 History
Hide minor edits - Show changes to markup
(:title Quiz: Solve ODEs with Python:) (:keywords quiz, test, Python, plot, differential, equation, introduction, course:) (:description Learning assessment on solving differential equations with Python.:)
1. The ODEINT function requires a user defined function that includes time (t) and the current system states (y). What is the correct definition of the function named myFunction?
(:div id=q1a:)
- Incorrect.
(:divend:)
(:div id=q1b:)
- Incorrect.
(:divend:)
(:div id=q1c:)
- Correct.
(:divend:)
(:div id=q1d:)
- Incorrect.
(:divend:)
2. The current time (t) and system states (y) are required as arguments to a custom function for ODEINT in Python. What is returned from the custom function? See ODEINT tutorials for additional help.
(:div id=q2a:)
- Incorrect. The function returns the derivatives at the current time and state values, not the solution.
(:divend:)
(:div id=q2b:)
- Correct. The user-defined function returns the derivatives at the requested time and state values.
(:divend:)
(:div id=q2c:)
- Incorrect. Those are the inputs to the function.
(:divend:)
3. ODEINT can simultaneously solve coupled differential equations?
(:div id=q3a:)
- Correct. ODEINT can solve many coupled differential equations, but solution time increases more with >1000 equations.
(:divend:)
(:div id=q3b:)
- Incorrect. Numerical solutions are often possible with many coupled differential equations.
(:divend:)