전체 글
-
-
02 Vector and its operations선형대수-이상화교수님 2024. 11. 29. 07:08
질문: distance, normalization질문 벡터의 내적 출처https://www.youtube.com/watch?v=SJjfcSwhnfo&list=PL4KjArv2DnjDtxWg1-0Ltu3Q-EGK7pwCw&index=2 vectormagnitude + direction(orientation)x 소문자 lower, bold -> 벡터열로 쓰면 vectorx1,x2,x3.... xn = element, componentx벡터 는 Rn차원의 원소2-D point -> 2차원 x,y3-D point -> 3차원 x,y,z 아래) 벡터를 나열한것 -> 벡터 아래) magnitude of vectorvector크기 - ||x|| normalization_x_ ||x|| 아래) distance b..
-
-
01 Concept of Linearity선형대수-이상화교수님 2024. 11. 27. 12:44
출처:https://www.youtube.com/watch?v=b34nPlDfzsI&list=PL4KjArv2DnjDtxWg1-0Ltu3Q-EGK7pwCw아래)왜 g(x)는 안되는지? 아래) 리니어 선형성 조건scholar multiplication아래) 직선이라해서 x,y사이가 리니어하다라고 안함(superposition안됨) n이 사라져야 슈퍼포지션 성립됨 n이 없어져야 homogeniety가 성립 오직 n= 0일때만 linear하다. y=mx라는 원점을 통과하는 직선만이 linear하다.리니어하다는 말은 x,y비례하다원점을 통과하는 직선만이 linear하다.-> 벡터공간사용가능 아래) am주파수에서 중간의 x와 AcCosWct곱하면 리니어 성질갖음
-
python inheritence (phython의 class의 constructor( init 객체지향(object oriented player))파이썬_장고 2024. 11. 26. 12:47
python에는 construct없이 init 이 있음. self는 class자체임아래) first argument로 self 꼭 받아야가능human function부르는방법 super initname을 필요로함super class = humansuper은 상속하는 클래스에 접근할수 있는 권한을 줌상속중인 init 매써드를 호출 이경우는 human아래) 매서드 - 오버라이딩 -문자열로 나오게 하기 아래) class가 str super매서드 갖고있음아래) underscore, underscore 매서드 아래) dir는 디렉터리를 의미해. 클래스의 속성들과 매서드를 보여줌아래) 오버라이딩: name대신 이모지를 returnproperty jia.name호출해도 이모지 나옴getattribute
-
git init파이썬_장고 2024. 11. 21. 12:31
출처:https://nomadcoders.co/ ktree@DESKTOP-KUQC42K MINGW64 /d/airbnb_django $ code . ktree@DESKTOP-KUQC42K MINGW64 /d/airbnb_django $ git init Initialized empty Git repository in D:/airbnb_django/.git/ ktree@DESKTOP-KUQC42K MINGW64 /d/airbnb_django (master) $ git site에서 repository 만들고,바탕화면 폴더만들고 / open folder 하고 git initgit commit -m "new"git push -u origin maingit remote add origin https://githu..
-
리스트1파이썬/리스트 2024. 11. 16. 13:24
import syssys.stdin = open('input_11652.txt')readl = sys.stdin.readlinen = int(readl())card = {} # 1:3, 2:4 # 1, 2 for i in range(n): # card.key = list(map(int, readl().split())) # 입력이 1 2 4 4 이렇게 한줄로 받을때 list #map객체로 나와서 리스트로 바꿈 if card.key >= 1: card.value +=1print(max(card.values)) jum = [] #(3, 4), (1,1)#리스트안에 뭐가들어가든 상관없음. tupleimport syssys.stdin = open('input_11..