This worksheet contains the code for computing the Euler characteristic and its polynomial generalization as described in the article of the same title.
This first function computes the Euler characteristic. The entry is an ideal on a polynomial ring.
|
|
This second function computes the polynomial F(V).
|
|
Now we show some examples to ilustrate the functions. Note that the actual timings can depend on the configuration and the workload of the server at every given moment.
Three examples of plane curves:
5 Time: CPU 0.11 s, Wall: 0.12 s 5 Time: CPU 0.11 s, Wall: 0.12 s |
-5 Time: CPU 0.68 s, Wall: 0.68 s -5 Time: CPU 0.68 s, Wall: 0.68 s |
-8 Time: CPU 35.07 s, Wall: 35.08 s -8 Time: CPU 35.07 s, Wall: 35.08 s |
A curve and a surface in \mathbb{C}^3:
10 Time: CPU 0.14 s, Wall: 0.14 s 10 Time: CPU 0.14 s, Wall: 0.14 s |
-3 Time: CPU 0.37 s, Wall: 0.37 s -3 Time: CPU 0.37 s, Wall: 0.37 s |
Now we show some examples of the computation of F(V).
The complex 2-sphere:
2*L^2 - 2*L + 2 Time: CPU 0.06 s, Wall: 0.45 s 2*L^2 - 2*L + 2 Time: CPU 0.06 s, Wall: 0.45 s |
Another surface:
3*L^2 - 6*L + 12 Time: CPU 0.07 s, Wall: 0.38 s 3*L^2 - 6*L + 12 Time: CPU 0.07 s, Wall: 0.38 s |
The intersection and the union of the two:
6*L - 15 Time: CPU 0.08 s, Wall: 62.31 s 6*L - 15 Time: CPU 0.08 s, Wall: 62.31 s |
5*L^2 - 14*L + 29 5*L^2 - 14*L + 29 |
The Whitney umbrella:
3*L^2 - 4*L + 2 Time: CPU 0.19 s, Wall: 2.61 s 3*L^2 - 4*L + 2 Time: CPU 0.19 s, Wall: 2.61 s |
The complex 3-sphere:
2*L^3 - 2*L^2 + 2*L - 2 Time: CPU 0.08 s, Wall: 0.65 s 2*L^3 - 2*L^2 + 2*L - 2 Time: CPU 0.08 s, Wall: 0.65 s |
|
|