As far as I know, that information is not stored, though it would be a
nice feature.

In SymPy, functions are complex by default, so functions like sqrt()
are actually defined everywhere.  It looks like what you want is the
real domain where the the function takes on real values.

Actually, in order to work in the general case, it would need to be
able to compute the domain of a function given a specific range, too.
That way, you could compute the domain of a nested function (like
acoth(sqrt(x))).

Aaron Meurer

On Wed, Sep 14, 2011 at 8:30 AM, dennis <[email protected]> wrote:
> Hi,
>
> is it possible to get the domain of definition of a function with
> sympy?
> (http://en.wikipedia.org/wiki/Domain_of_a_function)
>
> For example:
> domain(\sqrt(x)) -> [0, oo]
> domain(\ArcCoth(x)) -> [-oo, -1] and [1, oo]
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/sympy?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to