Skip to content

Instantly share code, notes, and snippets.

View MatlabMaster's full-sized avatar

LeeMinHyoung MatlabMaster

  • HSC
  • SouthKorea
View GitHub Profile
@MatlabMaster
MatlabMaster / HW1
Created April 7, 2020 13:01
ClassicalMechanics
#속도 성분들
from sympy.physics.vector import *
from sympy.physics.vector import dynamicsymbols
E = ReferenceFrame('E')
E.x
E.y
E.z
from sympy import Symbol, symbols
diff(r)*E.x + r*diff(theta)*E.y
@MatlabMaster
MatlabMaster / gauss.
Last active March 11, 2020 13:04
Gauss_elimination
## module gaussElimin
''' x = gaussElimin(a,b).
Solve[a]{b} = {x} by gauss elimination.
'''
import numpy as np
def gaussElimin(a,b):
n = len(b)
#Elmination Phase
int IR_output1 = 2; //connected to analog 0
int IR_output2 = 1; //connected to analog 1
int IR_output3 = 0; //connected to analog 2
int threshold = 100;
int delaytime = 200;
int COUNT = 0; // DEBUG PURPOSE TIME-ELAPSE CACHE
int COUNT_THRESHOLD = 3;
void setup()