Input/Output:

 

 

Level 1/Argument 1

 

Level 1/Item 1

 

 

 

 

 

 

 

[ array ]

xspectralnorm

 

ABS, CNRM,

 

 

 

See also:

COND, RNRM, SRAD, TRACE

 

 

SOLVE

 

 

 

 

Type:

Command

 

 

Description:

Finds zeros of an expression equated to 0, or solves an equation.

 

Access:

Symbolic solve, , PSOLVE, …×L

 

Input:

Level 2/Argument 1: The expression or equation. A list of equations and expressions can be

 

given too, each will be solved for the same variable.

 

 

 

Level 1/Argument 2: The variable to solve for.

 

 

Output:

A zero or solution, or a list of zeros or solutions.

 

 

Flags:

Radians mode must be set (flag –17 set).

 

 

 

If exact mode is set (flag –105 clear) and there are no exact solutions, the command returns a null

 

list even when there are approximate solutions.

 

 

 

Radians mode must be set (flag –17 set).

 

 

 

If complex mode is set (flag –103 set) then SOLVE will search for complex roots as well as real

 

ones. Complex roots are displayed according to the coordinate system selected.

Example 1:

Find the zeros of the following expression:

 

 

 

x3 x – 9

 

 

Command:

SOLVE(X^3-X-9,X)

 

 

Result:

X=2.24004098747

 

 

Example 2:

Find the real and complex roots of the two equations:

 

 

 

x4 – 1 = 3 , x2 – A= 0

 

 

Command:

Clear numeric mode, clear approximate mode, set complex mode, set rectangular mode, enter:

 

SOLVE({X^4-1=3,X^2-A=0},X)

 

 

Result:

{{X=2×i,X=2×-1,X=-(2×i),X=2},

 

 

 

{X=A×-1,X=A}}Note that in this case, imaginary solutions for X are returned, even if X is in

 

REALASSUME.

 

 

See also:

DESOLVE, LDEC, LINSOLVE, MSLV, QUAD, SOLVEVX

 

 

 

 

 

 

SOLVEQN

Command

 

 

Type:

 

 

Description:

Starts the appropriate solver for a specified set of equations.

 

 

SOLVEQN sets up and starts the appropriate solver for the specified set of equations, bypassing

 

the Equation Library catalogs. It sets EQ (and Mpar if more than one equation is being solved),

 

sets the unit options according to flags 60 and 61, and starts the appropriate solver.

 

SOLVEQN uses subject and title numbers (levels 3 and 2) and a “PICT” option (level 1) and

 

returns nothing. Subject and title numbers are listed in chapter 5. For example, a 2 in level 3 and a

 

9 in level 2 would specify the Electricity category and Capacitive Energy set of equations. If the

 

“PICT” option is 0, PICT is not affected; otherwise, the equation picture (if any) is copied into

 

PICT.

 

 

Access:

…µSOLVEQN

 

 

Flags:

Unit Type (60), Units Usage (61)

 

 

Flags:

Units Type (60), Units Usage (61)

 

 

Full Command and Function Reference 3-229