Access:

STACK OVER

 

( °is the left-shift of the Nkey).

 

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Level 2

Level 1

 

Level 3

Level 2

Level 1

 

 

 

 

 

 

 

 

 

 

obj1

obj2

obj1

obj2

obj1

 

 

 

 

 

 

 

See also:

PICK, ROLL, ROLLD, ROT, SWAP

 

 

 

 

 

 

 

 

 

 

 

 

P2C

 

 

 

 

 

 

 

Type:

Command

 

 

 

 

 

Description:

Takes a list representing a permutation as an argument, and returns the permutation decomposed

 

into lists that represent cycles.

 

 

 

 

 

Access:

PERM

 

 

 

 

 

Input:

A list representing a permutation. For example, the list {3,1,2,5,4} defines a permutation P, such

 

that P(1)=3, P(2)=1, P(3)=2, P(4)=5, and P(5)=4

 

 

 

 

Output:

Level 2/Item 1:A list of cycles equivalent to the permutation. For example, the list {3,1,2,5,4}

 

defines a cycle C, such that C(3)=1, C(1)=2, C(2)=5, C(5)=4, and C(4)=3

 

 

 

Level 1, Item 2: The signature of the permutation, 1 or –1.

 

 

Example:

Convert the permutation given by {3,4,5,2,1} into cycles:

 

 

 

Command:

P2C({3,4,5,2,1})

 

 

 

 

 

Result:

{{{1,3,5},{2,4}},-1}

 

 

 

 

 

See also:

C2P, CIRC

 

 

 

 

 

PA2B2

 

 

 

 

 

 

 

Type:

Function

 

 

 

 

 

Description:

Takes a prime number, p, such that p=2 orp ≡ 1 modulo 4, and returns a Gaussian integer a + ib

 

such that p = a2 + b2. This function is useful for factorizing Gaussian integers.

 

Access:

Arithmetic, INTEGER L

 

 

 

 

Input:

A prime number, p, such that p=2 orp 1

modulo 4

 

 

 

Output:

A Gaussian integer a+ib such that p=a2+b2

 

 

 

 

Flags:

Exact mode must be set (flag –105 clear).

 

 

 

 

 

Numeric mode must not be set (flag –3 clear).

 

 

 

 

Complex mode must be set (flag –103 set).

 

 

 

 

See also:

GAUSS

 

 

 

 

 

PARAMETRIC

Type: Command

Description: Parametric Plot Type Command: Sets the plot type to PARAMETRIC.

When the plot type is PARAMETRIC, the DRAW command plots the current equation as a complex-valued function of one real variable. The current equation is specified in the reserved variable EQ. The plotting parameters are specified in the reserved variable PPAR, which has the following form:

{(xmin, ymin), (xmax, ymax), indep, res, axes, ptype, depend }

For plot type PARAMETRIC, the elements of PPAR are used as follows:

(xmin, ymin) is a complex number specifying the lower left corner of PICT (the lower left corner of the display range). The default value is (–6.5,–3.1) for the HP 48gII and (–6.5,–3.9) for the HP 50g and 49g+.

3-162 Full Command and Function Reference