NumPy 1.5. open source. Beginner's Guide. v g I. performance, Python based free open source NumPy. An action-packed guide for the easy-to-use, high

Size: px
Start display at page:

Download "NumPy 1.5. open source. Beginner's Guide. v g I. performance, Python based free open source NumPy. An action-packed guide for the easy-to-use, high"

Transcription

1 NumPy 1.5 Beginner's Guide An actionpacked guide for the easytouse, high performance, Python based free open source NumPy mathematical library using realworld examples Ivan Idris.; 'J 'A,, v g I open source I community experience distilled PUBLISHING BIRMINGHAM MUMBAI

2 installing installing installing creating Preface 1 Chapter 1: NumPy Quick Start 9 Python 9 Python on different operating systems 10 Windows 10 installing NumPy on Windows 11 Linux 13 installing NumPy on Linux 13 Mac OS X 14 NumPy on Mac OS X with a GUI installer 14 NumPy with MacPorts or Fink 16 Building from source 16 Vectors 16 adding vectors 17 IPython an interactive shell 20 Online resources and help 23 Summary 24 Chapter 2: Beginning with NumPy Fundamentals 25 NumPy array object 26 creating a multidimensional array 27 Selecting elements 28 NumPy numerical types 28 Data type objects 30 Character codes 30 dtype constructors 31 dtype attributes 32 a record data type 32

3 splitting reading calculating doing analyzing calculating enveloping predicting Onedimensional slicing and indexing 33 slicing and indexing multidimensional arrays 34 manipulating array shapes 36 Stacking 38 stacking arrays 38 Splitting 41 arrays 41 Array attributes 43 converting arrays 46 Summary 47 Chapter 3: Get into Terms with Commonly Used Functions 49 File I/O 49 and writing files 50 Identity matrix creation 50 CSV files 50 loading from CSV files 51 Volume weighted average price 51 volume weighted average price 52 The mean function 52 Time weighted average price 52 Value range 53 finding highest and lowest values 53 Statistics 54 simple statistics 54 Stock returns 56 stock returns 57 Dates 58 dealing with dates 58 Weekly summary 61 Time for action summarizing data 61 Average true range 65 the average true range 65 Simple moving average 66 computing the simple moving average 67 Exponential moving average 68 calcu lating the exponential moving average 69 Bollinger bands 70 with Bollinger bands 71 Linear model 72 price with a linear model 73

4 drawing avoiding computing Trend lines 74 trend lines 75 Methods of ndarray 78 clipping and compressing arrays 78 Factorial 79 calculating the factorial 79 Summary 80 Chapter 4: Convenience Functions for Your Convenience 81 Correlation 82 trading correlated pairs 82 Polynomials 85 fitting to polynomials 85 Onbalance volume 88 balancing volume 88 The mode 90 determining the mode of stock returns 90 Simulation 93 loops with vectorize 93 Smoothing 95 smoothing with the hanning function 95 Summary 98 Chapter 5: Working with Matrices and ufuncs 99_ Matrices 99 creating matrices 100 Creating a matrix from other matrices 101 creating a matrix from other matrices 101 Universal functions 102 creating universal function 102 Universal function methods 103 applying the ufunc methods on add 104 Arithmetic functions 105 dividing arrays 106 Modulo operation 107 computing the modulo 107 Fibonacci numbers 108 Fibonacci numbers 108 Lissajous curves 109 drawing Lissajous curves 110 Square waves 111 drawing a square wave 111 Hill

5 decomposing computing shifting gambling simulating drawing drawing sorting sorting extracting Table ofcontents Sawtooth and triangle waves 112 drawing sawtooth and triangle waves 113 Bitwise and comparison functions 114 twiddling bits 114 Summary 116 Chapter 6: Move Further with NumPy Modules 117 Linear algebra 117 inverting matrices 117 Solving linear systems 119 solving a linear system 119 Finding eigenvalues and eigenvectors 120 determining eigenvalues and eigenvectors 120 Singular value decomposition 121 a matrix 122 Pseudo inverse 123 the pseudo inverse of a matrix 123 Determinants 124 calculating the determinant of a matrix 124 Fast Fourier transform 124 calculating the Fourier transform 125 Shifting 126 frequencies 126 Random numbers 127 with the binomial 127 Hypergeometric distribution 129 a game show 129 Continuous distributions 130 a normal distribution 130 Lognormal distribution 131 the lognormal distribution 132 Summary 133 Chapter 7: Peeking Into Special Routines 135 Sorting 135 lexically 136 Complex numbers 137 complex numbers 137 Searching 138 using searchsorted 138 Array elements extraction 139 elements from an array 139 llv]

6 determining determining plotting plotting asserting comparing Financial functions 139 future value 140 Present value 140 getting the present value 140 Net present value 141 calculating the net present value 141 Internal rate of return 141 determining the internal rate of return 142 Periodic payments 142 calculating the periodic payments 142 Number of payments 143 the number of periodic payments 143 Interest rate 143 figuring out the rate 143 Window functions 144 plotting the Bartlett window 144 Blackman window 145 Time for action smoothing stock prices with the Blackman window 145 Hamming window 146 the Hamming window 147 Kaiser window 148 the Kaiser window 148 Special mathematical functions 149 plotting the modified Bessel function 149 Sine 150 plotting the sine function 150 Summary 151 Chapter 8: Assure Quality with Testing 153 Assert functions 153 asserting almost equal 154 Approximately equal arrays 155 approximately equal 155 Almost equal arrays 156 asserting arrays almost equal 156 Equal arrays 157 comparing arrays 157 Ordering arrays 158 checking the array order 158 Objects comparison 159 objects 159

