Ask Your Question
0

Keep metric purely symbolic

asked 2023-06-23 14:03:08 +0100

Loreno Heer gravatar image

updated 2023-06-23 15:23:50 +0100

eric_g gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-23 15:22:24 +0100

eric_g gravatar image

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.

edit flag offensive delete link more

Comments

oh, that is a pity. both in terms of writing it out and computationally. I will then use cadabra2 in the meantime for this.

Loreno Heer gravatar imageLoreno Heer ( 2023-06-23 15:52:37 +0100 )edit

What version of sage was this? I've been trying something similar. Is there any update on this?

aneet gravatar imageaneet ( 2024-08-23 11:22:58 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2023-06-23 14:03:08 +0100

Seen: 208 times

Last updated: Jun 23 '23