#*****************************************************************************80 # ## vecnorm_test tests vecnorm. # # Licensing: # # Copyright 2016 James P. Howard, II # # The computer code and data files on this web page are distributed under # https://opensource.org/licenses/BSD-2-Clause, the BSD-2-Clause license. # # Modified: # # 16 February 2020 # # Author: # # John Burkardt # cat ( date ( ), "\n" ) cat ( "\n" ) cat ( "vecnorm_test\n" ) cat ( " ", version$version.string, "\n" ) cat ( " vecnorm computes the L2 norm of a vector.\n" ) source ( "/home/burkardt/public_html/r_src/vecnorm/vecnorm.R" ) x <- c ( 4, 8, 7, 2 ) cat ( "\n" ) cat ( "The vector x:\n" ) cat ( "\n" ) x value = vecnorm ( x ) cat ( "\n" ) cat ( "The L2 norm of x:\n" ) cat ( "\n" ) value # # Terminate. # cat ( "\n" ) cat ( "vecnorm_test\n" ) cat ( " Normal end of execution.\n" ) cat ( date ( ), "\n" ) quit ( )