Python Scripting for Computational ScienceSpringer Science & Business Media, 2013 M03 14 - 732 pages The primary purpose of this book is to help scientists and engineers work ing intensively with computers to become more productive, have more fun, and increase the reliability of their investigations. Scripting in the Python programming language can be a key tool for reaching these goals [27,29]. The term scripting means different things to different people. By scripting I mean developing programs of an administering nature, mostly to organize your work, using languages where the abstraction level is higher and program ming is more convenient than in Fortran, C, C++, or Java. Perl, Python, Ruby, Scheme, and Tel are examples of languages supporting such high-level programming or scripting. To some extent Matlab and similar scientific com puting environments also fall into this category, but these environments are mainly used for computing and visualization with built-in tools, while script ing aims at gluing a range of different tools for computing, visualization, data analysis, file/directory management, user interfaces, and Internet communi cation. So, although Matlab is perhaps the scripting language of choiee in computational science today, my use of the term scripting goes beyond typi cal Matlab scripts. Python stands out as the language of choice for scripting in computational science because of its very elean syntax, rieh modulariza tion features, good support for numerical computing, and rapidly growing popularity. What Scripting is About. |
Contents
Getting Started with Python Scripting | 27 |
3 | 38 |
3 | 63 |
Numerical Computing in Python 121 | 120 |
Combining Python with Fortran C and C++ | 169 |
Introduction to GUI Programming | 205 |
Web Interfaces and CGI Programming | 275 |
Advanced Python | 299 |
Fortran Programming with NumPy Arrays 431 | 430 |
More Advanced GUI Programming | 503 |
The Simulation Code | 566 |
Tools and Examples | 579 |
A Setting up the Required Software Environment 649 | 648 |
B Elements of Software Engineering | 665 |
Bibliography 715 | 714 |
721 | |
Other editions - View all
Common terms and phrases
application args button callback CGI script Chapter code segment command command-line command-line arguments compiled compute contains create data structures def __init__(self default dialog dictionary directory tree doc strings doc.html documentation double dynamically typed environment variable example Exercise extension module extract F2PY filename float Fortran func func1 Gnuplot graphical user interfaces grid gridloop2 header files Hello implementation import input integer iterations keyword arguments label loop match Matlab menu method myfunc numarray Numerical Python NumPy arrays object option os.system output pack parameters plot PyObject Python code Python function Python interface Python module Python script real numbers regression test regular expression ScientificPython SciPy simulation slider source code specified stored subroutine SWIG syntax text entry Tkinter tuple Unix update vectorized visualization widget window wrapper code write xcoor ycoor