set_default_chart seems to fail
I load the following file
theManifold = Manifold(1,'M',r'\mathcal{M}')
theManifold = Manifold(1,'M',r'\mathcal{M}')
theOpenSet = theManifold.open_subset('U')
firstChart.<x> = theOpenSet.chart(r'x')
g=theManifold.riemannian_metric('g')
g[0,0] = x
show("g with first chart")
show(g.display())
secondChart.<y> = theOpenSet.chart('y')
first_to_second = firstChart.transition_map(secondChart,[2*x])
second_to_first = first_to_second.inverse()
show("g with secondChart.frame() and secondChart as arguments to display")
show(g.display(secondChart.frame(),secondChart))
theManifold.set_default_frame(secondChart.frame())
theManifold.set_default_chart(secondChart)
show("g with secondChart.frame() and secondChart as defaults")
show(g.display())
The output is
๐ ๐ ๐๐๐ ๐๐๐๐๐ ๐๐๐๐๐
g=x dxโdx
๐ ๐ ๐๐๐ ๐๐๐๐๐๐๐ฒ๐๐๐๐.๐๐๐๐๐() ๐๐๐ ๐๐๐๐๐๐๐ฒ๐๐๐๐ ๐๐ ๐๐๐๐๐๐๐๐๐ ๐๐ ๐๐๐๐๐๐๐ข
g=1/8 y dyโdy
๐ ๐ ๐๐๐ ๐๐๐๐๐๐๐ฒ๐๐๐๐.๐๐๐๐๐() ๐๐๐ ๐๐๐๐๐๐๐ฒ๐๐๐๐ ๐๐ ๐๐๐๐๐๐๐๐
g=1/4 x dyโdy
In particular, when the secondChart and secondChart.frame() have been set as defaults, the metric g is expanded with respect to the second frame, but the components are still expressed in the first coordinates.
Is there a way to set defaults so that g appears as 1/8 y dy โdy?