Web-Books
im Austria-Forum
Austria-Forum
Web-Books
Informatik
Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python
Seite - 210 -
  • Benutzer
  • Version
    • Vollversion
    • Textversion
  • Sprache
    • Deutsch
    • English - Englisch

Seite - 210 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python

Bild der Seite - 210 -

Bild der Seite - 210 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python

Text der Seite - 210 -

210 A GettingAccesstoPython SymPy12 [2] for symbolicmathematics SciPy13 [10] foradvancedscientificcomputing Python2or3? Pythoncomes in twoversions, version2and3, and these arenot fully compati- ble. However, for the programs in this book, thedifferences are very small, the majoronebeingprint,which inPython2 is a statement like print ’a:’, a, ’b:’, b while inPython3 it is a functioncall print( ’a:’, a, ’b:’, b) Theauthors havewrittenPythonv2.7 code in this book in away thatmakes porting to version 3.4 or later trivial: most programswill just need afix of the printstatement. Thiscanbeautomaticallydonebyrunning2to3 prog.py to transform a Python 2 program prog.py to its Python 3 counterpart. One can also use tools likefutureorsix to easilywrite programs that run under both versions 2 and 3, or the futurize program can automatically do this for you basedonv2.7code. Sincemanytools fordoingscientificcomputinginPythonarestill onlyavail- able forPythonversion2,weuse thisversionin thepresentbook,butemphasize that it has tobev2.7andnotolderversions. Therearedifferentways toget access toPythonwith the requiredpackages: 1. Use a computer system at an institutionwhere the software is installed. Such a system can also be used from your local laptop through remote login over anetwork. 2. Install the softwareonyourown laptop. 3. Useawebservice. Asystemadministratorcantakethelistofsoftwarepackagesandinstall themissing ones on a computer system. For the two other options, detailed descriptions are givenbelow. Using aweb service is very straightforward, but has the disadvantage that you areconstrainedby thepackages thatareallowed to install on theservice. Thereare services at the timeof thiswriting that suffice forworkingwithmost of this book, but if you are going to solvemore complicatedmathematical problems, youwill needmore sophisticated mathematical Python packages, more storage andmore computer resources, and thenyouwill benefitgreatly fromhavingPython installed onyourowncomputer. 12http://sympy.org 13http://scipy.org
zurück zum  Buch Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python"
Programming for Computations – Python A Gentle Introduction to Numerical Simulations with Python
Titel
Programming for Computations – Python
Untertitel
A Gentle Introduction to Numerical Simulations with Python
Autoren
Svein Linge
Hans Petter Langtangen
Verlag
Springer Open
Datum
2016
Sprache
englisch
Lizenz
CC BY-NC 4.0
ISBN
978-3-319-32428-9
Abmessungen
17.8 x 25.4 cm
Seiten
248
Schlagwörter
Programmiersprache, Informatik, programming language, functional, imperative, object-oriented, reflective
Kategorie
Informatik
Web-Books
Bibliothek
Datenschutz
Impressum
Austria-Forum
Austria-Forum
Web-Books
Programming for Computations – Python