Skip to content

Instantly share code, notes, and snippets.

View srmagura's full-sized avatar

Sam Magura srmagura

View GitHub Profile
@srmagura
srmagura / gist:57e877afe43d45c37037
Created December 27, 2014 12:08
get_u_reg_expr()
def get_u_reg_expr():
'''
SymPy expression for expected solution to the regularized problem.
'''
k, R, r, th = symbols('k R r th')
a = pi/6
nu = pi / (2*pi - a)
# True solution to original problem