Reference Guide

3-152 Full Command and Function Reference
Input/Output:
Level 1/Argument 1 Level 1/Item 1
“message”
See also: CHOOSE, INFORM, PROMPT
MSLV
Type: Command
Description: Numerically approximates a solution to a system of equations. Searches for a solution accurate to
12 digits, regardless of the display setting. Underdetermined and overdetermined systems are
rejected. Complex solutions will be looked for if any of the inputs contain complex values. If a
single expression or equation is to be solved, use SOLVE instead, or for linear equations, use
LINSOLVE. This command is similar to MSOLVR, but is more appropriate for use with the
CAS as it automates the solution instead of working through a menu. Step-by-step mode is
available with this command.
Access: Numeric solve, …Ï or catalog, …µ
Input: Level 3/Argument 1: A vector containing the equations or expressions (assumed equal to zero) to
solve.
Level 2/Argument 2: A vector containing the variables to solve for
Level 1/Argument 3: A vector containing initial guesses
Output: Level 3/Item 1: The vector containing the equations to solve.
Level 2/Item 2: The vector containing the variables to solve for
Level 1/Item 3: A vector representing an approximate solution to the system of equations.
Flags: Exact mode must be set (flag –105 clear), The calculator will set approximate mode and will look
for approximate results if exact results are not found.
Numeric mode must not be set (flag –3 clear).
Radians mode must be set (flag –17 set).
Complex mode must be set (flag –103 set) if complex results are wanted.
Step-by-step mode can be set (flag –100 set).
Example: Find x and y values, allowing for complex solutions, that solve the following two equations. The
first equation is an expression equal to zero, so only the expression needs to be given. Setting the
second expression equal to a complex number forces the solver to look for complex solutions:
sin(x)+y=0, x+sin(y)=1:
Command:
MSLV('[SIN(X)+Y, X+SIN(Y)=(1,0)]', '[X,Y]', [0,0])
Results:
('[SIN(X)+Y, X+SIN(Y)=(1,0)]', '[X,Y]', [(1.82384112611,0.),
(-.968154636174,0.)])
See also: DESOLVE, LINSOLVE, MSOLVR, SOLVE
MSOLVR
Type: Command
Description: Multiple Equation Solver Command: Gets the multiple-equation solver variable menu for the set
of equations defined by Mpar.
The multiple-equation solver application can solve a set of two or more equations for unknown
variables by finding the roots of each equation, one at a time.
The Multiple-Equation Solver uses the list of equations stored in EQ. “Equations” in this context
includes programs, expressions, and variable names that evaluate to a single value. The Multiple-
Equation Solver requires that EQ contain more than one equation — that is, the HP Solve
application would include the
NXEQ
menu label for EQ. The solver uses EQ to create a reserved