Tags:
create new tag
view all tags

Course Notes:

PH2150 - Post Exam Python (to be moved onto the PH2150 Moodle page during the summer moodle rol-over)

Read this first Basic Python notes (written for 2.x, to be updated during the summer): ph2150_notes_2016.pdf (25 pages)

The complete guide to Scientific Programming in Python written by the developers: ScipyLectures-simple.pdf, html version here https://scipy-lectures.org/

Post Exam Week:

  1. Introduction
    • Starting python and getting used to the environment
    • Python as a calculator
  2. Functions
    • Use functions already defined in python or python libraries
    • Write your own functions to do something useful
  3. Lists
    • Lists to store data
    • Functions on lists
  4. Control structures
    • Conditionals (==, etc)
    • if, for, while
  5. Arrays
    • Data and mathematical data structures
  6. Plotting
    • Scatter plot
    • Axis labels
  7. Advanced plotting

Post Exam Lectures:

During the course we will be using Jupyter notebooks, that are files that can run code and contain notes. Here I have created a static pdf version of each lecture so that you can easily read the info. To run the Juypter notbook copy the file to your working directory, open Juypter notebooks in Anaconda and navigate to your file. Alternatively you can launch a slide show from the python terminal with the command:

jupyter nbconvert *filename*.ipynb to slides --post serve

Lecture 1 Tues AM: ( Jupyter Notebook) Course Aims, PH2150_2019_Lecture1.ipynb

Lecture 1: Tues AM: (pdf version) Course Aims, PH2150_2019_Lecture1.pdf

Lecture 2: (Jupyter Notebook), Variables, Modules, Control Structures, PH2150_Lecture2.ipynb

Lecture 2: (pdf), Variables, Modules, Control Structures, PH2150_Lecture2.pdf

Lecture 3: (Jupyter Notebook),User Defined Functions, PH2150_Lecture3.ipynb

Lecture 3: (pdf),User Defined Functions, PH2150_Lecture3.pdf

Lecture 4: (Jupyter Notebook) The Numpy Array, PH2150_lecture4.ipynb

Lecture 4: (pdf) The Numpy Array, PH2150_lecture4.pdf

Lecture 5: (Jupyter Notebook), Matplotlib, PH2150_lecture5.ipynb

Lecture 5: (pdf), Matplotlib, PH2150_lecture5.pdf

PH2150 Problem sheets:

PS1: (Due in after the first session in the Autumn term) PH2150-2019-PS1.pdf

PS2: (Due in after 2nd session in the Autumn term) PH2150-2019-PS2.pdf

PS3: (Due in before 3rd session in the Autumn term) PH2150-2019-PS3.pdf

Topic attachments
I Attachment History Action Size Date Who Comment
HTMLhtml Lecture-1-PH2150_Post_Exam_Scietific_Computing_and_Employabilty_Skills.html r1 manage 263.4 K 21 May 2018 - 04:44 AndrewCasey  
Unknown file formatipynb Lecture-1-PH2150_Post_Exam_Scietific_Computing_and_Employabilty_Skills.ipynb r1 manage 14.7 K 21 May 2018 - 03:53 AndrewCasey  
Unknown file formatipynb Lecture-2pm-userdefinedfunction.ipynb r1 manage 15.4 K 22 May 2018 - 01:53 AndrewCasey  
PDFpdf PH2150-2019-PS1.pdf r1 manage 119.3 K 28 May 2019 - 07:17 AndrewCasey  
PDFpdf PH2150-2019-PS2.pdf r1 manage 114.3 K 28 May 2019 - 07:28 AndrewCasey  
PDFpdf PH2150-2019-PS3.pdf r1 manage 61.3 K 28 May 2019 - 07:36 AndrewCasey  
Unknown file formatipynb PH2150_2019_Lecture1.ipynb r1 manage 15.3 K 28 May 2019 - 08:19 AndrewCasey  
PDFpdf PH2150_2019_Lecture1.pdf r1 manage 853.6 K 28 May 2019 - 08:20 AndrewCasey  
Unknown file formatipynb PH2150_Lecture2.ipynb r1 manage 24.6 K 28 May 2019 - 09:25 AndrewCasey  
PDFpdf PH2150_Lecture2.pdf r1 manage 316.6 K 28 May 2019 - 09:27 AndrewCasey  
Unknown file formatipynb PH2150_Lecture3.ipynb r1 manage 22.6 K 28 May 2019 - 19:31 AndrewCasey  
PDFpdf PH2150_Lecture3.pdf r1 manage 203.4 K 28 May 2019 - 19:32 AndrewCasey  
Unknown file formatipynb PH2150_lecture4.ipynb r1 manage 29.6 K 29 May 2019 - 09:55 AndrewCasey  
PDFpdf PH2150_lecture4.pdf r1 manage 209.5 K 29 May 2019 - 09:56 AndrewCasey  
Unknown file formatipynb PH2150_lecture5.ipynb r1 manage 594.2 K 29 May 2019 - 18:16 AndrewCasey  
PDFpdf PH2150_lecture5.pdf r1 manage 338.1 K 29 May 2019 - 18:16 AndrewCasey  
HTMLhtml PostExamPython-Matplotlib_tutorial.html r1 manage 352.4 K 24 May 2018 - 00:02 AndrewCasey  
Unknown file formatipynb PostExamPython-Matplotlib_tutorial.ipynb r1 manage 97.3 K 23 May 2018 - 23:43 AndrewCasey  
PDFpdf ScipyLectures-simple.pdf r1 manage 18314.9 K 21 May 2018 - 03:57 AndrewCasey  
PowerPointpptx lecture2-2018am.pptx r1 manage 479.1 K 22 May 2018 - 01:09 AndrewCasey  
PowerPointpptx lecture4-2018.pptx r1 manage 1129.1 K 23 May 2018 - 07:04 AndrewCasey  
PDFpdf ph2150_notes_2016.pdf r1 manage 377.8 K 21 May 2018 - 03:53 AndrewCasey  
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions

Physics WebpagesRHUL WebpagesCampus Connect • Royal Holloway, University of London, Egham, Surrey TW20 0EX; Tel/Fax +44 (0)1784 434455/437520

Topic revision: r10 - 29 May 2019 - AndrewCasey

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback