Processing Math: Done
jsMath
Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2011-03-15 14:45:31
Size: 2366
Editor: pang
Comment: Started section with "Winding number of a plane curve"
Revision 5 as of 2020-02-08 12:59:06
Size: 2477
Editor: chapoton
Comment:
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 48: Line 48:
        raise ValueError, "Curve is not closed!"         raise ValueError("Curve is not closed!")
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.

winding.png

interact/topology (last edited 2020-06-01 18:42:11 by kcrisman)