Surface
Define the surface as a manifold:
Domain(S);
 | (2.1.1) |
Declare functions:
Functions(rho=rho(u),zeta=zeta(u));
 | (2.1.2) |
Declare 1-form for surface coframe
Forms(phi[i]=1);
![{e[k], phi[i]}](Maple/atlas/Templates/images/revolutionary_13.gif) | (2.1.3) |
Declare vectors for surface frame:
Vectors(Phi[k]);
![{Phi[k]}](Maple/atlas/Templates/images/revolutionary_14.gif) | (2.1.4) |
Declare coframe on the surface:
Coframe(phi[1]=d(u),phi[2]=d(v));
![[phi[1] = d(u), phi[2] = d(v)]](Maple/atlas/Templates/images/revolutionary_15.gif) | (2.1.5) |
Declare frame of the surface:
Frame(Phi[j]);
![[Phi[1] = Diff(``, u), Phi[2] = Diff(``, v)]](Maple/atlas/Templates/images/revolutionary_16.gif) | (2.1.6) |
Declare mapping of the surface into
:
Mapping(pi,S,R^3,
x=rho*cos(v),
y=rho*sin(v),
z=zeta);
 |
 | (2.1.7) |
One can also calculate metric induced on the surface by the mapping.
![G = `+`(`*`(`+`(`*`(`^`(Diff(rho, u), 2)), `*`(`^`(Diff(zeta, u), 2))), `*`(`&.`(phi[1], phi[1]))), `*`(`^`(rho, 2), `*`(`&.`(phi[2], phi[2]))))](Maple/atlas/Templates/images/revolutionary_20.gif) | (2.1.8) |
Calculate invariants of the mapping:
Inv:=Invariants(pi);
Let us extract the mean curvature vector field:
| > | mu:=Inv[meanCurvature]; |
Let us extract the second fundamental form:
| > | Sf:=eval(Inv[secondForm]); |
Now we can calculate the corresponding tensor:
| > | B:=add(add(`&.`(e[i],e[j],eval(Sf)[i,j]) ,i=1..2),j=1..2); |