0% found this document useful (0 votes)
12 views2 pages

Num Py

Uploaded by

youngboysuy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

Num Py

Uploaded by

youngboysuy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

NumPy Library

NumPy Library in Python

Overview:

NumPy (Numerical Python) is a fundamental package for scientific computing with Python. It

supports large, multi-dimensional arrays and matrices, along with a large collection of high-level

mathematical functions.

Key Features:

- N-dimensional array object (ndarray)

- Broadcasting functions

- Tools for integrating C/C++ and Fortran code

- Useful linear algebra, Fourier transform, and random number capabilities

Sample Code:

```python

import numpy as np

# Create an array

a = np.array([1, 2, 3])

# Perform element-wise addition

b = np.array([4, 5, 6])

print(a + b)
# Matrix multiplication

matrix1 = np.array([[1, 2], [3, 4]])

matrix2 = np.array([[5, 6], [7, 8]])

print(np.dot(matrix1, matrix2))

```

Use Cases:

- Scientific and engineering simulations

- Data preprocessing in machine learning workflows

- Image and signal processing

You might also like