
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Project; Class: COMPUTATIONAL METHODS; Subject: Mechanical Engineering; University: University of Colorado - Boulder; Term: Unknown 1989;
Typology: Study Guides, Projects, Research
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Write a program to solve
tanh 2
dy x y x dx
using the following schemes:
i) Explicit Euler, ii) Implicit Euler, iii) Trapezoidal Method, iv) Second order Runge-Kutta.
Do not use any build-in Matlab time integration routines. Try values Δ x = 1, 3.5, 4.25.
cosh( )
x
y x = and the results of numerical integration for
different values Δ x for four different integration methods in separate sub-windows.
Explain the results in terms of stability and accuracy.
P.S. Bring your solution to class. Email your code to [email protected]. The program that you send should be a working program. All the codes will be checked whether they run or not. If they are erroneous, but run, points will be taken for the errors. If the code does not run (it has some syntax errors), an additional 25% will be taken off. The goal of this class is for you to be comfortable solving engineering problems. Please take your time and learn how to trust the computer.