Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Advanced Applied Math
Reply
 
Thread Tools Display Modes
  #1  
Old October 20th, 2008, 06:05 PM
Newbie
 
Join Date: Oct 2008
Posts: 3
Country:
Thanks: 2
Thanked 0 Times in 0 Posts
tk1234 is on a distinguished road
Default numerical methods using matlab

given system of ODE:

function dy=fun(y)
dy=[0 -y(1) -sin(y(1)+y(2)) ; y(1) 0 -1 ; sin(y(1)+y(2)) 1 0];



with RK4 method:

function yout=RK4(y,h,f)
hF1 = h*f(y);
hF2 = h*f(y+hF1/2);
hF3 = h*f(y+hF2/2);
hF4 = h*f(y+hF3);
yout= y+(hF1+2*(hF2+hF3)+hF4)/6;



1) Why this problem preserves the invariant y1^2+y2^2+y3^2? (short answer question)

2) I want to solve given problem using RK4 mathod (matalb)

3) I want to solve given problem using Gauss 2 (matlab)

given that Gauss2 has the tableau in the form (which is order 2 implicit RK method)

1/2-sqrt(3)/6 | 1/4 (space) 1/4-sqrt(3)/6
1/2+sqrt(3)/6 | 1/4+sqrt(3)/6 (space) 1/4
----------------------------------------------------------
(space)(space) |1/2 (space)(space)1/2





Help please!
Reply With Quote
Advertisement
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 08:29 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.