## regula_falsi_test.jl # # Discussion: # # Use the regula falsi method to find a root of a nonlinear equation. # # Licensing: # # This code is distributed under the MIT license. # # Modified: # # 14 March 2024 # # Author: # # John Burkardt # include( "../regula_falsi/regula_falsi.jl" ) include( "../timestamp/timestamp.jl" ) print( "\n" ) timestamp( ) print( "\n" ) print( "regula_falsi_test():\n" ) print( " Julia version." ) print( " Test regula_falsi(), which seeks a zero z of a function f()\n" ) print( " starting with a change of sign interval [a,b].\n" ) f(x) = x^5 - 2 regula_falsi( f, 0.5, 1.5 ) # # Terminate. # print( "\n" ) print( "regula_falsi_test():\n" ) print( " Normal end of execution." ) timestamp( ) exit( 0 )