NumPy Beginner's Guide
Second Edition
An acon packed guide using real world examples of the
easy to use, high performance, free open source NumPy
mathemacal library
Ivan Idris
BIRMINGHAM - MUMBAI
Numpy Beginner's Guide
Second Edition
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system,
or transmied in any form or by any means, without the prior wrien permission of the
publisher, except in the case of brief quotaons embedded in crical arcles or reviews.
Every eort has been made in the preparaon of this book to ensure the accuracy of the
informaon presented. However, the informaon contained in this book is sold without
warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers
and distributors will be held liable for any damages caused or alleged to be caused directly
or indirectly by this book.
Packt Publishing has endeavored to provide trademark informaon about all of the
companies and products menoned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this informaon.
First published: November 2011
Second edion: April 2013
Producon Reference: 1170413
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78216-608-5
www.packtpub.com
Cover Image by Suresh Mogre (suresh.mogre.99@gmail.com)
Credits
Author
Ivan Idris
Reviewers
Jaidev Deshpande
Dr. Alexandre Devert
Mark Livingstone
Miklós Prisznyák
Nikolay Karelin
Acquision Editor
Usha Iyer
Lead Technical Editor
Joel Noronha
Technical Editors
Soumya Kan
Devdu Kulkarni
Project Coordinator
Abhishek Kori
Proofreader
Mario Cecere
Indexer
Hemangini Bari
Graphics
Sheetal Aute
Ronak Dhruv
Producon Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa
About the Author
Ivan Idris has an MSc in Experimental Physics. His graduaon thesis had a strong emphasis
on Applied Computer Science. Aer graduang, he worked for several companies as a Java
Developer, Datawarehouse Developer, and QA Analyst. His main professional interests are
Business Intelligence, Big Data, and Cloud Compung. Ivan Idris enjoys wring clean testable
code and interesng technical arcles. Ivan Idris is the author of NumPy Beginner's Guide
& Cookbook. You can nd more informaon and a blog with a few NumPy examples at
ivanidris.net.
I would like to take this opportunity to thank the reviewers and the team
at Packt Publishing for making this book possible. Also thanks goes to
my teachers, professors, and colleagues who taught me about science
and programming. Last but not the least, I would like to acknowledge my
parents, family, and friends for their support.