Question 1 [13] The multiple choice answers are as follows: 1.1 A 1.2 D 1.3 B 1.4 B 1.5 C

Size: px
Start display at page:

Download "Question 1 [13] The multiple choice answers are as follows: 1.1 A 1.2 D 1.3 B 1.4 B 1.5 C"

Transcription

1 Question 1 [13] The multiple choice answers are as follows: 1.1 A 1.2 D 1.3 B 1.4 B 1.5 C Please see the LibreOffice document for the detailed memo for each multiple choice question. Bladsy 1 van 11 / Page 1 of 11

2 Question 2 [10] #!/usr/bin/env python # -*- coding: utf-8 -*- The following empirical relation describes the concentration of insulin in the blood at time t : C(t) = C_0 e^{\left( \frac{-30t}{m} \right)}, where C_0 = 85 is the initial concentration, t is the time [min], and m is the mass [kg] of patient. Write a Python program that reproduces Figure \ref{fig:fig1}, with all annotations included (that is, axis labels, titles, etc). The graph is produced from the equation above with m = [60, 70, 80, 90, 100]. The time t is discretized using 50 equally spaced points between 0 and 5 minutes. Note that the legend is located at the top right and the major gridlines are visible. The title annotation is produced using a font size of 16 and the axis annotations are produced using a font size of 14. Fundamental Concepts (FC): 1) Able to create x and y data, for the plots, using the correct functions 2) Able to plot x and y data with different linestyles 3) Able to create graph annotations Possible FC Mistakes: - Incorrect range of time or mass values (missing edge cases) - Mistake with calculating the Ct data for the plots - Incorrect linestyles used - Missing annotations (1 FC per missing annotation) - Not adjusting fontsize at all (show at least once) Additional Implementation (AI): 1) Correct legend location and labels 2) Grid lines turned on 3) Correct fontsizes Bladsy 2 van 11 / Page 2 of 11

3 Marks (Percentage): 0-0 fundamental concepts in place 20-1 fundamental concepts in place 40-2 fundamental concepts in place All fundamental concepts in place. 3 or more FC implementation mistakes All fundamental concepts in place. 1 or 2 FC implementation mistakes AND 3 or less AI mistakes All fundamental concepts in place. No FC implementation mistakes AND 2 or less AI mistakes. from matplotlib import pyplot import numpy # version C0 = 85 mass = range(60, 101, 10) time = numpy.linspace(0, 5, 50) pyplot.figure(1) lstyle = [ k-, k--, k-., k:, k. ] for i in range(len(mass)): legend_label = "m = " + str(mass[i]) Ct = C0 * numpy.exp( (-30.0 * time) / mass[i] ) pyplot.plot(time, Ct, lstyle[i], label=legend_label) pyplot.title("insulin concentration over time.", fontsize=16) pyplot.xlabel("time [min]", fontsize=14) pyplot.ylabel("insulin concentration [%]", fontsize=14) pyplot.legend(loc="upper right", fontsize=14) pyplot.grid() pyplot.show() The different versions of the question answers shown above are not the only solutions available, many others exist. Bladsy 3 van 11 / Page 3 of 11

4 Question 3 [12] #!/usr/bin/env python # -*- coding: utf-8 -*- A palindrome number is a number that represents the same number when read either from left-to-right or from right-to-left. For example: 9009 is a palindrome, as it represents 9009 when read either backwards or forwards. You are given the function \texttt{is\_palindrome} in the \texttt{numbers.py} module: def is_palindrome(num): "" Returns True if a number (num) is a palindrome number, else returns False "" if (str(num) == str(num)[::-1]) and (num > 9): return True return False Write a function \texttt{palindrome\_list} (\textbf{in a separate module}) that takes one input, namely an integer N. The function must compute and \textbf{return a list} of all palindrome numbers, that are smaller than N. The list of palindrome numbers must only contain unique entries, that is no duplicate entries in the list. For example: \texttt{palindrome\_list(50)} must return [11, 22, 33, 44]. Fundamental Concepts (FC): 1) Able to import and use a function from another module - No import of / from numbers --> missing FC 1 - Incorrect calling of is_palindrome(num) --> missing FC 1 Bladsy 4 van 11 / Page 4 of 11

5 2) Able to create a function with proper inputs and returns - No "def" or inputs --> missing FC 2 - Overwriting inputs --> missing FC 2 - Not returning anything --> mising FC 2 - Returning an undefined name --> mising FC 2 3) Grow a list of unique accending palindrome numbers - Not initializing a list --> missing FC 3 - Not growing the list correctly --> missing FC 3 - Garbage in the list --> missing FC 3 Possible FC Mistakes: - Import numbers.py in place of numbers - Incorrect function name - Returning the wrong object (object must be defined) - Mistake with if statement condition Additional Implementation (AI): 1) Incorrect range for the looping structure (ie edge case >= num) Marks (Percentage): 0-0 fundamental concepts in place 20-1 fundamental concepts in place 40-2 fundamental concepts in place All fundamental concepts in place. 2 or more FC implementation mistakes All fundamental concepts in place. 1 FC implementation mistakes All fundamental concepts in place. No FC implementation mistakes AND 1 AI mistake ########## numbers.py ########## def is_palindrome(num): if (str(num) == str(num)[::-1]) and (num > 9): return True return False Bladsy 5 van 11 / Page 5 of 11

