Python Scripting for Computational Science
Numerous readers of the second edition have noti?ed me about misprints and possible improvements of the text and the associated computer codes. The resulting modi?cations have been incorporated in this new edition and its accompanying software. The major
- PDF / 7,281,186 Bytes
- 777 Pages / 482.812 x 673.309 pts Page_size
- 46 Downloads / 220 Views
3
Editorial Board: T. J. Barth M. Griebel D. E. Keyes R. M. Nieminen D. Roose T. Schlick
Hans Petter Langtangen
Python Scripting for Computational Science Third Edition
Texts in Computational Science and Engineering Editors Timothy J. Barth Michael Griebel David E. Keyes Risto M. Nieminen Dirk Roose Tamar Schlick
3
Hans Petter Langtangen
Python Scripting for Computational Science Third Edition
With 62 Figures
123
Hans Petter Langtangen Simula Research Laboratory Martin Linges vei 17 1325 Lysaker, Fornebu Norway [email protected] On leave from: Department of Informatics University of Oslo P.O. Box 1080 Blindern 0316 Oslo, Norway http://folk.uio.no/hpl
The author of this book has received financial support from the NFF – Norsk faglitterær forfatter- og oversetterforening.
Corrected 2nd printing 2009
ISBN 978-3-540-73915-9
e-ISBN 978-3-540-73916-6
DOI 10.1007/978-3-540-73916-6 Texts in Computational Science and Engineering ISSN 1611-0994 Library of Congress Control Number: 2007940499 Mathematics Subject Classification (2000): 65Y99, 68N01, 68N15, 68N19, 68N30, 97U50, 97U70 © 2009, 2008, 2006, 2004 Springer-Verlag Berlin Heidelberg This work is subject to copyright. All rights are reserved, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilm or in any other way, and storage in data banks. Duplication of this publication or parts thereof is permitted only under the provisions of the German Copyright Law of September 9, 1965, in its current version, and permissions for use must always be obtained from Springer-Verlag. Violations are liable for prosecution under the German Copyright Law. The use of general descriptive names, registered names, trademarks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use. Cover design: WMXDesign GmbH, Heidelberg, Germany Printed on acid-free paper 987654321 springer.com
Preface to the Third Edition
Numerous readers of the second edition have notified me about misprints and possible improvements of the text and the associated computer codes. The resulting modifications have been incorporated in this new edition and its accompanying software. The major change between the second and third editions, however, is caused by the new implementation of Numerical Python, now called numpy. The new numpy package encourages a slightly different syntax compared to the old Numeric implementation, which was used in the previous editions. Since Numerical Python functionality appears in a lot of places in the book, there are hence a huge number of updates to the new suggested numpy syntax, especially in Chapters 4, 9, and 10. The second edition was based on Python version 2.3, while the third edition contains updates for version 2.5. Recent Python features, such as generator expressions (Chapter 8.9.4), Ctypes for
Data Loading...