Examples:
Example 1
Declare forms:
| > | Forms(e[j]=1,phi[i]=1); |
![{e[j], phi[i]}](Maple/atlas/help/images/Coframe_7.gif) | (2.1.1) |
Declare vectors:
![{X, Y, Z, E[j]}](Maple/atlas/help/images/Coframe_8.gif) | (2.1.2) |
Declare functions:
| > | Functions(f=f(x,y,z),F=F(z[i])); |
 | (2.1.3) |
Declare another coframe with 1-forms:
(dim = n):
![{e[i]}[i = 1 .. n]](Maple/atlas/help/images/Coframe_11.gif) | (2.1.4) |
Function F is declared as follows
; now
:
'd(F)'=d(F);
![d(F) = Sum(`*`(Diff(F, z[l[1]]), `*`(d(z[l[1]]))), l[1] = 1 .. n)](Maple/atlas/help/images/Coframe_14.gif) | (2.1.5) |
For function f we have:
'd(f)'=d(f);
 | (2.1.6) |
Declare frame vectors (see atlas[Frame]):
Frame(E[i]);
![{E[i]}[i = 1 .. n]](Maple/atlas/help/images/Coframe_16.gif) | (2.1.7) |
"To basis" decomposition:
Y=ToBasis(Y);
, `*`(E[l[1]])), l[1] = 1 .. n)](Maple/atlas/help/images/Coframe_17.gif) | (2.1.8) |
Interior product of vector Y and 1-form e[j]:
iota[Y](e[j])=iota[ToBasis(Y)](e[j]);
 = Sum(`*`(iota[Y](e[l[1]]), `*`(delta[j, l[1]])), l[1] = 1 .. n)](Maple/atlas/help/images/Coframe_18.gif) | (2.1.9) |
"To basis" decomposition:
phi[j]=ToBasis(phi[j]);
![phi[j] = Sum(`*`(iota[E[l[1]]](phi[j]), `*`(e[l[1]])), l[1] = 1 .. n)](Maple/atlas/help/images/Coframe_19.gif) | (2.1.10) |
Example 2
Declare forms:
| > | Forms(e[j]=1,phi[i]=1); |
![{e[j], phi[i]}](Maple/atlas/help/images/Coframe_20.gif) | (2.2.1) |
Declare vectors:
![{X, Y, Z, E[j]}](Maple/atlas/help/images/Coframe_21.gif) | (2.2.2) |
Declare functions:
| > | Functions(F=F(z[i]),z[1]=z[1](x,y)); |
![{F, z[1]}](Maple/atlas/help/images/Coframe_22.gif) | (2.2.3) |
Declare coframe with 1-forms:
(dim = 3):
![[e[1], e[2], e[3]]](Maple/atlas/help/images/Coframe_24.gif) | (2.2.4) |
Functions F,
are declared as follows
and
; now
:
![d(F) = `*`(Diff(F, z[i]), `*`(d(z[i])))](Maple/atlas/help/images/Coframe_29.gif) | (2.2.5) |
Declare frame vectors (see atlas[Frame]):
Frame(E[i]);
![{E[i]}[i = 1 .. 3]](Maple/atlas/help/images/Coframe_30.gif) | (2.2.6) |
"To basis" decomposition:
Z=ToBasis(Z);
, `*`(E[1])), `*`(iota[Z](e[2]), `*`(E[2])), `*`(iota[Z](e[3]), `*`(E[3])))](Maple/atlas/help/images/Coframe_31.gif) | (2.2.7) |
Interior product of vector Z and 1-form e[j]:
iota[Z](e[j])=iota[ToBasis(Z)](e[j]);
 = `+`(`*`(iota[Z](e[1]), `*`(delta[1, j])), `*`(iota[Z](e[2]), `*`(delta[2, j])), `*`(iota[Z](e[3]), `*`(delta[3, j])))](Maple/atlas/help/images/Coframe_32.gif) | (2.2.8) |
"To basis" decomposition:
phi[j]=ToBasis(phi[j]);
![phi[j] = `+`(`*`(iota[E[1]](phi[j]), `*`(e[1])), `*`(iota[E[2]](phi[j]), `*`(e[2])), `*`(iota[E[3]](phi[j]), `*`(e[3])))](Maple/atlas/help/images/Coframe_33.gif) | (2.2.9) |
Example 3
Declare forms:
![{e[j]}](Maple/atlas/help/images/Coframe_34.gif) | (2.3.1) |
Declare vectors:
| > | Vectors(X,Y,Z,E[j],Phi[i]); |
![{X, Y, Z, E[j], Phi[i]}](Maple/atlas/help/images/Coframe_35.gif) | (2.3.2) |
Declare functions:
| > | Functions(f=f(x,y,z),F=F(z[i]),z[1]=z[1](x,y),h=h(x[k])); |
![{F, f, h, z[1]}](Maple/atlas/help/images/Coframe_36.gif) | (2.3.3) |
Declare constant
:
Constants(lambda);
 | (2.3.4) |
Declare coframe:
Coframe(e[1]=d(x),e[2]=d(y),e[3]=d(z));
![[e[1] = d(x), e[2] = d(y), e[3] = d(z)]](Maple/atlas/help/images/Coframe_39.gif) | (2.3.5) |
Declare frame
Frame(E[i]);
![[E[1] = Diff(``, x), E[2] = Diff(``, y), E[3] = Diff(``, z)]](Maple/atlas/help/images/Coframe_40.gif) | (2.3.6) |
Declare metric (see atlas[Metric]):
Metric(g=4*(d(x)&.d(x)+d(y)&.d(y)+d(z)&.d(z))/(1+lambda*(x^2+y^2+z^2))^2);
![g = `+`(`/`(`*`(4, `*`(`+`(`&.`(e[1], e[1]), `&.`(e[2], e[2]), `&.`(e[3], e[3])))), `*`(`^`(`+`(1, `*`(lambda, `*`(`+`(`*`(`^`(x, 2)), `*`(`^`(y, 2)), `*`(`^`(z, 2)))))), 2))))](Maple/atlas/help/images/Coframe_41.gif) | (2.3.7) |
Simple calculation:
'iota[E[k]](g)'=iota[E[k]](g);
![iota[E[k]](g) = `+`(`/`(`*`(4, `*`(`+`(`*`(delta[1, k], `*`(e[1])), `*`(delta[2, k], `*`(e[2])), `*`(delta[3, k], `*`(e[3]))))), `*`(`^`(`+`(1, `*`(lambda, `*`(`^`(x, 2))), `*`(lambda, `*`(`^`(y, 2)))...](Maple/atlas/help/images/Coframe_42.gif) | (2.3.8) |
Example 4
Declare functions:
| > | Functions(f=f(r,theta,phi)); |
 | (2.4.1) |
Declare constant ![r[g]](Maple/atlas/help/images/Coframe_44.gif)
Constants(r[g]);
![{`+`(`-`(I)), I, Pi, _Z, Catalan, r[g]}](Maple/atlas/help/images/Coframe_45.gif) | (2.4.2) |
Declare vectors:
Vectors(L1,N,M,K,E[j]);
![{K, L1, M, N, E[j]}](Maple/atlas/help/images/Coframe_46.gif) | (2.4.3) |
Declare forms:
Forms(u[j]=1,l=1,n=1,m=1,k=1,x=1,y=1,z=1);
![{k, l, m, n, x, y, z, u[j]}](Maple/atlas/help/images/Coframe_47.gif) | (2.4.4) |
Using alias for vectors and forms:
alias(L1=E[1],N=E[2],M=E[3],K=E[4],l=u[1],n=u[2],m=u[3],k=u[4]);
 | (2.4.5) |
Declare coframe:
Coframe(l=1/2*((1-r[g]/r)*d(t)+d(r)),
n=d(t)-1/(1-r[g]/r)*d(r),
m=r/sqrt(2)*(d(theta)-I*sin(theta)*d(phi)),
k=r/sqrt(2)*(d(theta)+I*sin(theta)*d(phi)));
Declare frame:
Frame(E[i]);
Declare metric:
Metric( g=u[1]&.u[2]+u[2]&.u[1]-u[3]&.u[4]-u[4]&.u[3] );
 | (2.4.8) |
Simple calculations:
'd(phi)&^d(theta)'=d(phi)&^d(theta);
 | (2.4.9) |
![d(r) = `+`(`/`(`*`(`/`(1, 2), `*`(`+`(`-`(`*`(n, `*`(r))), `*`(n, `*`(r[g])), `*`(2, `*`(l, `*`(r)))))), `*`(r)))](Maple/atlas/help/images/Coframe_57.gif) | (2.4.10) |
![d(f) = `+`(`/`(`*`(`/`(1, 2), `*`(Diff(f, r), `*`(`+`(`-`(`*`(n, `*`(r))), `*`(n, `*`(r[g])), `*`(2, `*`(l, `*`(r))))))), `*`(r)), `/`(`*`(`/`(1, 2), `*`(Diff(f, theta), `*`(`^`(2, `/`(1, 2)), `*`(`+`...](Maple/atlas/help/images/Coframe_58.gif)
![d(f) = `+`(`/`(`*`(`/`(1, 2), `*`(Diff(f, r), `*`(`+`(`-`(`*`(n, `*`(r))), `*`(n, `*`(r[g])), `*`(2, `*`(l, `*`(r))))))), `*`(r)), `/`(`*`(`/`(1, 2), `*`(Diff(f, theta), `*`(`^`(2, `/`(1, 2)), `*`(`+`...](Maple/atlas/help/images/Coframe_59.gif) | (2.4.11) |
| > | 'iota[E[k]](g)'=iota[E[k]](g); |
![iota[E[k]](g) = `+`(`*`(delta[1, k], `*`(n)), `*`(delta[2, k], `*`(l)), `-`(`*`(delta[3, k], `*`(k))), `-`(`*`(delta[4, k], `*`(m))))](Maple/atlas/help/images/Coframe_60.gif) | (2.4.12) |
Example 5
Declare forms:
![{e[j]}](Maple/atlas/help/images/Coframe_61.gif) | (2.5.1) |
Declare vectors:
![{E[j]}](Maple/atlas/help/images/Coframe_62.gif) | (2.5.2) |
Declare functions:
| > | Functions(f=f(x,y[k],z)); |
 | (2.5.3) |
Declare coframe:
Coframe(e[k]=d(y[k]),k=1..n);
![{e[k] = d(y[k])}[k = 1 .. n]](Maple/atlas/help/images/Coframe_64.gif) | (2.5.4) |
Declare frame:
Frame(E[i]);
![{E[i]}[i = 1 .. n]](Maple/atlas/help/images/Coframe_65.gif) | (2.5.5) |
Simple calculations:
'd(e[i])'=d(e[i]);
![d(e[i]) = 0](Maple/atlas/help/images/Coframe_66.gif) | (2.5.6) |
| > | 'd(y[i]*y[j])'=d(y[i]*y[j]); |
![d(`*`(y[i], `*`(y[j]))) = `+`(`*`(e[i], `*`(y[j])), `*`(y[i], `*`(e[j])))](Maple/atlas/help/images/Coframe_67.gif) | (2.5.7) |
![d(f) = `+`(`*`(Diff(f, x), `*`(d(x))), Sum(`*`(Diff(f, y[l[1]]), `*`(e[l[1]])), l[1] = 1 .. n), `*`(Diff(f, z), `*`(d(z))))](Maple/atlas/help/images/Coframe_68.gif) | (2.5.8) |
Example 6
Declare constant
:
Constants(lambda);
 | (2.6.1) |
Declare forms:
![{e[j]}](Maple/atlas/help/images/Coframe_71.gif) | (2.6.2) |
Declare vectors:
![{E[j]}](Maple/atlas/help/images/Coframe_72.gif) | (2.6.3) |
Declare functions:
 | (2.6.4) |
Declare coframe:
Coframe(e[j]=d(x[j])/(1+lambda*Sum(x[i]^2,i=1..n)),j=1..n);
![{e[j] = `/`(`*`(d(x[j])), `*`(`+`(1, `*`(lambda, `*`(Sum(`*`(`^`(x[i], 2)), i = 1 .. n))))))}[j = 1 .. n]](Maple/atlas/help/images/Coframe_74.gif) | (2.6.5) |
Declare frame:
Frame(E[i]);
![{E[i]}[i = 1 .. n]](Maple/atlas/help/images/Coframe_75.gif) | (2.6.6) |
Simple calculations:
'd(e[j])'=normal(d(e[j]));
![d(e[j]) = `+`(`-`(`*`(2, `*`(lambda, `*`(Sum(`*`(x[i], `*`(`&^`(e[i], e[j]))), i = 1 .. n))))))](Maple/atlas/help/images/Coframe_76.gif) | (2.6.7) |
![d(x[k]) = `+`(e[k], `*`(e[k], `*`(lambda, `*`(Sum(`*`(`^`(x[i], 2)), i = 1 .. n)))))](Maple/atlas/help/images/Coframe_77.gif) | (2.6.8) |
![d(h) = Sum(`*`(Diff(h, x[l[1]]), `*`(`+`(e[l[1]], `*`(e[l[1]], `*`(lambda, `*`(Sum(`*`(`^`(x[i], 2)), i = 1 .. n))))))), l[1] = 1 .. n)](Maple/atlas/help/images/Coframe_78.gif) | (2.6.9) |
| > | 'iota[E[j]](d(e[k]))'=normal(iota[E[j]](d(e[k]))); |
![iota[E[j]](d(e[k])) = `+`(`*`(2, `*`(`+`(`-`(`*`(delta[i, j], `*`(e[k]))), `*`(delta[j, k], `*`(e[i]))), `*`(lambda, `*`(Sum(x[i], i = 1 .. n))))))](Maple/atlas/help/images/Coframe_79.gif) | (2.6.10) |