On Fri, Jan 16, 2009 at 7:14 PM, Neptune <[email protected]> wrote:
>
>>>>x=Symbol("x")
>>>>sin(x)/cos(x)
>>>>1/cos(x)*sin(x)
>
> I understand that the precedence rules take care of this i.e (1/cos(x))
> *sin(x) .... but if I didn't know that, I'd think this to be 1/(cos(x)
> *sin(x)).

Indeed, I agree with you. I created a new issue for it:

http://code.google.com/p/sympy/issues/detail?id=1267

I think it is easy to fix, if you'd like to give it a shot, feel free
to ask any questions you might have.

>
> Shouldn't
>>>>simplify(sin(x)/cos(x))
>
> give tan(x) ?

It is maybe related to this isssue:

http://code.google.com/p/sympy/issues/detail?id=1036

In general, our trigsimp() function (that handles these kinds of
simplifications) should be improved to handle tan(x) well.

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