# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # **Operations**

import numpy as np

arr1 = np.arange(1,11)

arr2 = np.arange(1,21,2)

arr1

arr2

sq_arr1 = arr1 ** 2

sq_arr1

mul_arr = arr1 * arr2

mul_arr

sub_arr = arr - arr

sub_arr

arr_add = arr1 + arr2

arr_add

arr1/arr1

arr1/0

1/arr1

np.sqrt(arr1)

np.exp(arr1)

np.max(arr1)

np.min(arr2)

np.sin(arr1)

np.log(arr2)

StarcoderdataJupyterScriptsDedupFiltered