Programming
599
For example:
Ê
Local variable
m
is not assigned an initial value.
In the example above, the local variable
m
exists independently of any variable
m
that
exists outside of the function.
You Must Initialize Local Variables
You Must Initialize Local Variables
You Must Initialize Local Variables
You Must Initialize Local Variables
All local variables must be assigned an initial value before they are referenced.
Ê
1 is stored as the initial value for
m
.
The calculator cannot use a local variable to perform symbolic calculations.
Ê
Define fact(n)=Func:
Local m:
While n>1:
n
†
m
!
m: n–1
!
n:
EndWhile:
Return m:
EndFunc
Ê
Define fact(n)=Func:
Local m: 1
!
m:
While n>1:
n
ù
m
!
m: n–1
!
n:
EndWhile:
Return m:
EndFunc
Содержание Voyage 200
Страница 36: ...Getting Started 36 D B D B Press Result ...
Страница 45: ...Getting Started 45 3 0 D B D D B D Press Result ...
Страница 46: ...Getting Started 46 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Страница 60: ...Getting Started 60 B D Press Result ...
Страница 139: ...Previews 139 8 Complete the operation Press 2 d Steps and keystrokes Display 5 f 2 ...
Страница 181: ...Operating the Calculator 181 From the Keyboard From the Keyboard From the Keyboard From the Keyboard ...
Страница 453: ...Differential Equation Graphing 453 ...
Страница 468: ...Tables 468 ...
Страница 515: ...Split Screens 515 Note Both Top Bottom and Left Right splits use the same methods to select an application ...
Страница 777: ...Activities 777 ...