Skip to content

is_increasing and similar monotonicity function not returning any solution #26871

Open
@arnabnandikgp

Description

I was trying the some monotonicity testing functions such as the is_increasing function and it seems it is unable to return the solutions for some cases.

In [24]: expr = x - 1/x**2

In [25]: is_increasing(expr) # returns none 

it seems it stems from the following lines

predicate_interval = solveset(predicate(derivative), variable, S.Reals)
return interval.is_subset(predicate_interval)

as the following does not gives a solution, returns none

In [11]: og =  Interval.open(-oo,oo)

In [12]: sol = Union(Interval(-oo, -2**(1/3)), Interval.open(0, oo))

In [13]: og.is_subset(sol) # returns none should be false

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions