| LIB "chern.lib";
ring r = 0, (s(1..3)), dp;
list l=s(1..3);
// Chern classes in Segre classes s(1), s(2), s(3)
print( chern(l) );
==> [1]:
==> -s(1)
==> [2]:
==> s(1)^2-s(2)
==> [3]:
==> -s(1)^3+2*s(1)*s(2)-s(3)
// This procedure is inverse to segre(...). Indeed:
print( segre(chern(l), 3) );
==> [1]:
==> s(1)
==> [2]:
==> s(2)
==> [3]:
==> s(3)
|