[Coding The Matrix] 코딩 더 매트릭스 - Chapter 3 벡터
# -*- coding: utf-8 -*- ''' Created on 2015. 8. 17. @author: Administrator ''' ''' chapter 3 vector ''' from myutil import consolePrintWithLineNumber as c from plotting import plot # 73p L = [[2, 2], [3, 2], [1.75, 1], [2, 1], [2.25, 1], [2.5, 1], [2.5, 1], [2.75, 1], [3, 1], [3.25, 1]] # plot(L, 4) # 74p def add2(v, w): return [v[0] + w[0], v[1] + w[1]] c(add2([4, 4], [1, 2])) c(add2([-4, -4], ..
2015. 8. 18.