Refactor and document operators and periods in sage module (#21)
CI / lint (push) Successful in 52s
CI / test (push) Successful in 7m2s

---------

Co-authored-by: Julian Piribauer <julian.piribauer@gmail.com>
Reviewed-on: #21
This commit was merged in pull request #21.
This commit is contained in:
2026-10-31 22:22:38 +01:00
co-authored by Julian Piribauer
parent 6600379681
commit d3412f1ff6
5 changed files with 92 additions and 120 deletions
+21
View File
@@ -1,3 +1,24 @@
"""
Picard-Fuchs operators and ideals in the logarithmic derivatives theta_i = z_i * d/dz_i.
Contents
--------
PFOperator
__init__ Construct from a string in z- and theta-variables
simplify Group by z-monomials and factorise theta-polynomials
change_coordinates Rewrite the operator in new coordinates
_operator_from_string Parse a string into the operator polynomial
PFOperatorAnsatz(PFOperator)
__init__ Ansatz of given theta- and z-multi-degrees
PFIdeal
__init__ Construct from a list of PFOperators
add_operator Append a PFOperator
remove_operator Remove a PFOperator
change_coordinates Rewrite all operators in new coordinates
find_power_series_solution Power series solutions at given indicials/order
"""
import copy
import logging
from sage.all import sage_eval, PolynomialRing, QQ, SR, function, prod, solve, var