Comment #2 on issue 1267 by akshaysrinivasan: improve our str printer:
1/cos(x)*sin(x) -> sin(x)/cos(x)
http://code.google.com/p/sympy/issues/detail?id=1267
Changing :
return sign + "1/%s*"%b_str[0] + '*'.join(a_str)
to
return sign + '*'.join(a_str)+ "/%s"%b_str[0]
seems to fix it.
I found this in the course of fixing that one,
>>>(x/cos(x)).args
(x,1/cos(x))
>>>(sin(x)/cos(x)).args
(1/cos(x),sin(x))
Shouldn't the second one be the the other way around ?
Attachments:
str.patch 491 bytes
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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-issues?hl=en
-~----------~----~----~----~------~----~------~--~---