Difference between revisions of "EGR 103/Concept List Fall 2019"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
== Lectures == | == Lectures == | ||
− | + | ||
=== Lecture 1 - Introduction=== | === Lecture 1 - Introduction=== | ||
* Class web page: [http://classes.pratt.duke.edu/EGR103F18/ EGR 103L]; assignments, contact info, readings, etc - see slides on Errata/Notes page | * Class web page: [http://classes.pratt.duke.edu/EGR103F18/ EGR 103L]; assignments, contact info, readings, etc - see slides on Errata/Notes page | ||
Line 10: | Line 10: | ||
* To play with Python: | * To play with Python: | ||
** Install it on your machine or a public machine: [https://www.anaconda.com/download/ Download] | ** Install it on your machine or a public machine: [https://www.anaconda.com/download/ Download] | ||
− | |||
* Quick tour of Python | * Quick tour of Python | ||
** Editing window, variable explorer, and console | ** Editing window, variable explorer, and console | ||
Line 17: | Line 16: | ||
* Hilton and Bracy Seven Steps | * Hilton and Bracy Seven Steps | ||
* Class work developing algorithm for program to determine if a number is prime | * Class work developing algorithm for program to determine if a number is prime | ||
+ | * Inputs in Python using input() command - always grab strings | ||
+ | * Convert strings containing integer characters to integers using int() | ||
+ | * Some commands are only available by importing from modules; <code>import numpy as np</code> will bring in all the functions of the numpy module. Access these commands by typing np.VALUE or np.FUNCTION (for example, np.pi or np.cos(2)) | ||
+ | <!-- | ||
=== Lecture 3 === | === Lecture 3 === | ||
* 7 Steps for finding prime numbers | * 7 Steps for finding prime numbers |
Revision as of 22:13, 11 January 2019
This page will be used to keep track of the commands and major concepts for each lab in EGR 103.
Lectures
Lecture 1 - Introduction
- Class web page: EGR 103L; assignments, contact info, readings, etc - see slides on Errata/Notes page
- Sakai page: Sakai 103L page; grades, surveys and tests, some assignment submissions
- Piazza page: Piazza 103L page; message board for questions
Lecture 2 - Programs and Programming
- To play with Python:
- Install it on your machine or a public machine: Download
- Quick tour of Python
- Editing window, variable explorer, and console
- Variable explorer is your friend
- From Dewey - programming language typically have ability to work with input, output, math, conditional execution, and repetition
- Hilton and Bracy Seven Steps
- Class work developing algorithm for program to determine if a number is prime
- Inputs in Python using input() command - always grab strings
- Convert strings containing integer characters to integers using int()
- Some commands are only available by importing from modules;
import numpy as np
will bring in all the functions of the numpy module. Access these commands by typing np.VALUE or np.FUNCTION (for example, np.pi or np.cos(2))