P

pass

 

Keyword

Description: Use pass in an empty function or class definition as a placeholder for future code as you build out your program. Empty definitions will not cause an error when program is executed.

y N

 

pen("size","style")

 

Module: ti_plotlib

Syntax: plt.pen("size","style")

Description: Sets the appearance of all following lines until the next pen() is executed.

Argument:

Default pen() is "thin" and "solid."

"size"

"thin"

"medium"

"thick"

"style"

"solid"

"dot"

"dash"

Example:

See sample programs: COLORLIN or GRAPH.

y N

[Fns...]>Modul or »
5:ti_plotlib...> Draw
9:pen()


import commands can be found in y N or in the
ti_plotlib Setup menu.

 

pi

 

Module: math

Syntax: math.pi or pi if math module imported.

Description: Constant pi displays as shown below.

Example:

>>>from math import *

>>>pi

3.141592653589793

Alternate Example:

>>>import math

>>>math.pi

3.141592653589793

y B (above ˜)

 

[Fns…] > Modul 1:math… > Const 2:pi

 

plot(xlist,ylist,"mark")

 

Module: ti_plotlib

Syntax: plt.plot(xlist,ylist,"mark")

Description: A line plot displays using ordered pairs from specified xlist and ylist. The line style and size are set using plt.pen().

xlist and ylist must be real floats and lists must bee the same dimension.

Argument:

"mark" is the mark character as follows:

o

filled dot (default)

+

cross

x

x

.

pixel

Example:

See sample program: LINREGR.

y N

[Fns...]>Modul or »
5:ti_plotlib...> Draw
5:Connected Plot with Lists


import commands can be found in y N or in the
ti_plotlib Setup menu.

 

plot(x,y,"mark")

 

Module: ti_plotlib

Syntax: plt.plot(x,y,"mark")

Description: A point plot, (x,y) displays using specified x and y.

xlist and ylist must be real floats and lists must be the same dimension.

Argument:

"mark" is the mark character as follows:

o

filled dot (default)

+

cross

x

x

.

pixel

Example:

See sample program: LINREGR.

y N

[Fns...]>Modul or »
5:ti_plotlib...> Draw
6:plot a Point


import commands can be found in y N or in the
ti_plotlib Setup menu.

 

pow(x,y)

 

Module: math

Syntax: pow(x,y)

Description: Returns x raised to the power y. Converts both x and y to float. See Python documentation for more information.

Use the built-in pow(x,y) function or ** for computing exact integer powers.

Example:

>>>from math import *

>>>pow(2,3)

>>>8.0

Example using: Built-in:

[Tools] > 6:New Shell

>>>pow(2,3)

8

>>>2**3

8

» Modul 1:math
5:pow(x,y)

 

y N

 

[Fns…] > Modul 1:math
5:pow(x,y)

 

import commands can be found in
y N

 

print()

 

Module: Built-in

Syntax: print(argument)

Description: Displays argument as string.

Example:

>>>x=57.4

>>>print(“my number is =”, x)

my number is= 57.4

y N

 

[Fns…] > I/O
1:print()