diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-06-14 09:58:21 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-06-14 09:58:21 +0200 |
| commit | 5ea79c7ae0d44686f1df05c4a016652afbe58968 (patch) | |
| tree | 05f6a052373f5fe0942777a48303b2f8b884cbe1 /misc_code/ugly_computations/cm/test-cm-rank.sage | |
| download | kummer-notes-code-5ea79c7ae0d44686f1df05c4a016652afbe58968.tar.gz kummer-notes-code-5ea79c7ae0d44686f1df05c4a016652afbe58968.zip | |
Initial commit
Diffstat (limited to 'misc_code/ugly_computations/cm/test-cm-rank.sage')
| -rwxr-xr-x | misc_code/ugly_computations/cm/test-cm-rank.sage | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/misc_code/ugly_computations/cm/test-cm-rank.sage b/misc_code/ugly_computations/cm/test-cm-rank.sage new file mode 100755 index 0000000..7671838 --- /dev/null +++ b/misc_code/ugly_computations/cm/test-cm-rank.sage | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | def test(): | ||
| 2 | attach("cm-rank+-all.sage") | ||
| 3 | no = 0 | ||
| 4 | unk = 0 | ||
| 5 | for cf in data: | ||
| 6 | E = EllipticCurve(cf) | ||
| 7 | E_K = E.base_extend(NumberField(x^2-E.cm_discriminant(),'a')) | ||
| 8 | try: | ||
| 9 | if E_K.rank() != 2* E.rank(): | ||
| 10 | print "Non doubling:", cf, E.rank(), E_K.rank() | ||
| 11 | no += 1 | ||
| 12 | except: | ||
| 13 | print "Can't compute the rank for", cf | ||
| 14 | unk += 1 | ||
| 15 | print "Total ok curves:", (len(data)-(no+unk)), "/", len(data), \ | ||
| 16 | "( unknown:", unk, ")" | ||
