Essential Python for the physicist

Essential Python for the physicist

by Moruzzi, Giovanni

Type Book
Rate 0.0 /5

This book introduces the reader with little or no previous computer-programming experience to the Python programming language of interest for a physicist or a natural-sciences student. The book starts with basic interactive Python in order to acquire an introductory familiarity with the language, than tackle Python scripts (programs) of increasing complexity, that the reader is invited to run on her/his computer. All program listings are discussed in detail, and the reader is invited to experim…

Read More ↓

Title Statements

  • Full title :Essential Python for the physicist / Giovanni Moruzzi.

Summary

This book introduces the reader with little or no previous computer-programming experience to the Python programming language of interest for a physicist or a natural-sciences student. The book starts with basic interactive Python in order to acquire an introductory familiarity with the language, than tackle Python scripts (programs) of increasing complexity, that the reader is invited to run on her/his computer. All program listings are discussed in detail, and the reader is invited to experiment on what happens if some code lines are modified. The reader is introduced to Matplotlib graphics for the generation of figures representing data and function plots and, for instance, field lines. Animated function plots are also considered. A chapter is dedicated to the numerical solution of algebraic and transcendental equations, the basic mathematical principles are discussed and the available Python tools for the solution are presented. A further chapter is dedicated to the numerical solution of ordinary differential equations. This is of vital importance for the physicist, since differential equations are at the base of both classical physics (Newtons equations) and quantum mechanics (Schroedingers equation). The shooting method for the numerical solution of ordinary differential equations with boundary conditions at two boundaries is also presented. Python programs for the solution of two quantum-mechanics problems are discussed as examples. Two chapters are dedicated to Tkinter graphics, which gives the user more freedom than Matplotlib, and to Tkinter animation. Programs displaying the animation of physical problems involving the solution of ordinary differential equations (for which in most cases there is no algebraic solution) in real time are presented and discussed. Finally, 3D animation is presented with Vpython.

Read More ↓

Edition Statements

  • Publication Date:2020.

Publication Statements

  • Publisher(s):Springer
  • Place of Publication:Cham
  • Language:eng
  • Publication Date:2020.

Notes

6.4.1 Plotting a Hyperbola

Includes index.

The Physical Object

  • Description:1 online resource (304 pages)

Edition Identifiers

  • ISBN:9783030450274, 3030450279
  • oclc:on1157092376
  • LC Classification:QA76.73.P98
  • Dewey Decimal:005.13/3

Table of Contents

Intro -- Preface -- Contents -- 1 Python Basics and the Interactive Mode -- 1.1 Using the Command Line -- 1.2 Installing Python -- 1.2.1 General -- 1.2.2 Downloading Python for Windows -- 1.2.3 Downloading Python for macOS -- 1.3 Using Python in Interactive Mode -- 1.4 Variables -- 1.4.1 Variable Types -- 1.4.2 Variable-Type Conversion -- 1.5 Arithmetic Operators -- 1.6 Assignment Operators -- 1.7 Comparison and Logical Operators -- 1.8 Python Packages and the import Statement -- 1.9 Conditional Statements -- 1.10 Lists and Tuples -- 1.11 List Methods

1.12 Lists and the = Assignment Operator -- 1.12.1 Copying Lists -- 1.12.2 Copying the Elements of Lists and Tuples -- 1.13 Slicing Lists and Strings -- 1.14 Dictionaries -- 1.15 The print() Function and Formatting -- 1.15.1 Old Style -- 1.15.2 New Style -- 1.15.3 Format Types and Flags -- 1.16 Loops -- 1.16.1 The for Loop -- 1.16.2 The while Loop -- 1.16.3 Breaking a Loop -- 1.16.4 The continue Statement -- 1.17 Operations with Matrices and Vectors -- 1.17.1 Lists and Arrays -- 1.17.2 Slicing out Rows and Columns from a Matrix -- 1.17.3 Arrays and Matrix Arithmetics

1.17.4 Further Matrix Operations -- 1.18 Exiting Interactive Mode…

Read More ↓

Subjects

Writers

Rate & Review

0.0/5
(0 people Voted)

No reviews yet. Be the first to rate this work.

Files & Downloads

No downloadable files are registered for this work yet.