Macaulay2 » Documentation
Packages » CharacteristicClasses :: EulerAffine
next | previous | forward | backward | up | index | toc

EulerAffine -- The Euler Characteristic of an affine variety.

Description

This command computes the Euler characteristic of a complex affine variety.

i1 : kk=ZZ/32749;
i2 : R=kk[x_1..x_3]

o2 = R

o2 : PolynomialRing
i3 : I=ideal(x_1^2+x_2^2+x_3^2-1)

            2    2    2
o3 = ideal(x  + x  + x  - 1)
            1    2    3

o3 : Ideal of R
i4 : time EulerAffine I
 -- used 0.0760285s (cpu); 0.068047s (thread); 0s (gc)

o4 = 2

Observe that the algorithm is a probabilistic algorithm and may give a wrong answer with a small but nonzero probability. Read more under probabilistic algorithm.

Ways to use EulerAffine:

  • EulerAffine(Ideal)

For the programmer

The object EulerAffine is a method function.


The source of this document is in CharacteristicClasses.m2:2541:0.