Ühel kenal päeval, K, 2009-05-20 kell 19:21, kirjutas Robert Kern:
> 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

With any distro (most Linux distros do) that has grep installed and you
are currently in sympy's base directory:

grep -r 'def trigsimp' sympy


Of course, ipython/isympy's way is a bit faster...

PS. Try also >> 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.
> 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to