Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2011-03-15 14:48:12
Size: 2457
Editor: pang
Comment: detail: show the origin
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 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))

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)