S

scatter(xlist,ylist,"mark")

 

Module: ti_plotlib

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

Description: A sequence of ordered pair from (xlist,ylist) will be plotted with mark style specified. 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.

yN

[Fns...]>Modul or »
5:ti_plotlib...> Draw
4:scatter()


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

 

seed()

 

Module: random

Syntax: seed() or seed(x) where x is integer

Description: Initialize random number generator.

Example:

>>>from random import *

>>>seed(12)

>>>random()

0.9079708720366826

>>>seed(10)

>>>random()

0.9063990882481896

>>>seed(12)

>>>random()

0.9079708720366826

Results will vary given a random output.

» Modul
2:random…
Random
7:seed()

[Fns…] > Modul
2:random…
Random
7:seed()

 

y N

 

import commands can be found in
y N

 

set(sequence)

 

Module: Built-in

Syntax: set(sequence)

Description: Returns a sequence as a set. See Python documentation for more details.

Example:

>>> print(set("84CE")

{'E', '8', '4', 'C'}

y N

 

show_plot()                  display > [clear]

 

Module: ti_plotlib

Syntax: plt.show_plot()                  display > [clear]

Description: Executes the display of the plot as set up in the program.

show_plot() must be placed after all plotting setup objects. The program order of plotting objects are suggested by the Setup menu ordering.

For plotting template help, from File Manager, select [New] ([zoom]) and then [Types] ([zoom]) to select the "Plotting (x,y) & Text" program type.

After running the program, the plotting display is cleared by pressing [clear] to return to the Shell prompt.

Example:

See sample programs: COLORLIN or GRAPH.

y N

[Fns...]>Modul or »
5:ti_plotlib...> Setup
9:show_plot

[Fns…]>Modul or [math]
5:ti_plotlib… > Draw
9:show_plot()


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

 

sin()

 

Module: math

Syntax: sin()

Description: Returns sine of x. Argument angle is in radians.

Example:

>>>from math import *

>>>sin(pi/2)

1.0

˜ 3:sin()

 

y N

 

[Fns…] > Modul 1:math… > Trig 3:sin()

 

import commands can be found in
y N

 

sleep(seconds)

 

Module: ti_system; time

Syntax: sleep(seconds)

Description: Sleep for a given number of seconds. Seconds argument is a float.

Example:

Sample program:

from time import *

a=monotonic()

sleep(15)

b=monotonic()

print(b-a)

 

Run the program TIME

>>>15.0

y N


y K
ti_system
A:sleep()

[Fns…]>Modul or »
4:ti_system
A:sleep()

[Fns…]>Modul or »
3:time
2:sleep()


import commands can be found in y N or in the
ti_system Modul menu.

 

.sort()

 

Module: Built-in

Syntax: listname.sort()

Description: The method sorts a list in place. See Python documentation for more details.

Example:

>>>listA=[4,3,6,2,7,4,8,9,3,5,4,6]

>>>listA.sort()

>>>print(listA)             #listA updated to a sorted list

[2,3,3,4,4,4,5,6,6,7,8,9]

y 9
(above
List A:.sort()

y N

[Fns…] >
List
A:sort()

 

 

sorted()

 

Module: Built-in

Syntax: sorted(sequence)

Description: Returns a sorted list from sequence.

Example:

>>>listA=[4,3,6,2,7,4,8,9,3,5,4,6]

>>>sorted(listA)

[2,3,3,4,4,4,5,6,6,7,8,9]

>>>print(listA)             #listA did not change

[4,3,6,2,7,4,8,9,3,5,4,6]

y 9 (above ) List
0:sorted()

 

y N

 

[Fns…] > List
0:sorted()

 

.split(x)

 

Module: Built-in

Syntax:var.split(x)

Description: Method returns a list by specified separator. See Python documentation for more details.

Example:

>>> a="red,blue,green"

>>> a.split(",")

['red', 'blue', 'green']

y N

 

sqrt()

 

Module: math

Syntax: sqrt(x)

Description: Returns square root of x.

Example:

>>>from math import *

>>>sqrt(25)

5.0

» Modul 1:math 3:sqrt()

 

y N

 

[Fns…] > Modul 1:math 3:sqrt()

 

import commands can be found in
y N.

 

store_list("name",var)                  1-6

 

Module: ti_system

Syntax: store_list("name",var)                  1-6

Description: Stores a list from the execution of a Python script to an OS list variable "name" where var is a defined Python list. List length must be less than or equal to 100.

Argument: "name"

For OS L1-L6

 

1 - 6

 

"1" - "6"

 

'1' - '6'

For OS custom list "name"

----- Max 5 characters, numbers or letters, starting with letters, and letters must be uppercase.

Examples:

"ABCDE"

"R12"

"L1" will be custom L1 and not OS L1

Reminder: Python is double precision which is more digits than supported in the OS.

Example:

>>>a=[1,2,3]

>>>store_list("1",a)

>>>

 

Quit the Pyton App and press yd (above [ 1 ]) and Í on the Home Screen to see list d as {1 2 3}.

y N

yK
ti_system
3:var=store_list()


[Fns…]>Modul or »
4:ti_system
3:var=store_list()


import commands can be found in y N or in the
ti_system Modul menu.

 

str()

 

Module: Built-in

Syntax: str(argument)

Description: Converts "argument" to a string.

Example:

>>>x=2+3

>>>str(x)

'5'

y N

 

[Fns…]
> Type
3 :str()

 

 

sum()

 

Module: Built-in

Syntax: sum(sequence)

Description: Returns the sum of the items in a sequence.

Example:

>>>listA=[2,4,6,8,10]

>>>sum(listA)

30

y 9 (above ) List
9:sum()

 

y N

 

[Fns…] > List
9:sum()