This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#속도 성분들 | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |