Python Scripting for Computational Science and over one million other books are available for Amazon Kindle. Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Kindle Edition
 
   
Sell Back Your Copy
For a $7.44 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Python Scripting for Computational Science (Texts in Computational Science and Engineering)
 
 
Start reading Python Scripting for Computational Science on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Python Scripting for Computational Science (Texts in Computational Science and Engineering) [Hardcover]

Hans Petter Langtangen (Author)
4.6 out of 5 stars  See all reviews (10 customer reviews)

List Price: $69.95
Price: $52.77 & this item ships for FREE with Super Saver Shipping. Details
You Save: $17.18 (25%)
  Special Offers Available
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Only 3 left in stock--order soon (more on the way).
Want it delivered Monday, January 30? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for Students. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $47.49  
Hardcover $52.77  
Paperback $56.20  
Sell Back Your Copy for $7.44
Whether you buy it used on Amazon for $49.60 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $7.44.
Used Price$49.60
Trade-in Price$7.44
Price after
Trade-in
$42.16
There is a newer edition of this item:
Python Scripting for Computational Science (Texts in Computational Science and Engineering) Python Scripting for Computational Science (Texts in Computational Science and Engineering)
Sign up to be notified when this item becomes available.

Book Description

3540739157 978-3540739159 February 13, 2009 3rd
With a primary focus on examples and applications of relevance to computational scientists, this brilliantly useful book shows computational scientists how to develop tailored, flexible, and human-efficient working environments built from small scripts written in the easy-to-learn, high-level Python language. All the tools and examples in this book are open source codes. This third edition features lots of new material. It is also released after a comprehensive reorganization of the text. The author has inserted improved examples and tools and updated information, as well as correcting any errors that crept in to the first imprint.

Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $5 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Customers buy this book with Beginning Python Visualization: Crafting Visual Transformation Scripts (Books for Professionals by Professionals) $33.99

Python Scripting for Computational Science (Texts in Computational Science and Engineering) + Beginning Python Visualization: Crafting Visual Transformation Scripts (Books for Professionals by Professionals)


Editorial Reviews

Review

From the reviews of the second edition: "This book addresses primarily a CSE (computational science and engineering) audience. … gives a clear and detailed account on the ways in which the surprisingly powerful Python language may aid the CSE community." (H. Muthsam, Monatshefte für Mathematik, Vol. 151 (4), 2007)

Product Details

  • Hardcover: 784 pages
  • Publisher: Springer; 3rd edition (February 13, 2009)
  • Language: English
  • ISBN-10: 3540739157
  • ISBN-13: 978-3540739159
  • Product Dimensions: 9.4 x 6.4 x 1.2 inches
  • Shipping Weight: 2.4 pounds (View shipping rates and policies)
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (10 customer reviews)
  • Amazon Best Sellers Rank: #607,955 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

10 Reviews
5 star:
 (7)
4 star:
 (2)
3 star:
 (1)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.6 out of 5 stars (10 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

143 of 148 people found the following review helpful:
5.0 out of 5 stars Convincing demonstration of Python's value in science, October 14, 2004
The author has 2 main goals:
1) To improve the productivity of scientists familiar with specific software systems (especially Matlab, Maple, and Mathematica) by teaching them to "glue" applications together.
2) To advocate Python as the preferred "glue" language. In his own words, "I hope to convince computational scientists having experience with Perl that Python is a preferable alternative, especially for large long-term projects."

He has certainly done a creditable job. As an expert in computational differential equations, he neglects neither efficiency nor correctness, while stressing both simplicity and reliability. In this sense, he has done a great service to the Python community.

The question is: What justifies the purchase of his book?
The answer is: Chapters 4, 9, and 10.

Contents:

1. Introduction--26pp
Very convincing arguments.

2. Getting Started With Python Scripting--38pp
Interesting examples.

3. Basic Python--56pp
A too-quick tutorial. Go to python dot org instead.

4. Numerical Computing in Python--48pp
Stellar explanations of vectorized array operations.

5. Combining Python with Fortran, C, and C++--36pp
Details use of Fortran2Py and SWIG. Mentions many alternatives.

6. Introduction to GUI Programming--70pp
Useful examples of Tkinter/pmw widgets.

7. Web Interfaces and CGI Programming--24pp
Good source of ideas.

8. Advanced Python--132pp
Deep and extensive. Includes: option parsing, regular expressions, data persistence and compression, object-oriented programming, exceptions, generic programming, efficiency.

9. Fortran Programming with NumPy Arrays--32pp
All about efficiency and re-use.

10. C and C++ Programming with NumPy Arrays--40pp
More about efficiency. NumPy C API, C++ objects, and SCXX.

11. More Advanced GUI Programming--73pp
Tedious discussion of both Web and standalone GUIs. BLT, canvas, cgi.

12. Tools and Examples--70pp
Excellent examples of PDE solvers, with a powerful GUI, but quite long and tedious.

A. Setting up the Required Software Environment--16pp
Wonderfully specific installation instructions!

B. Elements of Software Engineering--50pp
Python's strength! Very practical advice on modularity, documentation, coding style, regression-testing, version-control.


