Hi Ondrej,
I think I've fixed it. As you said, it was something in the printing/
str.py.

In doing that I came across this,
>>(x/sin(x)).args()
(x,sin(x))
>>(cos(x)/sin(x)).args()
(1/sin(x),cos(x))

Shouldn't
>>(cos(x)/sin(x)).args()
give
(cos(x),1/sin(x))
??


Akshay (Neptune)


On Jan 18, 12:06 am, "Ondrej Certik" <ond...@certik.cz> wrote:
> On Fri, Jan 16, 2009 at 7:14 PM, Neptune <akshaysriniva...@gmail.com> 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 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