View n-pendula.py
from sympy import *
import matplotlib.pyplot as plt
# time variable
t = symbols('t')
# number of pendula + 1
Z = 3 + 1
# Constants
View chess-max-pieces.py
import pulp, random
from collections import defaultdict
# Some convenience functions for messing with PULP
# This lets us reference variables by any number of strings, numbers etc.
__Variables = {}
def baseVariable(name_tuple, varType):
name = '_'.join( map(str, name_tuple) )
if name not in __Variables: