Ti-Pyappprgg v570 en
Ti-Pyappprgg v570 en
Ti-Pyappprgg v570 en
for the
TI-84 Plus CE-T Python Edition
Graphing Calculator
Version 5.7.0 Bundle 84CE-T
ii
Contents
What's New 1
What's New in Python App 1
Python App 2
Using Python App 3
Python program (PY AppVar) memory management 3
Python App Navigation 4
Example Activity 5
Setting up a Python Session with your Programs 7
Python Workspaces 8
Python File Manager 9
Python Editor 11
Python Shell 14
Sample Programs 49
Reference Guide for TI-Python Experience 57
CATALOG Listing 57
Alphabetical List 57
iii
Appendix 150
Selected TI-Python Built-in, Keywords, and Module Content 151
Keypad mapping for wait_key() 165
iv
What's New
What's New in Python App
TI-84 Plus CE-T Python Edition
Python Programming
• Access the Python App from [prgm] when the Python App is loaded. Python App is
also listed in [2nd] [apps].
- Stay up to date at education.ti.com/84cetupdate.
- Find details for the Python App in the Python Programming guide at
education.ti.com/eguide.
• Quick paste of import statements for Add-On modules. Add-On modules are
available in Python activities posted on education.ti.com.
• New ti_draw and ti_image Add-On modules load with the CE Bundle.
- Draw and use images in your Python programs.
• ti_system module menu now contains the wait_key() method for ease of use.
• ti_hub and ti_rover modules contain the latest TI-Innovator™ Hub sketch v 1.5
support.
- Data Collection - collect multiple data samples in a single command
- Compound Statements to synchronize multiple outputs
- TI-RGB Array - control multiple LEDs
- Sound - use single command to play repeated beeps
- Ranger - return "time of flight"
What's New 1
Python App
See the following for using, navigating, and running the Python App.
• Using Python App
- Python program (PY AppVar) memory management
• Python App Navigation
• Example Activity
• Setting up a Python Session with your Programs
2 Python App
Using Python App
The Python App is available for the TI-84 Plus CE-T Python Edition. The information in
this eGuide is for use with the TI-84 Plus CE-T Python Edition updated with the latest
CE Bundle.
When you first run the Python App on your TI-84 Plus CE-T Python Edition, the App may
direct you to update to the latest CE Bundle for the latest Python App.
Please see at education.ti.com/84cetupdate to update your
TI-84 Plus CE-T Python Edition.
Python program (PY AppVar) memory management
The Python App offers a File Manager, an Editor to create programs, and a Shell to run
programs and interact with the Python interpreter. Python programs stored or created
as Python AppVars will execute from RAM.You may store Python AppVars in Archive for
memory management y L 2:. If the Python App File Manger screen does not
display one of your PY AppVar programs, you can move a PY AppVar calculator Python
program between RAM or Archive memory as shown. The * denotes a file in Archive.
Press [enter] to move file between RAM and Archive.
Note: If your calculator is the TI-84 Plus CE-T, please see education.ti.com/84cetupdate
to find the latest information for your CE.
Python App 3
Python App Navigation
Use the shortcut keys on the screen in the App to navigate between workspaces in the
Python App. In the image, the shortcut tab labels indicate:
* Navigation to the File Manager [Files]
** Navigation the Editor [Edit] or [Editor]
*** Navigation to the Shell [Shell]
Access shortcut tabs on the screen using the graphing key row immediately under the
screen. Also, see Keypad. The Editor>Tools menu and Shell>Tools menu also contain
navigation actions.
4 Python App
Example Activity
Use the example activity provided as an experience to become familiar with the
workspaces in the Python App.
• Create a new program from the File Manager
• Write the program in the Editor
• Execute the program in the Shell in the Python App.
For more about Python programming on your CE, please see resources for
TI-84 Plus CE-T Python Edition.
Getting Started:
• Run the Python App.
Note: Actual screens may vary slightly from
provided images.
Enter new program name from File Manager.
• Press q ([New]) to create a new
program.
Python App 5
cursor is _.
6 Python App
Setting up a Python Session with your Programs
When the Python App is launched, the CE connection with the TI-Python experience will
synchronize for your current Python session. You will see your list of programs in RAM
and dynamic modules, as they synchronize to the Python experience.
When the Python session is established, the status bar contains a green square
indicator near the battery icon that signals the Python session is ready for use. In the
event the indicator is red , wait for the indicator to change back to green when the
Python experience is again available.
You may see an update of the Python distribution when launching the Python App along
with program synchronization after the latest update for your
TI-84 Plus CE-T Python Edition from education.ti.com/84cetupdate.
Disconnecting and Reconnecting the Python App
When the Python App is running, the status bar contains an indicator that signals
whether Python is ready for use. Until the connection is established, the CE keypad may
not respond. Best practice is to be aware of the status bar connection indicator while
in your Python session.
Screen Captures
Using TI Connect™ CE at education.ti.com/84cetupdate, screen captures of any Python
App screen is allowed.
Python App 7
Python Workspaces
The Python App contains three workspaces for your Python programming development.
• File Manager
• Editor
• Shell
8 Python Workspaces
Python File Manager
The File Manager lists the Python AppVars available in RAM on your calculator. You can
create, edit, and run programs as well as navigate to the Shell.
See Python program (PY AppVar) memory management
When in alpha state, press any letter on the keypad to jump to programs
beginning with that letter.
Press ƒ if needed when A indicator is not in the status bar.
Python Workspaces 9
File Manager shortcut keys and menus
Menus Keypress Description
• Quit the App. Also use y 5
10 Python Workspaces
Python Editor
The Python Editor is displayed from a selected program in File Manager or from the
Shell. The Editor displays keywords, operators, comments, strings and indents in color.
Quick paste of common Python keywords and functions are available as well as direct
keypad entry and [a A #] character entry . When pasting a code block such as if.. elif..
else, the Editor offers auto-indent which can be modified as needed as you write your
program.
Python Workspaces 11
Python Editor shortcut keys and menus
Menus Keypress Description
[Tools] q Select [Tools] to access features to assist in
your editing or your interaction with the Shell.
1: Indent 4 Indents the program line to the
right cursor moves to first character
of the line.
2: Indent 3 Reduces the indent of the program
line to the left. Cursor moves to first
character of the line.
3: Undo Clear Pastes the last cleared line to a new
line below the program line
containing the cursor. Cursor
displays at the end of the pasted
line.
4: Insert Line Inserts a line above the program line
Above with the cursor. Line will indent and
display indent dots when
appropriate.
5: Cut Line Current program line with cursor is
cut. Cursor displays on program line
below the cut line.
6: Copy Line Copies current program line with
cursor. A copied program line can
be pasted to the Shell prompt. See
Shell below.
7: Paste Line Pastes the last stored program line
Below to the line below the cursor
position.
8: Go to Displays cursor at the beginning of
Program the specified program line.
Line…
9: Go to New Displays reinitialized Shell.
Shell
0: Return to Displays Shell in current state.
Shell
A: Page up Displays 11 program lines above
current cursor position as available.
B: Page Down Displays 11 program lines below
current cursor position as available.
C: Insert Inserts # on a new line below cursor
#comment position.
Below
12 Python Workspaces
Python Editor shortcut keys and menus
Menus Keypress Description
[Run] r Select [Run] to execute your program.
[Files] s Select [Files] to display the File Manager.
Python Workspaces 13
Python Shell
The Python Shell is the console where you can interact with the Python interpreter or
run your Python programs. Quick paste of common Python keywords and functions is
available as well as direct keypad entry and [a A #] character entry . The Shell prompt
can be used to test one line of code pasted from the Editor. Multiple lines of code may
also be entered and run at a Shell prompt >>>.
ƒ again
ƒ
alpha lock ALPHA
ƒ again
ALPHA
14 Python Workspaces
Python Shell shortcut keys and menus
Menus Keypress Description
[Fns…] o Select [Fns…] to access menus of commonly
used functions, keywords, and operators. Also
access selected contents of the math and
random modules.
Note: y N is also helpful for quick
paste.
[a A #] p Select [a A #] to access a character palette as
an alternate way to enter many characters.
[Tools] q Select [Tools] to display the following menu
items.
1: Rerun last Reruns last program which was
program executed in the Shell.
2: Run… Displays a list of the Python
programs available to run in Shell.
3: Paste from Pastes the last copied program line
Editor from the Editor to the Shell prompt.
4: Vars… Displays the vars from the last
program which ran. Does not
display program defined vars from
an imported program.
5: Clear Clears the Shell screen. Does not
Screen reinitialize a new Shell.
6: New Shell Reinitialize a new Shell.
7: Go to Displays the Editor from the Shell
Program with cursor on the specified
Line… program line.
8: Last Displays up to the last 8 entries at
Entry>>> the Shell prompt during a Shell
}† session.
9: View Scroll the Shell screen to view up to
History the last 60 lines of output in the Shell
y} during a Shell session. After drawing
y† to the Shell using ti_plotlib, ti_draw
or ti_image, pressing [clear] will clear
the drawing back to the Shell. The
history will not be in display. Use
[2nd] } and [2nd] † to view the
history if needed.
0: Tab Displays the names of the variables
Complete and functions available for access in
y [enter] the current Shell session.
Python Workspaces 15
Python Shell shortcut keys and menus
Menus Keypress Description
When a letter of an available variable
or function is entered, press y
[enter] to auto-complete the name
if a match is available in the current
Shell session.
A: from When first executed in a Shell
PROGRAM session, PROGRAM will run and vars
import *… will only be viewable using Tab
Complete.
When executed again in the same
Shell session, the execution will
appear as no execution.
This command can also be pasted
from y N.
Note:
• To break a running Python program, such as if a program is in a continuous loop,
press É. Press [Tools] (q) > 6:New Shell as an alternate method to halt a
running program.
• When using ti_plotlib, ti_draw or ti_image modules to draw to the Shell, press
[clear] to clear the draw and return to the Shell prompt at the top of the screen. To
view the Shell history, use [2nd] } and [2nd] † to view the history as needed.
Execution Error: Go to Program Line using Shell >Tools
The TI-Python experience will display Python error messages in the Shell when code is
executed. If an error is displayed when a program executes, a program line number
will display. Use Shell>Tools 7:Go to Program Line… Enter the line number and press
[OK]. The cursor will display on the first character of the appropriate program line in
the Editor. The program line number is displayed in the second line of the Status bar in
the Editor.
16 Python Workspaces
Fast Editing Support
When entering code in the Editor or in the Shell, use the following entry methods to
quickly paste to the edit line.
Tips for fast entry
• Using the Python Keypad
• Using the Python Catalog
• Using the [a A #] Character Map
Python App Specific Key Presses for Menus and Functions by Keypad Rows
Note: When the cursor focus is in the [a A #] edit line, selected keypad keys are not
available. When focus is in the character map, the keypad is restricted.
[Fns…]>Modul: ti_plotlib
[Fns…]>Modul 6:ti_hub
Notes:
• In TI-Python programming, you do not need to include methods to connect and
disconnect TI-Innovator™ Rover. The TI-Innovator™ Rover Python methods handle
connect and disconnect with no additional methods. This is a bit different than
programming TI-Innovator™ Rover in TI-Basic.
Facts:
• [Add-On Modules Imports…] is also listed in [2nd][catalog].
• Add-On modules are calculator “AppVar” files stored in Archive and appear in
[mem] as an AppVar. It is recommended to keep these files in Archive memory for
the enhanced Python App module experience.
• A Python program runs in the Python App from File Manager or Editor when the
“PY AppVar” program is in RAM. If a PY AppVar Python program is placed in
Archive memory, it will not be available to Run or Edit in the Python App.
Shape Description
1 Filled circle of radius 2
2 Open circle of radius 2
3 3x3 filled square
4 3x3 open square
5 x mark is drawn
6 + mark is drawn
7 Single pixel
8 Filled circle with radius 4 pixels
9 Open circle with radius 4 pixels
10 Filled circle with radius 6 pixels
11 Open circle with radius 6 pixels
12 Filled circle with radius 8 pixels
13 Open circle with radius 8 pixels
If set_window(xmin,xmax,ymin,ymax) is
not executed in a program, the pixel
window window size is the default with
(xmin,xmax,ymin,ymax) = (0,319,0,209)
with (0,0) at upper left hand corner pixel
coordinate of the area.
6: show_draw() [clear] Must be included to display the draw.
Press [clear] to clear the draw and
return to the Shell prompt. To view Shell
history, press [2nd] } and [2nd] †.
Best Practices:
• Know the pixel dimensions of your
Python image.
• Memory Tip: Python image AppVars
should be stored in Archive
Memory.
2: show_image(x,y) Displays the image specified in load_
image(“name”).
Memory Management
The available memory for the Python
experience will be a maximum of 100 Python
programs (PY AppVars) or 50K of memory. The
modules that are bundled with the app in this
Python release will share the same space with
all files.
Use [2nd] [quit] to quit the App
You will be prompted to make sure you want
to quit the App. Quitting the App will stop your
Python session. When you run the Python App
again, your Python AppVar programs and
modules will synchronize. The Shell will
reinitialize.
In File Manager, you press { on a selected
Python program or you select from File
Manager>Manage 2:Delete Program....
You will see a dialog to delete or escape back
to the File Manager.
Hub/Rover Programs
– Create ti_hub/ti_rover Python programs in the CE emulator running the Python
App.
* Note: There is no connectivity between TI-SmartView™ CE-T and
TI-Innovator™ Hub or TI-Innovator™ Rover. Programs can be created and then
run on the CE calculator.
– Quit the Python App to prepare to transfer the Python AppVar(s) from the
emulator. The emulator should not “be busy” running an App or program for
the next step.
See TI-84 Plus CE-T e-Guide for more details on the CE calculator, TI-SmartView™ CE-T
and TI Connect™ CE.
Alternate Example:
>>>import math
>>>math.cos(0)
1.0
Modules available can be displayed in the Shell using the following command
>>> help("modules")
__main__ sys gc
random time array
math builtins collections
Content of modules can be viewed in the Shell as shown using “import module” and
“dir(module).”
Not all module contents appear in the quick paste menus such as [Fns…] or y
N.
These screens display the module contents for math and random.
time ti_system
ti_plotlib
ti_hub
ti_rover
COLORLIN
import ti_plotlib as plt
plt.cls()
plt.window(-10,10,-10,10)
plt.axes("on")
plt.grid(1,1,"dot")
plt.title("TITLE")
plt.pen("medium","solid")
plt.color(28,242,221)
plt.pen("medium","dash")
plt.line(-5,5,5,-5,"")
plt.color(224,54,243)
plt.line(-5,-5,5,5,"")
plt.show_plot()
REGEQ1
Setup a regression equation prior to running the Python program in the Python App. An
example would be to first, enter two lists in the CE OS. Then, for example, calculate
[stat] CALC 4:LinReg(ax+b) for your lists. This stores the regression equation to RegEQ
in the OS. Here is a program to recall RegEQ to the Python experience.
# Example of recall_RegEQ()
from ti_system import *
reg=recall_RegEQ()
print(reg)
x=float(input("Input x = "))
print("RegEQ(x) = ",eval(reg))
Sample Programs 49
LINREGR (Provided in CE Bundle)
import ti_plotlib as plt
# current intensity
I = [0.0, 0.9, 2.1, 3.1, 3.9, 5.0, 6.0, 7.1, 8.0, 9.2, 9.9, 11.0,11.9]
# voltage
for n in range (len(I)):
I[n] /= 1000
# la tension
U = [0, 1, 2, 3.2, 4, 4.9, 5.8, 7, 8.1, 9.1, 10, 11.2, 12]
plt.cls()
plt.auto_window(I,U)
plt.pen("thin","solid")
plt.axes("on")
plt.grid(.002,2,"dot")
plt.title("Ohm's Law")
plt.color (0,0,255)
plt.labels("I","U",11,2)
plt.scatter(I,U,"x")
plt.color (255,0,0)
plt.pen("thin","dash")
plt.lin_reg(I,U,"center",2)
plt.show_plot()
plt.cls()
a=plt.a
b=plt.b
print ("a =",round(plt.a,2))
print ("b =",round(plt.b,2))
50 Sample Programs
GRAPH (Provided in CE Bundle)
import ti_plotlib as plt
#After running the program, press [clear] to clear plot and return to
Shell.
def f(x):
••return 3*x**2-.4
def g(x):
••return -f(x)
def plot(res,xmin,xmax):
••#setup plotting area
••plt.window(xmin,xmax,xmin/1.5,xmax/1.5)
••plt.cls()
••gscale=5
••plt.grid((plt.xmax-plt.xmin)/gscale*(3/4),(plt.ymax-
plt.ymin)/gscale,"dash")
••plt.pen("thin","solid")
••plt.color(0,0,0)
••plt.axes("on")
••plt.labels("abscisse"," ordonnee",6,1)
••plt.pen("medium","solid")
# plot f(x) and g(x)
dX=(plt.xmax -plt.xmin)/res
x=plt.xmin
x0=x
••for i in range(res):
••••plt.color(255,0,0)
••••plt.line(x0,f(x0),x,f(x),"")
••••plt.color(0,0,255)
••••plt.plot(x,g(x),"o")
••••x0=x
••••x+=dX
••plt.show_plot()
#plot(resolution,xmin,xmax)
plot(30,-1,1)
# Create a graph with parameters(resolution,xmin,xmax)
# After clearing the first graph, press the [var] key. The plot()
function allows you to change the display settings
(resolution,xmin,xmax).
Sample Programs 51
DASH1 – Sample TI-Innovator™ Hub Program
See: [Fns…]>Modul: ti_hub module
from ti_system import *
import brightns
import ti_plotlib as plt
from time import *
plt.cls()
plt.color(0,0,255)
plt.text_at(2,"Monitoring Hub","center")
plt.text_at(3,"Brightness Sensor","center")
plt.color(255,0,0)
plt.text_at(12,"Press [clear] to quit ","right")
t0=monotonic()
plt.color(0,0,0)
while not escape():
••I=brightns.measurement()
••I=round(I,1)
••tf=monotonic()
••plt.color(0,0,0)
••tm=round(tf-t0,1)
••msg="Time = %.1f sec" % tm
••plt.text_at(6,msg,"center")
••msg="Brightness = %.1f %%" %I
••plt.text_at(7,msg,"center")
••sleep(1)
52 Sample Programs
ROVER – Sample TI-Innovator™ Rover program
See: [Fns…]>Modul ti_rover module
from ti_system import *
import ti_rover as rv
disp_clr()
disp_cursor(0)
disp_at(6,"Press [clear] to stop","center")
rv.forward(20)
while not escape():
••a=rv.ranger_measurement()
••if a<0.2:
••••rv.color_rgb(255,0,0)
••••rv.stop()
••else:
••••rv.color_rgb(0,255,0)
••••rv.resume()
rv.stop()
disp_clr()
rv.color_rgb(0,0,255)
sleep(1)
rv.color_rgb(0,0,0)
Sample Programs 53
BLNKSND - Sample TI-Innovator™ Hub Program
See: [Fns…]>Modul: ti_hub module
54 Sample Programs
SQUARE - Sample TI-Innovator™ Rover Program
See: [Fns…]>Modul ti_rover module
Sample Programs 55
STOP_GO - Sample ti_draw, ti_image, time Program
See: [Fns…]>Modul [Add-On]
from ti_draw import *
from ti_image import *
from time import *
clear()
# Pixel screen upper left (0,0) to (319,209)
draw_text(100,20,"Traffic Light")
set_pen("medium","solid")
draw_rect(120,25,80,175)
set_color(192,192,192)
fill_rect(120,25,80,175)
set_color(128,128,128)
draw_circle(160,55,22)
draw_circle(160,110,22)
draw_circle(160,165,22)
def off(x,y):
••set_color(169,169,169)
••fill_circle(x,y,22)
••set_color(128,128,128)
••draw_circle(x,y,22)
for i in (1,20,1):
# Green
••set_color(51,165,50)
••fill_circle(160,165,22)
••sleep(3)
••off(160,165)
# Yellow
••set_color(247,239,10)
••fill_circle(160,110,22)
••sleep(2)
••off(160,110)
# Red
••set_color(255,0,0)
••fill_circle(160,55,22)
••sleep(3)
••off(160,55)
••show_draw()
56 Sample Programs
Reference Guide for TI-Python Experience
The Python App contains menus of functions, classes, controls, operators and keywords
for quick pasting in the Editor or Shell. The following reference table contains the
listing of features in y N when the App is running. For a complete listing of
Python functions, classes, operators, and keywords available in this version, please see
"Selected TI-Python Built-in, Keywords, and Module Content."
This table is not intended to be an exhaustive list of Python available in this offering.
Other functions supported in this Python offering can be entered using the alpha keys
from the keypad.
Most examples given in this table run at the Shell prompt (>>>).
CATALOG Listing
Alphabetical List
• A
• B
• C
• D
• E
• F
• G
• H
• I
• L
• M
• N
• O
• P
• R
• S
• T
• U
• W
• X
• Y
• Symbols
#
Delimiter yN
Syntax: #Your comment about your program.
Description: In Python, a comment begins with the [a A #]
hash tag character, #, and extends to the end of the
line.
Example:
#A short explanation of the code.
%
Operator yN
Syntax: x%y or x % y
Description: Returns remainder of x/y. Preferred use [a A #]
is when x and y are integers.
Example:
>>>57%2
1
//
Operator yN
Syntax: x//y or x // y
Description: Returns the floor division of x/y. [a A #]
Example:
>>>26//7
3
>>>65.4//3
21.0
a gradient; slope
Module: ti_plotlib yN
Syntax: plt.a gradient; slope [Fns...]>Modul
or »
Description: After plt.linreg() is last executed in a 5:ti_plotlib...>
program, the computed values of slope, a, and intercept , Properties
b, are stored in plt.a and plt.b. 5:a
Default values: = 0.0
Example: import
commands
See sample program: LINREGR. can be found
in y
N or in
the ti_plotlib
Setup menu.
abs()
Module: Built-in yN
Syntax: abs(x)
Description: Returns the absolute value of a number. Note:
In this release, the argument may be an integer or fabs()
floating point number. is a function in
the math
Example: module.
>>>abs(-35.4)
35.4
>>>import math
>>>math.acos(1)
0.0 import
commands
can be found
in
yN
and
Keyword y:
Ops 8:and
Syntax: x and y
Description: May return True or False. Returns “x” if
“x” is False and “y” otherwise. Pastes with space [Fns…] > Ops
before and after and. Edit as needed. 8:and
Example:
>>>2<5 and 5<10 yN
True
>>>2<5 and 15<10
False
>>>{1} and 3 [a A #]
3
>>>0 and 5 < 10
0
as
Keyword yN
Description: Use as to create an alias when importing
a module. See Python documentation for more
details.
asin()
Module: math ˜ 6:asin()
Syntax: asin()
Description: Returns arc sine of x in radians. yN
Example:
>>>from math import * [Fns…] >
>>>asin(1) Modul
1.570796326794897
1:math... >
Alternate Example: Trig
6:asin()
>>>import math
>>>math.asin(1)
1.570796326794897
import
commands
can be found
in
yN
atan()
Module: math ˜ 8:atan()
Syntax: atan(x)
Description: Returns arc tangent of x in radians. [Fns…]>Modul
1:math... > Trig
Example: 8 :atan()
>>>from math import *
>>>atan(1)*4
3.141592653589793
yN
Alternate Example:
>>>import math
>>>math.atan(1)*4 import commands
3.141592653589793 can be found in
yN
atan2(y,x)
Module: math ˜ 9:atan2()
Syntax: atan2(y,x)
Description: Returns arc tangent of y/x in radians. Result [Fns…] >
is in [-pi, pi]. Modul
1:math... > Trig
Example: 9:atan2()
>>>from math import *
>>>atan2(pi,2)
1.003884821853887
yN
Alternate Example:
>>>import math
>>>math.atan2(math.pi,2) import
1.003884821853887 commands can
be found in
yN
Example:
import
See sample program: LINREGR. commands can
be found in
y N or
in the
ti_plotlib Setup
menu.
b y= intercept
Module: ti_plotlib yN
Syntax: plt.b y= intercept [Fns...]>Modul
or »
Description: After plt.linreg() is executed in a program, 5:ti_plotlib...>
the computed values of slope, a, and intercept , b, are Properties
stored in plt.a and plt.b. 6:b
Default values: = 0.0
Example: import
commands can
See sample program LINREGR. be found in
y N or
in the
ti_plotlib Setup
menu.
bin(integer)
Module: Built-in yN
Syntax: bin(integer)
Description: Displays binary format of the integer
argument.
See Python documentation for more details.
Example:
>>> bin(2)
'0b10'
>>> bin(4)
'0b100'
break
Keyword yN
Description: Use break to break out of a for or while
loop.
ceil()
Module: math » Modul
1:math... Math
Syntax: ceil(x) 8:ceil()
Description: Returns the smallest integer greater than or
equal to x.
yN
Example:
>>>from math import *
>>>ceil(34.46) [Fns...] Modul
35
>>>ceil(678)
1:math...Math
678 8:ceil()
import
commands can
be found in
yN
choice(sequence)
Module: random » Modul
2:random...
Syntax: choice(sequence) Random
Description: Returns a random element from 5:choice(sequence)
a non-empty sequence.
Example: yN
>>>from random import *
>>>listA=[2,4,6,8]
>>>choice(listA) #Your result may differ. [Fns...] Modul
4
2:random...
Random
5:choice(sequence)
class
Keyword yN
Description: Use class to create a class. See Python
documentation for more details.
import
commands
can be found
in y
N or in
the
ti_plotlib
Setup menu.
complex(real,imag)
Module: Built-in yN
Syntax: complex(real,imag) [Fns...]>Type>
5:complex()
Description: Complex number type.
Example:
>>>z = complex(2, -3)
>>>print(z)
(2-3j)
>>>z = complex(1)
>>>print(z)
(1+0j)
>>>z = complex()
>>>print(z)
0j
>>>z = complex("5-9j")
>>>print(z)
(5-9j)
cos()
Module: math ˜ Trig
4: cos()
Syntax: cos(x)
Description: Returns cos of x. Angle argument is in
radians. yN
Example:
>>>from math import * [Fns...] Modul
>>>cos(0) 1:math... > Trig
1.0
>>>cos(pi/2)
4:cos()
6.123233995736767e-17
Alternate Example:
>>>import math
>>>math.cos(0)
1.0
.count()
Module: Built-in yN
Syntax: listname.count(item)
Description: count()is a method that returns the
number of occurrences of an item in a list, tuple,
bytes, str, bytearray, or array.array object.
Example:
>>>listA = [2,4,2,6,2,8,2,10]
>>>listA.count(2)
4
def function():
Keyword yN
Syntax: def function(var, var,...)
Description: Define a function dependent on specified [Fns…]>Func
variables. Typically used with the keyword return. 1:def function():
Example: [Fns…]>Func
2:return
>>> def f(a,b):
… return a*b
…
…
…
>>> f(2,3)
6
degrees()
Module: math ˜ Trig
2:degrees()
Syntax: degrees(x)
Description: Converts angle x in radians to degrees.
yN
Example:
>>>from math import *
>>>degrees(pi) [Fns…]>Modul
180.0
>>>degrees(pi/2)
1:math…>Trig
90.0 2:degrees()
del
Keyword yN
Description: Use del to delete objects such as
variables, lists, etc.
See Python documentation for more details.
e
Module: math y 4 (above
¥)
Syntax: math.e or e if math module was imported
Description: Constant e displays as shown below.
[Fns…] >
Example: Modul
>>>from math import * 1:math…
>>>e > Const 1:e
2.718281828459045
Alternate Example:
>>>import math
>>>math.e
2.718281828459045
elif :
Keyword yN
See if..elif..else.. for details.
[Fns…] > Ctl
1:if..
2:if..else..
3:if..elif..else
9:elif :
0:else:
escape()
Module: ti_system yN
Syntax: escape() As a program
line:
Description: escape() returns True or False.
yK
Initial value is False. ti_system
When the [clear] key on CE is pressed, the value is set to 5:while not
True. escape():
6:if escape
When the function is executed the value is reset to ():break
False.
[Fns…]>Modul
Example of use: or »
4:ti-system
while not escape(): 5:while not
In a while loop running in a program where the program escape():
offers to end the loop but keep the script running. 6:if escape
():break
if escape():break import
commands can
Can be used to a debug program to inspect the vars be found in
using Shell [vars] after running the program and using yN
this break. or in the
ti_system
Modul menu.
except exception:
Keyword yN
Description: Use except in a try..except code block.
See Python documentation for more details.
.extend()
Module: Built-in yN
Syntax: listname.extend(newlist)
Description: The method extend() is a method to
extend newlist to the end of a list.
Example:
>>>listA = [2,4,6,8]
>>>listA.extend([10,12])
>>>print(listA)
[2,4,6,8,10,12]
fabs()
Module: math yN
Syntax: fabs(x)
Description: Returns the absolute value of x [Fns…] >
Modul
Example: 1:math...
>>>from math import * 2:fabs()
>>>fabs(35-65.8)
30.8
import
commands
can be found
in
y N.
See also
Built-in
function
abs().
False
Keyword y : (above
»)
Description: Returns False when statement executed
is False. "False" represents the false value of objects
of type bool.
yN
Example:
>>>64<=32
False [Fns…] > Ops
B:False
[a A #]
float()
Module: Built-in yN
Syntax: float(x)
Description: Returns x as a float. [Fns…] > Type
2:float()
Example:
>>>float(35)
35.0
>>>float(“1234”)
1234.0
floor()
Module: math » Modul
1:math
Syntax: floor(x) 9:floor()
Description: Returns the largest integer less than or
equal to x.
yN
Example:
>>>from math import *
>>>floor(36.87) [Fns…] > Modul
36
>>>floor(-36.87)
1:math
-37 9:floor()
>>>floor(254)
254 import
commands can
be found in
yN
for i in list:
Keyword [Fns…] Ctl
7:for i in list:
Syntax: for i in list:
Description: Used to iterate over list elements.
yN
Example:
>>> for i in [2,4,6]:
… print(i)
…
…
…
2
4
6
for i in range(start,stop):
Keyword [Fns…] Ctl
5:for i in range
Syntax: for i in range(start,stop) (start,stop):
Description: Used to iterate over a range.
Example: yN
>>> for i in range(1,4):
… print(i)
…
…
…
1
2
3
import
commands can
be found in
yN
yN
yN
global
Keyword yN
Description: Use global to create global variables
inside a function.
See CircuitPython documentation for more details.
grid(xscl,yscl,"style")
Module: ti_plotlib yN
Syntax: plt.grid(xscl,yscl,"style") [Fns...]>Modul
or »
Description: Displays a grid using specified scale for x 5:ti_plotlib...>
and y axes. Note: All plotting takes place when Setup
plt.show_plot() is executed. 3:grid()
Setting grid color is the optional argument of (r,g,b)
using values 0-255 with default value of gray import
(192,192,192). commands can
Default value for xscl or yscl = 1.0. be found in
y N or
"style" = "dot" (default), "dash", "solid" or "point" in the
ti_plotlib Setup
Example: menu.
See sample programs: COLORLIN or GRAPH.
hex(integer)
Module: Built-in yN
Syntax: hex(integer)
Description: Displays hexadecimal format of the
integer argument. See Python documentation for
more details.
Example:
>>> hex(16)
'0x10'
>>> hex(16**2)
'0x100'
"if :"
See if..elif..else.. for details. yN
Shell interaction
>>> # Shell Reinitialized
>>> # Running S01
>>>from S01 import * #automatically pastes
>>>f(5)
5
>>>f(0)
zero
>>>f(-5)
5
.imag
Module: Built-in yN
Syntax:var.imag
Description: Returns the imaginary part of a specified
variable of complex number type.
Example:
>>>a=complex(4,5)
>>>a.real
4
>>>a.imag
5
import math
Keyword
Syntax: import math yN
Description: The math module is accessed using this
command. This instruction imports the public
attributes of the "math" module within its own
namespace.
import ti_hub
Keyword yN
Syntax: import ti_hub
Description: The ti_hub module is accessed using this
command. This instruction imports the public
attributes of the ti_hub module wihin its own
namespace.
For individual input and output devices, use the
dynamic module functionality by selecting the device
from [Fns…]>Modul>ti_hub>Import menu when in
the Editor.
See:[Fns…] > Modul: ti_hub module.
import time
Keyword yN
Syntax: import time
Description: The time module is accessed using this
command. This instruction imports the public
attributes of the time module within its own name-
space.
See:[Fns…] > Modul: time and ti_system modules.
import ti_rover as rv
Keyword yN
Syntax: import ti_rover as rv » Modul
7:ti_rover...
Description: The ti_rover module is accessed using 1:import ti_rover
this command. This instruction imports the public as rv
attributes of the ti_rover module within its own
name-space. Attributes of the ti_rover module must [Fns…]>Modul
be entered as rv.attribute. 7:ti_rover...
1:import ti_rover
Example: as rv
See sample program: ROVER.
in
Keyword yN
Description: Use in to check if a value is in a
sequence or to iterate a sequence in a for loop.
.index(x)
Module: Built-in yN
Syntax:var.index(x)
Description: Returns the index or position of an
element of a list. See Python documentation for
more details.
Example:
>>> a=[12,35,45]
>>> print(a.index(12))
0
>>> print(a.index(35))
1
>>> print(a.index(45))
2
input()
Module : Built-in yN
Syntax: input()
Example:
>>>input("Name? ")
Name? Me
‘Me’
Alternate Example:
Create Program A
len=float(input("len: "))
print(len)
Run Program A
>>> # Shell Reinitialized
>>> # Running A
>>>from A import *
len: 15 (enter 15)
15.0 (output float 15.0)
int()
Module : Built-in yN
Syntax: int(x)
Description: Returns x as an integer object. [Fns…] > Type
1:int()
Example:
>>>int(34.67)
34
>>>int(1234.56)
1234
is
Keyword yN
Description: Use is to test if two objects are the same
object.
labels("xlabel","ylabel",x,y)
Module: ti_plotlib yN
Syntax: plt.labels("xlabel","ylabel",x,y) [Fns...]>Modul
or »
Description: Displays "xlabel" and "ylabel" labels on the 5:ti_plotlib...>
plot axes at row positions x and y. Adjust as needed for Setup
your plot display. 7:labels()
"xlabel" is positioned on specified row x (default row
12) and is right justified. import
"ylabel" is positioned on specified row y (default row 2) commands can
and is left justified. be found in
y N or
Note: plt.labels("|","",12,2) will paste with x and y row in the
defaults, 12,2 , which then can be modified for your ti_plotlib Setup
program. menu.
Example:
See sample program: GRAPH.
lambda
Keyword yN
Syntax: lambda arguments : expression
Description: Use lambda to define an anonymous
function. See Python documentation for details.
line(x1,y1,x2,y2,"mode")
Module: ti_plotlib yN
Syntax: plt.line(x1,y1,x2,y2,"mode") [Fns...]>Modul or
»
Description: Displays a line segment from (x1,y1) to 5:ti_plotlib...> Draw
(x2,y2) 7:line or vector
Size and style are set using pen() and color() before
line(). import commands
Arguments: can be found in
y N or in
x1,y1, x2,y2 are real floats. the
ti_plotlib Setup
"mode": When default "", no arrowhead draws. menu.
When "arrow" a vector arrowhead at (x2,y2) draws.
Example:
See sample program: COLORLIN.
Example:
>>>mylist=[2,4,6,8]
>>>print(mylist)
[2,4,6,8]
>>> list({1,2,"c", 7})
[7, 1, 2, 'c']
>>> list("foobar")
['f', 'o', 'o', 'b', 'a', 'r']
import
commands can
be found in
yN
math.function
Module: math yN
Syntax: math.function
Description: Use after import math command to use a
function in the math module.
Example:
>>>import math
>>>math.cos(0)
1.0
max()
Module: Built-in y 9 (above
…) List
Syntax: max(sequence) 4:max()
Description: Returns the maximum value in the
sequence. See Python documentation for more
information on max(). yN
Example:
>>>listA=[15,2,30,12,8] [Fns…] > List
>>>max(listA) 4:max()
30
min()
Module: Built-in y 9 (above
…) List
Syntax: min(sequence) 5:min()
Description: Returns the minimum value in the
sequence. See Python documentation for more
information on min(). yN
Example:
>>>listA=[15,2,30,12,8] [Fns…] > List
>>>min(listA) 5:min()
2
None
Keyword yN
Description: None represents the absence of a value.
Example: [a A #]
>>> def f(x):
… x
…
…
…
>>> print(f(2))
None
nonlocal
Keyword yN
Syntax: nonlocal
Description: Use nonlocal to declare a variable is not
local. See Python documentation for more details.
not
Keyword y : Ops
0:not
Syntax: not x
Description: Evaluates to True if x is False and False
otherwise. Pastes with space before and after the [Fns…] > Ops
keyword not. Edit as needed. 0:not
Example:
>>> not 2<5 #edit the space before not yN
False
>>>3<8 and not 2<5
False
[a A #]
oct(integer)
Module: Built-in yN
Syntax: oct(integer)
Description: Returns the octal representation of the
integer. See Python documentation for more details.
Example:
>>> oct(8)
'0o10'
>>> oct(64)
'0o100'
or
Keyword y : Ops 9:or
Syntax: x or y [Fns…] > Ops 9:or
Description: May return True or False. Returns x if x
evaluates as True and y otherwise. Pastes with space
before and after or. Edit as needed. yN
Example:
>>>2<5 or 5<10 [a A #]
True
>>>2<5 or 15<10
True
>>>12<5 or 15<10
False
>>> 3 or {}
3
>>> [] or {2}
{2}
pass
Keyword yN
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.
pen("size","style")
Module: ti_plotlib yN
Syntax: plt.pen("size","style") [Fns...]>Modul or
»
Description: Sets the appearance of all following 5:ti_plotlib...> Draw
lines until the next pen() is executed. 9:pen()
Argument:
Default pen() is "thin" and "solid." import commands
can be found in
"size" "thin" y N or in
"medium" the
"thick"
ti_plotlib Setup
menu.
"style" "solid"
"dot"
"dash"
Example:
See sample programs: COLORLIN or GRAPH.
Alternate Example:
>>>import math
>>>math.pi
3.141592653589793
Example:
See sample program: LINREGR.
Example:
See sample program: LINREGR.
print()
Module: Built-in yN
Syntax: print(argument)
Description: Displays argument as string. [Fns…] > I/O
1:print()
Example:
>>>x=57.4
>>>print(“my number is =”, x)
my number is= 57.4
raise
Keyword yN
Syntax: raise exception
Description: Use raise to raise a specified exception
and stop your program.
random.function
Module: random yN
Syntax: random.function
Description: Use after import random to access a
function in the random module.
Example:
>>>import random
>>>random.randint(1,15)
2
Example:
>>>from random import * » Modul
>>>randrange(10,50,2) 2:random…
12 Random
6:randrange
Alternate Example: (start,stop,step)
>>>import random
>>>random.randrange(10,50,2)
48
yN
Results will vary given a random output.
import commands
can be found in
yN
range(start,stop,step)
Module: Built in yN
Syntax: range(start,stop,step)
Description: Use range function to return a sequence
of numbers. All arguments are optional. Start default
is 0, step default is 1 and sequence ends at stop.
Example:
>>> x = range(2,10,3)
>>> for i in x
… print(i)
…
…
2
5
8
import
commands can
be found in y
N or in
the
ti_system
Modul menu.
.remove(x)
Module: Built-in y9
List
Syntax: listname.remove(item) 7:.remove(x)
Description: The method remove() removes the first
instance of item from a sequence.
yN
Example:
>>>listA = [2,4,6,8,6]
>>>listA.remove(6) [Fns…] > List
>>>print(listA)
[2,4,8,6]
7:.remove(x)
.reverse()
Module: Built-in yN
Syntax: listname.reverse()
Description: Reverses the order of items in a sequence.
Example:
>>>list1=[15,-32,4]
>>>list1.reverse()
>>>print(list1)
[4,-32,15]
round()
Module: Built in yN
Syntax: round(number, digits)
Description: Use round function to return a floating
point number rounded to the specified digits. Default
digit is 0 and returns the nearest integer.
Example:
>>>round(23.12456)
23
>>>round(23.12456,3)
23.125
scatter(xlist,ylist,"mark")
Module: ti_plotlib yN
Syntax: plt.scatter(xlist,ylist,"mark") [Fns...]>Modul
or »
Description: A sequence of ordered pair from (xlist,ylist) 5:ti_plotlib...>
will be plotted with mark style specified. The line style Draw
and size are set using plt.pen(). 4:scatter()
xlist and ylist must be real floats and lists must bee the
same dimension. import
Argument: commands can
be found in
"mark" is the mark character as follows: yN or
in the
o filled dot (default) ti_plotlib Setup
+ cross menu.
x x
. pixel
Example:
See sample program: LINREGR.
set(sequence)
Module: Built-in yN
Syntax: set(sequence)
Description: Returns a sequence as a set. See Python
documentation for more details.
Example:
>>> print(set("84CE")
{'E', '8', '4', 'C'}
import
commands can
be found in
yN
sleep(seconds)
Module: ti_system; time yN
Syntax: sleep(seconds)
yK
Description: Sleep for a given number of seconds. ti_system
Seconds argument is a float. A:sleep()
Example: [Fns…]>Modul or
Sample program: »
4:ti_system
from time import * A:sleep()
a=monotonic()
sleep(15) [Fns…]>Modul or
b=monotonic() »
print(b-a) 3:time
Run the program TIME 2:sleep()
>>>15.0
import commands
can be found in
y N or in
the
ti_system Modul
menu.
sorted()
Module: Built-in y 9 (above
…) List
Syntax: sorted(sequence) 0:sorted()
Description: Returns a sorted list from sequence.
Example: yN
>>>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
[Fns…] > List
[4,3,6,2,7,4,8,9,3,5,4,6] 0:sorted()
sqrt()
Module: math » Modul
1:math
Syntax: sqrt(x) 3:sqrt()
Description: Returns square root of x.
Example: yN
>>>from math import *
>>>sqrt(25)
5.0
[Fns…] >
Modul
1:math
3:sqrt()
import
commands
can be found
in
y N.
sum()
Module: Built-in y 9 (above
…) List
Syntax: sum(sequence) 9:sum()
Description: Returns the sum of the items in a
sequence. yN
Example:
>>>listA=[2,4,6,8,10] [Fns…] > List
>>>sum(listA) 9:sum()
30
tan()
Module: math ˜ 5:tan()
Syntax: tan(x)
Description: Returns tangent of x. Angle argument is in [Fns…] > Modul
radians. 1:math… > Trig
5:tan()
Example:
>>>from math import *
>>>tan(pi/4) yN
1.0
import
commands can
be found in
yN
text_at(row,"text","align")
Module: ti_plotlib yN
Syntax: plt.text_at(row,"text","align") [Fns...]>Modul or
»
Description: Display "text" in plotting area at 5:ti_plotlib...>
specified "align". Draw
row integer 1
0:text_at()
through 12
"text" string is import commands
clipped if too can be found in
long y N or in
"align" "left" (default) the
"center"
ti_plotlib Setup
menu.
"right"
optional 1 clears line
prior to text
(default)
0 line doe not
clear
Example:
See sample program: DASH1.
title("title")
Module: ti_plotlib yN
Syntax: plt.title("title") [Fns...]>Modul or
»
Description: "title" displays centered on top line of 5:ti_plotlib...>
window. "title is clipped if too long. Setup
Example: 8:title()
ti_system.function
Module: ti_system yN
Syntax: ti_system.function
Description: Use after import ti_system to access a
function in the ti_system module.
Example:
>>> # Shell Reinitialized
>>>import ti_system
>>>ti_system.disp_at(6,8,"texte")
texte>>>|
#will appear at row 6, col 8 with Shell
prompt as shown.
[a A #]
trunc()
Module: math » Modul
1:math…
Syntax: trunc(x) 0:trunc()
Description: Returns the real value x truncated to an
integer.
yN
Example:
>>>from math import *
>>>trunc(435.867) [Fns…] > Modul
435
1:math…
0:trunc()
import
commands can
be found in
yN
try:
Keyword yN
Description: Use try code block to test the code block
for errors. Also used with except and finally. See
Python documentation for more details.
type()
Module: Built-in yN
Syntax: type(object) [Fns…]>Type>6:type
()
Description: Returns the type of the object.
Example:
>>>a=1.25
>>>print(type(a))
<class 'float'>
>>>b=100
>>>print(type(b))
<class 'int'>
>>>a=10+2j
>>>print(type(c))
<class 'complex'>
uniform(min,max)
Module: random » Modul
2:random…
Syntax: uniform(min,max) Random
Description: Returns a random number x (float) such 3:uniform
that min <= x <= max. (min,max)
Example:
>>>from random import * yN
>>>uniform(0,1)
0.476118
>>>uniform(10,20)
16.2787 [Fns…] > Modul
2:random…
Results will vary given a random output. Random
3:uniform
(min,max)
import
commands can
be found in
yN
wait_key()
Module: ti_system yN
Syntax: wait_key()
Description: Returns a combined keycode
representing the key pressed, merged with y
and/or ƒ. The method waits for a key to be
pressed before returning to the program.
Example:
See: [Fns…]>Modul: time and ti_system modules.
See: Keypad mapping for wait_key()
while condition:
Keyword [Fns…] Ctl
8:while condition:
Syntax: while condition:
Description: Executes the statements in the following
code block until "condition" evaluates to False. yN
Example:
>>> x=5
>>> while x<8:
… x=x+1
… print(x)
…
…
6
7
8
with
Keyword yN
Description: See Python documentation for more
details.
yield
Keyword yN
Description: Use yield to end a function. Returns a
generator. See Python documentation for more
details.
@
Operator ƒT
(above Â)
Description: Decorator – See general Python
documentation for details.
yN
<<
Operator yN
Syntax: x<<n
Description: Bitwise left shift by n bits.
>>
Operator yN
Syntax: x>>n
Description: Bitwise right shift by n bits.
|
Operator yN
Syntax: x|y
Description: Bitwise or.
&
Operator yN
Syntax: x&y
Description: Bitwise and.
~
Operator yN
Syntax: ~x
Description: Bitwise not; the bits of x inverted.
[a A #]
x<y
Operator »
1:math > Ops
Syntax: x<y 6:x<y
Description: Comparison; x strictly less than y.
Example: yN
>>>6<10
True
>>>12<-15
False
[Fns…] > Ops
6:x<y
[a A #]
[a A #]
x>y
Operator »
1:math > Ops
Syntax: x>y 4:x>y
Description: Comparison; x strictly greater than y.
Example: yN
>>>35>25
True
>>>14>65
False
[Fns…] > Ops
4:x>y
[a A #]
[a A #]
x==y
Operator »
1:math > Ops
Syntax: x==y 2:x==y
Description: Comparison; x is equal to y.
Example: yN
>>>75==25+50
True
>>>1/3==0.333333
False
[Fns…] > Ops
>>>1/3==0.3333333 #equal to stored Python value 2:x==y
True
[a A #]
[a A #]
\
Delimiter yN
Description: Backslash character.
[a A #]
\t
Delimiter yN
Description: Tab space between strings or characters.
\n
Delimiter yN
Description: New line to display string neatly on the
screen.
[a A #]
""
Delimiter ƒW
(above Ã)
Description: Two double quotes paste.
Example:
yN
>>>print("Ok")
[a A #]
150 Appendix
Selected TI-Python Built-in, Keywords, and Module Content
Built-ins
151
Built-ins Built-ins Built-ins
'ReloadException'>
list -- <class 'list'> globals -- <function> KeyError -- <class 'KeyError'>
map -- <class 'map'> hasattr -- <function> LookupError -- <class 'LookupError'>
memoryview -- <class 'memoryview'> hash -- <function> MemoryError -- <class 'MemoryError'>
object -- <class 'object'> help -- <function> NameError -- <class 'NameError'>
property -- <class 'property'> hex -- <function> NotImplementedError -- <class
'NotImplementedError'>
range -- <class 'range'> id -- <function> OSError -- <class 'OSError'>
set -- <class 'set'> input -- <function> OverflowError -- <class 'OverflowError'>
slice -- <class 'slice'> isinstance -- <function> RuntimeError -- <class 'RuntimeError'>
str -- <class 'str'> issubclass -- <function> StopIteration -- <class 'StopIteration'>
super -- <class 'super'> iter -- <function> SyntaxError -- <class 'SyntaxError'>
tuple -- <class 'tuple'> len -- <function> SystemExit -- <class 'SystemExit'>
type -- <class 'type'> locals -- <function> TypeError -- <class 'TypeError'>
zip -- <class 'zip'> max -- <function> UnicodeError -- <class 'UnicodeError'>
classmethod -- <class 'classmethod'> min -- <function> ValueError -- <class 'ValueError'>
staticmethod -- <class 'staticmethod'> next -- <function> ZeroDivisionError -- <class
'ZeroDivisionError'>
152
Built-ins Built-ins Built-ins
Ellipsis -- Ellipsis oct -- <function>
ord -- <function>
pow -- <function>
print -- <function>
repr -- <function>
round -- <function>
sorted -- <function>
sum -- <function>
153
keywords
154
math
155
random
156
time
157
ti_system
158
ti_plotlib
159
ti_plotlib ti_plotlib ti_plotlib
show-plot line title
tilocal monotonic _xdelta
pen _ntest _penstyle
sys ymin copysign
xmin tiplotlibException gr
ymax lables xmax
yscl cls sleep
_xy sqrt auto_window
_rdelta xscl
_ydelta axes
scatter
160
ti_hub
161
ti_rover
162
ti_rover ti_rover ti_rover
to_angle waypoint_heading waypoint_xythdrn
to_xy _motor ranger_measurement
red_measurment gyro_measutrment left
rvmovement wait_until_done pathlist_cmdnum
gray_measurment encoders_gyro_measurement waypoint_y
_excpt pathlist_distance waypoint-x
ti_hub position pathlist_y
waypoint_prev blue_measurement pathlist_x
pathlist_time forward right
waypoint_revs waypoint_distance color_rgb
to_polar grid_origin pathlist-revs
waypoint_eta resume color_measurement
color_off path_done tiroverException
grid_m_unit disconnect_rv forward_time
path_clear backward_time pathlist_heading
green_measurement zero-gyro
waypoint_time _rv_connected
163
ti_rover ti_rover ti_rover
motors stop
backward
164
Keypad mapping for wait_key()
165
General Information
Online Help
education.ti.com/eguide
Select your country for more product information.
Contact TI Support
education.ti.com/ti-cares
Select your country for technical and other support resources.