Skip to content

Doctest: Expression.is_positive/negative fixed #18630

@rwst

Description

@rwst

The two functions that query Pynac expressions' info::flags only work with numerics and symbols with domain. The rest simply returns False:

sage: (1-pi).is_negative()
False
sage: (log(1/2)).is_negative()
False
sage: e.is_positive()
False
sage: (e+1).is_positive()
False
sage: (2*e).is_positive()
False
sage: (e^3).is_positive()
False

UPDATE: everything above but the first works now.

Depends on #24497

CC: @kcrisman @pelegm

Component: symbolics

Author: Ralf Stephan

Branch/Commit: 8e446e6

Reviewer: Peleg Michaeli, Vincent Delecroix

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions