M

math.function

 

Module: math

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

y N

 

max()

 

Module: Built-in

Syntax: max(sequence)

Description: Returns the maximum value in the sequence. See Python documentation for more information on max().

Example:

>>>listA=[15,2,30,12,8]

>>>max(listA)

30

y 9 (above ) List
4:max()

 

y N

 

[Fns…] > List
4:max()

 

min()

 

Module: Built-in

Syntax: min(sequence)

Description: Returns the minimum value in the sequence. See Python documentation for more information on min().

Example:

>>>listA=[15,2,30,12,8]

>>>min(listA)

2

y 9 (above ) List
5:min()

 

y N

 

[Fns…] > List
5:min()

 

monotonic()                  elapsed time

 

Module: time

Syntax: monotonic()                  elapsed time

Description: Returns a value of time from the point of execution. Use the return value to compare against other values from monotonic().

Example:

Sample program:

from time import *

a=monotonic()

sleep(15)

b=monotonic()

print(b-a)

 

Run the program EXAMPLE until execution stops.

>>>15.0

y N


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


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