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?
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.
What version of sage was this? I've been trying something similar. Is there any update on this?
Asked: 1 year ago
Seen: 242 times
Last updated: Jun 23 '23