Premium problem98. Equidistant Path Sampling

Hard Locked

Resample a spiral path with 200 equidistant points along its arc length, and return a (2, 200) array [x_int, y_int]:

  • phi = arange(0, 10π, 0.1)
  • x = phi·cos(phi)
  • y = phi·sin(phi)

Output

[[ 0.         -0.37313123 -2.59817608 ... 30.72807504 31.15312186 31.39601771]
 [ 0.          1.74026724  0.98181658 ... -5.42495146 -2.97607515 -0.50007209]]

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)