## zero_illinois_test.jl # # Discussion: # # Use the Illinois 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( "../zero_illinois/zero_illinois.jl" ) include( "../timestamp/timestamp.jl" ) print( "\n" ) timestamp( ) print( "\n" ) print( "zero_illinois_test():\n" ) print( " Julia version\n" ) print( " Test zero_illinois(), which uses the Illinois method to find a\n" ) print( " root of an equation f(x) = 0, starting with a change of\n" ) print( " sign interval.\n" ) f(x) = x^5 - 2 zero_illinois( f, 0.5, 1.5 ) print( "\n" ) print( "zero_illinois_test():\n" ) print( " Normal end of execution.\n" ) timestamp( )