Skip to content

Nonnumeric integer expressions not handled by floor/ceil #24365

@rwst

Description

@rwst

In #22079 floor/ceil gets a new implementation. Symbolic arguments are not checked with is_integer however so we get

sage: var('x',domain='integer')
x
sage: floor(x)
floor(x)
sage: ceil(x)
ceil(x)

Inserting that check (if not is_numeric) would immediately simplify a class of expressions.

Component: symbolics

Author: Ralf Stephan

Branch/Commit: fcd36b8

Reviewer: Bryan Gin-ge Chen

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions