On Mon, Dec 14, 2009 at 3:11 PM, Christophe BAL <[email protected]> wrote:
> Hello,
> is it possible to know the formulas used by sympy when simplications are
> done using for example trigsimp ?

Yes, those are in:

sympy/simplify/simplify.py

line 876. This is really simple now:

    matchers = (
            (a*sin(b)**c/cos(b)**c, a*tan(b)**c),
            (a*tan(b)**c*cos(b)**c, a*sin(b)**c),
            (a*cot(b)**c*sin(b)**c, a*cos(b)**c),
            (a*tan(b)**c/sin(b)**c, a/cos(b)**c),
            (a*cot(b)**c/cos(b)**c, a/sin(b)**c),
    )

Luke started to write a state of the art algorithm for this, but it's
not finished yet.

Ondrej

--

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