PROGRAM FILE 151: USER-DEFINED FUNCTIONS.                                       
    ANSI STANDARD 16.2, 16.4, 7.2, 7.4                                          
                                                                                
THIS PROGRAM TESTS VARIOUS KINDS OF USER-DEFINED FUNCTIONS.                     
NUMERIC EXPRESSIONS ARE USED IN TWO NEW CONTEXTS: BOTH AS                       
THE FUNCTION DEFINITION, AND ALSO AS ARGUMENTS IN THE                           
FUNCTION INVOCATIONS.                                                           
                                                                                
SECTION 151.1: THE EXPRESSION IN THE DEFINITION USING ONLY                      
        THE PARAMETER OF THE PARAMETER-LIST.                                    
                                                                                
                               BEGIN TEST.                                      
                                                                                
***  TEST PASSED  ***                                                           
                                                                                
                                END TEST.                                       
                                                                                
SECTION 151.2: THE EXPRESSION IN THE DEFINITION USING THE                       
        PARAMETER OF THE PARAMETER-LIST AND OTHER VARIABLES.                    
                                                                                
                               BEGIN TEST.                                      
                                                                                
***  TEST PASSED  ***                                                           
                                                                                
                                END TEST.                                       
                                                                                
SECTION 151.3: THE EXPRESSION IN THE DEFINITION USING THE                       
        PARAMETER OF THE PARAMETER-LIST AND CONSTANTS.                          
                                                                                
                              BEGIN TEST.                                       
                                                                                
***  TEST PASSED  ***                                                           
                                                                                
                                END TEST.                                       
                                                                                
SECTION 151.4: THE EXPRESSION IN THE DEFINITION USING THE                       
        PARAMETER OF THE PARAMETER-LIST AND A REFERENCE                         
        TO ANOTHER FUNCTION.                                                    
                                                                                
                               BEGIN TEST.                                      
                                                                                
***  TEST PASSED  ***                                                           
                                                                                
                                END TEST.                                       
                                                                                
SECTION 151.5: THE EXPRESSION IN THE DEFINITION HAS A                           
        CONSTANT VALUE.                                                         
                                                                                
                               BEGIN TEST.                                      
                                                                                
***  TEST PASSED  ***                                                           
                                                                                
                                END TEST.                                       
                                                                                
SECTION 151.6: THE PARAMETER OF A USER-DEFINED                                  
        FUNCTION IS LOCAL TO THE EXPRESSION OF THE                              
        DEFINITION AND OTHER VARIABLES ARE GLOBAL.                              
                                                                                
                               BEGIN TEST.                                      
                                                                                
***  TEST PASSED  ***                                                           
                                                                                
                                END TEST.                                       
                                                                                
SECTION 151.7: FULL GENERAL USE OF USER-DEFINED FUNCTIONS                       
        IN NUMERIC EXPRESSIONS.                                                 
                                                                                
                               BEGIN TEST.                                      
                                                                                
***  TEST PASSED  ***                                                           
                                                                                
                                 END TEST.                                      
                                                                                
END PROGRAM 151.                                                                
