[sympy] Funny notebook/latex rendering for big matrices

2015-06-12 Thread Jason Moore
I've noticed that big matrices often have the last bracket on a newline, see line 12 here: http://nbviewer.ipython.org/github/pydy/pydy/blob/master/examples/npendulum/n-pendulum-control.ipynb The LaTeX is printed correctly but either Mathjax or the notebook goof it up. Anyone encountered this bef

Re: [sympy] Sympy Solver - Limitations & Suggestions:

2015-06-12 Thread Brett Smith
Yes, sympy automatically equates these equations to zero. You really are not supposed to write the equations this way when programming with Sympy, but for this application I wanted to be able to type equations in a little easier. I prefer: x^2 + y = 15 to: Eq(x**2 + y, 15) I have a large amount

[sympy] Package to minimize Travis builds.

2015-06-12 Thread Sudhanshu Mishra
Hi all, This package can be used to achieve what was being done here https://github.com/sympy/sympy/pull/2610. Sudhanshu Mishra -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group

Re: [sympy] Sympy Solver - Limitations & Suggestions:

2015-06-12 Thread Ondřej Čertík
On Fri, Jun 12, 2015 at 2:53 AM, Brett Smith wrote: > This system of equations calculates the reaction forces internal to a > machine structure (in this case, vise grip pliers). Then uses the reaction > forces to solve for stress, and eventually, the factor of safety on each > pin connection. > >

[sympy] Re: question about how to substitute an expression with a variable

2015-06-12 Thread TIANJIAO SUN
Try W.replace() and W.xreplace() On Friday, 12 June 2015 18:25:00 UTC+1, Rafael Rocha wrote: > > Hi everyone. > > I am learning sympy and I have a question. I have 3 equations, the third > is the sum of the two first > > I = c1+v1+m1 = w1 > II = c2+v2+m2 = w2 > I + II = C + V + M = W > > So, C =

[sympy] question about how to substitute an expression with a variable

2015-06-12 Thread Rafael Rocha
Hi everyone. I am learning sympy and I have a question. I have 3 equations, the third is the sum of the two first I = c1+v1+m1 = w1 II = c2+v2+m2 = w2 I + II = C + V + M = W So, C = c1+c2, V=v1+v2, M=m1+m2 and W=w1+w2 I defined everything in symbols: c1,v1,m1,w1 = symbols('c1 v1 m1 w1') c2,v2

Re: [sympy] Sympy Solver - Limitations & Suggestions:

2015-06-12 Thread Brett Smith
This system of equations calculates the reaction forces internal to a machine structure (in this case, vise grip pliers). Then uses the reaction forces to solve for stress, and eventually, the factor of safety on each pin connection. I have made the changes you have suggested and I still don't