Equate - convert a pair of rectangular objects into a list of equations
|
Calling Sequence
|
|
Equate(u, v)
|
|
Parameters
|
|
u
|
-
|
list, Array, Matrix, Vector, or algebraic structure representing a vector of the Physics[Vectors] package
|
v
|
-
|
list, Array, Matrix, Vector, or algebraic structure representing a vector of the Physics[Vectors] package
|
|
|
|
|
Description
|
|
•
|
The Equate(u,v) command receives the rectangular structures u and v, typically of type list, Array, Matrix or Vector, and returns a list of equations, where the left-hand sides of the equations are taken from u and the right-hand sides from the corresponding components of v. The two input objects, u and v, must have the same shapes and sizes, and if only one is an Array then its indices must start at 1.
|
•
|
Equate can also receive two algebraic structures u and v representing vectors of the Vectors subpackage of the Physics package, in which case the list of equations returned is constructed equating the components of u and v. When u and v are projected into different orthonormal basis, the second one is first reprojected onto the basis of the first one; then the components are equated.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
This is invalid because the dimensions do not match.
>
|
|
This is invalid because the index origins do not match.
>
|
|
To handle vectors of the Vectors subpackage of Physics, first load Vectors
>
|
|
| (9) |
Equate the components of two vectors
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
When the two vectors are not projected onto the same orthonormal basis, the second one is reprojected onto the basis of the first one. In the following examples and are the same vector as but expressed in cylindrical and spherical coordinates and corresponding orthonormal bases (see Vectors)
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (15) |
>
|
|
| (16) |
|
|
Download Help Document
Was this information helpful?