Re: [sympy] New to sympy,open source

2014-12-04 Thread Sudhanshu Mishra
Hey Devendra, Go through this document to see how to get involved: https://github.com/sympy/sympy/wiki/introduction-to-contributing To learn about GitHub and Git, start with this https://try.github.io/levels/1/challenges/1 Regards Sudhanshu Mishra www.sudhanshumishra.in On Thu, Dec 4, 2014 at

[sympy] Re: problem in solving inequations

2014-12-04 Thread bruno . pincon5
On Thursday, December 4, 2014 7:23:28 AM UTC+1, Chris Smith wrote: Could you do `print filldedent(R);print filldedent(L)` so I can see what the expressions are that you are trying to solve? Sorry my list L of 4 relationals was latter renamed R... Here they are (btw I was not able to

[sympy] Re: problem in solving inequations

2014-12-04 Thread bruno . pincon5
Oups I just saw that my first and second relationals are the same. So I have to solve for only 3 relationals. I just went to try the wolfram alpha online calculator, I got : 1/ for the first relational : solve((-k**8 + 8*k**6 - 8*k**4 - 16*k**2 - 64)/(k*(k**8 - 2*k**6 - 4*k**4 -

[sympy] Sympy assumptions

2014-12-04 Thread Paul Royik
Suppose that I have an expression e = x**2+sqrt(a**2*b**2) What is the best way to assign to expression assumption that all variables are Positive, so that equivalent of e is x**2+ab? -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from

Re: [sympy] Sympy assumptions

2014-12-04 Thread Ondřej Čertík
On Thu, Dec 4, 2014 at 7:38 AM, Paul Royik distantjob...@gmail.com wrote: Suppose that I have an expression e = x**2+sqrt(a**2*b**2) What is the best way to assign to expression assumption that all variables are Positive, so that equivalent of e is x**2+ab? It should be done like this: In

[sympy] Eigenvalues of a matrix with symbolic coefficients

2014-12-04 Thread Oscar Benjamin
I'm having some problems getting sympy to compute eigenvalues of a matrix with symbolic coefficients. A trivial example is: In [4]: M = Matrix([[y, 0], [0, z]]) In [5]: M Out[5]: ⎡y 0⎤ ⎢⎥ ⎣0 z⎦ In [6]: M.eigenvals() Out[6]: ⎧ ____ ⎫ ⎪

Re: [sympy] Sympy assumptions

2014-12-04 Thread Paul Royik
I know this way, but is there any way to change this after symbol creation? On Thursday, December 4, 2014 6:29:27 PM UTC+2, Ondřej Čertík wrote: On Thu, Dec 4, 2014 at 7:38 AM, Paul Royik distan...@gmail.com javascript: wrote: Suppose that I have an expression e =

Re: [sympy] Eigenvalues of a matrix with symbolic coefficients

2014-12-04 Thread Colin Macdonald
On 04/12/14 16:57, Oscar Benjamin wrote: I'm having some problems getting sympy to compute eigenvalues of a matrix with symbolic coefficients. A trivial example is: In [4]: M = Matrix([[y, 0], [0, z]]) In [5]: M Out[5]: ⎡y 0⎤ ⎢⎥ ⎣0 z⎦ In [6]: M.eigenvals() Out[6]: ⎧

Re: [sympy] Eigenvalues of a matrix with symbolic coefficients

2014-12-04 Thread Oscar Benjamin
On 4 December 2014 at 17:44, Colin Macdonald macdon...@maths.ox.ac.uk wrote: In [4]: M = Matrix([[y, 0], [0, z]]) In [5]: M Out[5]: ⎡y 0⎤ ⎢⎥ ⎣0 z⎦ In [6]: M.eigenvals() Out[6]: ⎧ ____ ⎫ ⎪ ╱2╱2

[sympy] a bug: intersection of Line3D and plane

2014-12-04 Thread zxo102
Hi there, Using sympy0.7.6.win32, I run the following python script to try to find the intersection of a Line3D and a Plane. The coordinates for Point3D are from my intermediate result. I test the script in python 2.7.8 (Case 1) and python 3.4.2 (Case 2) and got different results.