D

def function ():

 

Keyword

Syntax: def function(var, var,...)

Description: Define a function dependent on specified variables. Typically used with the keyword return.

Example:

>>>   def f(a,b):

         return a*b

   

   

   

>>>       f(2,3)

6

y N

 

[Fns…]>Func 1:def function():

[Fns…]>Func
2:return

 

degrees()

 

Module: math

Syntax: degrees(x)

Description: Converts angle x in radians to degrees.

Example:

>>>from math import *

>>>degrees(pi)

180.0

>>>degrees(pi/2)

90.0

˜ Trig 2:degrees()

 

y N

 

[Fns…]>Modul 1:math…>Trig
2:degrees()

 

del

 

Keyword

Description: Use del to delete objects such as variables, lists, etc.
See Python documentation for more details.

y N

 

disp_at(row,col,"text")       

 

Module: ti_system

Syntax: disp_at(row,col,"text")

Description: Display text starting at a row and column position on the plotting area.

REPL with cursor >>>| will appear after text if at end of program. Use disp_cursor() to control cursor display.

Argument:

row

1 - 11, integer

column

1 - 32, integer

"text"

is a string which will wrap on the screen area

Optional arguments for color and background shown here: disp_at(row,col,"text","align",color 0-15, background color 0-5)

Example:

Sample program:

from ti_system import *

disp_clr() #clears Shell screen

disp_at(5,6,"hello")

disp_cursor(0)

disp_wait()

y N

y K
ti_system
7:disp_at()

[Fns…]>Modul or »
4:ti_system
7:disp_at()


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

 

disp_at(row,"text","align")       

 

Module: ti_system

Syntax: disp_at(row,"text","align")

Description: Display text aligned as specified on the plotting screen for row 1-11. Row is cleared before display. If used in a loop, content refreshes with each display.

REPL with cursor >>>| will appear after text if at end of program. Use disp_cursor() to control cursor display before the use of disp_at() in your program.

Argument:

row

1 - 11, integer

"text"

is a string which will wrap on the screen area

"align"

"left" (default)

"center"

"right"

Optional argument shown here: disp_at(row,"text","align","color 0-15, background color 0-15)

Example:

Sample program:

from ti_system import *

disp_clr() #clears Shell screen

disp_at(5,"hello","left")

disp_cursor(0)

disp_wait()

y N

y K
ti_system
7:disp_at()


[Fns…]>Modul or »
4:ti_system
7:disp_at()


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

 

disp_clr()                  clear text screen

 

Module: ti_system

Syntax: disp_clr()                  clear text screen

Description: Clear the screen in the Shell environment. Row 0-11, integer may be used as an optional argument to clear a display row of the Shell environment.

Example:

Sample program:

from ti_system import *

disp_clr() #clears Shell screen

disp_at(5,"hello","left")

disp_cursor(0)

disp_wait()

y N

y K
ti_system
8:disp_clr()


[Fns…]>Modul or »
4:ti_system
8:disp_clr()


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

 

disp_cursor()                  0=off 1=on

 

Module: ti_system

Syntax: disp_cursor()                  0=off 1=on

Description: Control the display of the cursor in the Shell when a program is running.

Argument:

0 = off

not 0 = on

Example:

Sample program:

from ti_system import *

disp_clr() #clears Shell screen

disp_at(5,"hello","left")

disp_cursor(0)

disp_wait()

y N

y K
ti_system
0:disp_cursor()


[Fns…]>Modul or »
4:ti_system
0:disp_cursor()


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

 

disp_wait()                  [clear]

 

Module: ti_system

Syntax: disp_wait()                  [clear]

Description: Stop the execution of program at this point and display screen content until [clear] is pressed and the screen is cleared.

Example:

Sample program:

from ti_system import *

disp_clr() #clears Shell screen

disp_at(5,"hello","left")

disp_cursor(0)

disp_wait()

y N

y K
ti_system
9:disp_wait()


[Fns…]>Modul or »
4:ti_system
9:disp_wait()


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