# Mslv; Multmod - HP 48gII Advanced User's Reference Manual

Graphing calculator.

Flags:
If the CHOOSE boxes flag is clear (flag –117 clear), displays the operations as a numbered
list. If the flag is set, displays the operations as a menu of function keys.
ALGB, ARIT, CONSTANTS, DIFF, EXP&LN, INTEGER, MAIN, MATHS, MATR,
POLYNOMIAL, REWRITE, TESTS, TRIGO

## 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.
Numeric solve, ...Ï or catalog, ...µ
Access:
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
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.)])
DESOLVE, LINSOLVE, MSOLVR, SOLVE

### MULTMOD

Type:
Function
Description:
Performs modular multiplication of two objects, modulo the current modulus.
Arithmetic, !Þ
Access:
Input:
Level 2/Argument 1: A number or an expression.
Level 1/Argument 2: A number or an expression.
Output:
The result of modular multiplication of the two objects, modulo the current modulus.
4-54 Computer Algebra Commands
L
MODULO