soln01 - Problem 1 1 Copy the code in a matlab file called...

This preview shows pages 1–3. Sign up to view the full content.

Problem 1: 1) Copy the code in a matlab file called plot_bessel_usinig_ode.m and run it on the command prompt. The sample command line input and the graph obtained are as follows. >> plot_bessel_using_ode(10) >> Bessel function of first kind using solution from ode 0 2 4 6 8 10 -0.5 0 0.5 1 y(x) x 2) I have made a matlab file plot_bessel_using_besselj which contains the function of the same name. We can run the command on matlab window. >> plot_bessel_using_besselj(10); >> The output plot obtained is as follows. Cite as: William Green, Jr., course materials for 10.34 Numerical Methods Applied to Chemical Engineering, Fall 2006. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology. Downloaded on [DD Month YYYY].

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Bessel function of first kind using besselj 0 2 4 6 8 10 -0.5 0 0.5 1 y(x) x 3) The function which uses the truncated infinite series to get the solution is written in matlab file “ plot_bessel_using_my_bessel.m” The sample input is given below and the output graphs are also presented. >> plot_bessel_using_my_bessel(10)
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/27/2011 for the course CHEMICAL E 10.302 taught by Professor Clarkcolton during the Fall '04 term at MIT.

Page1 / 5

soln01 - Problem 1 1 Copy the code in a matlab file called...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online