Hockey Net with SCoRE written over it

Computer Code

This lesson discusses coding practices that are employed when writing computer code in SCoRE. It then describes the code structure used in the master file for each example included in SCoRE. The information presented in this lesson is encountered in every SCoRE class where equations are solved using either Matlab or Python.

Learning Outcomes

After completing this supplemental lesson you should…

  1. Understand that the execution speed and size of computer code presented in SCoRE could often be improved because it is written to be easy to understand.
  2. Appreciate the difference between global constants and global variables as implemented in SCoRE code.
  3. Be able to use global variables to make quantities available to a function when they cannot be passed to it as arguments.
  4. Understand the code structure used in SCoRE and realize that you can structure your code differently if you wish.

Preparation

Computer Code Lesson


This website is licensed under the Creative Commons Attribution-Non-Commercial-NoDerivatives 4.0 International License (CC BY-NC-ND 4.0).