Skip to content

Instantly share code, notes, and snippets.

@ctralie
Created August 9, 2025 14:36
Show Gist options
  • Save ctralie/117339ffd921837126924bedabb5f29d to your computer and use it in GitHub Desktop.
Save ctralie/117339ffd921837126924bedabb5f29d to your computer and use it in GitHub Desktop.
N = 101
ts = 2*np.pi*(np.linspace(0, 1, N+1))[0:N]
X = np.zeros((N, 2))
X[:, 0] = np.cos(ts)
X[:, 1] = np.sin(2*ts)
X2 = np.linspace(2, 4, 50)
X2 = X2[:, None]*np.ones((1, 2))
X = np.concatenate((X, X2), axis=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment