MAS212 Scientific Computing and Simulation

Similar documents
School of Innovative Technologies and Engineering

Foothill College Summer 2016

TIMSS ADVANCED 2015 USER GUIDE FOR THE INTERNATIONAL DATABASE. Pierre Foy

D Road Maps 6. A Guide to Learning System Dynamics. System Dynamics in Education Project

Foothill College Fall 2014 Math My Way Math 230/235 MTWThF 10:00-11:50 (click on Math My Way tab) Math My Way Instructors:

Generative models and adversarial training

Class Meeting Time and Place: Section 3: MTWF10:00-10:50 TILT 221

Python Machine Learning

GACE Computer Science Assessment Test at a Glance

Green Belt Curriculum (This workshop can also be conducted on-site, subject to price change and number of participants)

DOCTORAL SCHOOL TRAINING AND DEVELOPMENT PROGRAMME

PowerTeacher Gradebook User Guide PowerSchool Student Information System

Using SAM Central With iread

Course Content Concepts

Computer Science 1015F ~ 2016 ~ Notes to Students

Course Syllabus for Math

Software Maintenance

Ansys Tutorial Random Vibration

Mathematics subject curriculum

ME 443/643 Design Techniques in Mechanical Engineering. Lecture 1: Introduction

English. 1 of 18. Year: Year 10. Mrs Jamila / Mr Zaman

On the Combined Behavior of Autonomous Resource Management Agents

Radius STEM Readiness TM

MAT 122 Intermediate Algebra Syllabus Summer 2016

Intel-powered Classmate PC. SMART Response* Training Foils. Version 2.0

CS 101 Computer Science I Fall Instructor Muller. Syllabus

CS 1103 Computer Science I Honors. Fall Instructor Muller. Syllabus

EDIT 576 DL1 (2 credits) Mobile Learning and Applications Fall Semester 2014 August 25 October 12, 2014 Fully Online Course

Essentials of Rapid elearning (REL) Design

BRAZOSPORT COLLEGE LAKE JACKSON, TEXAS SYLLABUS. POFI 1301: COMPUTER APPLICATIONS I (File Management/PowerPoint/Word/Excel)

Physics 270: Experimental Physics

SECTION 12 E-Learning (CBT) Delivery Module

Control Tutorials for MATLAB and Simulink

Houghton Mifflin Online Assessment System Walkthrough Guide

Learning Microsoft Publisher , (Weixel et al)

EDIT 576 (2 credits) Mobile Learning and Applications Fall Semester 2015 August 31 October 18, 2015 Fully Online Course

Page 1 of 8 REQUIRED MATERIALS:

Grade 6: Correlated to AGS Basic Math Skills

Spring 2015 IET4451 Systems Simulation Course Syllabus for Traditional, Hybrid, and Online Classes

CREATING SHARABLE LEARNING OBJECTS FROM EXISTING DIGITAL COURSE CONTENT

Algebra 1, Quarter 3, Unit 3.1. Line of Best Fit. Overview

Math 098 Intermediate Algebra Spring 2018

Science Olympiad Competition Model This! Event Guidelines

EDCI 699 Statistics: Content, Process, Application COURSE SYLLABUS: SPRING 2016

Degree Audit Self-Service For Students 1

CHANCERY SMS 5.0 STUDENT SCHEDULING

Big Ideas Math Grade 6 Answer Key

Application of Virtual Instruments (VIs) for an enhanced learning environment

Android App Development for Beginners

ITSC 1301 Introduction to Computers Course Syllabus

CSCI 333 Java Language Programming Fall 2017 INSTRUCTOR INFORMATION COURSE INFORMATION

Computer Organization I (Tietokoneen toiminta)

Text: envisionmath by Scott Foresman Addison Wesley. Course Description

Computer Science. Embedded systems today. Microcontroller MCR

Cambridge NATIONALS. Creative imedia Level 1/2. UNIT R081 - Pre-Production Skills DELIVERY GUIDE

Preferences...3 Basic Calculator...5 Math/Graphing Tools...5 Help...6 Run System Check...6 Sign Out...8

UNIT ONE Tools of Algebra

EECS 571 PRINCIPLES OF REAL-TIME COMPUTING Fall 10. Instructor: Kang G. Shin, 4605 CSE, ;

ACADEMIC TECHNOLOGY SUPPORT

Pearson Grade 8 Practice And Homework

Adult Degree Program. MyWPclasses (Moodle) Guide

