[sympy] sin(-theta) always expands to -sin(theta)

2015-08-09 Thread Jonathan Crall
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

Re: [sympy] sin(-theta) always expands to -sin(theta)

2015-08-09 Thread Sartaj Singh
Try with evaluate flag. sin(-theta, evaluate=False) should give sin(-theta). On 9 August 2015 at 21:24, Jonathan Crall 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 expa

[sympy] Units in the electronic context

2015-08-09 Thread Thiago Costa de Paiva
Hello guys I use python (notebook, sympy, pyspice and matplotlib are a very good team) to design some electronic projects allowing me to have almost everything in only one place. I tried for a while to play with the units but I was unable to go further. Today I asked a question [0] in Stack Over

Re: [sympy] Units in the electronic context

2015-08-09 Thread Aaron Meurer
Have you looked at the new sympy.physics.unitsystems module? It should be more flexible than the sympy.physics.units module. Aaron Meurer On Sun, Aug 9, 2015 at 2:56 PM, Thiago Costa de Paiva wrote: > Hello guys > > I use python (notebook, sympy, pyspice and matplotlib are a very good > team) t

Re: [sympy] Units in the electronic context

2015-08-09 Thread Thiago Costa de Paiva
Thank you for your suggestion, Aaron. I tried to look at it, but I was not able to find the path to the solution. Do you have a tip? Thiago Em 2015/08/09 21:44:41, Aaron Meurer escreveu: > Have you looked at the new sympy.physics.unitsystems module? It should be more > flexible than the sympy.ph