[sage-support] Re: Clifford Algebras, grrrrrr

2014-07-26 Thread Nils Bruin
On Saturday, July 26, 2014 12:21:38 PM UTC-7, Stephen Kauffman wrote: > > TypeError: unsupported operand parent(s) for '*': 'Vector space of > dimension 16 over Rational Field' and 'Full MatrixSpace of 8 by 8 dense > matrices over Integer > Ring' > > The error that you're getting is because there

Re: [sage-support] Clifford Algebras, grrrrrr

2014-07-26 Thread Stephen Kauffman
plenty to read in http://docs.sympy.org/latest/modules/galgebra/GA.html had to dig to see what to import import sympy from sympy import * from sympy.galgebra import * from sympy.galgebra.ga import * some references said to from sympy.galgebra.GAsympy import * which doesn't exist or at least do

Re: [sage-support] Clifford Algebras, grrrrrr

2014-07-26 Thread David Joyner
Have you looked at what sympy already has for Clifford algebras? On Saturday, July 26, 2014, Stephen Kauffman wrote: > I attempted to create a Clifford Algebra for space-time with the gamma > matrices using the FreeAlgebraQuotient in analogy to the example for > constructing a quarternion algebr

[sage-support] Re: Derivatives of a Function?

2014-07-26 Thread Emmanuel Charpentier
What's wrong with : sage: var("a,x") (a, x) sage: z=function("z",x) sage: f(x)=2*x+2*z*diff(z,x)/sqrt(x^2+a^2+z^2) sage: f x |--> 2*z(x)*D[0](z)(x)/sqrt(a^2 + x^2 + z(x)^2) + 2*x hmmm ? You can also write : sage: foo(x)=2*x+2*z(x)*diff(z(x),x)/sqrt(x^2+a^2+z(x)^2) sage: foo x |--> 2*z(x)*D[0](

[sage-support] Clifford Algebras, grrrrrr

2014-07-26 Thread Stephen Kauffman
I attempted to create a Clifford Algebra for space-time with the gamma matrices using the FreeAlgebraQuotient in analogy to the example for constructing a quarternion algebra from the documentation with the code: PRGA=FreeAlgebra(QQ,4,'g') F = PRGA.monoid() g0,g1,g2,g3 = F.gens() mons = [ F(1), g0

[sage-support] Derivatives of a Function?

2014-07-26 Thread Chris Maness
I would like to take the derivative of a function defined as as such that: f(x,z)=(2*x+2*z*(dz/dx))/sqrt(x^2+a^2+z^2) and z=z(x) (z is an unknown function of x). I am working on Euler-Legrange stuff. Thanks, Chris -- You received this message because you are subscribed to the Google Groups "

[sage-support] Re: mpmath's incomplete gamma function evaluates much faster for small arguments

2014-07-26 Thread Ralf Stephan
On Saturday, November 27, 2010 2:15:23 PM UTC+1, KvS wrote: > > just a quick question/remark, today I was working (plotting etc.) with > some quantities that involve (upper) incomplete gamma functions. ... I was wondering whether it might be possible & > would be an attractive feature to modify