本文整理汇总了Python中lmfdb.WebNumberField.WebNumberField.from_polredabs方法的典型用法代码示例。如果您正苦于以下问题:Python WebNumberField.from_polredabs方法的具体用法?Python WebNumberField.from_polredabs怎么用?Python WebNumberField.from_polredabs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lmfdb.WebNumberField.WebNumberField
的用法示例。
在下文中一共展示了WebNumberField.from_polredabs方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: EllipticCurve_to_ecnf_dict
# 需要导入模块: from lmfdb.WebNumberField import WebNumberField [as 别名]
# 或者: from lmfdb.WebNumberField.WebNumberField import from_polredabs [as 别名]
def EllipticCurve_to_ecnf_dict(E):
"""
Make the dict that should be fed to `make_curves_line` in `lmfdb/scripts/ecnf/import_utils.py`.
It sets `iso_label`, 'a' and `number` to '1' and `cm` and `base_change` to '?'
INPUT:
* E - A sage elliptic curve over a number field
"""
E = EllipticCurve_polredabs(E)
K = E.base_field()
WNF = WebNumberField.from_polredabs(K.polynomial())
ainvs = [map(str,ai) for ai in map(list,E.a_invariants())]
conductor = E.conductor()
conductor_str = "".join(str([conductor.norm()]+list(conductor.gens_two())).split())
ec = {'field_label':WNF.label,
'conductor_label':ideal_label(conductor),
'iso_label':'a',
'number':'1',
'conductor_ideal':conductor_str,
'conductor_norm':str(conductor.norm()),
'ainvs':ainvs,
'cm':'?',
'base_change':'?'}
return ec
示例2: G_name
# 需要导入模块: from lmfdb.WebNumberField import WebNumberField [as 别名]
# 或者: from lmfdb.WebNumberField.WebNumberField import from_polredabs [as 别名]
def G_name(self):
"""
More-or-less standardized name of the abstract group
"""
import re
wnf = WebNumberField.from_polredabs(self.polredabs())
if not wnf.is_null():
mygalstring = wnf.galois_string()
if re.search('Trivial', mygalstring) is not None:
return '$C_1$'
# Have to remove dollar signs
return mygalstring
if self.polredabs().degree() < 12:
# Let pari compute it for us now
from sage.all import pari
galt = int(list(pari('polgalois(' + str(self.polredabs()) + ')'))[2])
from lmfdb.transitive_group import WebGaloisGroup
tg = WebGaloisGroup.from_nt(self.polredabs().degree(), galt)
return tg.display_short()
return self._data["G-Name"]
示例3: wnf
# 需要导入模块: from lmfdb.WebNumberField import WebNumberField [as 别名]
# 或者: from lmfdb.WebNumberField.WebNumberField import from_polredabs [as 别名]
def wnf(self):
return WebNumberField.from_polredabs(self.polredabs())