6 ########## module.py ########### # version from numbers import is_palindrome def palindrome_list(num): pal_list = [] for i in range(num): if is_palindrome(i): pal_list.append(i) return pal_list # version from numbers import is_palindrome def palindrome_list(num): cnt = 1 pal_list = [] while cnt < num: if is_palindrome(cnt): pal_list.append(cnt) cnt += 1 return pal_list The different versions of the question answers shown above are not the only solutions available, many others exist. Bladsy 6 van 11 / Page 6 of 11

7 #!/usr/bin/env python # -*- coding: utf-8 -*- Created on Fri Mar 15 09:22:17 Logan Page YOU CAN TEST QUESION 3 WITH THE FOLLOWING SCRIPT ASSUMING OF COURSE THAT THE "palindrome_list" FUNCTION IS SAVED IN "question3.py" and the "is_palindrome" FUNCTION IS SAVED IN "numbers.py" import question3 as q3 print q3.palindrome_list(50) Bladsy 7 van 11 / Page 7 of 11

8 Question 4 [15] #!/usr/bin/env python # -*- coding: utf-8 -*- Consider the \textit{reversi} board in Fig.~\ref{fig:example}. The row ( r ) and column ( c ) indices are indicated on the border. A position on the board is indicated by [r,c]. The 1 s indicates your disks, the 2 s your opponents disks and 0 s empty positions. A valid position for a move is an empty position that flanks the opponents disks. A flank is created when your disks encloses your opponents disks either vertically, horizontally or diagonally. For example the the disk location [4, 1] in Fig.~\ref{fig:board_1}, and location [6, 4] in Fig.~\ref{fig:board_2} are both valid as they flank the opponents disks. Write a python function \texttt{is\_valid\_location} that takes two inputs, namely the board values (as a \texttt{numpy array}); and a [r, c] position (as a \texttt{numpy array}). The function must return \texttt{true} if [r, c] is a valid move, otherwise the function must return \texttt{false}. Fundamental Concepts (FC): 1) Check for a flank (valid_move) along a direction for the given board and [r, c] inputs 2) Repeat 1 for all directions 3) Consolidate 1 and 2 information to determine validity of move (is a valid move) Bladsy 8 van 11 / Page 8 of 11

9 Possible FC Mistakes: - Incorrect ranges (edge of board errors) - Not checking if [r, c] location is empty - End of flank wrong edge indexes (1 offset) - Not excluding 0, 0 direction for checking all directions - Ammend after marking a few papers Additional Implementation (AI): 1) Ammend after marking a few papers Marks (Percentage): 0-0 fundamental concepts in place 20-1 fundamental concepts in place 40-2 fundamental concepts in place All fundamental concepts in place. More than 2 FC implementation mistakes All fundamental concepts in place. 1 or 2 - FC implementation mistakes OR AI mistakes All fundamental concepts in place. No FC implementation mistakes AND all AI in place. import numpy def flank_search(board, pos, row_inc, col_inc): r = pos[0] + row_inc c = pos[1] + col_inc while (0 <= r and r <= 7) and (0 <= c and c <= 7) and board[r][c] == 2: r = r + row_inc c = c + col_inc if (0 <= r and r <= 7) and (0 <= c and c <= 7): if board[r][c] == 1: return True return False Bladsy 9 van 11 / Page 9 of 11

10 def is_valid_location(board, pos): found_dir = False for i in range(-1, 2, 1): for j in range(-1, 2, 1): if i!= 0 or j!= 0: search_dir = flank_search(board, pos, i, j) if search_dir == True: found_dir = True if found_dir == True: return True return False The different versions of the question answers shown above are not the only solutions available, many others exist. Bladsy 10 van 11 / Page 10 of 11

11 #!/usr/bin/env python # -*- coding: utf-8 -*- Created on Fri Mar 15 09:22:17 Logan Page YOU CAN TEST QUESION 4 WITH THE FOLLOWING SCRIPT ASSUMING OF COURSE THAT THE "is_valid_location" FUNCTION IS SAVED IN "question4.py" import numpy import question4 as q4 board = numpy.array([[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 2, 0, 0], [0, 0, 0, 1, 2, 0, 0, 0], [0, 0, 2, 2, 2, 2, 2, 2], [0, 0, 2, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]]) print q4.is_valid_location(board, [4, 1]) print q4.is_valid_location(board, [2, 6]) print q4.is_valid_location(board, [3, 5]) Bladsy 11 van 11 / Page 11 of 11

CSCE 110 Programming I

CSCE 110 Programming I CSCE 110 Programming I Simulations and Plotting Data Dr. Tiffani L. Williams Department of Computer Science and Engineering Texas A&M University Spring 2014 Tiffani L. Williams (Texas A&M) CSCE 110) Spring

More information

Example 1: Give the coordinates of the points on the graph.

Example 1: Give the coordinates of the points on the graph. Ordered Pairs Often, to get an idea of the behavior of an equation, we will make a picture that represents the solutions to the equation. A graph gives us that picture. The rectangular coordinate plane,

