Once you do that, you'll discover that the algorithms themselves are
implemented in various _eval_expand_* methods throughout SymPy (you
can again grep to find them).

Aaron Meurer

On Sun, Feb 19, 2012 at 5:42 AM, Mateusz Paprocki <[email protected]> wrote:
> Hi,
>
> On 19 February 2012 13:36, prateek papriwal <[email protected]>
> wrote:
>>
>> how does the function expand() works and where is its source code
>> written in the git repositories of sympy .
>> i have cloned the sympy .
>
>
> Use `git grep` to find appropriate source files:
>
> $ git grep -n "def expand"
> sympy/core/expr.py:2325:    def expand(self, deep=True, modulus=None,
> power_base=True, power_exp=True, \
> sympy/core/function.py:1490:def expand(e, deep=True, modulus=None,
> power_base=True, power_exp=True, \
> sympy/core/function.py:1666:def expand_mul(expr, deep=True):
> sympy/core/function.py:1683:def expand_multinomial(expr, deep=True):
> sympy/core/function.py:1701:def expand_log(expr, deep=True):
> sympy/core/function.py:1718:def expand_func(expr, deep=True):
> sympy/core/function.py:1735:def expand_trig(expr, deep=True):
> sympy/core/function.py:1752:def expand_complex(expr, deep=True):
> sympy/core/function.py:1769:def expand_power_base(expr, deep=True):
> sympy/core/logic.py:293:    def expand(self):
> sympy/galgebra/GA.py:2327:    def expand(self):
> sympy/matrices/matrices.py:465:    def expand(self, **hints):
> sympy/physics/quantum/tensorproduct.py:191:    def expand(self, **hints):
>
>>
>> --
>> 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.
>>
>
> Mateusz
>
> --
> 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