EVAL MODE

1. EVAL MODE

Definition :

1.1. Modus operandi

Operations result
type in main line the python expression followed by Return_Key => will evaluate the line
Control-e_Key in minipad execute the line(s) (useful when many lines)
Pour évaluer une expression :

1.2. Examples

Screen shot

1.3. COMMANDES DU MODE EVAL

1.3.1. SHORTCUTS

shortcuts/abreviations

1.3.2. TRACE


1.3.3. ENTRIES IN KM2 MODE


THe KM2 EVAL MODE allows entries with the KM2 notations, in text mode, and without icons. MODE ENTREE

enter KM2 EVAL MODE
!eval mode km2 : instructions with km2 proeprocessing
Back to STANDARD PYTHON MODE
!eval mode python : direct python normal processing

. DESCRIPTION transforms first the tree into a KM2 tree, with icons and macros, then process the tree to build a python expression, and finally executes or evaluates the statement.
RULES

1.3.3. 1. EXEMPLES

Definition of factorial n : n !
STEPS result and display
1 introduce notation
2 define function using notation
3 use function and notation

1.4. Examples

simple example

Session
KM2 input mode
session





...