More information

Programming with Python

Programming with Python Programming with Python EOAS Software Carpentry Workshop September 21st, 2016 https://xkcd.com/353 Getting started For our Python introduction we re going to pretend to be a researcher studying inflammation

More information

User-Defined Function

User-Defined Function ENGR 102-213 (Socolofsky) Week 11 Python scripts In the lecture this week, we are continuing to learn powerful things that can be done with userdefined functions. In several of the examples, we consider

More information

Bi 1x Spring 2014: Plotting and linear regression

Bi 1x Spring 2014: Plotting and linear regression Bi 1x Spring 2014: Plotting and linear regression In this tutorial, we will learn some basics of how to plot experimental data. We will also learn how to perform linear regressions to get parameter estimates.

More information

Excel 2016 Intermediate for Windows

Excel 2016 Intermediate for Windows 1 Excel 2016 Intermediate for Windows Excel Intermediate Training Objective To learn the tools and features of Excel 2016, and gain vital skills to use Excel more efficiently and effectively. What you

More information

Getting Started. What is SAS/SPECTRAVIEW Software? CHAPTER 1

Getting Started. What is SAS/SPECTRAVIEW Software? CHAPTER 1 3 CHAPTER 1 Getting Started What is SAS/SPECTRAVIEW Software? 3 Using SAS/SPECTRAVIEW Software 5 Data Set Requirements 5 How the Software Displays Data 6 Spatial Data 6 Non-Spatial Data 7 Summary of Software

More information

MS6021 Scientific Computing. TOPICS: Python BASICS, INTRO to PYTHON for Scientific Computing

MS6021 Scientific Computing. TOPICS: Python BASICS, INTRO to PYTHON for Scientific Computing MS6021 Scientific Computing TOPICS: Python BASICS, INTRO to PYTHON for Scientific Computing Preliminary Notes on Python (v MatLab + other languages) When you enter Spyder (available on installing Anaconda),

More information

Skills Quiz - Python Edition Solutions

Skills Quiz - Python Edition Solutions 'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 103L Fall 2017 Skills Quiz - Python Edition Solutions Michael R. Gustafson II Name (please print): NetID (please print): In keeping with the Community

More information

Scientific Python: matplotlib

Scientific Python: matplotlib Scientific Python: matplotlib 17 July 2014 Introduction and Aims This exercise introduces the matplotlib module of Python. Matplotlib is a versatile plotting library that can be used to produce both quick

More information

Inverse Ray Shooting Tutorial. Jorge Jiménez Vicente Dpto. Física Teórica y del Cosmos Universidad de Granada Spain

Inverse Ray Shooting Tutorial. Jorge Jiménez Vicente Dpto. Física Teórica y del Cosmos Universidad de Granada Spain Inverse Ray Shooting Tutorial Jorge Jiménez Vicente Dpto. Física Teórica y del Cosmos Universidad de Granada Spain Final goal Session I Introduction to Python Solving the lens equation Ray shooting basics

More information

Tutorial 8: Visualization How to visualize your ESPResSo simulations while they are running

Tutorial 8: Visualization How to visualize your ESPResSo simulations while they are running Tutorial 8: Visualization How to visualize your ESPResSo simulations while they are running October 9, 2016 1 Introduction When you are running a simulation, it is often useful to see what is going on

More information

Module 05: Types of recursion

Module 05: Types of recursion Module 05: Types of recursion Topics: Review of purely structural recursion Accumulative recursion Generative recursion Readings:ThinkP 5.8-5.10, 6.5-6.7 1 Review: Structural Recursion Template for code

More information

AMath 483/583 Lecture 28 June 1, Notes: Notes: Python scripting for Fortran codes. Python scripting for Fortran codes.

AMath 483/583 Lecture 28 June 1, Notes: Notes: Python scripting for Fortran codes. Python scripting for Fortran codes. AMath 483/583 Lecture 28 June 1, 2011 Today: Python plus Fortran Comments on quadtests.py for project Linear vs. log-log plots Visualization Friday: Animation: plots to movies Binary I/O Parallel IPython

More information

Plotting with an introduction to functions

Plotting with an introduction to functions Plotting with CERN@school: an introduction to functions Twitter: @nicoleshearer93 N. Shearer a, T. Whyntie b, c a Durham University, b Langton Star Centre, c Queen Mary University of London Coding with

More information

Technology Assignment: Scatter Plots

Technology Assignment: Scatter Plots The goal of this assignment is to create a scatter plot of a set of data. You could do this with any two columns of data, but for demonstration purposes we ll work with the data in the table below. You

More information

User Manual MS Energy Services

User Manual MS Energy Services User Manual MS Energy Services Table of content Access 4 Log In 4 Home Page 5 Add pre-visualisations 6 Pre-visualisation with variables 7 Multiple pre-visualisations 8 Pre-visualisation window 8 Design

More information

Test 1 - Python Edition

Test 1 - Python Edition 'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 103L Spring 2018 Test 1 - Python Edition Shaundra B. Daily & Michael R. Gustafson II NetID (please print): In keeping with the Community Standard, I

More information

Charting 1. There are several ways to access the charting function There are three autolayouts which include a chart.

