redcas.solve | R Documentation |
"redcas.solve"
Contains the inputs and outputs of a call to the function
redSolve
which executes the REDUCE solve
operator
to determine solutions to a system of algebraic equations.
redcas.solve(...)
... |
see section Slots for details. |
Objects are created by calls to the function redSolve
and can be
used as input to the print
method.
.Data
:Object of class "list"
containing the
actual data.
solutions
:Object of class "list"
containing a character vector for each solution of the system of
equations. The character vectors have a named element for each
unknown with the name being the unknown and the value being the
value of the unknown for the solution. This is essentially a copy
of the list returned by the REDUCE solve
operator.
rsolutions
:Object of class "list"
containing a
list for each solution converted to appropriate R types where
possible. A vector will not suffice because the values of the
unknowns may be of different types: integer, real, complex or
expression. Explicit real and complex numbers are always
converted. If the REDUCE switch ROUNDED
is off, real and
complex numbers may be expressions and may result in errors or NaN
if conversion were attempted.
nsolutions
:Object of class "numeric"
. The
number of solutions
rc
:Object of class "numeric"
. Return code from
the redSolve
call: 0 is success and 1 failure.
root_of
:Object of class "complex"
. A solution
may express one or more unknowns in terms of the roots of
another equation. In this case the other equation is enclosed in
root_of()
. This slot is a complex vector with the real part
identifying the solution contain root_of()
and the
imaginary part the index of the unknown in that solution.
eqns
:Object of class "character"
. The system
of equations provided to redSolve
unknowns
:Object of class "character"
. The
unknowns provided to redSolve
switches
:Object of class "character"
. Any REDUCE
switches set prior to executing the REDUCE solve
function.
Class "list"
, from data part.
Class "vector"
, by class "list", distance 2.
A print method, print
, is defined.
Martin Gregory
redSolve
is currently the only function using this class.
showClass("redcas.solve")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.