[sympy] How do you disable expression evaluation of matrix multiplication?

2015-07-28 Thread Jonathan Crall
I'm using sympy to generate some latex output, and I would like to create an expression by multiplying several matrices, but I don't want it to simply the expression. A simple example: I have x, y, ori = sympy.symbols('x y ori') T = Matrix([ [1, 0, -x], [0, 1, -y], [0, 0, 1]]) R = Matr

[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

[sympy] Re: Symbolic probability expression

2016-01-06 Thread Jonathan Crall
I think its a pretty good idea. I'm not a sympy dev, but I stumbled on this thread because I was looking for some way to do this. On Tuesday, December 15, 2015 at 1:05:20 PM UTC-5, Francesco Bonazzi wrote: > > I started recently some work on a symbolic expression for variance and > covariance in

[sympy] It is possible to combine terms under a radical?

2016-01-20 Thread Jonathan Crall
I saw under http://docs.sympy.org/dev/tutorial/simplification.html#powsimp that it is impossible to combine radicals using powersimp: "This means that it will be impossible to undo this identity with powsimp(), because even if powsimp() were to put the bases together, they would be automaticall

[sympy] Fractions of sympy.Product of sympy.tensor.Indexed variables seem to not cancel correctly.

2016-02-09 Thread Jonathan Crall
I'm having an issue where an expresion with sympy.tensor.Indexed variables does not seem to simplify correctly. It is likely that I'm just doing something incorrect, so I was wondering if anyone could help me figure this out. I'm using sympy to just generate some simple equations based on Bayes