Numerical Methods Assignment 1: Due Thursday 5pm 24 May (For MATH3976: Programming question only.) _____________________________________________________ 1. Note the following: (i) In Question 2 use the abs function in the logarithm in fun. (ii) d/dx ln|x| = 1/x, not 1/|x|. (iii) ln(x) is log(x) in Fortran95. 2. Seek help if you are stuck on something. 3. Hand in the completed program from Question 1 but with the subroutines fun and jac for Question 2. (Simply comment out lines in fun and jac relevant only to Question 1.) Your handin file should have the following form, including the === dividing lines: Replace this line with your program including fun and jac for Question 2. ================================================================== (a)(i) kmax=0: Input/output for starting approximation (2,2), tol=5e-6, kmax=0: ================================================================== (a)(ii) kmax=10: Input/output for starting approximation (2,2), tol=5e-6, kmax=10: ================================================================== (b) (MATH3076 only) Input/output for any other zero(s), tol=5e-6: ================================================================== 4. To handin your assignment use the command: handin mc3nm1 your_file_name Check that you have handed in the correct file with the command: handout mc3nm1 or for more information handout -v mc3nm1 If you have any handin woes, such as a file size violation, see Dr Ivers, Room 623.