L

labels("xlabel","ylabel",x,y)

 

Module: ti_plotlib

Syntax: plt.labels("xlabel","ylabel",x,y)

Description: Displays "xlabel" and "ylabel" labels on the plot axes at row positions x and y. Adjust as needed for your plot display.

"xlabel" is positioned on specified row x (default row 12) and is right justified.

"ylabel" is positioned on specified row y (default row 2) and is left justified.

Note: plt.labels("|","",12,2) will paste with x and y row defaults, 12,2 , which then can be modified for your program.

Example:

See sample program: GRAPH.

y N

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


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

 

lambda

 

Keyword

Syntax: lambda arguments : expression

Description: Use lambda to define an anonymous function. See Python documentation for details.

y N

 

len()

 

Module: Built-in

Syntax: len(sequence)

Description: Returns the number of items in the argument. The argument may be a sequence or a collection.

See Python documentation for more details.

Example:

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

>>>len(mylist)

5

y 9 (above ) List
3:len()

 

y N

 

[Fns…] > List
3:len()

line(x1,y1,x2,y2,"mode")

 

Module: ti_plotlib

Syntax: plt.line(x1,y1,x2,y2,"mode")

Description: Displays a line segment from (x1,y1) to (x2,y2)

Size and style are set using pen() and color() before line().

Arguments:

x1,y1, x2,y2 are real floats.

"mode": When default "", no arrowhead draws.
When "arrow" a vector arrowhead at (x2,y2) draws.

Example:

See sample program: COLORLIN.

y N

[Fns...]>Modul or »
5:ti_plotlib...> Draw
7:line or vector


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

 

lin_reg(xlist,ylist,"disp",row)

 

Module: ti_plotlib

Syntax: plt.lin_reg(xlist,ylist,"disp",row)

Description: Calculates and draws the linear regression model, ax+b, of xlist,ylist.  This method must follow the scatter method. Default display of equation is "center" at row 11.

Argument:

"disp"

"left"

"center"

"right"

row

1 - 12

plt.a (slope) and plt.b (intercept) are stored when lin_reg executes.

Example:

See sample program: LINREGR.

y N

[Fns...]>Modul or »
5:ti_plotlib...> Draw
8:lin_reg()


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

 

list(sequence)

 

Module: Built-in

Syntax: list(sequence)

Description: Mutable sequence of items of the save type.

list()" converts its argument into the "list" type. Like many other sequences, the elements of a list do not need to be of the same type.

Example:

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

>>>print(mylist)

[2,4,6,8]

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']

y 9 (above ) List
2:list(
sequence)

 

y N

 

[Fns…] > List
2:list(
sequence)

 

log(x,base)

 

Module: math

Syntax: log(x,base)

Description: log(x) with no base returns the natural logarithm x.

Example:

>>>from math import *

>>>log(e)

1.0

>>>log(100,10)

2.0

>>>log(32,2)

5.0

y « for log(x,10)

 

y µ for log(x) (natural log)

 

» Modul
1:math…
6:log(x,base)

 

y N

[Fns…] > Modul
1:math…
6:log(x,base)

 

import commands can be found in
y N