I'm attempting to write a program using SAGE to calculate the genus of
a curve given the bidegree of the equation. However, I'm having a
problem when I use the partition function. Here's a rough sketch of
the algorithm:
prompt for m and n
partition m
partition n
calculate the delta invariant
calculate the genus
return the genus and repeat for the next piece of the partition.
For example, let us assume the value of m is 3 and the value of n is
2. Thus, we have:
m_part = [{3},{2,1},{1,1,1}]
n_part = [{2},{1,1}]
I need to calculate delta(3,2), and that's no problem. The problem is
then using some sort of loop to calculate delta({2,1},2) since for
larger numbers, the number of partitions is very large and would make
this task difficult. Is there anyone who may be able to help?
~Erick Galinkin
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---