#*****************************************************************************80 # ## discmethod_test tests discmethod. # # 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: # # 10 March 2020 # # Author: # # John Burkardt # cat ( date ( ), "\n" ) cat ( "\n" ) cat ( "discmethod_test\n" ) cat ( " ", version$version.string, "\n" ) cat ( " discmethod estimates the volume contained in a surface of\n" ) cat ( " revolution using the disc method.\n" ) cat ( "\n" ) source ( "/home/burkardt/public_html/r_src/discmethod/discmethod.R" ) a <- 1.0 b <- 2.0 f <- function ( x ) { return ( x^2 ) } value <- discmethod ( f, a, b ) cat ( ' discmethod ( x^2, ', a, ',', b, ') = ', value ) # # Terminate. # cat ( "\n" ) cat ( "discmethod_test\n" ) cat ( " Normal end of execution.\n" ) cat ( date ( ), "\n" ) quit ( )