Access: | !°STACK OVER |
| ( °is the |
| |||
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 |
|
| ||||
Example: | Convert the permutation given by {3,4,5,2,1} into cycles: |
|
|
| |||
Command: | P2C({3,4,5,2,1}) |
|
|
|
|
| |
Result: |
|
|
|
|
| ||
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 |
|
|
|
| ||
| Numeric mode must not be set (flag |
|
|
| |||
| Complex mode must be set (flag |
|
|
|
| ||
See also: | GAUSS |
|
|
|
|
|
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
{(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