diff --git a/lmfdb/elliptic_curves/code.yaml b/lmfdb/elliptic_curves/code.yaml index 271b725ee7..820de91731 100644 --- a/lmfdb/elliptic_curves/code.yaml +++ b/lmfdb/elliptic_curves/code.yaml @@ -35,7 +35,7 @@ curve: sage: E = EllipticCurve({ainvs}) pari: E = ellinit({ainvs}) magma: E := EllipticCurve({ainvs}); - oscar: E = EllipticCurve({ainvs}) + oscar: E = elliptic_curve({ainvs}) simple_curve: sage: E.short_weierstrass_model() diff --git a/lmfdb/number_fields/code.yaml b/lmfdb/number_fields/code.yaml index b803a3dccd..e2457c2107 100644 --- a/lmfdb/number_fields/code.yaml +++ b/lmfdb/number_fields/code.yaml @@ -24,7 +24,7 @@ field: sage: x = polygen(QQ); K. = NumberField(%s) pari: K = bnfinit(%s, 1) magma: R := PolynomialRing(Rationals()); K := NumberField(%s); - oscar: Qx, x = PolynomialRing(QQ); K, a = NumberField(%s) + oscar: Qx, x = polynomial_ring(QQ); K, a = number_field(%s) poly: sage: K.defining_polynomial() diff --git a/lmfdb/number_fields/number_field.py b/lmfdb/number_fields/number_field.py index 6a1ca786ad..be0db630cb 100644 --- a/lmfdb/number_fields/number_field.py +++ b/lmfdb/number_fields/number_field.py @@ -777,7 +777,7 @@ def interesting(): 'gp' : '', 'magma' : 'R := PolynomialRing(Rationals());', 'mathematica' : '', - 'oscar' : 'Rx, x = PolynomialRing(QQ)', + 'oscar' : 'Rx, x = polynomial_ring(QQ)', 'sage' : 'x = polygen(QQ)', } @@ -785,7 +785,7 @@ def interesting(): 'gp' : '', # don't try to make fields in gp, even with nfinit it may take a very long time 'magma' : 'function make_data() return [NumberField(r[2]) : r in data]; end function;', 'mathematica' : '', - 'oscar' : 'function make_data() return [NumberField(r[2]) for r in data] end', + 'oscar' : 'function make_data() return [number_field(r[2]) for r in data] end', 'sage' : 'def make_data(): return [NumberField(r[1],"a") for r in data]', } download_makedata_comment = {