A

#

 

Delimiter

Syntax: #Your comment about your program.

Description: In Python, a comment begins with the hash tag character, #, and extends to the end of the line.

Example:

#A short explanation of the code.

 

%

 

Operator

Syntax: x%y or x % y

Description: Returns remainder of x/y. Preferred use is when x and y are integers.

Example:

>>>57%2

1

See also fmod(x,y).

y N

 

[a A #]

 

 

//

 

Operator

Syntax: x//y or x // y

Description: Returns the floor division of x/y.

Example:

>>>26//7

3

>>>65.4//3

21.0

y N

[a A #]

 

 

 

[a A #]

 

 

Description: Launch [a A #] character palette.

Includes accented characters such as ç à â è é ê ë î ï ô ö ù û

[a A #]
shortcut is on screen at p in the Editor or Shell 

 

a                  gradient; slope

 

Module: ti_plotlib

Syntax: plt.a                  gradient; slope

Description: After plt.linreg() is last executed in a program, the computed values of slope, a, and intercept , b, are stored in plt.a and plt.b.

Default values: = 0.0

Example:

See sample program: LINREGR.

y N

[Fns...]>Modul or »
5:ti_plotlib...> Properties
5:a


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

 

abs()

 

Module: Built-in 

Syntax: abs(x)

Description: Returns the absolute value of a number. In this release, the argument may be an integer or floating point number.

Example:

>>>abs(-35.4)

35.4

y N

 

Note:
fabs()
is a function in the math module.

 

acos()

 

Module: math

Syntax: acos(x)

Description: Returns arc cosine of x in radians.

Example:

>>>from math import *

>>>acos(1)

0.0

Alternate Example: [Tools] > 6:New Shell

>>>import math

>>>math.acos(1)

0.0

˜ 7:acos()

 

y N

 

[Fns…] Modul 1:math… > Trig
7:acos()

 

import commands can be found in
y N

 

and

 

Keyword

Syntax: x and y

Description: May return True or False. Returns “x” if “x” is False and “y” otherwise. Pastes with space before and after and. Edit as needed.

Example:

>>>2<5 and 5<10

True

>>>2<5 and 15<10

False

>>>{1} and 3

3

>>>0 and 5 < 10

0

y :
Ops 8:and

 

[Fns…] > Ops
8:and

 

y N

 

[a A #] 

 

.append(x)

 

Module: Built-in

Syntax: listname.append(item)

Description: The method append() appends an item to a list.

Example:

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

>>>listA.append(10)

>>>print(listA)

[2,4,6,8,10]

y 9
List
6: .append(x)

 

y N

[Fns…] > List
6:.append(x)

 

as

 

Keyword

Description: Use as to create an alias when importing a module. See Python documentation for more details.

y N

 

asin()

 

Module: math

Syntax: asin()

Description: Returns arc sine of x in radians.

Example:

>>>from math import *

>>>asin(1)

1.570796326794897

Alternate Example:

>>>import math

>>>math.asin(1)

1.570796326794897

˜ 6:asin()

 

y N

 

[Fns…] > Modul
1:math... > Trig
6:asin()

 

import commands can be found in
y N

 

assert

 

Keyword

Description: Use assert to test a condition in your code. Returns None or if not, execution of the program will display an AssertionError.

y N

 

atan()

 

Module: math

Syntax: atan(x)

Description: Returns arc tangent of x in radians.

Example:

>>>from math import *

>>>atan(1)*4

3.141592653589793

Alternate Example:

>>>import math

>>>math.atan(1)*4

3.141592653589793

˜ 8:atan()

 

[Fns…]>Modul 1:math... > Trig
8 :atan()

 

y N

 

import commands can be found in
y N

 

atan2(y,x)

 

Module: math

Syntax: atan2(y,x)

Description: Returns arc tangent of y/x in radians. Result is in [-pi, pi].

Example:

>>>from math import *

>>>atan2(pi,2)

1.003884821853887

Alternate Example:

>>>import math

>>>math.atan2(math.pi,2)

1.003884821853887

˜ 9:atan2()

 

[Fns…] > Modul 1:math... > Trig
9:atan2()

 

y N

 

import commands can be found in
y N

 

auto_window(xlist,ylist)

 

Module: ti_plotlib

Syntax: plt.auto_window(xlist,ylist)

Description: Autoscales the plotting window to fit the data ranges within xlist and ylist specified in the program prior to the auto_window().

Note: max(list) - min(list) > 0.00001

Example:

See sample program: LINREGR.

y N

[Fns...]>Modul or »
5:ti_plotlib...> Setup
5:auto_window()


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

 

axes("mode")

 

Module: ti_plotlib

Syntax: plt.axes("mode")

Description: Displays axes on specified window in the plotting area.

Argument:

"mode" argument options:

"off"

no axes

"on"

axes+labels

"axes"

axes only

"window"

window labels only

plt.axes() uses the current pen color setting. To ensure plt.axes() are always drawn as expected, use plt.color() BEFORE plt.axes() to ensure the colors are expected.

Example:

See sample program LINREGR.

y N

[Fns...]>Modul or »
5:ti_plotlib...> Setup
6:axes()


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