sin(-theta) always expands to -sin(theta)

40 views
Skip to first unread message

Jonathan Crall

unread,
Aug 9, 2015, 11:54:47 AM8/9/15
to sympy
I have a matrix equation where it would be useful for the output to have a -theta inside a sine operation. However, whenever I type sympy.sin(-theta) it always expands to -sin(theta). Is there any way to disable this?

Sartaj Singh

unread,
Aug 9, 2015, 3:21:30 PM8/9/15
to sy...@googlegroups.com
Try with evaluate flag. sin(-theta, evaluate=False) should give sin(-theta).

On 9 August 2015 at 21:24, Jonathan Crall <erot...@gmail.com> wrote:
I have a matrix equation where it would be useful for the output to have a -theta inside a sine operation. However, whenever I type sympy.sin(-theta) it always expands to -sin(theta). Is there any way to disable this?

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/e0c876ac-8252-4aae-813d-52513cc4372b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards
Sartaj Singh

Mathematics and Computing,
Indian Institute of Technology,
Varanasi - 221 005 INDIA

Reply all
Reply to author
Forward
0 new messages