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

# + id="OmpY_s-HvBCS"
import numpy as np

# + id="q5Ls4HUNvEY7"
a=np.array([2,4,5,6,7])

# + colab={"base_uri": "https://localhost:8080/"} id="je8DTPwVv2gX" outputId="6d795dde-c59a-40d2-fdb7-c3d974f45a30"
a

# + colab={"base_uri": "https://localhost:8080/"} id="FJ1Be7fbv9hi" outputId="5fb52067-c62d-47b2-c10a-c8d046ea8d9b"
a.size

# + colab={"base_uri": "https://localhost:8080/"} id="es1DKdaZwGf8" outputId="6cc6e122-18ef-4962-a301-87f52c13404b"
a.shape

# + id="WU7XZSAjwJJS"
b=a[1:4]


# + colab={"base_uri": "https://localhost:8080/"} id="l2I5vfRRwSyK" outputId="f442f7db-0078-4870-d41b-235c09ad437e"
b

# + colab={"base_uri": "https://localhost:8080/"} id="w0Pip5PTwVEF" outputId="c7f35da0-d3e7-46e1-e792-61be9c895843"
a[1]


# + colab={"base_uri": "https://localhost:8080/"} id="YCmWSg6_wdJx" outputId="6e2aaf64-306a-44e7-a49b-0626c377ce38"
a[2]=100000
a

# + colab={"base_uri": "https://localhost:8080/"} id="Aw9xBuSywkQz" outputId="6e3130e1-94b5-47ac-9f80-ce4e262de9a2"
b=[1,2,3,4,5]
c=a+b
c


# + colab={"base_uri": "https://localhost:8080/"} id="lc9RYPuLxLgi" outputId="02e61527-9012-4c3a-8628-aba25b0e4b10"
c=2*a
c

# + colab={"base_uri": "https://localhost:8080/"} id="Pqn6CwWjyXOU" outputId="3a2153e3-d167-48ac-e975-57e2c78fcce7"
c=a*b
c

# + colab={"base_uri": "https://localhost:8080/"} id="IjJBOrgBycmi" outputId="6f1ad02b-7a32-485d-909a-360da278dbae"
c=np.dot(a,b)
c

# + colab={"base_uri": "https://localhost:8080/"} id="Kt1_77_6yngq" outputId="0182173b-8f43-480b-fd45-3d863c56da09"
a.mean()


# + colab={"base_uri": "https://localhost:8080/"} id="7XmLco6LykfU" outputId="0f604c9e-aa1d-4acb-9724-e9a75671e1e7"
np.linspace(12,34,18)

# + id="9W0Gmjg7y6Jc"
a=np.array([[1,2],[8,3]])
b=np.array([[3,4],[5,6]])


# + colab={"base_uri": "https://localhost:8080/"} id="6ZW8X3SyzJuw" outputId="d1ac067d-bc90-4b10-b56e-c37caf762d9d"
a

# + colab={"base_uri": "https://localhost:8080/"} id="ijW7PAqozVWk" outputId="6894f4bc-2e76-4396-b14b-52a5767d18a8"
a[0:2,0:1]

# + colab={"base_uri": "https://localhost:8080/"} id="EPRpMAKKz2M4" outputId="7abf99dc-119a-4173-8a7c-ed6770fbf2c3"
c=np.dot(a,b)
c

# + id="mKzBZiy10LSl"


StarcoderdataJupyterScriptsDedupFiltered