Skip to content

symbolic placeholder for complex root #22024

@rwst

Description

@rwst

The Sage equivalent of SymPy's CRootOf (=ComplexRootOf) is missing, which is just a symbolic placeholder for a solution that cannot be displayed symbolically.

sage: from sympy import solve as ssolve
sage: ssolve(x^6+x+1, x)

[CRootOf(x**6 + x + 1, 0),
 CRootOf(x**6 + x + 1, 1),
 CRootOf(x**6 + x + 1, 2),
 CRootOf(x**6 + x + 1, 3),
 CRootOf(x**6 + x + 1, 4),
 CRootOf(x**6 + x + 1, 5)]
sage: (_[0]+1)._sage_()
...
AttributeError: 'ComplexRootOf' object has no attribute '_sage_'

Defect because conversion from SymPy fails.

A possible solution for #11941 depends on this.

Depends on #24062

Component: symbolics

Author: Ralf Stephan

Branch: ba171aa

Reviewer: Emmanuel Charpentier

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions