Keep metric purely symbolic
Is there an easy way to define a purely symbolic riemannian metric on a manifold?
Or do I need to initialize it like this
g[0,0] = function('g00')(t,x,y,z)
for example?
At the moment, all tensor fields on manifolds must have expressions in terms of coordinates in one or more charts, These expressions can involve some unspecified functions though, declared via function
. So yes, the only way to define a generic metric is what you suggest. But in practice, for dimensions larger than 2 or 3, this can lead to untractable computations.
oh, that is a pity. both in terms of writing it out and computationally. I will then use cadabra2 in the meantime for this.
Asked: 2023-06-23 14:03:08 +0200
Seen: 141 times
Last updated: Jun 23 '23