Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 622 Bytes

numpy_notes.md

File metadata and controls

24 lines (16 loc) · 622 Bytes

Introduction to NumPy and Matplotlib

This README provides an overview of some commonly used functions in the NumPy and Matplotlib libraries for scientific computing and data visualization in Python.

NumPy Functions

np.zeros

The np.zeros function is used to create an array filled with zeros. It takes the shape of the array as an argument and returns an array of zeros with the specified shape.

import numpy as np

# Create a 2x3 array filled with zeros
zeros_array = np.zeros((2, 3))
print(zeros_array)
# Create a 4x4 identity matrix
identity_matrix = np.eye(4)
print(identity_matrix)