Рассматриваются вопросы построения главной функции и абелевых дифференциалов 3-го типа на плоской алгебраической кривой над полем комплексных чисел, не имеющей особых точек. Алгоритм построения дифференциалов 3-го типа описан в Лекциях Вейерштрасса. В статье обсуждается его реализация в системе компьютерной алгебры Sage. Специфика этого алгоритма, равно как и самого понятия дифференциала 3-го типа, подразумевает использование не только рациональных чисел, но и алгебраических, причем даже тогда, когда уравнение кривой имеет целые коэффициенты. В Sage имеется встроенный инструментарий для работы с полем алгебраических чисел, который позволяет реализовать алгоритм Вейерштрасса почти дословно. На самом простом примере эллиптической кривой показано, что он требует слишком много ресурсов, выходя далеко за возможности офисного компьютера. Затем предложена и реализована симметризация метода, позволяющая существенно сэкономить ресурсы и решить названный пример.
This paper considers the construction of the fundamental function and Abelian differentials of the third kind on a plane algebraic curve over the field of complex numbers that has no singular points. The algorithm for constructing differentials of the third kind was described in Weierstrass’s lectures. The paper discusses its implementation in the Sage computer algebra system. The specifics of this algorithm, as well as the very concept of the differential of the third kind, implies the use of both rational numbers and algebraic numbers, even when the equation of a curve has integer coefficients. Sage has a built-in tool for computations in algebraic number fields, which allows the Weierstrass algorithm to be implemented almost literally. The simplest example of an elliptic curve shows that it requires too many resources, far beyond the capabilities of an office computer. A symmetrization of the method is proposed and implemented, which makes it possible to solve the problem while saving a significant amount of computational resources.