Charting 1. There are several ways to access the charting function There are three autolayouts which include a chart. Charting 1 PowerPoint has an internal charting function. It can create charts from data in most of the common chart types. The biggest advantage is that the data is stored internally in the PowerPoint

More information

Quiz Section Week 3 April 12, Functions Reading from and writing to files Complexity

Quiz Section Week 3 April 12, Functions Reading from and writing to files Complexity Quiz Section Week 3 April 12, 2016 Functions Reading from and writing to files Complexity Hypothesis testing: how interesting is my data? Test statistic: a number that describes how interesting your data

More information

Middle Years Data Analysis Display Methods

Middle Years Data Analysis Display Methods Middle Years Data Analysis Display Methods Double Bar Graph A double bar graph is an extension of a single bar graph. Any bar graph involves categories and counts of the number of people or things (frequency)

More information

Random Walks & Cellular Automata

Random Walks & Cellular Automata Random Walks & Cellular Automata 1 Particle Movements basic version of the simulation vectorized implementation 2 Cellular Automata pictures of matrices an animation of matrix plots the game of life of

More information

Python for Earth Scientists

Python for Earth Scientists Python for Earth Scientists Andrew Walker andrew.walker@bris.ac.uk Python is: A dynamic, interpreted programming language. Python is: A dynamic, interpreted programming language. Data Source code Object

More information

5 File I/O, Plotting with Matplotlib

5 File I/O, Plotting with Matplotlib 5 File I/O, Plotting with Matplotlib Bálint Aradi Course: Scientific Programming / Wissenchaftliches Programmieren (Python) Installing some SciPy stack components We will need several Scipy components

More information

ISSUE #2 / FALL 2016

ISSUE #2 / FALL 2016 REVIT PURE PRESENTS PAMPHLETS ISSUE #2 / FALL 2016 SCHEDULES revitpure.com Copyright 2016 - BIM Pure productions WHAT IS THIS PAMPHLET? Revit Pure Pamphlets are published 4 times a year by email. Each

More information

CS150 Sample Final Solution

CS150 Sample Final Solution CS150 Sample Final Solution Name: Section: A / B Date: Start time: End time: Honor Code: Signature: This exam is closed book, closed notes, closed computer, closed calculator, etc. You may only use (1)

More information

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as Geog 271 Geographic Data Analysis Fall 2015 PyPlot Graphicscanbeproducedin Pythonviaavarietyofpackages. We willuseapythonplotting package that is part of MatPlotLib, for which documentation can be found

More information

ARTIFICIAL INTELLIGENCE AND PYTHON

ARTIFICIAL INTELLIGENCE AND PYTHON ARTIFICIAL INTELLIGENCE AND PYTHON DAY 1 STANLEY LIANG, LASSONDE SCHOOL OF ENGINEERING, YORK UNIVERSITY WHAT IS PYTHON An interpreted high-level programming language for general-purpose programming. Python

More information

Guide to Editing Map Legends

Guide to Editing Map Legends Guide to Editing Map Legends Map legends explain map symbols and are crucial to the communication of a map s message. Effective legends are created with careful consideration of labels and text, classes,

More information

1. Click in cell A2, and then drag to cell D5 to select the data in those four rows and columns.

1. Click in cell A2, and then drag to cell D5 to select the data in those four rows and columns. Training Chart work EXERCISE 1: CREATE A CHART 1. Click in cell A2, and then drag to cell D5 to select the data in those four rows and columns. 2. On the ribbon, click the Insert tab. In the Charts group,

More information

Plotting using Matlab. Vytautas Astromskas

Plotting using Matlab. Vytautas Astromskas Plotting using Matlab Vytautas Astromskas Contents 1 Manipulating a plot using GUI 2 2 Manipulating a plot using command line 4 3 Adding multiple lines to the same plot 5 4 Logarithmic axes 6 5 Plotting

More information

Clustering to Reduce Spatial Data Set Size

Clustering to Reduce Spatial Data Set Size Clustering to Reduce Spatial Data Set Size Geoff Boeing arxiv:1803.08101v1 [cs.lg] 21 Mar 2018 1 Introduction Department of City and Regional Planning University of California, Berkeley March 2018 Traditionally

More information

9 POINTS TO A GOOD LINE GRAPH

9 POINTS TO A GOOD LINE GRAPH NAME: PD: DATE: 9 POINTS TO A GOOD LINE GRAPH - 2013 1. Independent Variable on the HORIZONTAL (X) AXIS RANGE DIVIDED BY SPACES and round up to nearest usable number to spread out across the paper. LABELED

More information

LABORATORY 1 Data Analysis & Graphing in Excel

LABORATORY 1 Data Analysis & Graphing in Excel LABORATORY 1 Data Analysis & Graphing in Excel Goal: In this lab, you will learn how to enter and manipulate data in Excel and you will learn how to make the graphs you will need for your lab write-ups.

More information

Effective Programming Practices for Economists. 10. Some scientific tools for Python

Effective Programming Practices for Economists. 10. Some scientific tools for Python Effective Programming Practices for Economists 10. Some scientific tools for Python Hans-Martin von Gaudecker Department of Economics, Universität Bonn A NumPy primer The main NumPy object is the homogeneous

