Ask Your Question

Revision history [back]

For 2-dimensional Riemannian manifolds, the Gaussian curvature is obtained as half the Ricci scalar:

K = M.metric().ricci_scalar()/2

(Note that you have to invoke ricci_scalar() on M.metric(), not on M). See the documentation of ricci_scalar() for the example of the 2-sphere.