sage程序,用于计算稳定曲线模空间上的乘积、faber-zagier关系和上交。
mgn的Python项目详细描述
安装
模块分布在pypi上。您只需运行以下命令:
$ sage -pip install mgn --user
–-user选项是可选的,允许您在用户空间中安装模块(不需要管理员权限)。
如果这不起作用(可能是因为sage的安装不支持ssl),请单击下载链接并提取文件。打开终端并转到提取的目录mgn(其中包含setup.py文件)。运行:
$ sage -pip install .
MGN套餐
mgn包包含两个用于计算曲线模空间的模块:strataalgebra和topintersections。
层代数
本模块计算层代数中的积。它还包含一些a.pixton用来计算fz关系的代码。Read the documentation。
要查看是否已安装,请尝试:
sage: from strataalgebra import * sage: StrataAlgebra(QQ, 1, (1,2)) Strata algebra with genus 1 and markings (1, 2) over Rational Field
顶部交叉点
本模块计算顶部交点。Read the documentation。
要查看是否已安装,请尝试:
sage: from topintersections import * sage: space(1, 2) [1] psi1 [2] psi2 [3] ka1 [4] ka2 [5] ch1 [6] irr [7] Dg0m1_2 [8] la1 Mbar_1_2 sage: intnum(psi1*psi2) Computing the intersection of psi1*psi2 over Mbar_1_2... 1/24