| 1 | initial version |
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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.