
테일러 급수란, 다항함수로 나타내는 것이다. 예를들어 Cos(x) = 1 + ax +bx^2 + cx^3 + dx^4 이런식으로 나타낸 식을 뜻하며 우항을 계속 편미분을 하면서 Cos(x)와 비슷한 그래프를 만들 수 있다. 계수를 구하는 방법은 첫번째로 양변 x에 0을 대입하면 Cos(0)은 1이므로 상수는 1임을 알 수 있다. 두번째로 양변을 x에 대하여 미분하면 -sin(x) = 0 + a + 2bx ....이고 x에0을 대입해보면 a= 0이 된다. 이런식으로 계속 미분을 하면서 계수를 찾아간다. 다만, 그림에서 보듯이 Maclaurin급수는 x=0근처에서만 정확한 편이다. 테일러급수는 Maclaurin급수는 f(x) = 상수 + a(x-a) + b(x-a)^2 + ....... 이런식이므로 테일러급..

import numpy as np #앨리어스를 np로 쓰는게 암묵적 규칙 밑에도 동일 import pandas as pd import matplotlib 변수 df와 변수 seri에 데이터를 셋팅해준 뒤 name=['홍길동','양상욱','정인우','김세하','박경미'] kor=[50,70,80,75,60] math=[70,85,80,95,90] data={'name':name, 'kor':kor, 'math':math} df=pd.DataFrame(data) df seri=pd.Series(np.random.rand(10)) seri seri.plot()//심플한 꺽은선그래프 나옴 matplotlib.style.use("ggplot")#matplotlib의 ggplot 스타일 적용시키면 격자가 나옴 se..

import numpy as np #앨리어스를 np로 쓰는게 암묵적 규칙 import pandas as pd data=np.random.rand(1000) #난수배열 temp=[] cnt=0 for i in data : print("cnt는", cnt) if ((int)(i*100))>45: print("45초과 continue") continue if ((int)(i*100))=1 and temp[cnt-1]==(int)(i*100): print("temp1이상 continue") continue if len(temp)>=2 and temp[cnt-2]==(int)(i*100): print("temp2이상 continue") continue if len(temp)>=3 and temp[cnt-3]==(..

self는 자바에서 this와 비슷한 쓰임 필드변수에 __(언더바2개)를 주면 private 됨 상속 예시 class Person(object): def __init__(self, name, age, gender): self.__name=name self.__age=age self.__gender=gender def about_me(self): print("이름",self.__name,"나이는",self.__age, "성별은",self.__gender,end=" ") p1=Person('홍길동',20,'남자') p1.about_me() class Employee(Person): def __init__(self, name, age, gender, salary, hire_date): super().__ini..
딕셔너리와 Collections모듈 이용해서 텍스트마이닝 프로그램 만들기 from collections import defaultdict from collections import Counter from collections import OrderedDict text=''' 대한민국 헌법 표제 및 제1조에 따라 공식 국호는 대한민국(大韓民國)이며, 역본 및 정부령에 따라 정식 영문으로는 'Republic of Korea라 하는데, 통상적으로는 "South Korea"가 자주 사용된다. 1950년 1월 16일 제정된 국무원고시 제7호 「국호및일부지방명과지도색에관한건」[24]에 따라 약칭은 대한(大韓) 및 한국(韓國)으로 정해져 있다. 영문 약칭 및 통칭으로는 Korea를 쓰며, 국가코드로는 KR, KOR이..

score={"홍길동":80, "박토리":90, "햄토리":70, "햄치즈":55} for k,v in score.items(): print(k,v) deque 모듈은 stack과 que를 모두 지원한다. from collections import deque deque_list=deque() #1에서부터 6미만까지 1씩 증가 for i in range(1,6,1): deque_list.append(i) print(deque_list) 결과: deque([1, 2, 3, 4, 5]) counter와 text from collections import Counter text=list('python programming') print(text) c=Counter(text) print(c) 결과: ['p', '..
- Total
- Today
- Yesterday
- git
- Mapper
- 코틀린
- 안드로이드 프래그먼트컨테이너
- 프로젝트 자동
- 파이어베이스
- 마이바티스
- 로또
- 안드로이드
- mybatis
- var
- 매퍼
- cmd
- 프로젝트 자동해제
- build.gradle
- Realtime Database
- 컨스트레인트
- ConstraintLayout
- json-server
- Kotlin
- 깃헙
- 안드로이드스튜디오 협업
- Firebase
- 안드로이드 네비게이션
- 자바를 코틀린으로
- 안드로이드스튜디오 프로젝트 자동해제
- 안드로이드 프래그먼트
- github
- 안드로이드스튜디오 github
- 클라우드DB
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |