On Wed, May 20, 2009 at 19:08, Luke <hazelnu...@gmail.com> wrote: > > How can I most quickly determine the filename and path that a specific > sympy function lives in? For example, if I > from sympy import trigsimp > > and then am playing with trigsimp, how can I quickly determine the > filename that has the function definition for trigsimp? Is there a > way to do this from within ipython?
In [1]: from sympy import trigsimp In [2]: trigsimp? Type: function Base Class: <type 'function'> String Form: <function trigsimp at 0x180c2b0> Namespace: Interactive File: /Users/rkern/git/sympy-master/sympy/simplify/simplify.py Definition: trigsimp(expr, deep=False, recursive=False) Docstring: Usage ===== trigsimp(expr) -> reduces expression by using known trig identities .... etc. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---