
- 392 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Scientific Computing with Python
About this book
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.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
- 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
from numpy import *
4.1.1 Vectors and matrices
v = array([1.,2.,3.])
# 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 #...
Table of contents
- Title Page
- Copyright and Credits
- Contributors
- Acknowledgement
- Preface
- Getting Started
- Variables and Basic Types
- Container Types
- Linear Algebra - Arrays
- Advanced Array Concepts
- Plotting
- Functions
- Classes
- Iterating
- Series and Dataframes - Working with Pandas
- Communication by a Graphical User Interface
- Error and Exception Handling
- Namespaces, Scopes, and Modules
- Input and Output
- Testing
- Symbolic Computations - SymPy
- Interacting with the Operating System
- Python for Parallel Computing
- Comprehensive Examples
- About Packt
- Other Books You May Enjoy
- References