本文整理匯總了Python中lmfdb.hilbert_modular_forms.hilbert_field.HilbertNumberField.ideals_iter方法的典型用法代碼示例。如果您正苦於以下問題:Python HilbertNumberField.ideals_iter方法的具體用法?Python HilbertNumberField.ideals_iter怎麽用?Python HilbertNumberField.ideals_iter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類lmfdb.hilbert_modular_forms.hilbert_field.HilbertNumberField
的用法示例。
在下文中一共展示了HilbertNumberField.ideals_iter方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: check_multiplicity_one
# 需要導入模塊: from lmfdb.hilbert_modular_forms.hilbert_field import HilbertNumberField [as 別名]
# 或者: from lmfdb.hilbert_modular_forms.hilbert_field.HilbertNumberField import ideals_iter [as 別名]
def check_multiplicity_one(label):
F = HilbertNumberField(label)
count = 0
for N in F.ideals_iter():
Lf = forms.find({'field_label':label, 'level_label':N['label']})
Lf = [f for f in Lf]
n = len(Lf)
for i in range(n):
for j in range(i+1,n):
if forms_equal(Lf[i],Lf[j]):
count += 1
print "duplicates: "+Lf[i]['label']+" and "+Lf[j]['label']
print("Found "+str(count)+" duplicate forms.")