jamila nizamani
Utar
2014년부터 활동
Followers: 0 Following: 0
Feeds
질문
The stiff IVP y'=-30*y+30*t^2+2*t, y(0)=1 whose analytic solution is y(t)=e^-30*t+t^2. using fourth order runge kutta method, h=0.05,this code only find y and t values but i need absolute error [yrk4 - yexact]. please send me new code.
function rungekutta123 h = 0.05; t = 0; w = 1; fprintf('Step 0: t = %12.8f, w = %12.8f\n', t, w); for i=0:0.05:...
대략 12년 전 | 답변 수: 0 | 0
0
답변질문
-30*y+30*x+2*x this is stiff ODEs, solve by runge kutta method with 50 iteration step size is 0.05. can you defined how to identify interval B/C i don't know what is interval please help me and i also need Actual solution exact values.
function yp=f(x,y) yp=-30*y+30*x^2+2*x; %yp=y' x0=0; y0=1; xf=1; n=10; h=(xf-x0)/n; x=x0; y=y0; X=x; Y=y...
대략 12년 전 | 답변 수: 0 | 0
0
답변질문
the stiff IVP y'(t) = -30*y+30*t^2+2*t; y(0)=1, & exact solution is y(t)=e^-30*x +x^2. using fourth order Runge-kutta method. solve by hand and by matlab
function rungekutta h = 0.5; t = 0; w = 0.5; fprintf('Step 0: t = %12.8f, w = %12.8f\n', t, w); for i=1:4 k1 = h*f(t,w); ...
12년 초과 전 | 답변 수: 1 | 0
1
답변질문
The stiff initial value problem y'(x)=-30*y+30*x^2+2*x, y(0)=1 whose analytic solution is y(x)=e^-30*x +x^2. Using fourth order moving-center series approximation, solve in Mat lab.
A fourth order approximating series solution to the IVP is hence developed since can be determined from the initial value of t...
12년 초과 전 | 답변 수: 0 | 0
0
답변질문
I need your help. y'(t) = -30*y+30*t^2+2*t; y(0)=1, & exact solution is y(t)=e^-30*x +x^2. i can't understand what is different b/w kr4 plotting & its error . i need both graph n error please send me code.
function rungekutta123 h = 0.05; t = 0; w = 1; fprintf('Step 0: t = %12.8f, w = %12.8f\n', t, w); for i=1:5...
12년 초과 전 | 답변 수: 2 | 0
