E

e

 

Module: math

Syntax: math.e or e if math module was imported

Description: Constant e displays as shown below.

Example:

>>>from math import *

>>>e

2.718281828459045

Alternate Example:

>>>import math

>>>math.e

2.718281828459045

y 4 (above ¥)

 

[Fns…] > Modul 1:math…
> Const 1:e

 

elif :

 

Keyword

See if..elif..else.. for details.

y N

 

[Fns…] > Ctl

  1:if..

  2:if..else..

  3:if..elif..else

  9:elif :

  0:else:

 

else:

 

Keyword

See if..elif..else.. for details.

y N

 

[Fns…] > Ctl

  1:if..

  2:if..else..

  3:if..elif..else

  9:elif :

  0:else:

 

escape()

 

Module: ti_system

Syntax: escape()

Description: escape() returns True or False.

Initial value is False.

When the [clear] key on CE is pressed, the value is set to True.

When the function is executed the value is reset to False.

Example of use:

while not escape():

In a while loop running in a program where the program offers to end the loop but keep the script running.

 

if escape():break

Can be used to a debug program to inspect the vars using Shell [vars] after running the program and using this break.

y N

As a program line:

y K
ti_system
5:while not escape():
6:if escape():break

[Fns…]>Modul or »
4:ti-system
5:while not escape():
6:if escape():break


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

 

eval()

 

Module: Built-in

Syntax: eval(x)

Description: Returns the evaluation of the expression x.

Example:

>>>a=7

>>>eval(“a+9”)

16

>>>eval(‘a+10’)

17

y N

[Fns…] I/O
3:eval()

 

except exception:

 

Keyword

Description: Use except in a try..except code block. See Python documentation for more details.

y N

 

 

exp()

 

Module: math

Syntax: exp(x)

Description: Returns e**x.

Example:

>>>from math import *

>>>exp(1)

2.718281828459046

Alternate Example: [Tools] > 6:New Shell

>>>import math

>>>math.exp(1)

2.718281828459046

y J (above µ)

 

y N

[Fns…] > Modul
1:math…
4:exp()

 

import commands can be found in
y N.

 

.extend()

 

Module: Built-in

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]

y N