atlas[div] - divergence operator
Calling Sequence:
div(expr)
Parameters:
expr - any vector expression.
Description:
- The div - procedure allows one to calculate the divergence operator on a vector expression.
Examples:
Declare constants:
 | (2.1) |
Declare functions:
| > | Functions(f=f(x,y),h=h(f)); |
 | (2.2) |
Declare p-forms:
![{xi, e[k]}](Maple/atlas/help/images/div_3.gif) | (2.3) |
Declare vectors:
![{X, Y, Z, E[j]}](Maple/atlas/help/images/div_4.gif) | (2.4) |
By definition:
'div(X+Y)'=div(X+Y);
'div(F*X)'=div(F*X);
 |
))](Maple/atlas/help/images/div_6.gif) | (2.5) |
Declare coframe:
Coframe(e[1]=d(x),e[2]=d(y));
![[e[1] = d(x), e[2] = d(y)]](Maple/atlas/help/images/div_7.gif) | (2.6) |
Declare frame:
Frame(E[k]);
![[E[1] = Diff(``, x), E[2] = Diff(``, y)]](Maple/atlas/help/images/div_8.gif) | (2.7) |
Declare metric:
Metric(g=4*(d(x)&.d(x)+d(y)&.d(y))/(1+Lambda*(x^2+y^2))^2);
![g = `+`(`/`(`*`(4, `*`(`+`(`&.`(e[1], e[1]), `&.`(e[2], e[2])))), `*`(`^`(`+`(1, `*`(Lambda, `*`(`+`(`*`(`^`(x, 2)), `*`(`^`(y, 2)))))), 2))))](Maple/atlas/help/images/div_9.gif) | (2.8) |
Calculate connection:
Connection(omega);
![omega[i, j]](Maple/atlas/help/images/div_10.gif) | (2.9) |
Divergence of frame vectors:
'div(E[1])'=div(E[1]);
![div(E[1]) = `+`(`-`(`/`(`*`(4, `*`(Lambda, `*`(x))), `*`(`+`(1, `*`(Lambda, `*`(`^`(x, 2))), `*`(Lambda, `*`(`^`(y, 2))))))))](Maple/atlas/help/images/div_11.gif) | (2.10) |
Divergence of vector X:
'div(X)'=div(ToBasis(X));
Divergence of "rotation" vector:
'div(y*E[1]-x*E[2])'=div(y*E[1]-x*E[2]);
![div(`+`(`*`(y, `*`(E[1])), `-`(`*`(x, `*`(E[2]))))) = 0](Maple/atlas/help/images/div_16.gif) | (2.12) |
See Also:
atlas, atlas[d], atlas[cov], atlas[`&.`], atlas[`&^`], atlas[iota].