Example: Set of polynomial elements
Profiles: basic v1
A finite subset of the univariate polynomial ring $\mathbb{Q}[x]$, namely $$ \{x, x^2\}. $$
Related Specification
Systems
Oscar.jl
Generate code (generate.jl) [ edit ]
using Oscar
Qx, x = QQ[:x]
save("data.mrdi", Set([x, x^2]))
Data outputs
Profiles: OSCAR v1.0, OSCAR v1.1, OSCAR v1.2, OSCAR v1.3
Data file: data.mrdi
{
"_ns": {"Oscar": ["https://github.com/oscar-system/Oscar.jl", "1.3.1"]},
"_type": {
"name": "Set",
"params": {"name": "PolyRingElem", "params": "55df460d-fb5d-4ef6-a121-6dff0a70ae0c"}
},
"data": [[["1", "1"]], [["2", "1"]]],
"_refs": {
"55df460d-fb5d-4ef6-a121-6dff0a70ae0c": {"_type": "PolyRing", "data": {"base_ring": {"_type": "QQField"}, "symbols": ["x"]}}
}
}
This serialized output is equivalent for these profiles up to UUID renaming and recorded namespace version strings.
Profiles: OSCAR v1.4, OSCAR v1.5, OSCAR v1.6, OSCAR v1.7
Data file: data.mrdi
{
"_ns": {"Oscar": ["https://github.com/oscar-system/Oscar.jl", "1.7.0"]},
"_type": {
"name": "Set",
"params": {"name": "PolyRingElem", "params": "a78c482c-7f1a-4290-9be9-a4c6c8f3a0fa"}
},
"data": [[["1", "1"]], [["2", "1"]]],
"_refs": {
"a78c482c-7f1a-4290-9be9-a4c6c8f3a0fa": {"_type": {"name": "PolyRing", "params": {"_type": "QQField"}}, "data": {"symbols": ["x"]}}
}
}
This serialized output is equivalent for these profiles up to UUID renaming and recorded namespace version strings.