Mathcad - Different Ways of Solving a Differential Equation

Mathcad - Different Ways of Solving a Differential Equation...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Different Ways of Solving a Simple Differential Equation Solution using the built in Odesolve function: fx y , () x y + := x0 0 := y0 1 := xf 5 := Given y' x () fxyx , = yx0 () y 0 = y Odesolve x xf , := Solution using explicit finite difference method: x0 0 := ye 0 1 := N1 5 := Δ x xf x0 N := i1N .. := xe i i Δ x := ye i Δ xx e i1 ye + ye + := ye 1 1.333 = Solution using implicit finite difference method:
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/21/2012 for the course MET 581 taught by Professor Staff during the Fall '08 term at Purdue University-West Lafayette.

Ask a homework question - tutors are online