Learn practical skills, build real-world projects, and advance your career

Assignment 2 - Numpy Array Operations

Numpy Functions

5 Useful Numpy Mathematical Functions.

Numpy stands for Numerical Python. It is a library consisting of multidimensional array objects and a collection of routines for proccessing of arrays. We can perform mathematical and logical operations on arrays using this library. Below are few basic Numpy fucntions.

  • function 1 - np.sqrt() - Returns the non-negative square-root of an array, element wise.
  • function 2 - np.cbrt() - Return the cube-root of an array, element-wise.
  • function 3 - np.square() - Return the element-wise square of the input
  • function 4 - np.maximum() - Element-wise maximum of array elements.
  • function 5 - np.minimum() - Element-wise minimum of array elements.
!pip install jovian --upgrade -q
import jovian
jovian.commit(project='numpy-array-operations')
[jovian] Detected Colab notebook... [jovian] Please enter your API key ( from https://jovian.ai/ ): API KEY: ·········· [jovian] Uploading colab notebook to Jovian... [jovian] Capturing environment.. [jovian] Committed successfully! https://jovian.ai/astha1998/numpy-array-operations

Let's begin by importing Numpy and listing out the functions covered in this notebook.