More information

Graphing Linear Equations

Graphing Linear Equations Graphing Linear Equations A.REI.10 Understand that the graph of an equation in two variables is the set of all its solutions plotted in the coordinate plane. What am I learning today? How to graph a linear

More information

KaleidaGraph Quick Start Guide

KaleidaGraph Quick Start Guide KaleidaGraph Quick Start Guide This document is a hands-on guide that walks you through the use of KaleidaGraph. You will probably want to print this guide and then start your exploration of the product.

More information

Rockefeller College MPA Excel Workshop: Clinton Impeachment Data Example

Rockefeller College MPA Excel Workshop: Clinton Impeachment Data Example Rockefeller College MPA Excel Workshop: Clinton Impeachment Data Example This exercise is a follow-up to the MPA admissions example used in the Excel Workshop. This document contains detailed solutions

More information

HOUR 12. Adding a Chart

HOUR 12. Adding a Chart HOUR 12 Adding a Chart The highlights of this hour are as follows: Reasons for using a chart The chart elements The chart types How to create charts with the Chart Wizard How to work with charts How to

More information

Texas School for the Blind and Visually Impaired. Using The Drawing Tools in Microsoft Word 2007 for Tactile Graphic Production

Texas School for the Blind and Visually Impaired. Using The Drawing Tools in Microsoft Word 2007 for Tactile Graphic Production Texas School for the Blind and Visually Impaired Outreach Programs 1100 West 45 th Street Austin, Texas, 78756 Using The Drawing Tools in Microsoft Word 2007 for Tactile Graphic Production Developed by:

More information

Using the Matplotlib Library in Python 3

Using the Matplotlib Library in Python 3 Using the Matplotlib Library in Python 3 Matplotlib is a Python 2D plotting library that produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms.

More information

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

SUM - This says to add together cells F28 through F35. Notice that it will show your result is COUNTA - The COUNTA function will examine a set of cells and tell you how many cells are not empty. In this example, Excel analyzed 19 cells and found that only 18 were not empty. COUNTBLANK - The COUNTBLANK

More information

INFORMATION TECHNOLOGY 402 UNIT IV SPREADSHEET

INFORMATION TECHNOLOGY 402 UNIT IV SPREADSHEET INFORMATION TECHNOLOGY 402 UNIT IV SPREADSHEET AUTOSUM AutoSum is a function in Microsoft Excel and other spreadsheet programs that automatically enters the appropriate formula or function into your spreadsheet.

More information

Emil Sekerinski, McMaster University, Winter Term 16/17 COMP SCI 1MD3 Introduction to Programming

Emil Sekerinski, McMaster University, Winter Term 16/17 COMP SCI 1MD3 Introduction to Programming Emil Sekerinski, McMaster University, Winter Term 16/17 COMP SCI 1MD3 Introduction to Programming In Python, variables are names of objects base 5 >>> base = 5 >>> height = 4 >>> area = base*height/2 >>>

More information

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below.

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below. Graphing in Excel featuring Excel 2007 1 A spreadsheet can be a powerful tool for analyzing and graphing data, but it works completely differently from the graphing calculator that you re used to. If you

More information

ENGR (Socolofsky) Week 07 Python scripts

ENGR (Socolofsky) Week 07 Python scripts ENGR 102-213 (Socolofsky) Week 07 Python scripts A couple programming examples for this week are embedded in the lecture notes for Week 7. We repeat these here as brief examples of typical array-like operations

More information

Statistics and Graphics Functions

Statistics and Graphics Functions Statistics and Graphics Functions Statistics and Graphics Functions Frequency Tables and Diagrams for Variables With the help of the Statistics and Graphics module, MAXQDA can create frequency tables and

More information

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as

PyPlot. The plotting library must be imported, and we will assume in these examples an import statement similar to those for numpy and math as Geog 271 Geographic Data Analysis Fall 2017 PyPlot Graphicscanbeproducedin Pythonviaavarietyofpackages. We willuseapythonplotting package that is part of MatPlotLib, for which documentation can be found

More information

The Chart Title can be formatted to change color, pattern, typeface, size and alignment using the Format Chart Title dialog box.

The Chart Title can be formatted to change color, pattern, typeface, size and alignment using the Format Chart Title dialog box. Excel 2003 Formatting a Chart Introduction Page 1 By the end of this lesson, learners should be able to: Format the chart title Format the chart legend Format the axis Formatting the Chart Title Page 2

More information

Project 1 - Battleship Game

Project 1 - Battleship Game Project 1 - Battleship Game Minimal Submission Due: Friday, December 22 th, 2006 Revision History Final Project Due: Sunday, January 21 th, 2007 Dec 7th, 2006, v1.0: Initial revision for faculty review.

More information

Computational Physics Programming Style and Practices & Visualizing Data via Plotting

Computational Physics Programming Style and Practices & Visualizing Data via Plotting Computational Physics Programming Style and Practices & Visualizing Data via Plotting Prof. Paul Eugenio Department of Physics Florida State University Jan 30, 2018 http://comphy.fsu.edu/~eugenio/comphy/

More information

Error-Bar Charts from Summary Data