Strengths:
+ Downloadable py4cs package, esp. numpytools module
+ Great advice everywhere, e.g. CGI checklist, Pythonic programming, and trouble-shooting.
+ Concrete evidence for most assertions.
+ Very attractive presentation. Sturdy, high-quality cover, binding and pages. Brief, elegant code fragments (except in Chapter 12). Readable prose. No wasted space.
+ Available as 5MB pdf file, after purchase of hardcopy. Very nice.
+ Slides, installation instructions, and errata also at web site. Very professional.


My peeves:
- Not enough tables to be a useful manual.
- On p.428(#7) he points out that handling a raised exception is very slow. However, when I time his example with a positive argument, the try-except version is 20% faster (b/c the if clause is skipped), so he is actually giving bad advice for the general case. Luckily, he contradicts himself later, on page 685: "Exceptions should be used instead of if-else tests." The best advice: Avoid common exceptions in inner loops.
- The 10-page index is not as great as it at first seems. (See Martelli's Python in a Nutshell for a better one.)
- Pure interface functions should 'raise NotImplementedError', rather than 'return'.
- Exceptions should never be trapped mindlessly with 'except:'. That would hide your own SyntaxErrors!
- Too many exercises. (It's published as a textbook.) Since there are no answers, the exercises are useless for non-students. (See Lutz's Learning Python for effective exercises with answers.)


Overall rating:
This contains the best information on numerical programming in Python that I've seen. Though expensive, it could easily be your only Python book, given the excellent online documenation already available.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


14 of 14 people found the following review helpful:
5.0 out of 5 stars Absolutly Outstanding, May 2, 2008
By 
Stanely S. Forrester "Stone Mao" (Batavia, Illinois United States) - See all my reviews
(REAL NAME)   
Amazon Verified Purchase(What's this?)
Python Scripting for Computational Science is both an introduction to the Python language and an excellent reference for the intermediate developer. The approach taken by the author is to present the language in the form of tasks to be solved accompanied by example code. As expected for a book on scientific computing the modules covered in the examples emphasize numerical packages but this in no way detracts from the applicability to general Python enthusiast.

What really makes this book more than just another Python introduction is that the author bridges the gap between complied and interpreted code. He demonstrates how the speed of execution of compiled code can be tied to the rapid pace at which scripts can be developed. Examples are provided for interfacing C, C++ and FORTRAN code with Python. Calls to precompiled applications are also covered and the examples were easily adapted to my favorite computational tools. One of the risks with doing numerical work in a scripting language is the possibility of straying into computationally intensive tasks to which interpreted code is not well suited . Latter chapters discuss how to identify these portions of your code and how to migrating these tasks to a compiled language.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


46 of 59 people found the following review helpful:
3.0 out of 5 stars Python for Science Academics and Engineers, NOT programmers, June 3, 2005
By 
Amazon Verified Purchase(What's this?)
I bought this book as an experienced programmer and Unix user expecting more of a "Numerical Recepies in Python" emphasis on the efficient implementation of algorithms which happen to be in Python. I should have paid more attention to the description.

This book is really more of a "Grad Student's Guide to Everyday Python Usage". I imagine it would be very valuable to a mathematics Grad student without too much programming or shell experience, looking for an alternative to Matlab. However, there is very little "Computational Science" in this book. Do NOT expect a cookbook of high performance algorithm implementations.

The book is a very verbose 700+ pages, all in an unexciting academic LaTeX format. The author works through idiom after idiom for accomplishing different tasks in fairly stand-alone sub-sections without much of a feeling of conceptual "flow" between them. It sort of feels like reading through the author's personal lab notes that he took everytime he learned a new language feature or trick.

If you are an experienced programmer, you will quickly get impatient with the verbose presentation that emphasizes idioms and examples instead of fundamental concepts and syntax reference tables. But, if you are an experienced programmer, you are not the target audience for this book.

Braddock Gaskill
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews








Only search this product's reviews



Inside This Book (learn more)
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
numpy arrays, def myfunc, def somefunc, elif option, graph widget, timeit module, callable instances, iterator domain, grid geometry manager, oscillator code, def dump, list box widget, elif isinstance, canvas widget, oscillator program, iterator functionality, sine computation, wrapper code, python import sys, doc string, visualization scripts, insert boundary conditions, callable object, text widget, pickle module
Key Phrases - Capitalized Phrases (CAPs): (learn more)
More Advanced, Advanced Python, Scientific Hello World, Numerical Python, Numerical Computing, Getting Started, Combining Python, List of Common Widget Operations, Solving Partial Differential Equations, Python Library Reference, Fortran Programming, Variables of Different Types, Basic Python, Python Scripting, Animated Graphics, Canvas Widgets, Traditional Programming, Array Storage Issues, Investigating Efficiency, Adding Web Interfaces, Gluing Stand-Alone Applications, Monte Carlo, Extend Exercise, Running Series of Computer Experiments, Adding Plot Areas
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Surprise Me!
Search Inside This Book:


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(13)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums


Listmania!


So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject