A Primer on Scientific Programming with Python

Forside
Springer Science & Business Media, 7. aug. 2009 - 694 sider
Theaimofthisbookistoteachcomputerprogrammingusingexamples from mathematics and the natural sciences. We have chosen to use the Python programming language because it combines remarkable power with very clean, simple, and compact syntax. Python is easy to learn and very well suited for an introduction to computer programming. Python is also quite similar to Matlab and a good language for doing mathematical computing. It is easy to combine Python with compiled languages, like Fortran, C, and C++, which are widely used languages forscienti?ccomputations.AseamlessintegrationofPythonwithJava is o?ered by a special version of Python called Jython. The examples in this book integrate programming with appli- tions to mathematics, physics, biology, and ?nance. The reader is - pected to have knowledge of basic one-variable calculus as taught in mathematics-intensive programs in high schools. It is certainly an - vantage to take a university calculus course in parallel, preferably c- taining both classical and numerical aspects of calculus. Although not strictly required, a background in high school physics makes many of the examples more meaningful.
 

Innhold

Computing with Formulas
1
E 6
13
1 Compute 1+1
42
15 Find errors in the coding of formulas
48
Basic Constructions
51
1 Make a FahrenheitCelsius conversion table
99
Input Data and Error Handling
119
Array Computing and Curve Plotting
169
Files Strings and Dictionaries
269
Reading Coordinates
298
Random Numbers and Simple Games
417
ObjectOriented Programming
479
A Discrete Calculus
573
9
605
CA Complete Project
625
Debugging
651

Interactive Plotting Sessions
189
Index
211
Sequences and Difference Equations
235
E Technical Topics
669
10
687
Opphavsrett

Andre utgaver - Vis alle

Vanlige uttrykk og setninger

Om forfatteren (2009)

Hans Petter Langtangen is a professor of computer science at the University of Oslo. He has formely been a professor of mechanics and is now the director of a Norwegian Center of Excellence: "Center for Biomedical Computing", at Simula Research Laboratory. Langtangen has published over 100 scientific publications and written several books, including papers and a book on Python's potential for scientific computing. He has also developed open source and commercial software systems for computational sciences.

Bibliografisk informasjon