Error-Bar Charts from Summary Data Chapter 156 Error-Bar Charts from Summary Data Introduction Error-Bar Charts graphically display tables of means (or medians) and variability. Following are examples of the types of charts produced by

More information

Years after US Student to Teacher Ratio

Years after US Student to Teacher Ratio The goal of this assignment is to create a scatter plot of a set of data. You could do this with any two columns of data, but for demonstration purposes we ll work with the data in the table below. The

More information

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013 DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013 GETTING STARTED PAGE 02 Prerequisites What You Will Learn MORE TASKS IN MICROSOFT EXCEL PAGE 03 Cutting, Copying, and Pasting Data Basic Formulas Filling Data

More information

Euler s Method with Python

Euler s Method with Python Euler s Method with Python Intro. to Differential Equations October 23, 2017 1 Euler s Method with Python 1.1 Euler s Method We first recall Euler s method for numerically approximating the solution of

More information

Random Walks & Cellular Automata

Random Walks & Cellular Automata Random Walks & Cellular Automata 1 Particle Movements basic version of the simulation vectorized implementation 2 Cellular Automata pictures of matrices an animation of matrix plots the game of life of

More information

EXCEL 2003 DISCLAIMER:

EXCEL 2003 DISCLAIMER: EXCEL 2003 DISCLAIMER: This reference guide is meant for experienced Microsoft Excel users. It provides a list of quick tips and shortcuts for familiar features. This guide does NOT replace training or

More information

Part VI. Scientific Computing in Python. Alfredo Parra : Scripting with Python Compact Max-PlanckMarch 6-10,

Part VI. Scientific Computing in Python. Alfredo Parra : Scripting with Python Compact Max-PlanckMarch 6-10, Part VI Scientific Computing in Python Compact Course @ Max-PlanckMarch 6-10, 2017 63 Doing maths in Python Standard sequence types (list, tuple,... ) Can be used as arrays Can contain different types

More information

Microsoft Excel 2000 Charts

Microsoft Excel 2000 Charts You see graphs everywhere, in textbooks, in newspapers, magazines, and on television. The ability to create, read, and analyze graphs are essential parts of a student s education. Creating graphs by hand

More information

SAS Visual Analytics 8.2: Working with Report Content

SAS Visual Analytics 8.2: Working with Report Content SAS Visual Analytics 8.2: Working with Report Content About Objects After selecting your data source and data items, add one or more objects to display the results. SAS Visual Analytics provides objects

More information

Analysis of Large-Scale Networks: NetworkX

Analysis of Large-Scale Networks: NetworkX Analysis of Large-Scale Networks NetworkX JP Onnela Department of Biostatistics Harvard School of Public Health July 17, 2014 Outline 1 Overview of NetworkX 2 Nodes and Edges 3 Node Degree and Neighbors

More information

Creating and Modifying Charts

Creating and Modifying Charts Creating and Modifying Charts Introduction When you re ready to share data with others, a worksheet might not be the most effective way to present the information. A page full of numbers, even if formatted

More information

Desktop Studio: Charts. Version: 7.3

Desktop Studio: Charts. Version: 7.3 Desktop Studio: Charts Version: 7.3 Copyright 2015 Intellicus Technologies This document and its content is copyrighted material of Intellicus Technologies. The content may not be copied or derived from,

More information

CMSC 201 Fall 2016 Lab 09 Advanced Debugging

CMSC 201 Fall 2016 Lab 09 Advanced Debugging CMSC 201 Fall 2016 Lab 09 Advanced Debugging Assignment: Lab 09 Advanced Debugging Due Date: During discussion Value: 10 points Part 1: Introduction to Errors Throughout this semester, we have been working

More information

OpenMSI Arrayed Analysis Toolkit: Analyzing spatially defined samples in mass spectrometry imaging

OpenMSI Arrayed Analysis Toolkit: Analyzing spatially defined samples in mass spectrometry imaging OpenMSI Arrayed Analysis Toolkit: Analyzing spatially defined samples in mass spectrometry imaging Introduction This is the accompanying notebook of the manuscript OpenMSI Arrayed Analysis Toolkit: Analyzing

More information

Physics 211 E&M and Modern Physics Spring Lab #1 (to be done at home) Plotting with Excel. Good laboratory practices

Physics 211 E&M and Modern Physics Spring Lab #1 (to be done at home) Plotting with Excel. Good laboratory practices NORTHERN ILLINOIS UNIVERSITY PHYSICS DEPARTMENT Physics 211 E&M and Modern Physics Spring 2018 Lab #1 (to be done at home) Lab Writeup Due: Mon/Wed/Thu/Fri, Jan. 22/24/25/26, 2018 Read Serway & Vuille:

More information

Exam 1 Practice CSE 232 Summer 2018 (1) DO NOT OPEN YOUR EXAM BOOKLET UNTIL YOU HAVE BEEN TOLD TO BEGIN.

Exam 1 Practice CSE 232 Summer 2018 (1) DO NOT OPEN YOUR EXAM BOOKLET UNTIL YOU HAVE BEEN TOLD TO BEGIN. Name: Section: INSTRUCTIONS: (1) DO NOT OPEN YOUR EXAM BOOKLET UNTIL YOU HAVE BEEN TOLD TO BEGIN. (2) The total for the exam is 100 points (3) There are 8 pages with 32 problem; 15 multiple-choice, 15

