#*****************************************************************************80 # ## heat_test tests heat. # # 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: # # 29 March 2020 # # Author: # # John Burkardt # cat ( date ( ), "\n" ) cat ( "\n" ) cat ( "heat_test\n" ) cat ( " ", version$version.string, "\n" ) cat ( " heat solves the 1D heat equation using the forward time centered space\n" ) cat ( " (FTCS) method\n" ) source ( "/home/burkardt/public_html/r_src/heat/heat.R" ) alpha <- 1.0 x0 <- 0.0 xdelta <- 0.05 x <- seq ( x0, 1, xdelta ) u <- sin ( x^4 * pi ) tdelta <- 0.001 n <- 25 z <- heat ( u, alpha, xdelta, tdelta, n ) t ( head ( z, n = 2 ) ) # # Terminate. # cat ( "\n" ) cat ( "heat_test\n" ) cat ( " Normal end of execution.\n" ) cat ( date ( ), "\n" ) quit ( )