Ask Your Question

AlanTStafford's profile - activity

2023-07-10 11:50:37 +0200 received badge  Notable Question (source)
2022-12-30 10:36:14 +0200 received badge  Popular Question (source)
2022-04-23 01:25:43 +0200 answered a question exp of quaternion

I have used quaternions a few times perhaps here notebooks could provide some guidance. http://alan.atstafford.co.uk/Pe

2022-04-23 01:07:14 +0200 commented question How to calculate some Ricci tensor derived quantities.

What shall we call the SageMath Cotton Tensor convention of -1/2 in four dimensions? This is surely a breakthrough of gr

2021-07-11 11:38:02 +0200 commented question Simplification of arctan2(f1,f2) expressions.

I was working out transformations between coordinate systems. As a test I transformed and then untransformed so there sh

2021-07-09 19:24:24 +0200 commented answer Problem with Metric Tensor coordinate change.

Thank you, answer accepted. I was nearly there trying restrict but hadn't got to using an intersection. I have the maps

2021-07-09 19:23:57 +0200 commented answer Problem with Metric Tensor coordinate change.

Thank you, answer accepted. I was nearly there trying restrict but hadn't got to using an intersection. I have the maps

2021-07-09 17:09:23 +0200 edited question Simplification of arctan2(f1,f2) expressions.

Simplification of arctan2(f1,f2) expressions. Why doesn't arctan2(sqrt(a^2 + r^2)*sin(phi)*sin(th), sqrt(a^2 + r^2)*cos(

2021-07-09 16:35:33 +0200 asked a question Simplification of arctan2(f1,f2) expressions.

Simplification of arctan2(f1,f2) expressions. Why doesn't arctan2(sqrt(a^2 + r^2)sin(phi)sin(th), sqrt(a^2 + r^2)cos(phi

2021-07-08 20:54:10 +0200 commented answer hi could you tell me the sage command to restrict a vector subspace of a bilinear form? thank you

Try references for Quadratic forms.

2021-07-08 15:36:07 +0200 commented question hi could you tell me the sage command to restrict a vector subspace of a bilinear form? thank you

I hope this helps. https://wiki.sagemath.org/quickref?action=AttachFile&do=get&target=quickref-linalg.pdf

2021-07-05 17:42:57 +0200 commented answer Problem with Metric Tensor coordinate change.

Thank you, answer accepted. I was nearly there trying restrict but hadn't got to using an intersection. I have the maps

2021-07-05 17:42:35 +0200 commented answer Problem with Metric Tensor coordinate change.

Thank you, answer accepted. I was nearly there trying restrict but hadn't't got to using an intersection. I have the map

2021-07-05 17:41:53 +0200 marked best answer Problem with Metric Tensor coordinate change.

I define a M manifold with three charts, I then define a metric on one of the charts MH. I then want to see the metric components in one of the other charts BL. I have defined differential maps between the charts.

gMann(MH) works and I can display the components but,

gMann(BL) gives the error:

ValueError: the provided domain is not a subset of the field's domain

print(subdomain,self._restrictions) gives 'Open subset MBL of the 4-dimensional Lorentzian manifold M {}' .

How do I make this work please? I will post the code in comments below.

2021-07-05 17:41:53 +0200 received badge  Scholar (source)
2021-07-05 17:41:35 +0200 commented answer Problem with Metric Tensor coordinate change.

Thank you answer accepted I was nearly there trying restrict but hadn't't got to using an intersection. I have the maps

2021-07-05 14:48:59 +0200 commented question Problem with Metric Tensor coordinate change.

Link to code at my website. The problem surfaces in cell 6. The function definitions between cell two and six can be ign

2021-07-04 22:48:45 +0200 commented question Problem with Metric Tensor coordinate change.

Link to code at my website, the function definitions can be ignored. The problem surfaces in cell 6. The function defini

2021-07-04 22:47:36 +0200 commented question Problem with Metric Tensor coordinate change.

Link to code at my website, the function definitions can be ignored. The problem surfaces in cell 6. The function defini

2021-07-04 22:44:36 +0200 commented question Problem with Metric Tensor coordinate change.

Link to code at my website, the function definitions can be ignored. The problem surfaces in cell 6. The function defini

2021-07-04 22:38:50 +0200 commented question Problem with Metric Tensor coordinate change.

