Scientific Computing with Python
eBook - ePub

Scientific Computing with Python

Claus Fuhrer, Jan Erik Solem, Olivier Verdier

Condividi libro
  1. 392 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Scientific Computing with Python

Claus Fuhrer, Jan Erik Solem, Olivier Verdier

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Leverage this example-packed, comprehensive guide for all your Python computational needsKey Features• Learn the first steps within Python to highly specialized concepts• Explore examples and code snippets taken from typical programming situations within scientific computing.• Delve into essential computer science concepts like iterating, object-oriented programming, testing, and MPI presented in strong connection to applications within scientific computing.Book DescriptionPython has tremendous potential within the scientific computing domain. This updated edition of Scientific Computing with Python features new chapters on graphical user interfaces, efficient data processing, and parallel computing to help you perform mathematical and scientific computing efficiently using Python.This book will help you to explore new Python syntax features and create different models using scientific computing principles. The book presents Python alongside mathematical applications and demonstrates how to apply Python concepts in computing with the help of examples involving Python 3.8. You'll use pandas for basic data analysis to understand the modern needs of scientific computing, and cover data module improvements and built-in features. You'll also explore numerical computation modules such as NumPy and SciPy, which enable fast access to highly efficient numerical algorithms. By learning to use the plotting module Matplotlib, you will be able to represent your computational results in talks and publications. A special chapter is devoted to SymPy, a tool for bridging symbolic and numerical computations.By the end of this Python book, you'll have gained a solid understanding of task automation and how to implement and test mathematical algorithms within the realm of scientific computing.What you will learn• Understand the building blocks of computational mathematics, linear algebra, and related Python objects• Use Matplotlib to create high-quality figures and graphics to draw and visualize results• Apply object-oriented programming (OOP) to scientific computing in Python• Discover how to use pandas to enter the world of data processing• Handle exceptions for writing reliable and usable code• Cover manual and automatic aspects of testing for scientific programming• Get to grips with parallel computing to increase computation speedWho this book is forThis book is for students with a mathematical background, university teachers designing modern courses in programming, data scientists, researchers, developers, and anyone who wants to perform scientific computation in Python.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Scientific Computing with Python è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Scientific Computing with Python di Claus Fuhrer, Jan Erik Solem, Olivier Verdier in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Computer Science e Programming in Python. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2021
ISBN
9781838825102
Edizione
2
Linear Algebra - Arrays
Linear algebra is one of the essential building blocks of computational mathematics. The objects of linear algebra are vectors and matrices. The package NumPy includes all the necessary tools to manipulate those objects.
The first task is to build matrices and vectors or to alter existing ones by slicing. The other main task is the dot operation, which embodies most linear algebra operations (scalar product, matrix-vector product, and matrix-matrix product). Finally, various methods are available to solve linear problems.
The following topics will be covered in this chapter:
  • Overview of the array type
  • Mathematical preliminaries
  • The array type
  • Accessing array entries
  • Functions to construct arrays
  • Accessing and changing the shape
  • Stacking
  • Functions acting on arrays
  • Linear algebra methods in SciPy

4.1 Overview of the array type

For the impatient, here is how to use arrays in a nutshell. Be aware though that the behavior of arrays may be surprising at first, so we encourage you to read on after this introductory section.
Note again, the presentation in this chapter assumes like everywhere else in this book that you have the module NumPy imported:
from numpy import *
By importing NumPy, we give access to the datatype ndarray, which we'll describe in the next sections.

4.1.1 Vectors and matrices

Creating vectors is as simple as using the function array to convert a list into an array:
v = array([1.,2.,3.])
The object v is now a vector that behaves much like a vector in linear algebra. We have already emphasized the differences with the list object in Python in Section 3.2: A quick glance at the concept of arrays.
Here are some illustrations of the basic linear algebra operations on vectors:
# two vectors with three components v1 = array([1., 2., 3.]) v2 = array([2, 0, 1.]) # scalar multiplications/divisions 2*v1 # array([2., 4., 6.]) v1/2 # array([0.5, 1., 1.5]) # linear combinations 3*v1 # array([ 3., 6., 9.]) 3*v1 + 2*v2 # array([ 7., 6., 11.]) # norm from numpy.linalg import norm norm(v1) # 3.7416573867739413 # scalar product dot(v1, v2) # 5.0 v1 @ v2 #...

Indice dei contenuti