Hello,
my question was not clear.
=================================
>>> from sympy import *
>>> x = Symbol('x')
>>> y = Symbol('y')
>>> e = 2*sin(x)**2 + 2*cos(x)**2
>>> trigsimp(e)
2
=================================
In the preceding example of the official documentation, I would like to know
that SymPy has used the formula sin(x)**2 + cos(x)**2 = 1 . Is it possible
or not ?
Christophe.
2009/12/15 Ondrej Certik <[email protected]>
> 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] <sympy%[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.