ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 13 Jun 2016 15:07:26 +0200symbolic constant in clifford algebrahttps://ask.sagemath.org/question/33763/symbolic-constant-in-clifford-algebra/ Dear all,
First of all I'd like to state that I am far from a SageMath expert. Right now, I am working on Clifford algebra's and I would like to do some computations with SageMath Cloud. Unfortunately, I experience the problem that when I define a symbolic constant, Sage doesn't know how to multiply this with elements in the Clifford algebra. This is the code that I'm using.
START CODE
C = ComplexField();
sage: Q = QuadraticForm(C, 3, [0,0,1,1,0,0])
sage: Cl.<x,y,z> = CliffordAlgebra(Q)
var('e')
e*x
END CODE
I get an error for e*x: ''unsupported operand parent(s) for '*': 'Symbolic Ring' and 'The Clifford algebra of the Quadratic form in 3 variables over Complex Field with 53 bits of precision with coefficients:''
Does anyone maybe know how to work around this? Maybe I am defining the variable all wrong?
Thank you very much!
Kind regards,
David
davidvanovereemMon, 13 Jun 2016 15:01:50 +0200https://ask.sagemath.org/question/33763/How to multiply symbolic constant with element in clifford algebra?https://ask.sagemath.org/question/33764/how-to-multiply-symbolic-constant-with-element-in-clifford-algebra/Dear all,
first I would like to state that I am only a beginner at using SageMath. Currently I am working on Clifford algebra's but unfortunately I'm experiencing a problem. I cannot find a solution in the documentation so I hope maybe someone here has an idea!
I would like to define a symbolic constant in the field of complex numbers, and multiply this with an element from the clifford algebra. Unfortunately, SageMath doesn't like this! This is the code that I'm using:
START CODE
sage: Q = QuadraticForm(CC, 3, [0,0,1,1,0,0])
sage: Cl.<x,y,z> = CliffordAlgebra(Q)
var('e')
e*x
END CODE
the operation e*x now gives me an error: ''TypeError: unsupported operand parent(s) for '*': 'Symbolic Ring' and 'The Clifford algebra of the Quadratic form in 3 variables over Complex Field with 53 bits of precision with coefficients: ...''
Does anyone maybe have an idea how to work around this? Maybe I'm defing the symbolic constant all wrong?
Thank you very much! Kind regards,
David
davidvanovereemMon, 13 Jun 2016 15:07:26 +0200https://ask.sagemath.org/question/33764/