Skip to content

Commit

Permalink
Merge pull request #6128 from thofma/th/oscar2
Browse files Browse the repository at this point in the history
Update Oscar code to version 1.0
  • Loading branch information
roed314 authored Aug 6, 2024
2 parents e91cd7f + 999609f commit a33e874
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lmfdb/elliptic_curves/code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/number_fields/code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ field:
sage: x = polygen(QQ); K.<a> = NumberField(%s)
pari: K = bnfinit(%s, 1)
magma: R<x> := PolynomialRing(Rationals()); K<a> := 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()
Expand Down
4 changes: 2 additions & 2 deletions lmfdb/number_fields/number_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,15 +777,15 @@ def interesting():
'gp' : '',
'magma' : 'R<x> := PolynomialRing(Rationals());',
'mathematica' : '',
'oscar' : 'Rx, x = PolynomialRing(QQ)',
'oscar' : 'Rx, x = polynomial_ring(QQ)',
'sage' : 'x = polygen(QQ)',
}

download_makedata = {
'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 = {
Expand Down

0 comments on commit a33e874

Please sign in to comment.