First cell: `var('a', domain='real') #Angular momentum as a fraction of rest mass. %display latex # LaTeX rendering t

2021-07-04 22:32:34 +0200 asked a question Problem with Metric Tensor coordinate change.

Problem with Metric Tensor coordinate change. I define a M manifold with three charts, I then define a metric on one of

2021-06-27 18:35:57 +0200 commented answer How to calculate some Ricci tensor derived quantities.

https://groups.google.com/g/sage-support/c/9JICAs8mgcs/m/KtOSyOiJBAAJ

2021-06-26 15:55:48 +0200 commented question Finding a diagonal matrix for a given matrix

Not sure but have a look at A.eigenmatrix_left() and eigenmatrix_right() , the eigenvectors are orthogonal and the eigen

2021-06-25 14:17:33 +0200 commented answer How to calculate some Ricci tensor derived quantities.

I have added some additional tensors to metric.py . _derived_objects = ('_connection', '_ricci_scalar', '_weyl',

2021-06-25 14:17:10 +0200 commented answer How to calculate some Ricci tensor derived quantities.

I use this code to calculate the cotton tensor. I have tested it against data from maple. I uploaded a test script to th

2021-06-25 14:16:44 +0200 commented answer How to calculate some Ricci tensor derived quantities.

I use this code to calculate the cotton tensor. I have tested it against data from maple. I uploaded a test script to th

2021-06-25 13:49:22 +0200 commented answer How to calculate some Ricci tensor derived quantities.

Bach Tensor V. Bach= 1/2 * U + 1/6 * V . def bachV(self, name=None, latex_name=None): if self._bachV is None:

2021-06-25 13:48:15 +0200 commented answer How to calculate some Ricci tensor derived quantities.

Thanks I have the knack now. I can't accept my answer as I don't have enough karma. I will do so when I do.

2021-06-25 13:46:35 +0200 commented answer How to calculate some Ricci tensor derived quantities.

Bach Tensor V. Bach= 1/2 * U + 1/6 * V . def bachV(self, name=None, latex_name=None): if self._bachV is None:

2021-06-25 13:45:26 +0200 commented answer How to calculate some Ricci tensor derived quantities.

Bach Tensor U. Bach= 1/2 * U + 1/6 * V . if self._bachU is None: nabla = self.connection() ricc

2021-06-25 13:44:21 +0200 commented answer How to calculate some Ricci tensor derived quantities.

if self._bachU is None: nabla = self.connection() ricci = self.ricci() ricci_scalar

2021-06-25 13:43:59 +0200 commented answer How to calculate some Ricci tensor derived quantities.

Bach Tensor. if self._bach is None: nabla = self.connection() s = self.sch

2021-06-25 13:43:35 +0200 commented answer How to calculate some Ricci tensor derived quantities.

Bach Tensor. ` if self._bach is None: nabla = self.connection() s = self.sc

2021-06-25 13:42:52 +0200 commented answer How to calculate some Ricci tensor derived quantities.

Bach Tensor. ` if self._bach is None: nabla = self.connection() s = self.sc

2021-06-25 13:42:20 +0200 commented answer How to calculate some Ricci tensor derived quantities.

` if self._bach is None: nabla = self.connection() s = self.schouten()

2021-06-25 11:57:48 +0200 commented answer How to calculate some Ricci tensor derived quantities.

Note. The above bach bachU bachV tensor definitions are only valid for four dimensions. I can work on more general ones

2021-06-25 11:40:31 +0200 commented answer How to calculate some Ricci tensor derived quantities.

` def bachV(self, name=None, latex_name=None): if self._bachV is None: nabla = self.connection()

2021-06-25 11:40:31 +0200 received badge  Commentator
2021-06-25 11:39:06 +0200 commented answer How to calculate some Ricci tensor derived quantities.

` if self._bachU is None: nabla = self.connection() ricci = self.ricci()

2021-06-25 11:36:14 +0200 commented answer How to calculate some Ricci tensor derived quantities.

` if self._bach is None: nabla = self.connection() s = self.schouten()

2021-06-25 11:30:01 +0200 commented answer How to calculate some Ricci tensor derived quantities.

I have added some additional tensors to metric.py . _derived_objects = ('_connection', '_ricci_scalar', '_weyl',

2021-06-25 11:28:10 +0200 commented answer How to calculate some Ricci tensor derived quantities.

I use this code to calculate the cotton tensor. I have tested it against data from maple. I uploaded a test script to th

2021-06-25 10:46:24 +0200 commented answer How to calculate some Ricci tensor derived quantities.

cot = -(n-2)*nabla(s).antisymmetrize(1,2)

2021-06-25 10:42:07 +0200 commented answer How to calculate some Ricci tensor derived quantities.

If you check metric.py you will see that the code for the cotton tensor is wrong and not as the explanation above. I ha

2021-06-24 17:29:04 +0200 received badge  Supporter (source)
2021-06-24 17:27:12 +0200 edited answer How to calculate some Ricci tensor derived quantities.

Solved, see comments. var('tpar','lpar') tpar = 4 lpar = 4 Parallelism().set('tensor',tpar) Parallelism().set('linbox

2021-06-24 12:36:03 +0200 received badge  Teacher (source)
2021-06-24 12:36:03 +0200 received badge  Self-Learner (source)
2021-06-24 12:36:00 +0200 received badge  Student (source)