LMFDB / lmfdb

L-Functions and Modular Forms Database
Other
243 stars 198 forks source link

Add lmfdb_page function to more objects in SageMath #3662

Open alexjbest opened 4 years ago

alexjbest commented 4 years ago

Currently there is a function for elliptic curves in SageMath called lmfdb_page() that opens the corresponding lmfdb page for the curve in the users browser, this is very convenient for lazy people such as myself. It would be nice to have this for other objects (number fields, elliptic curves over number fields, modular forms, ...).

alexjbest commented 4 years ago

I have made a sage ticket to do this for number fields at https://trac.sagemath.org/ticket/29126 .

It should work even for relative extensions (by just taking absolute polynomial), even if the variable name is not x and it calls polredabs first on the users sage to avoid taxing the server.

JohnCremona commented 4 years ago

Note that Sage's ability to determine the LMFDB label of an elliptic curve does not use the LMFDB at all. That would not be possible for number fields other than quadratic.

As for the interface, that is what the api is for, and several people have already written code to get the number field in Sage from its label which would also be useful.

tomgrubbmath commented 4 years ago

This should be relatively straightforward to do for Sage's Hypergeometric Motives implementation; I'll look into it.

alexjbest commented 4 years ago

Frédéric Chapoton also has a draft implementation for Dirichlet characters now https://trac.sagemath.org/ticket/29824 !