g_01 <- function ( x ) #*****************************************************************************80 # ## g_01() evaluates (x-2)^2 + 1. # # Licensing: # # This code is distributed under the MIT license. # # Modified: # # 12 June 2021 # # Author: # # John Burkardt # # Input: # # real X, the point at which F is to be evaluated. # # Output: # # real VALUE, the value of the function at X. # { value <- ( x - 2.0 ) * ( x - 2.0 ) + 1.0 return ( value ) }