Using dz /\ dx convention in SageManifolds
Several books on Differential Forms in Electrodynamics use the convention that the dx,dz basis is defined as dz∧dx and not dx∧dz, for example the Faraday two-form expressed in this way
F=−Exdt∧dx−Eydt∧dy−Ezdt∧dz+Bxdy∧dz+Bydz∧dx+Bzdx∧dy
I can't seem to find anything in the SageManifolds documentation on defining either a manifold or a form to use this convention. Is it possible to directly use this convention in SageManifolds ?
I suppose you already knows that dz∧dx=−dx∧dz as far dx and dz are 1-forms. With this in mind the only difference is a change in a sign.
Yes I'm aware that they are alternating products, however:
1 Its less error prone if you don't have to remember to swap signs and
2 the exterior derivative seems to be incorrect in dt∧dz∧dx term
Eg the correct term is (∂Ex∂z−∂Ez∂x+∂By∂t)dt∧dz∧dx [1] but Sage gives
(∂By∂t−∂Ex∂z+∂Ez∂x)dt∧dx∧dz= (∂Ex∂z−∂Ez∂x−∂By∂t)dt∧dz∧dx
See next comment for the code as I'm running out of chars
[1] A Visual Introduction to Differential Forms and Calculus on Manifolds, Fortney, J.P, Springer 20
Sorry, I could not the editor to do a markdown code display with4 tilde's. The code is at: link texthttps://gist.github.com/donaldmunro/6...
SageMath is correct in computing the exterior derivative, simply your initialization of F is not: the
F[1,3]
term should beF[1,3] = - B_y(u,v,w, T)
instead ofF[1,3] = B_y(u,v,w, T)
.