2366
Comment: Started section with "Winding number of a plane curve"
|
2477
py3 print
|
Deletions are marked like this. | Additions are marked like this. |
Line 7: | Line 7: |
by Pablo Angulo. Computes winding number as an integral, and also as a intersection number with a half line through the origin. | 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. |
Line 9: | Line 9: |
{{{ | {{{#!sagecell |
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)) |
Line 73: | Line 73: |
arrow((x(0),y(0)), (x(0) + xp1(0), y(0) + yp1(0))) ) | arrow((x(0),y(0)), (x(0) + xp1(0), y(0) + yp1(0))) + point2d([(0,0)], color = 'black', pointsize = 70)) |
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.