curveClassRepresentativeM0nbar(H)
This function creates an object of type CurveClassRepresentativeM0nbar from a hash table. Here is a basic example:
|
|
Warning: when you enter a hash table in Macaulay2, if you use a key more than once, the first instance is discarded. Here is an example where the behavior may differ from what you want:
|
The user probably wanted $F_{\{1,2\},\{3\},\{4\},\{5\}} + 2F_{\{1,2\},\{3\},\{4\},\{5\}}$ to give $3F_{\{1,2\},\{3\},\{4\},\{5\}}$ instead. So if your expression has two terms that are written exactly alike, you could either combine them before you create the input hash table, or input a list instead.
|
|
For this reason, most users will probably prefer to enter curves via lists, rather than hash tables.
The function curveClassRepresentative does the same minimal testing if you enter a hash table that it does if you enter a list. See the documentation for curveClassRepresentativeM0nbar(ZZ,List).