2467
Comment:
|
2477
py3 print
|
Deletions are marked like this. | Additions are marked like this. |
Line 70: | Line 70: |
print 'Winding number = (# of red points) - (# of green points): ', wn | print('Winding number = (# of red points) - (# of green points): {}'.format(wn)) |
Sage Interactions - Topology
goto interact main page
Winding number of a plane curve
by Pablo Angulo. Computes winding number (with respect to the origin!) as an integral, and also as a intersection number with a half line through the origin.