TeacherPlus Gradebook HTML5 Guide LEARN OUR SOFTWARE STEP BY STEP

Math-U-See Correlation with the Common Core State Standards for Mathematical Content for Third Grade

ENME 605 Advanced Control Systems, Fall 2015 Department of Mechanical Engineering

Appendix L: Online Testing Highlights and Script

Research computing Results

Design and Creation of Games GAME

EECS 700: Computer Modeling, Simulation, and Visualization Fall 2014

DIGITAL GAMING & INTERACTIVE MEDIA BACHELOR S DEGREE. Junior Year. Summer (Bridge Quarter) Fall Winter Spring GAME Credits.

The Creation and Significance of Study Resources intheformofvideos

Physical Versus Virtual Manipulatives Mathematics

Guide to Teaching Computer Science

Pre-Algebra A. Syllabus. Course Overview. Course Goals. General Skills. Credit Value

Office of Planning and Budgets. Provost Market for Fiscal Year Resource Guide

The role of virtual laboratories in education

Uncertainty concepts, types, sources

Mathematics. Mathematics

Moodle 2 Assignments. LATTC Faculty Technology Training Tutorial

Rover Races Grades: 3-5 Prep Time: ~45 Minutes Lesson Time: ~105 minutes

Planning for Preassessment. Kathy Paul Johnston CSD Johnston, Iowa

16.1 Lesson: Putting it into practice - isikhnas

M55205-Mastering Microsoft Project 2016

Please read this entire syllabus, keep it as reference and is subject to change by the instructor.

MATH 108 Intermediate Algebra (online) 4 Credits Fall 2008

Bluetooth mlearning Applications for the Classroom of the Future

InCAS. Interactive Computerised Assessment. System

INTERMEDIATE ALGEBRA PRODUCT GUIDE

AGS THE GREAT REVIEW GAME FOR PRE-ALGEBRA (CD) CORRELATED TO CALIFORNIA CONTENT STANDARDS

WiggleWorks Software Manual PDF0049 (PDF) Houghton Mifflin Harcourt Publishing Company

Creating an Online Test. **This document was revised for the use of Plano ISD teachers and staff.

Bittinger, M. L., Ellenbogen, D. J., & Johnson, B. L. (2012). Prealgebra (6th ed.). Boston, MA: Addison-Wesley.

Content Teaching Methods: Social Studies. Dr. Melinda Butler

Moodle Student User Guide

Quick Reference for itslearning

Milady Standard Cosmetology

LEGO MINDSTORMS Education EV3 Coding Activities

Page 1 of 11. Curriculum Map: Grade 4 Math Course: Math 4 Sub-topic: General. Grade(s): None specified

EGRHS Course Fair. Science & Math AP & IB Courses

i>clicker Setup Training Documentation This document explains the process of integrating your i>clicker software with your Moodle course.

GEOG Introduction to GIS - Fall 2015

Transcription:

MAS212 Scientific Computing and Simulation Dr. Sam Dolan School of Mathematics and Statistics, University of Sheffield Autumn 2018 http://sam-dolan.staff.shef.ac.uk/mas212/ G18 Hicks Building s.dolan@sheffield.ac.uk

MAS212 Scientific Computing and Simulation Example: The Barnsley Fern. Generated by repeated iteration of affine transformations of the form ( ) ( ) ( ) ( ) x a b x e +. y c d y f

Course Summary (2018) 10 credit module in first semester. 10 lectures + 10 lab classes + 10 office hours Assessment: 3 assignments (90%) + 2 class tests (10%) Course website: http://sam-dolan.staff.shef.ac.uk/mas212 Pre-requisite: MAS115. Not a soft option.

Module description Aims To further develop the students programming skill in the context of scientific computing; To further develop the students independent investigation skills; To introduce the knowledge of scientific computing; To further develop the skills of data analysis. Outcomes To be able to use Python to investigate mathematical problems numerically. To learn basic numerical methods for solving ordinary differential equations and linear algebraic equations. To be able to implement basic numerical methods using Python. To be able to analyse the basic properties of the methods.

