Skip to content

Two versions of QQ(sqrt{-1}) upon startup #15298

@nbruin

Description

@nbruin

We have two copies upon startup:

sage: import gc
sage: Ks=[K for K in gc.get_objects() if
....: isinstance(K,sage.rings.number_field.number_field.NumberField_quadratic)]
sage: [latex(k.0) for k in Ks]
[i, \sqrt{-1}]

I suspect they are coming from
symbolic/pynac.pyx:2046 (in init_pynac_I)

    K = QuadraticField(-1, 'I', embedding=CC.gen(), latex_name='i')

and from rings/qqbar.py:7699 (in _init_qqbar)

    QQbar_I_nf = QuadraticField(-1, 'I', embedding=CC.gen())

Should we perhaps both give them the same latex name so that these can be the same field?

Component: interfaces

Author: Frédéric Chapoton

Branch/Commit: 5aa64be

Reviewer: Ralf Stephan

Issue created by migration from https://trac.sagemath.org/ticket/15298

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions