Programming
588
If the function requires input, one or more values must be passed to the function. (A
user-defined function can store to local variables only, and it cannot use instructions that
prompt the user for input.)
How to Return a Value from a Function
How to Return a Value from a Function
How to Return a Value from a Function
How to Return a Value from a Function
There are two ways to return a value from a function:
•
As the last line in the function
(before
EndFunc
), calculate the
value to be returned.
:cube(x)
:Func
:x^3
:EndFunc
Function name, which you
specify when you create a
new function.
Enter your commands
between
Func
and
EndFunc
.
All function lines
begin with a colon.
Be sure to edit this line to include any
necessary arguments. Remember to use
argument names in the definition that will
never be used when calling the function.
Содержание 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 ...