NDIST

Type:

Command

 

 

 

 

 

Description:

Normal Distribution Command: Returns the normal probability distribution (bell curve) at x

 

based on the mean m and variance v of the normal distribution.

 

 

 

NDIST is calculated using this formula:

 

 

 

 

 

 

 

 

 

(x m)2

 

 

 

 

 

 

–-------------------

 

 

 

 

ndist(m, v, x) =

e

2v

 

 

 

 

---------------------

 

 

 

 

 

 

2

πv

 

 

Access:

!´LPROBABILITY LNDIST

( ´is the left-shift of the Pkey).

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Level 3/Argument 1 Level 2/Argument 2

Level 1/Argument 3

 

Level 1/Item 1

 

 

 

 

 

 

 

 

 

 

m

v

 

x

ndist(m, v, x)

See also:

UTPN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NDUPN

Type:

RPL command

 

 

 

 

Description:

Duplicates an object n times, and returns n.

 

 

 

Access:

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

 

 

ISTACK NDUPN

 

 

 

 

Input/Output:

 

 

 

 

 

 

 

 

Level 2

Level 1

 

Leveln+1 Level2

Level1

 

 

 

 

 

 

 

 

 

obj

n

obj … obj

n

 

 

 

 

Example:

To make a list of 100 “X”s, run "X" 100 NDUPN →LIST.

 

See also:

DUP, DUPDUP, DUPN, DUP2

 

 

 

 

 

 

 

 

 

 

 

NEG

Analytic function

 

 

 

 

Type:

 

 

 

 

Description:

Negate Analytic Function: Changes the sign or negates an object.

 

Negating an array creates a new array containing the negative of each of the original elements. Negating a binary number takes its two’s complement (complements each bit and adds 1).

Negating a graphics object “inverts” it (toggles each pixel from on to off, or vice-versa). If the argument is PICT, the graphics object stored in PICT is inverted.

Access: …ßNEG

( ßis the right-shift of the 1key).

!´LCOMPLEX LNEG

( ´is the left-shift of the Pkey).

W

Flags: Numerical Results (–3), Binary Integer Wordsize (–5 through –10)

Input/Output:

Level 1/Argument 1

 

Level 1/Item 1

 

 

 

z

–z

#n1

#n2

[ array ]

[ –array ]

'symb'

'–(symb)'

x_unit

–x_unit

grob1

grob2

PICT1

PICT2

 

 

 

3-154 Full Command and Function Reference