Skip to Content
개발자를 위한 필수 수학
book

개발자를 위한 필수 수학

by 토머스 닐드, 박해선
June 2024
Beginner to intermediate
352 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 개발자를 위한 필수 수학
136
개발자를 위한 필수 수학
예제
4-4
파이썬에서 넘파이로
5
차원 벡터 선언하기
import
numpy
as
np
v
=
np.array([6,
1,
5,
8,
3])
print(v)
4.1.1
덧셈과 결합
벡터는 그 자체로는 그다지 흥미롭지 않습니다. 공간상의 이동처럼 방향과 크기를 표현하죠.
하지만 벡터를 결합하면 흥미로워지기 시작합니다. 이를
벡터 덧셈
vector
addition
이라고 부릅니다.
벡터 덧셈을 통해 두 벡터의 이동을 하나의 벡터로 효과적으로 결합합니다.
[그림
4
-
4
]처럼 두 개의 벡터
v
와
w
가 있다고 가정합니다. 이 두 벡터를 어떻게 더할까요?
그림
4-4
두 벡터 더하기
벡터를 더하는 것이 왜 유용한지 잠시 후에 살펴보겠습니다. 두 벡터의 방향과 크기를 결합하
면 어떤 모습일까요? 수치적으로는 간단합니다. 다음과 같이 각각의
x
값과
y
값을 더해 새 벡
터를 만들면 됩니다. 파이썬에서는 [예제
4
-
5
]와 같이 계산합니다.
3
2
2
1
32 5
21 1
v
w
vw

=



=

−

+
 
+= =
 
+−
 

137
4
장
선형대수학
예제 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

AI를 위한 필수 수학

AI를 위한 필수 수학

할라 넬슨

Publisher Resources

ISBN: 9791169212502