7 plotting saving detecting String comparison 160 comparing strings 160 Floating point comparisons 161 comparing with assert_array_almost_equal_nulp 161 Comparison of floats with more ULPs 162 comparing using maxulp of Summary 163 Chapter 9: Plotting with Matplotlib 165 Simple plots 165 plotting a polynomial function 166 Plot format string 167 Time for action plotting a polynomial and its derivative 167 Subplots 168 a polynomial and its derivatives 168 Finance 170 plotting a year's worth of stock quotes 171 Histograms 172 charting stock price distributions 173 Logarithmic plots 174 plotting stock volume 174 Scatter plots 175 plotting price and volume returns with scatter plot 175 Fill between 176 shading plot regions based on a condition 176 Legend and annotations 178 using legend and annotations 178 Summary 180 Chapter 10: When NumPy is Not Enough: SciPy and Beyond 181 Matlab and Octave 181 and loading a.mat file 182 Statistics 183 analyzing random values 183 Samples comparison and SciKits 185 comparing stock log returns 185 Signal processing 187 a trend in QQQ 187 Fourier analysis 189

8 interpolating filtering a detrended signal 189 Optimization 191 fitting to a sine 191 Numerical integration 194 calculating the Gaussian integral 194 Interpolation 194 in one dimension 194 Image processing 196 manipulating Lena 196 Summary 197 Pop Quiz Answers 199 Chapter 1, NumPy Quick Start 199 Chapter 2, Beginning with NumPy Fundamentals 199 Chapter 3, Get into Terms with Commonly Used Functions 199 Chapter 4, Convenience Functions for Your Convenience 199 Chapter 5, Working with Matrices and ufuncs 200 Chapter 6, Move Further with NumPy Modules 200 Chapter 7, Peeking into Special Routines 200 Chapter 8, Assured Quality with Testing 200 Chapter 9, Plotting with Matplotlib 200 Chapter 10, When NumPy is not enough SciPy and Beyond 200 Index 201 Iviil

2 Getting Started with Numerical Computations in Python

2 Getting Started with Numerical Computations in Python 1 Documentation and Resources * Download: o Requirements: Python, IPython, Numpy, Scipy, Matplotlib o Windows: google "windows download (Python,IPython,Numpy,Scipy,Matplotlib" o Debian based: sudo apt-get

More information

A Glimpse at Scipy FOSSEE. June Abstract This document shows a glimpse of the features of Scipy that will be explored during this course.

A Glimpse at Scipy FOSSEE. June Abstract This document shows a glimpse of the features of Scipy that will be explored during this course. A Glimpse at Scipy FOSSEE June 010 Abstract This document shows a glimpse of the features of Scipy that will be explored during this course. 1 Introduction SciPy is open-source software for mathematics,

More information

