def fPoincare(s):
"""
Parametric interpolation to the Poincare section
Inputs:
s: Arc length which parametrizes the curve, a float or dx1-dim numpy
array
Outputs:
xy = x and y coordinates on the Poincare section, 2-dim numpy array
or (dx2)-dim numpy array
"""
interpolation = interpolate.splev(s, tckPoincare)
xy = np.array([interpolation[0], interpolation[1]], float).transpose()
return xy
#Compute the interpolation:
#Create an array of arc lengths for which the Poincare section will be
#interpolated:
评论列表
文章目录