Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the Gaussian curvature of a surface
ResourceFunction["GaussianCurvature"][s,{u,v}] computes the Gaussian curvature of the surface s parameterized by u and v. | |
ResourceFunction["GaussianCurvature"][eq,{x,y,z}] computes the Gaussian curvature of the surface s given by the implicit equation eq in variables x,y and z. |
Compute the Gaussian curvature of a sphere:
| In[1]:= |
| Out[1]= |
Plot an astroidal ellipsoid:
| In[2]:= | ![]() |
| Out[2]= | ![]() |
Now compute its Gaussian curvature:
| In[3]:= | ![]() |
| Out[3]= |
Plot the Gaussian curvature:
| In[4]:= | ![]() |
| Out[4]= | ![]() |
Define a Möbius strip:
| In[5]:= |
| Out[5]= |
Compute the Gaussian curvature:
| In[6]:= |
| Out[6]= |
Plot the Gaussian curvature:
| In[7]:= |
| Out[7]= | ![]() |
Plot the Möbius strip colored according to its Gaussian curvature:
| In[8]:= | ![]() |
| Out[8]= | ![]() |
Here is an implicit equation for a surface:
| In[9]:= |
Plot it:
| In[10]:= |
| Out[10]= | ![]() |
Compute its Gaussian curvature:
| In[11]:= |
| Out[11]= | ![]() |
The curvature can be obtained for named surfaces using entities:
| In[12]:= |
| Out[12]= |
Here is the result returned by GaussianCurvature:
| In[13]:= | ![]() |
| Out[13]= |
The expressions seem to be different, but they are equal:
| In[14]:= | ![]() |
| Out[14]= |
This work is licensed under a Creative Commons Attribution 4.0 International License