linalg[geneqns] - generate equations from the coefficient matrix
linalg[genmatrix] - generate the coefficient matrix from equations
|
Calling Sequence
|
|
geneqns(A, x)
geneqns(A, x, b)
genmatrix(eqns, vars)
genmatrix(eqns, vars, flag)
genmatrix(eqns, vars, b)
|
|
Parameters
|
|
A
|
-
|
coefficient matrix
|
x
|
-
|
name or list of names for the unknowns
|
b
|
-
|
(optional) right hand side vector
|
eqns
|
-
|
set or list of equations
|
vars
|
-
|
set or list of variables
|
flag
|
-
|
(optional) the name ``flag''
|
|
|
|
|
Description
|
|
•
|
The function geneqns generates a set of linear equations from a coefficient matrix A in the variables . If an optional third argument the ``right-hand side'' vector b is present, it will be included in the equations. Otherwise the equations will be equated to zero.
|
•
|
The function genmatrix generates the coefficient matrix from the linear system of equations eqns in the unknowns vars. If the optional third argument ``flag'' is present, the ``right-hand side'' vector will be included as the last column of the matrix. Otherwise an optional third argument will be assigned the ``right-hand side'' vector.
|
•
|
These functions are part of the linalg package, and so can be used in the form geneqns(..) and genmatrix(..) only after performing the command with(linalg) or with(linalg,geneqns) and with(linalg,genmatrix). These functions can always be accessed in the long form linalg[geneqns](..) or linalg[genmatrix](..).
|
|
|
Examples
|
|
Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
|
|
Download Help Document
Was this information helpful?