redcas.solve {redcas} | R Documentation |
Class "redcas.solve"
Description
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.
Usage
redcas.solve(...)
Arguments
... |
see section Slots for details. |
Objects from the Class
Objects are created by calls to the function redSolve
and can be
used as input to the print
method.
Slots
.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 REDUCEsolve
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 switchROUNDED
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 solutionsrc
:Object of class
"numeric"
. Return code from theredSolve
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 inroot_of()
. This slot is a complex vector with the real part identifying the solution containroot_of()
and the imaginary part the index of the unknown in that solution.eqns
:Object of class
"character"
. The system of equations provided toredSolve
unknowns
:Object of class
"character"
. The unknowns provided toredSolve
switches
:Object of class
"character"
. Any REDUCE switches set prior to executing the REDUCEsolve
function.
Extends
Class "list"
, from data part.
Class "vector"
, by class "list", distance 2.
Methods
A print method, print
, is defined.
Author(s)
Martin Gregory
See Also
redSolve
is currently the only function using this class.
Examples
showClass("redcas.solve")