Because x and y in the function are local, they are not affected by any existing x or
Note:
y variable.
Function as called from the Home Screen
ù
4
xroot(3,125)
Calling One Program from Another
One program can call another program as a subroutine. The subroutine can be external
(a separate program) or internal (included in the main program). Subroutines are useful
when a program needs to repeat the same group of commands at several different
places.
Programming
!
!
3
x:125
y
20
5
Function as defined in
the Program Editor
:xroot(x,y)
:Func
:y^(1/x)
:EndFunc
575