Linear Algebra Coding with Python: Python's application for linear algebra by Son Hyun-Seok

Linear Algebra Coding with Python: Python's application for linear algebra by Son Hyun-Seok

Author:Son, Hyun-Seok [Son, Hyun-Seok]
Language: eng
Format: epub, pdf
Published: 2020-07-16T16:00:00+00:00


b1 = < 1, 0 >

b2 = < 1, 2 >

c = < -2, 3 >

In [1]: b1=np.array([[1],[0]])

...: b2=np.array([[1],[2]])

...: c=np.array([[-2],[3]])

...: b=np.hstack([b1, b2])

In [2]: print(b)

[[1 1]

[0 2]]

In [3]: print(c)

[[-2]

[ 3]]

In [4]: r=np.dot(b, c)

...: print(r)

[[1]

[6]]

The above results can be seen in Fig. 5.1.

Fig. 5.1 Correction of coordinates by basis vectors.

As shown in Fig. 5.1, the result of Ex. 5.2, c can be represented by r in a coordinate system with base vectors b 1 and b 2 as reference coordinates.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.