Warning - this is still very very WIP, so it's not complete yet.
- modules
- classes
- classitems
I hereby claim:
To claim this, I am signing this object:
import os | |
import re | |
import csv | |
import sys | |
from collections import defaultdict | |
import matplotlib.pyplot as plt | |
from math import ceil | |
MATCH_REGEX = re.compile('(?P<type>PM|QM|QF|SF|F)[ -]?(?P<num>[0-9]+)')a |
Notes: | |
- sin, cos: [-180, 180] -> [-1, 1] === sin, cos are using angles (just for simplicity of writing, the software is using radians). | |
- All of the acceleration vectors are prependicular to the velocity vectors. | |
p_0: (0, 0) | |
v_0: (4.5cos(90), 4.5sin(90)) | |
a_0: (-0.15sin(90), 0.15cos(90)) | |
p_1: (1, 5) | |
v_1: (4.5cos(85), 4.5sin(85)) |
char *octalfive(unsigned int num) { | |
char *repr = (char *) malloc(BINARY_REPR_LEN * num); | |
unsigned int len; | |
sprintf(repr, "%05o", num); | |
len = strlen(repr); | |
memmove(repr, repr + (len - 5), 5); | |
return realloc(repr, 5); | |
} |