[sympy] Re: No documentation of class methods?

2009-12-02 Thread Vinzent Steinberg
On 1 déc, 22:45, "se...@gmx.de" wrote: > Hi, > > I'm a new sympy user and I've been trying to find out about class > functions and so on (especially in the Geometry package). They don't > seem to be documented though. It even says > > > For a full API listing and an explanation of the methods and

[sympy] Re: symbolic one and 2d tensors

2009-12-02 Thread Vinzent Steinberg
On 1 déc, 21:28, Scott wrote: > Is there a sympy function for making symbolic tensors? > Basically I want to treat 3x3 rotation tensor symbol that is constant > inside of an integral while preserving the tensor algebra (A*B .ne. > B*A).  The 3x3 rotain tensor is multiplied by a 3x1 position tenosr

[sympy] Re: printing exponential format vs float numbers

2009-12-02 Thread Vinzent Steinberg
On 1 déc, 16:45, archeryguru2000 wrote: > I was wondering, is there a way to tell sympy NOT to use exponential > format when printing numbers? > > For example: > > In [2]: N(pi/(2*E),4) > Out[2]: 5.779e-1  #But I'd rather see 0.5779 > > If I choose a larger number, say 7, for the number of decimal

Re: [sympy] Re: symbolic one and 2d tensors

2009-12-02 Thread Alan Bromborsky
Vinzent Steinberg wrote: > On 1 déc, 21:28, Scott wrote: > >> Is there a sympy function for making symbolic tensors? >> Basically I want to treat 3x3 rotation tensor symbol that is constant >> inside of an integral while preserving the tensor algebra (A*B .ne. >> B*A). The 3x3 rotain tensor i

[sympy] Re: printing exponential format vs float numbers

2009-12-02 Thread archeryguru2000
Is there any way to convert a sympy Matrix (or even numpy array, etc) to an mpmath matrix? I have tried patching sympy.mpmath, but now I get errors trying to convert sympy to mpmath! Actually, is there a way to tell N(x, n=15, **options) to NOT print exponential format? I will take a look at thi

Re: [sympy] Re: symbolic one and 2d tensors

2009-12-02 Thread Alan Bromborsky
Alan Bromborsky wrote: > Vinzent Steinberg wrote: > >> On 1 déc, 21:28, Scott wrote: >> >> >>> Is there a sympy function for making symbolic tensors? >>> Basically I want to treat 3x3 rotation tensor symbol that is constant >>> inside of an integral while preserving the tensor algebra (

Re: [sympy] Re: symbolic one and 2d tensors

2009-12-02 Thread Ondrej Certik
Hi Alan! On Wed, Dec 2, 2009 at 3:48 PM, Alan Bromborsky wrote: > Alan Bromborsky wrote: >> Vinzent Steinberg wrote: >> >>> On 1 déc, 21:28, Scott   wrote: >>> >>> Is there a sympy function for making symbolic tensors? Basically I want to treat 3x3 rotation tensor symbol that is constan

Re: [sympy] Re: symbolic one and 2d tensors

2009-12-02 Thread Alan Bromborsky
Ondrej Certik wrote: > Hi Alan! > > On Wed, Dec 2, 2009 at 3:48 PM, Alan Bromborsky wrote: > >> Alan Bromborsky wrote: >> >>> Vinzent Steinberg wrote: >>> >>> On 1 déc, 21:28, Scott wrote: > Is there a sympy function for making symbolic tenso

Re: [sympy] Re: symbolic one and 2d tensors

2009-12-02 Thread Ondrej Certik
>>> cos(a/2)-u__z*sin(a/2)*e_x^e_y+u__y*sin(a/2)*e_x^e_z-u__x*sin(a/2)*e_y^e_z >>> >>> cos(a/2)+u__z*sin(a/2)*e_x^e_y-u__y*sin(a/2)*e_x^e_z+u__x*sin(a/2)*e_y^e_z >>> >>> (-2*u__z*x__y*cos(a/2)*sin(a/2)+2*u__y*x__z*cos(a/2)*sin(a/2)+x__x*cos(a/2)**2+x__x*u__x**2*sin(a/2)**2-x__x*u__y**2*sin(a/2)**2-