VectorCalculus[eval] - evaluation for Vectors
|
Calling Sequence
|
|
eval(v, t=a)
eval(v, eqns)
|
|
Parameters
|
|
v
|
-
|
Vector(algebraic); Vector or algebraic expression
|
t
|
-
|
name; usually a name but may be a general expression
|
a
|
-
|
expression
|
eqns
|
-
|
list or set; list or set of equations
|
|
|
|
|
Description
|
|
•
|
The eval(v, eqns) command is an extension of the top-level eval command which correctly evaluates free Vectors , rooted Vectors, position Vectors, and VectorFields for the VectorCalculus package. If v is not a Vector, the arguments are passed to the top level eval command.
|
•
|
If v is a rooted Vector then both the root point or origin and the components, corresponding to the coefficients of the basis vectors, are evaluted.
|
•
|
If v is a VectorField, then the components are evaluated and a VectorField is returned. To properly evalute a VectorField at a point use evalVF.
|
•
|
If v is a free Vector or a position Vector, then the components are evaluated. The type of the Vector does not change.
|
|
|
Examples
|
|
>
|
|
Evaluating free Vectors
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
Evaluating rooted Vectors: both the root point and the components are evaluated.
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
If the components have no variables then the root point is evaluated.
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
If the root point has no variables then the components are evaluated.
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
Evaluating position Vectors
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (15) |
>
|
|
| (16) |
Evaluating VectorFields: eval evaluates the components and returns a VectorField.
>
|
|
| (17) |
>
|
|
| (18) |
>
|
|
| (19) |
|
|
Download Help Document
Was this information helpful?