Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Metric of EuclideanSpace(3) in spherical frame

I may have some conceptual misunderstandings, but here is the code

E=EuclideanSpace(3)
c_spher.<r,th,ph>=E.spherical_coordinates()
f_spher=E.spherical_frame()

E.set_default_chart(c_spher)
E.set_default_frame(f_spher)

g=E.metric()
show(g[:])

I was expecting the diagonal elements of the metric to be [1,r^2,r^4*sin(th)^2], but I get [1,1,1]

What I am doing wrong?