Syllabus Week 1: The Python language. Revision: variables; data types; arithmetic; list construction, comprehension, indexing, slicing & manipulation; for & while loops; control flow (if-elif-else; strings; string formatting. Introduction to Jupyter Notebook: Tab completion, getting help and %magic commands (e.g. %timeit). Week 2: Functions. Modules & scripts. Built-in modules (math, cmath, random, decimal, datetime, io, os). Simple file I/O and string processing. Debugging and testing. Workflow. Week 3: Introduction to numpy. Arrays (initialization, slicing). Basic linear algebra. Efficiency. Introduction to matplotlib. Simple plotting. Examples: (1) Estimating π by Monte Carlo integration; (2) the logistic map. Week 4: Introduction to scipy. Solving differential equations with odeint. Initial conditions. Time-domain plots. Phase plots. Critical points and limit cycles. Examples: (1) Logistic equation; (2) Damped harmonic oscillator; (3) van der Pol oscillator; (4) Predator-prey equations.

Syllabus Week 5: Animation with matplotlib.animation.funcanimation. Saving an animation. Examples: (1) The logistic map (again); (2) Driven damped oscillator and resonance. Week 6: Elementary numerical methods: Runge-Kutta and Adams-Bashforth methods. Implementation for initial value problems. Week 7: Error, order and stability of numerical methods. Week 8: Fitting models to data. scipy.optimize.curve fit. Least-squares method and linear algebra. Week 9: Linear algebra. Gaussian elimination; iterative methods; convergence; condition number. Week 10: Plotting in 3D and visualisation. Data analysis with pandas. Other languages.

Books There are many books on Python, and on scientific computing. I recommend: Learning Scientific Programming with Python, Christian Hill (Cambridge University Press, 2015). ISBN 978-1-107-42822-5. Copies available in Information Commons

Assessment guide: Assignments Three assignments (90%): Set Due(*) (1) Assignment #1 Week 1 Week 4 (2) Assignment #2 Week 4 Week 8 (3) Assignment #3 Week 8 Week 12 (*) All dates provisional. In Assignment #1 you will submit one.py file In Assignment #2 you will submit code and write a report in LaTeX. In Assignment #3 you will submit code and a presentation.

Assessment guide: Class tests Two open-book class tests: each 5% of module mark. Held in lab class in Weeks 2 and 11. Intended as formative assessment (to improve skills). Test will use Jupyter Notebook. Tests for previous years are available on the course website. If you cannot attend your Week 2 lab class, please email me. Submit 1st class test by midnight Sun 7th Oct 2018 via http://somas-uploads.shef.ac.uk/mas212

Jupyter Notebook http://jupyter.org/try Jupyter Notebook is...... a web-based interactive computational environment where you can combine code execution, text, mathematics, plots and rich media into a single document.

Installing Jupyter Notebook On your computer: The simplest way is to get Jupyter Notebook is to install the Anaconda distribution of Python 3: https://www.anaconda.com/download/ Choose Python 3.6 version. This comes with the most popular libraries for scientific computing. On the managed desktop: The Anaconda distribution should be pre-installed. From the Start Menu, look for the folder Anaconda3 (64-bit)

Using Jupyter Notebook Enter Python code into a cell Press Shift-Enter to evaluate a cell Some example notebooks are shown on course website http://sam-dolan.staff.shef.ac.uk/mas212 Notebooks can be converted to HTML or PDF. Notebooks may be shared on the web: http://nbviewer.jupyter.org/ For an introduction to Jupyter Notebook see e.g. http://opentechschool.github.io/ python-data-intro/core/notebook.html

Using Jupyter Notebook: Magic functions Magic functions start with %. Examples: %matplotlib inline : include the plots in the workbook. %timeit my func() : test the efficiency of your function. %load my module.py : read the contents of my module.py into a cell %run my module.py : run the module as a script?reversed : get help on the reversed function (e.g.).! : execute a shell command.

Spyder Spyder is an Integrated Development Environment (IDE) for Python,...... the Scientific PYthon Development EnviRonment. It includes A code editor with syntax colouring An IPython console Introspection: tab completion; go-to-definition, etc. Online help Object inspector Debugging features, such as breakpoints You are encouraged to use Spyder and/or Jupyter Notebook : The class test will use Jupyter Notebook; Spyder is useful for developing code for the first assignment.

Checklist for Weeks 1 4 ( ) Work through the Python basics slides & videos on MOLE. ( ) Get started with Jupyter Notebook in Week 1 lab class ( ) Browse the course website & example notebooks. http://sam-dolan.staff.shef.ac.uk/mas212 ( ) Try previous years class test(s). ( ) Week 2 lab class: Class Test. Submit by Sunday 7th Oct ( ) Assignment #1 (Rational approximations) is due Sunday 21st Oct NB. The add/drop window closes at the end of Week 3.