Hello,

I'm afraid trigonometric simplification is a known weakness of sympy. On the other hand, there is good news in your case: *very* recently (yesterday?) we pushed a new function called ratsimpmodprime. It can be used as follows:

In [2]: ratsimpmodprime((-sin(x) + 1)/cos(x) + cos(x)/(-sin(x) + 1),
                        [cos(x)**2 + sin(x)**2 - 1],
                        gens=[cos(x), sin(x)])
Out[2]:
  2
──────
cos(x)

(You can even omit the gens=... argument).

How is that? :-)


We should probably try to incorporate this into trigsimp. That is a fairly non-trivial project, however ...

Best,
Tom

On 17.04.2012 16:14, gsagrawal wrote:
if you apply trigsimp on "(-sin(x) + 1)/cos(x) + cos(x)/(-sin(x) + 1)"
function

sympy result : (-sin(x) + 1)/cos(x) + cos(x)/(-sin(x) + 1)  (dosent
solve anything)
maxima result : 2/cos(x)

what am i missing in sympy ?

Is there any way i can use maxima under sympy  ? Or is there any other
way by which i can solve this epxression ?


Thanks,
Ghanshyam Agrawal

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

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