Method to find the domain of a function( ex. log(x)) in sympy

37 views
Skip to first unread message

Gaurav Dhingra

unread,
May 7, 2015, 1:32:16 AM5/7/15
to sy...@googlegroups.com
Hi everyone.

Is there any method using which i can find the domain of a function in sympy ?

Ex. if can get something like this
>> real_domain( log(x), x )
Interval(0, oo, left_open=True)

Or even if there is no such function. Then is there any method i can get whether a particular function is real in an Interval.
For ex.
>>>  IsReal( log(x), Interval(1, 5))
True

It will be helpful for me. Thank you.
Reply all
Reply to author
Forward
0 new messages