Unformatted text preview: (e) Compare the relative performance of the three methods for this problem reporting the approximate error versus iteration number, the order of convergence, and the asymptotic error constant λ . 2. Speedtest. Compare the execution times of the three methods you used in problem 1 (b), (c), and (d) using the MatLab functions tic and toc . Further compare these times with timing for a root obtained from a call to the MatLab function fzero . Can you draw any conclusions regarding the computational eﬃciency of the MatLab builtin functions? 3. Extra Credit – 10pts. Optimize a MatLab code that you write yourself based on any “open method” that starts at the ideal gas volume and ﬁnds the real gas solution to problem 1 with 7 signiﬁcant ﬁgures of precision. Report your execution time and provide the mﬁle. The 5 codes with the smallest execution times (on the TA’s computer) will garner extra credit....
View
Full Document
 Fall '09
 Ceweb
 Chemical Engineering

Click to edit the document details