More information

Lab 4: Structured Programming I

Lab 4: Structured Programming I 4.1 Introduction Lab 4: Structured Programming I Lab this week is going to focus on selective structures and functions. 4.2 Resources The additional resources required for this assignment include: 0 Books:

More information

Distributed Array Protocol Documentation

Distributed Array Protocol Documentation Distributed Array Protocol Documentation Release 0.10.0 Jeff Daily Brian Granger Robert Grant Min Ragan-Kelley Mark Kness Kurt Smith Bill Spotz August 13, 2015 Contents 1 Distributed Array Protocol 1

More information

Python Working with files. May 4, 2017

Python Working with files. May 4, 2017 Python Working with files May 4, 2017 So far, everything we have done in Python was using in-memory operations. After closing the Python interpreter or after the script was done, all our input and output

More information

NCSS Statistical Software

NCSS Statistical Software Chapter 253 Introduction An Italian economist, Vilfredo Pareto (1848-1923), noticed a great inequality in the distribution of wealth. A few people owned most of the wealth. J. M. Juran found that this

More information

June 10, 2014 Scientific computing in practice Aalto University

June 10, 2014 Scientific computing in practice Aalto University Jussi Enkovaara import sys, os try: from Bio.PDB import PDBParser biopython_installed = True except ImportError: biopython_installed = False Exercises for Python in Scientific Computing June 10, 2014 Scientific

More information

GCSE CCEA GCSE EXCEL 2010 USER GUIDE. Business and Communication Systems

GCSE CCEA GCSE EXCEL 2010 USER GUIDE. Business and Communication Systems GCSE CCEA GCSE EXCEL 2010 USER GUIDE Business and Communication Systems For first teaching from September 2017 Contents Page Define the purpose and uses of a spreadsheet... 3 Define a column, row, and

More information

CSCE 110: Programming I

CSCE 110: Programming I CSCE 110: Programming I Sample Questions for Exam #1 February 17, 2013 Below are sample questions to help you prepare for Exam #1. Make sure you can solve all of these problems by hand. For most of the

More information

Open a new Excel workbook and look for the Standard Toolbar.

Open a new Excel workbook and look for the Standard Toolbar. This activity shows how to use a spreadsheet to draw line graphs. Open a new Excel workbook and look for the Standard Toolbar. If it is not there, left click on View then Toolbars, then Standard to make

More information

Introduction to Excel Workshop

Introduction to Excel Workshop Introduction to Excel Workshop Empirical Reasoning Center June 6, 2016 1 Important Terminology 1. Rows are identified by numbers. 2. Columns are identified by letters. 3. Cells are identified by the row-column

More information

Chemistry 1A Graphing Tutorial CSUS Department of Chemistry

Chemistry 1A Graphing Tutorial CSUS Department of Chemistry Chemistry 1A Graphing Tutorial CSUS Department of Chemistry Please go to the Lab webpage to download your own copy for reference. 1 When you open Microsoft Excel 2003, you will see a blank worksheet: Enter

More information

Justin s Guide to Good Lab Writing

Justin s Guide to Good Lab Writing General Formatting: Justin s Guide to Good Lab Writing Different sections of the lab report should be easy to distinguish. (Just look at this document) o Section titles should NOT be separated from content

More information

Creating a Basic Chart in Excel 2007

Creating a Basic Chart in Excel 2007 Creating a Basic Chart in Excel 2007 A chart is a pictorial representation of the data you enter in a worksheet. Often, a chart can be a more descriptive way of representing your data. As a result, those

More information

The Mathcad Workspace 7

The Mathcad Workspace 7 For information on system requirements and how to install Mathcad on your computer, refer to Chapter 1, Welcome to Mathcad. When you start Mathcad, you ll see a window like that shown in Figure 2-1. By

More information

Microsoft Excel 2007

Microsoft Excel 2007 Microsoft Excel 2007 1 Excel is Microsoft s Spreadsheet program. Spreadsheets are often used as a method of displaying and manipulating groups of data in an effective manner. It was originally created

More information

Content Elements. Contents. Row

Content Elements. Contents. Row Content Elements Created by Raitis S, last modified on Feb 09, 2016 This is a list of 40+ available content elements that can be placed on the working canvas or inside of the columns. Think of them as

More information

Microsoft Office Excel 2013 Courses 24 Hours

Microsoft Office Excel 2013 Courses 24 Hours Microsoft Office Excel 2013 Courses 24 Hours COURSE OUTLINES FOUNDATION LEVEL COURSE OUTLINE Getting Started With Excel 2013 Starting Excel 2013 Selecting the Blank Worksheet Template The Excel 2013 Cell

More information

Functionally Modular. Self-Review Questions

Functionally Modular. Self-Review Questions Functionally Modular 5 Self-Review Questions Self-review 5.1 Which names are local, which are global and which are built-in in the following code fragment? Global names: Built-in names: space_invaders

More information

Workbooks & Worksheets. Getting Started. Formatting. Formulas & Functions