Lectures about Python, useful both for beginners and experts, can be found at (http://scipy-lectures.github.io).

Lectures about Python, useful both for beginners and experts, can be found at  (http://scipy-lectures.github.io). Random Matrix Theory (Sethna, "Entropy, Order Parameters, and Complexity", ex. 1.6, developed with Piet Brouwer) 2016, James Sethna, all rights reserved. This is an ipython notebook. This hints file is

More information

Python & Numpy A tutorial

Python & Numpy A tutorial Python & Numpy A tutorial Devert Alexandre School of Software Engineering of USTC 13 February 2012 Slide 1/38 Table of Contents 1 Why Python & Numpy 2 First steps with Python 3 Fun with lists 4 Quick tour

More information

ECE521 W17 Tutorial 1. Renjie Liao & Min Bai

ECE521 W17 Tutorial 1. Renjie Liao & Min Bai ECE521 W17 Tutorial 1 Renjie Liao & Min Bai Schedule Linear Algebra Review Matrices, vectors Basic operations Introduction to TensorFlow NumPy Computational Graphs Basic Examples Linear Algebra Review

More information

Adaptive Filtering. Squares. Alexander D. Poularikas. Fundamentals of. Least Mean. with MATLABR. University of Alabama, Huntsville, AL.

Adaptive Filtering. Squares. Alexander D. Poularikas. Fundamentals of. Least Mean. with MATLABR. University of Alabama, Huntsville, AL. Adaptive Filtering Fundamentals of Least Mean Squares with MATLABR Alexander D. Poularikas University of Alabama, Huntsville, AL CRC Press Taylor & Francis Croup Boca Raton London New York CRC Press is

More information

Applied Linear Algebra in Geoscience Using MATLAB

Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots Programming in

More information

(Mathematical Operations with Arrays) Applied Linear Algebra in Geoscience Using MATLAB

(Mathematical Operations with Arrays) Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB (Mathematical Operations with Arrays) Contents Getting Started Matrices Creating Arrays Linear equations Mathematical Operations with Arrays Using Script

More information

Outline Python, Numpy, and Matplotlib Making Models with Polynomials Making Models with Monte Carlo Error, Accuracy and Convergence Floating Point Mod

Outline Python, Numpy, and Matplotlib Making Models with Polynomials Making Models with Monte Carlo Error, Accuracy and Convergence Floating Point Mod Outline Python, Numpy, and Matplotlib Making Models with Polynomials Making Models with Monte Carlo Error, Accuracy and Convergence Floating Point Modeling the World with Arrays The World in a Vector What

More information

Analyzing the Earth Using Remote Sensing

Analyzing the Earth Using Remote Sensing Analyzing the Earth Using Remote Sensing Instructors: Dr. Brian Vant- Hull: Steinman 185, 212-650- 8514 brianvh@ce.ccny.cuny.edu Ms. Hannah Aizenman: NAC 7/311, 212-650- 6295 haizenman@ccny.cuny.edu Dr.

More information

(Linear equations) Applied Linear Algebra in Geoscience Using MATLAB

(Linear equations) Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB (Linear equations) Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots

More information

Contents. Preface to the Third Edition (2007) Preface to the Second Edition (1992) Preface to the First Edition (1985) License and Legal Information

Contents. Preface to the Third Edition (2007) Preface to the Second Edition (1992) Preface to the First Edition (1985) License and Legal Information Contents Preface to the Third Edition (2007) Preface to the Second Edition (1992) Preface to the First Edition (1985) License and Legal Information xi xiv xvii xix 1 Preliminaries 1 1.0 Introduction.............................

More information

I. Numerical Computing

I. Numerical Computing I. Numerical Computing A. Lectures 1-3: Foundations of Numerical Computing Lecture 1 Intro to numerical computing Understand difference and pros/cons of analytical versus numerical solutions Lecture 2

More information

Image Processing in Numpy

Image Processing in Numpy Version: January 17, 2017 Computer Vision Laboratory, Linköping University 1 Introduction Image Processing in Numpy Exercises During this exercise, you will become familiar with image processing in Python.

More information

Applied Linear Algebra in Geoscience Using MATLAB

Applied Linear Algebra in Geoscience Using MATLAB Applied Linear Algebra in Geoscience Using MATLAB Contents Getting Started Creating Arrays Mathematical Operations with Arrays Using Script Files and Managing Data Two-Dimensional Plots Programming in

More information

Contents. Acknowledgments

Contents. Acknowledgments Table of Preface Acknowledgments Notation page xii xx xxi 1 Signals and systems 1 1.1 Continuous and discrete signals 1 1.2 Unit step and nascent delta functions 4 1.3 Relationship between complex exponentials

More information

WILEY. Differential Equations with MATLAB (Third Edition) Brian R. Hunt Ronald L. Lipsman John E. Osborn Jonathan M. Rosenberg

WILEY. Differential Equations with MATLAB (Third Edition) Brian R. Hunt Ronald L. Lipsman John E. Osborn Jonathan M. Rosenberg Differential Equations with MATLAB (Third Edition) Updated for MATLAB 2011b (7.13), Simulink 7.8, and Symbolic Math Toolbox 5.7 Brian R. Hunt Ronald L. Lipsman John E. Osborn Jonathan M. Rosenberg All

More information

Linear Algebra in Numerical Methods. Lecture on linear algebra MATLAB/Octave works well with linear algebra

Linear Algebra in Numerical Methods. Lecture on linear algebra MATLAB/Octave works well with linear algebra Linear Algebra in Numerical Methods Lecture on linear algebra MATLAB/Octave works well with linear algebra Linear Algebra A pseudo-algebra that deals with a system of equations and the transformations

More information

Algorithms for Uncertainty Quantification

Algorithms for Uncertainty Quantification Technische Universität München SS 2017 Lehrstuhl für Informatik V Dr. Tobias Neckel M. Sc. Ionuț Farcaș April 26, 2017 Algorithms for Uncertainty Quantification Tutorial 1: Python overview In this worksheet,

More information

College Algebra Poudre School District Pacing Overview

College Algebra Poudre School District Pacing Overview Pacing Overview Section Title Pacing Notes A.3 Polynomials A.3 Polynomials A.4 Synthetic Division Semester 1 Algebraic Skills (Appendix A) 15-16 days A.5 Rational Expressions A.6 Solving Equations A.7

More information

Math 307 Learning Goals. March 23, 2010

Math 307 Learning Goals. March 23, 2010 Math 307 Learning Goals March 23, 2010 Course Description The course presents core concepts of linear algebra by focusing on applications in Science and Engineering. Examples of applications from recent

More information

L3: Review of linear algebra and MATLAB

L3: Review of linear algebra and MATLAB L3: Review of linear algebra and MATLAB Vector and matrix notation Vectors Matrices Vector spaces Linear transformations Eigenvalues and eigenvectors MATLAB primer CSCE 666 Pattern Analysis Ricardo Gutierrez-Osuna

More information

Introduction to Python

Introduction to Python Introduction to Python Luis Pedro Coelho Institute for Molecular Medicine (Lisbon) Lisbon Machine Learning School II Luis Pedro Coelho (IMM) Introduction to Python Lisbon Machine Learning School II (1

More information

Skriptsprachen. Numpy und Scipy. Kai Dührkop. Lehrstuhl fuer Bioinformatik Friedrich-Schiller-Universitaet Jena

Skriptsprachen. Numpy und Scipy. Kai Dührkop. Lehrstuhl fuer Bioinformatik Friedrich-Schiller-Universitaet Jena Skriptsprachen Numpy und Scipy Kai Dührkop Lehrstuhl fuer Bioinformatik Friedrich-Schiller-Universitaet Jena kai.duehrkop@uni-jena.de 24. September 2015 24. September 2015 1 / 37 Numpy Numpy Numerische

More information

Coding the Matrix Index - Version 0

Coding the Matrix Index - Version 0 0 vector, [definition]; (2.4.1): 68 2D geometry, transformations in, [lab]; (4.15.0): 196-200 A T (matrix A transpose); (4.5.4): 157 absolute value, complex number; (1.4.1): 43 abstract/abstracting, over

More information

NUMERICAL METHODS USING MATLAB

NUMERICAL METHODS USING MATLAB NUMERICAL METHODS USING MATLAB Dr John Penny George Lindfield Department of Mechanical Engineering, Aston University ELLIS HORWOOD NEW YORK LONDON TORONTO SYDNEY TOKYO SINGAPORE Preface 1 An introduction

More information

Identify the graph of a function, and obtain information from or about the graph of a function.

Identify the graph of a function, and obtain information from or about the graph of a function. PS 1 Graphs: Graph equations using rectangular coordinates and graphing utilities, find intercepts, discuss symmetry, graph key equations, solve equations using a graphing utility, work with lines and

More information

THE PYTHAGOREAN THEOREM

THE PYTHAGOREAN THEOREM THE STORY SO FAR THE PYTHAGOREAN THEOREM USES OF THE PYTHAGOREAN THEOREM USES OF THE PYTHAGOREAN THEOREM SOLVE RIGHT TRIANGLE APPLICATIONS USES OF THE PYTHAGOREAN THEOREM SOLVE RIGHT TRIANGLE APPLICATIONS

More information

ENVIRONMENTAL DATA ANALYSIS WILLIAM MENKE JOSHUA MENKE WITH MATLAB COPYRIGHT 2011 BY ELSEVIER, INC. ALL RIGHTS RESERVED.

ENVIRONMENTAL DATA ANALYSIS WILLIAM MENKE JOSHUA MENKE WITH MATLAB COPYRIGHT 2011 BY ELSEVIER, INC. ALL RIGHTS RESERVED. ENVIRONMENTAL DATA ANALYSIS WITH MATLAB WILLIAM MENKE PROFESSOR OF EARTH AND ENVIRONMENTAL SCIENCE COLUMBIA UNIVERSITY JOSHUA MENKE SOFTWARE ENGINEER JOM ASSOCIATES COPYRIGHT 2011 BY ELSEVIER, INC. ALL

More information

Companion. Jeffrey E. Jones

Companion. Jeffrey E. Jones MATLAB7 Companion 1O11OO1O1O1OOOO1O1OO1111O1O1OO 1O1O1OO1OO1O11OOO1O111O1O1O1O1 O11O1O1O11O1O1O1O1OO1O11O1O1O1 O1O1O1111O11O1O1OO1O1O1O1OOOOO O1111O1O1O1O1O1O1OO1OO1OO1OOO1 O1O11111O1O1O1O1O Jeffrey E.

More information

Preface to Second Edition... vii. Preface to First Edition...

Preface to Second Edition... vii. Preface to First Edition... Contents Preface to Second Edition..................................... vii Preface to First Edition....................................... ix Part I Linear Algebra 1 Basic Vector/Matrix Structure and

More information

Linear Algebra and Probability

Linear Algebra and Probability Linear Algebra and Probability for Computer Science Applications Ernest Davis CRC Press Taylor!* Francis Group Boca Raton London New York CRC Press is an imprint of the Taylor Sc Francis Croup, an informa

More information

pyoptfem Documentation

pyoptfem Documentation pyoptfem Documentation Release V0.0.6 F. Cuvelier November 09, 2013 CONTENTS 1 Presentation 3 1.1 Classical assembly algorithm (base version).............................. 6 1.2 Sparse matrix requirement........................................

More information

Contents. UNIT 1 Descriptive Statistics 1. vii. Preface Summary of Goals for This Text

Contents. UNIT 1 Descriptive Statistics 1. vii. Preface Summary of Goals for This Text Preface Summary of Goals for This Text vii ix UNIT 1 Descriptive Statistics 1 CHAPTER 1 Basic Descriptive Statistics 3 1.1 Types of Biological Data 3 1.2 Summary Descriptive Statistics of DataSets 4 1.3

More information

Linear Transformations

Linear Transformations Lab 4 Linear Transformations Lab Objective: Linear transformations are the most basic and essential operators in vector space theory. In this lab we visually explore how linear transformations alter points

More information

Computational Methods for Nonlinear Systems

Computational Methods for Nonlinear Systems Computational Methods for Nonlinear Systems Cornell Physics 682 / CIS 629 James P. Sethna Christopher R. Myers Computational Methods for Nonlinear Systems Graduate computational science laboratory course

More information

1 Overview of Simulink. 2 State-space equations

1 Overview of Simulink. 2 State-space equations Modelling and simulation of engineering systems Simulink Exercise 1 - translational mechanical systems Dr. M. Turner (mct6@sun.engg.le.ac.uk 1 Overview of Simulink Simulink is a package which runs in the

More information

Preface. Figures Figures appearing in the text were prepared using MATLAB R. For product information, please contact:

Preface. Figures Figures appearing in the text were prepared using MATLAB R. For product information, please contact: Linear algebra forms the basis for much of modern mathematics theoretical, applied, and computational. The purpose of this book is to provide a broad and solid foundation for the study of advanced mathematics.

More information

Background Mathematics (2/2) 1. David Barber

Background Mathematics (2/2) 1. David Barber Background Mathematics (2/2) 1 David Barber University College London Modified by Samson Cheung (sccheung@ieee.org) 1 These slides accompany the book Bayesian Reasoning and Machine Learning. The book and

More information

Syllabus for IMGS-616 Fourier Methods in Imaging (RIT #11857) Week 1: 8/26, 8/28 Week 2: 9/2, 9/4

Syllabus for IMGS-616 Fourier Methods in Imaging (RIT #11857)  Week 1: 8/26, 8/28 Week 2: 9/2, 9/4 IMGS 616-20141 p.1 Syllabus for IMGS-616 Fourier Methods in Imaging (RIT #11857) 3 July 2014 (TENTATIVE and subject to change) Note that I expect to be in Europe twice during the term: in Paris the week

More information

Introduction to Python

Introduction to Python Introduction to Python Luis Pedro Coelho luis@luispedro.org @luispedrocoelho European Molecular Biology Laboratory Lisbon Machine Learning School 2015 Luis Pedro Coelho (@luispedrocoelho) Introduction

More information

ECE 5615/4615 Computer Project

ECE 5615/4615 Computer Project Set #1p Due Friday March 17, 017 ECE 5615/4615 Computer Project The details of this first computer project are described below. This being a form of take-home exam means that each person is to do his/her

More information

Python. Tutorial. Jan Pöschko. March 22, Graz University of Technology

Python. Tutorial. Jan Pöschko. March 22, Graz University of Technology Tutorial Graz University of Technology March 22, 2010 Why? is: very readable easy to learn interpreted & interactive like a UNIX shell, only better object-oriented but not religious about it slower than

More information

Spiral Review Probability, Enter Your Grade Online Quiz - Probability Pascal's Triangle, Enter Your Grade

Spiral Review Probability, Enter Your Grade Online Quiz - Probability Pascal's Triangle, Enter Your Grade Course Description This course includes an in-depth analysis of algebraic problem solving preparing for College Level Algebra. Topics include: Equations and Inequalities, Linear Relations and Functions,

More information

age for ^^Undergraduates Gregory V. Bard Providence, Rhode Island AMERICAN MATHEMATICAL SOCIETY

age for ^^Undergraduates Gregory V. Bard Providence, Rhode Island AMERICAN MATHEMATICAL SOCIETY age for ^^Undergraduates Gregory V. Bard AMERICAN MATHEMATICAL SOCIETY Providence, Rhode Island Contents Preface: How to Use This Book xv Acknowledgements xix Chapter 1. Welcome to Sage! 1 1.1. Using Sage

More information

Course Name: Digital Signal Processing Course Code: EE 605A Credit: 3

Course Name: Digital Signal Processing Course Code: EE 605A Credit: 3 Course Name: Digital Signal Processing Course Code: EE 605A Credit: 3 Prerequisites: Sl. No. Subject Description Level of Study 01 Mathematics Fourier Transform, Laplace Transform 1 st Sem, 2 nd Sem 02

More information

Name: INSERT YOUR NAME HERE. Due to dropbox by 6pm PDT, Wednesday, December 14, 2011

Name: INSERT YOUR NAME HERE. Due to dropbox by 6pm PDT, Wednesday, December 14, 2011 AMath 584 Name: INSERT YOUR NAME HERE Take-home Final UWNetID: INSERT YOUR NETID Due to dropbox by 6pm PDT, Wednesday, December 14, 2011 The main part of the assignment (Problems 1 3) is worth 80 points.

More information

IDL Advanced Math & Stats Module

IDL Advanced Math & Stats Module IDL Advanced Math & Stats Module Regression List of Routines and Functions Multiple Linear Regression IMSL_REGRESSORS IMSL_MULTIREGRESS IMSL_MULTIPREDICT Generates regressors for a general linear model.

More information

DATA SCIENCE SIMPLIFIED USING ARCGIS API FOR PYTHON

DATA SCIENCE SIMPLIFIED USING ARCGIS API FOR PYTHON DATA SCIENCE SIMPLIFIED USING ARCGIS API FOR PYTHON LEAD CONSULTANT, INFOSYS LIMITED SEZ Survey No. 41 (pt) 50 (pt), Singapore Township PO, Ghatkesar Mandal, Hyderabad, Telengana 500088 Word Limit of the

More information

TEMScripts Real-time Crystallography Manual. TEMScripts LLC. Last updated: 11/4/2016

TEMScripts Real-time Crystallography Manual. TEMScripts LLC. Last updated: 11/4/2016 TEMScripts Real-time Crystallography Manual TEMScripts LLC. Last updated: 11/4/2016 Close Digital Micrograph Installation Copy following files to \\Gatan\DigitalMicrograph\PlugIns (normally under C:\Program

More information

MATHEMATICAL OBJECTS in

MATHEMATICAL OBJECTS in MATHEMATICAL OBJECTS in Computational Tools in a Unified Object-Oriented Approach Yair Shapira @ CRC Press Taylor & Francis Group Boca Raton London New York CRC Press is an imprint of the Taylor & Francis

More information

A Matrix Operator in APL Bob Smith Sudley Place Software Originally Written 30 Jul 2017 Updated 10 Sep 2017 PRELIMINARY

A Matrix Operator in APL Bob Smith Sudley Place Software Originally Written 30 Jul 2017 Updated 10 Sep 2017 PRELIMINARY A Matrix Operator in APL Bob Smith Sudley Place Software bsmith@sudleyplace.com Originally Written 30 Jul 2017 Updated 10 Sep 2017 PRELIMINARY Introduction Normally in APL when applying a scalar function

More information

correlated to the Washington D.C. Public Schools Learning Standards Algebra II

correlated to the Washington D.C. Public Schools Learning Standards Algebra II correlated to the Washington D.C. Public Schools Learning Standards Algebra II McDougal Littell Algebra 2 2007 correlated to the Washington DC Public Schools Learning Standards Algebra II NUMBER SENSE

More information

Notater: INF3331. Veronika Heimsbakk December 4, Introduction 3

Notater: INF3331. Veronika Heimsbakk December 4, Introduction 3 Notater: INF3331 Veronika Heimsbakk veronahe@student.matnat.uio.no December 4, 2013 Contents 1 Introduction 3 2 Bash 3 2.1 Variables.............................. 3 2.2 Loops...............................

More information

Practical Information

Practical Information MA2501 Numerical Methods Spring 2018 Norwegian University of Science and Technology Department of Mathematical Sciences Semester Project Practical Information This project counts for 30 % of the final

More information

Magnetotellurics Impedance Tensor Tools (MITT)

Magnetotellurics Impedance Tensor Tools (MITT) Magnetotellurics Impedance Tensor Tools (MITT) User Guide September, 2015 Ivan Romero-Ruiz1 and Jaume Pous1 1 Departament de Geodinàmica i Geofísica, Universitat de Barcelona, Martí i Franquès, s/n, 08028

More information

1 Number Systems and Errors 1

1 Number Systems and Errors 1 Contents 1 Number Systems and Errors 1 1.1 Introduction................................ 1 1.2 Number Representation and Base of Numbers............. 1 1.2.1 Normalized Floating-point Representation...........

More information

QR 2: Least Squares and Computing Eigenvalues

QR 2: Least Squares and Computing Eigenvalues Lab 8 QR : Least Squares and Computing Eigenvalues Lab Objective: Because of its numerical stability and convenient structure, the QR decomposition is the basis of many important and practical algorithms

More information

Computational Methods for Nonlinear Systems

Computational Methods for Nonlinear Systems Computational Methods for Nonlinear Systems Cornell Physics 682 / CIS 629 Chris Myers Computational Methods for Nonlinear Systems Graduate computational science laboratory course developed by Myers & Sethna

More information

Numpy. Luis Pedro Coelho. October 22, Programming for Scientists. Luis Pedro Coelho (Programming for Scientists) Numpy October 22, 2012 (1 / 26)

Numpy. Luis Pedro Coelho. October 22, Programming for Scientists. Luis Pedro Coelho (Programming for Scientists) Numpy October 22, 2012 (1 / 26) Numpy Luis Pedro Coelho Programming for Scientists October 22, 2012 Luis Pedro Coelho (Programming for Scientists) Numpy October 22, 2012 (1 / 26) Historical Numeric (1995) Numarray (for large arrays)

More information

PySaxs A Python module and GUI for SAXS data treatment

PySaxs A Python module and GUI for SAXS data treatment DIRECTION DES SCIENCES DE LA MATIERE IRAMIS Laboratoire Interdisciplinaire sur l Organisation Nanométrique et Supramoléculaire PySaxs A Python module and GUI for SAXS data treatment Olivier Taché Collaborative

More information

ESCI 386 Scientific Programming, Analysis and Visualization with Python. Lesson 18 - Linear Algebra

ESCI 386 Scientific Programming, Analysis and Visualization with Python. Lesson 18 - Linear Algebra ESCI 386 Scientific Programming, Analysis and Visualization with Python Lesson 18 - Linear Algebra 1 Matrix Operations In many instances, numpy arrays can be thought of as matrices. In the next slides

More information

A Brief Introduction To. GRTensor. On MAPLE Platform. A write-up for the presentation delivered on the same topic as a part of the course PHYS 601

A Brief Introduction To. GRTensor. On MAPLE Platform. A write-up for the presentation delivered on the same topic as a part of the course PHYS 601 A Brief Introduction To GRTensor On MAPLE Platform A write-up for the presentation delivered on the same topic as a part of the course PHYS 601 March 2012 BY: ARSHDEEP SINGH BHATIA arshdeepsb@gmail.com

More information

Scikit-learn. scikit. Machine learning for the small and the many Gaël Varoquaux. machine learning in Python

Scikit-learn. scikit. Machine learning for the small and the many Gaël Varoquaux. machine learning in Python Scikit-learn Machine learning for the small and the many Gaël Varoquaux scikit machine learning in Python In this meeting, I represent low performance computing Scikit-learn Machine learning for the small

More information

TRIGONOMETRY AND PRECALCULUS CURRICULUM Course 17008

TRIGONOMETRY AND PRECALCULUS CURRICULUM Course 17008 TRIGONOMETRY AND PRECALCULUS CURRICULUM Course 17008 Students taking this course will concentrate on algebraic concepts and applications. The use of graphing calculators and other technologies is emphasized

More information

Third Edition. William H. Press. Raymer Chair in Computer Sciences and Integrative Biology The University of Texas at Austin. Saul A.

Third Edition. William H. Press. Raymer Chair in Computer Sciences and Integrative Biology The University of Texas at Austin. Saul A. NUMERICAL RECIPES The Art of Scientific Computing Third Edition William H. Press Raymer Chair in Computer Sciences and Integrative Biology The University of Texas at Austin Saul A. Teukolsky Hans A. Bethe

More information

Remark 1 By definition, an eigenvector must be a nonzero vector, but eigenvalue could be zero.

Remark 1 By definition, an eigenvector must be a nonzero vector, but eigenvalue could be zero. Sec 5 Eigenvectors and Eigenvalues In this chapter, vector means column vector Definition An eigenvector of an n n matrix A is a nonzero vector x such that A x λ x for some scalar λ A scalar λ is called

More information

1. Quantization Signal to Noise Ratio (SNR).

1. Quantization Signal to Noise Ratio (SNR). Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 2, Quantization, SNR Gerald Schuller, TU Ilmenau 1. Quantization Signal to Noise Ratio (SNR). Assume we have a A/D converter with

More information

which implies that we can take solutions which are simultaneous eigen functions of

which implies that we can take solutions which are simultaneous eigen functions of Module 1 : Quantum Mechanics Chapter 6 : Quantum mechanics in 3-D Quantum mechanics in 3-D For most physical systems, the dynamics is in 3-D. The solutions to the general 3-d problem are quite complicated,

More information

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat.

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat. Numerical Methods for Engineers An Introduction with and Scientists Applications using MATLAB Third Edition Amos Gilat Vish- Subramaniam Department of Mechanical Engineering The Ohio State University Wiley

More information

xvi xxiii xxvi Construction of the Real Line 2 Is Every Real Number Rational? 3 Problems Algebra of the Real Numbers 7

xvi xxiii xxvi Construction of the Real Line 2 Is Every Real Number Rational? 3 Problems Algebra of the Real Numbers 7 About the Author v Preface to the Instructor xvi WileyPLUS xxii Acknowledgments xxiii Preface to the Student xxvi 1 The Real Numbers 1 1.1 The Real Line 2 Construction of the Real Line 2 Is Every Real

More information

SVD and Image Compression

SVD and Image Compression The SVD and Image Compression Lab Objective: The Singular Value Decomposition (SVD) is an incredibly useful matrix factorization that is widely used in both theoretical and applied mathematics. The SVD

More information

Mathematics for Engineers and Scientists

Mathematics for Engineers and Scientists Mathematics for Engineers and Scientists Fourth edition ALAN JEFFREY University of Newcastle-upon-Tyne B CHAPMAN & HALL University and Professional Division London New York Tokyo Melbourne Madras Contents

More information

Math 307 Learning Goals

Math 307 Learning Goals Math 307 Learning Goals May 14, 2018 Chapter 1 Linear Equations 1.1 Solving Linear Equations Write a system of linear equations using matrix notation. Use Gaussian elimination to bring a system of linear

More information

WA State Common Core Standards - Mathematics

WA State Common Core Standards - Mathematics Number & Quantity The Real Number System Extend the properties of exponents to rational exponents. 1. Explain how the definition of the meaning of rational exponents follows from extending the properties

More information

Ref:GIS Math G 11 C.D

Ref:GIS Math G 11 C.D Ref:GIS Math G 11 C.D.2017-2018 2011-2012 SUBJECT : Math TITLE OF COURSE : Algebra 2 GRADE LEVEL : 11 DURATION : ONE YEAR NUMBER OF CREDITS : 1.25 Goals: Algebra: Seeing Structure in Expressions A-SSE

More information

SLO to ILO Alignment Reports

SLO to ILO Alignment Reports SLO to ILO Alignment Reports CAN - 00 - Institutional Learning Outcomes (ILOs) CAN ILO #1 - Critical Thinking - Select, evaluate, and use information to investigate a point of view, support a conclusion,

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 12 Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign Copyright c 2002. Reproduction permitted for noncommercial,

More information

IAST Documentation. Release Cory M. Simon

IAST Documentation. Release Cory M. Simon IAST Documentation Release 0.0.0 Cory M. Simon November 02, 2015 Contents 1 Installation 3 2 New to Python? 5 3 pyiast tutorial 7 3.1 Import the pure-component isotherm data................................

More information

Lab 4: Working with arrays and eigenvalues

Lab 4: Working with arrays and eigenvalues Lab 4: Working with arrays and eigenvalues March 23, 2017 The purpose of this lab is to get familiar with manipulating data arrays in numpy. Browser use: This lab introduces the use of a number of Python

More information

Parallelization of the FE-solver ICONA

Parallelization of the FE-solver ICONA Parallelization of the FE-solver ICONA 2 nd Workshop on Structural Analysis of Lightweight Structures INTALES GmbH Engineering Solutions University of Innsbruck, Faculty of Civil Engineering Sciences University

More information

Abstract Interpretation with Higher-Dimensional Ellipsoids and Conic Extrapolation

Abstract Interpretation with Higher-Dimensional Ellipsoids and Conic Extrapolation Abstract Interpretation with Higher-Dimensional Ellipsoids and Conic Extrapolation or potatoes & ice cream cones Mendes Oulamara, Arnaud Venet Computer Aided Verification, 2015 July 22, 2015 ÉCOLE NORMALE

More information

DFT & Fast Fourier Transform PART-A. 7. Calculate the number of multiplications needed in the calculation of DFT and FFT with 64 point sequence.

DFT & Fast Fourier Transform PART-A. 7. Calculate the number of multiplications needed in the calculation of DFT and FFT with 64 point sequence. SHRI ANGALAMMAN COLLEGE OF ENGINEERING & TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR,TRICHY-621105. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING UNIT I DFT & Fast Fourier

More information

Prentice Hall CME Project, Algebra

Prentice Hall CME Project, Algebra Prentice Hall Advanced Algebra C O R R E L A T E D T O Oregon High School Standards Draft 6.0, March 2009, Advanced Algebra Advanced Algebra A.A.1 Relations and Functions: Analyze functions and relations

More information

Creative Data Mining

Creative Data Mining Creative Data Mining Using ML algorithms in python Artem Chirkin Dr. Daniel Zünd Danielle Griego Lecture 7 0.04.207 /7 What we will cover today Outline Getting started Explore dataset content Inspect visually

More information

Chapter 2: The Fourier Transform

Chapter 2: The Fourier Transform EEE, EEE Part A : Digital Signal Processing Chapter Chapter : he Fourier ransform he Fourier ransform. Introduction he sampled Fourier transform of a periodic, discrete-time signal is nown as the discrete

More information

Definition of the Drazin Inverse

Definition of the Drazin Inverse 15 The Drazin Inverse Lab Objective: The Drazin inverse of a matrix is a pseudoinverse which preserves certain spectral properties of the matrix. In this lab, we compute the Drazin inverse using the Schur

More information

Quantile Textbook Report

Quantile Textbook Report Quantile Textbook Report Algebra 2 Author Charles, Randall I., et al StateEdition West Virginia Grade Algebra 2 1 Expressions, Equations, and Inequalities 1.1 Patterns and Expressions 930Q 1.2 Properties

More information

Mathematics (MAT) MAT 051 Pre-Algebra. 4 Hours. Prerequisites: None. 4 hours weekly (4-0)

Mathematics (MAT) MAT 051 Pre-Algebra. 4 Hours. Prerequisites: None. 4 hours weekly (4-0) Mathematics (MAT) MAT 051 Pre-Algebra 4 Hours Prerequisites: None 4 hours weekly (4-0) MAT 051 is designed as a review of the basic operations of arithmetic and an introduction to algebra. The student

More information

Root Finding and Optimization

Root Finding and Optimization Root Finding and Optimization Ramses van Zon SciNet, University o Toronto Scientiic Computing Lecture 11 February 11, 2014 Root Finding It is not uncommon in scientiic computing to want solve an equation

More information

Algebra vocabulary CARD SETS Frame Clip Art by Pixels & Ice Cream

Algebra vocabulary CARD SETS Frame Clip Art by Pixels & Ice Cream Algebra vocabulary CARD SETS 1-7 www.lisatilmon.blogspot.com Frame Clip Art by Pixels & Ice Cream Algebra vocabulary Game Materials: one deck of Who has cards Objective: to match Who has words with definitions

More information

MODELS USING MATRICES WITH PYTHON

MODELS USING MATRICES WITH PYTHON MODELS USING MATRICES WITH PYTHON José M. Garrido Department of Computer Science May 2016 College of Computing and Software Engineering Kennesaw State University c 2015, J. M. Garrido Models Using Matrices

More information

Neural Networks Teaser

Neural Networks Teaser 1/11 Neural Networks Teaser February 27, 2017 Deep Learning in the News 2/11 Go falls to computers. Learning 3/11 How to teach a robot to be able to recognize images as either a cat or a non-cat? This

More information

MA3025 Course Prerequisites

MA3025 Course Prerequisites MA3025 Course Prerequisites MA 3025 (4-1) MA3025 (4-1) Logic and Discrete Mathematics: Provides a rigorous foundation in logic and elementary discrete mathematics. Topics from logic include modeling English

More information

Applied Linear Algebra

Applied Linear Algebra Applied Linear Algebra Peter J. Olver School of Mathematics University of Minnesota Minneapolis, MN 55455 olver@math.umn.edu http://www.math.umn.edu/ olver Chehrzad Shakiban Department of Mathematics University

More information

FILTERING IN THE FREQUENCY DOMAIN

FILTERING IN THE FREQUENCY DOMAIN 1 FILTERING IN THE FREQUENCY DOMAIN Lecture 4 Spatial Vs Frequency domain 2 Spatial Domain (I) Normal image space Changes in pixel positions correspond to changes in the scene Distances in I correspond

More information

Introduction to Techniques for Counting

Introduction to Techniques for Counting Introduction to Techniques for Counting A generating function is a device somewhat similar to a bag. Instead of carrying many little objects detachedly, which could be embarrassing, we put them all in

More information

Instructional Calendar Accelerated Integrated Precalculus. Chapter 1 Sections and 1.6. Section 1.4. Section 1.5

Instructional Calendar Accelerated Integrated Precalculus. Chapter 1 Sections and 1.6. Section 1.4. Section 1.5 1 st Semester 32. Compare and contrast properties of functions within and across a variety of functions. -Tabular, Graphical, and Algebraic Representations of Functions -Domain and Range of Functions -Increasing,

More information

COURSE OF STUDY MATHEMATICS

COURSE OF STUDY MATHEMATICS COURSE OF STUDY MATHEMATICS Name of Course: Honors PreCalculus Course Number: 341 Grade Level: 11 Length of Course: 180 Days Type of Offering: Academic Credit Value: 1 credit Prerequisite/s: Honors Geometry

More information

B553 Lecture 5: Matrix Algebra Review

B553 Lecture 5: Matrix Algebra Review B553 Lecture 5: Matrix Algebra Review Kris Hauser January 19, 2012 We have seen in prior lectures how vectors represent points in R n and gradients of functions. Matrices represent linear transformations

More information