Workbooks & Worksheets. Getting Started. Formatting. Formulas & Functions 1 Getting Started Cells Workbooks & Worksheets Formatting Formulas & Functions Chart Printing 2 Getting Started Start a spreadsheet program Recognize the spreadsheet screen layout Use the ribbon,quick

More information

The Everex Scheduler TM Program

The Everex Scheduler TM Program ~~IVERE The Everex Scheduler TM Program OWNER'S MANUAL AND REFERENCE GUIDE (VERSION 2.0) EVER for EXcellence MAN-00039-20 The Everex Scheduler Program OWNER'S MANUAL AND REFERENCE GUIDE (VERSION 2.0) EVEREX

More information

lab MS Excel 2010 active cell

lab MS Excel 2010 active cell MS Excel is an example of a spreadsheet, a branch of software meant for performing different kinds of calculations, numeric data analysis and presentation, statistical operations and forecasts. The main

More information

Desktop Studio: Charts

Desktop Studio: Charts Desktop Studio: Charts Intellicus Enterprise Reporting and BI Platform Intellicus Technologies info@intellicus.com www.intellicus.com Working with Charts i Copyright 2011 Intellicus Technologies This document

More information

Never Give Up Page 1

Never Give Up Page 1 VISUAL BASIC FOR APPLICATIONS (VBA) & MACROS TRAINING: Microsoft Visual Basic for Applications (VBA, Macros) when used with Microsoft Excel can build powerful automated business tools quickly and with

More information

ENV Laboratory 2: Graphing

ENV Laboratory 2: Graphing Name: Date: Introduction It is often said that a picture is worth 1,000 words, or for scientists we might rephrase it to say that a graph is worth 1,000 words. Graphs are most often used to express data

More information

Capstone Appendix. A guide to your lab computer software

Capstone Appendix. A guide to your lab computer software Capstone Appendix A guide to your lab computer software Important Notes Many of the Images will look slightly different from what you will see in lab. This is because each lab setup is different and so

More information

Reference and Style Guide for Microsoft Excel

Reference and Style Guide for Microsoft Excel Reference and Style Guide for Microsoft Excel TABLE OF CONTENTS Getting Acquainted 2 Basic Excel Features 2 Writing Cell Equations Relative and Absolute Addresses 3 Selecting Cells Highlighting, Moving

More information

BioFuel Graphing instructions using Microsoft Excel 2003 (Microsoft Excel 2007 instructions start on page mei-7)

BioFuel Graphing instructions using Microsoft Excel 2003 (Microsoft Excel 2007 instructions start on page mei-7) BioFuel Graphing instructions using Microsoft Excel 2003 (Microsoft Excel 2007 instructions start on page mei-7) Graph as a XY Scatter Chart, add titles for chart and axes, remove gridlines. A. Select

More information

Part I - WORKING WITH ABSOLUTE REFERENCES

Part I - WORKING WITH ABSOLUTE REFERENCES INTRODUCTION TO COMPUTER CONCEPTS CSIT 100 LAB: MORE WORK with MS EXCEL Part I - WORKING WITH ABSOLUTE REFERENCES This is an implementation of a spreadsheet program. It contains 1,048,576 rows, and 16,384

More information

The American University in Cairo. Academic Computing Services. Excel prepared by. Maha Amer

The American University in Cairo. Academic Computing Services. Excel prepared by. Maha Amer The American University in Cairo Excel 2000 prepared by Maha Amer Spring 2001 Table of Contents: Opening the Excel Program Creating, Opening and Saving Excel Worksheets Sheet Structure Formatting Text

More information

Scientific Programming. Lecture A08 Numpy

Scientific Programming. Lecture A08 Numpy Scientific Programming Lecture A08 Alberto Montresor Università di Trento 2018/10/25 Acknowledgments: Stefano Teso, Documentation http://disi.unitn.it/~teso/courses/sciprog/python_appendices.html https://docs.scipy.org/doc/numpy-1.13.0/reference/

More information

Scientific Graphing in Excel 2007

Scientific Graphing in Excel 2007 Scientific Graphing in Excel 2007 When you start Excel, you will see the screen below. Various parts of the display are labelled in red, with arrows, to define the terms used in the remainder of this overview.

More information

To learn more about the Milestones window choose: Help Help Topics Select the Index tab and type in the feature. For Example toolbox.

To learn more about the Milestones window choose: Help Help Topics Select the Index tab and type in the feature. For Example toolbox. To learn more about the Milestones window choose: Help Help Topics Select the Index tab and type in the feature. For Example toolbox. 1 of 12 CHOOSE THE DATES TAB TO: 1. Set the schedule s Date Range.

More information

September 18, B Math Test Chapter 1 Name: x can be expressed as: {y y 0, y R}.

September 18, B Math Test Chapter 1 Name: x can be expressed as: {y y 0, y R}. September 8, 208 62B Math Test Chapter Name: Part : Objective Questions [ mark each, total 2 marks]. State whether each of the following statements is TRUE or FALSE a) The mapping rule (x, y) (-x, y) represents

More information

Control Structures 1 / 17

Control Structures 1 / 17 Control Structures 1 / 17 Structured Programming Any algorithm can be expressed by: Sequence - one statement after another Selection - conditional execution (not conditional jumping) Repetition - loops

More information