17.11.2012 Views

Numerical recipes

Numerical recipes

Numerical recipes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

720 Chapter 16. Integration of Ordinary Differential Equations<br />

}<br />

static float a2=0.2,a3=0.3,a4=0.6,a5=1.0,a6=0.875,b21=0.2,<br />

b31=3.0/40.0,b32=9.0/40.0,b41=0.3,b42 = -0.9,b43=1.2,<br />

b51 = -11.0/54.0, b52=2.5,b53 = -70.0/27.0,b54=35.0/27.0,<br />

b61=1631.0/55296.0,b62=175.0/512.0,b63=575.0/13824.0,<br />

b64=44275.0/110592.0,b65=253.0/4096.0,c1=37.0/378.0,<br />

c3=250.0/621.0,c4=125.0/594.0,c6=512.0/1771.0,<br />

dc5 = -277.00/14336.0;<br />

float dc1=c1-2825.0/27648.0,dc3=c3-18575.0/48384.0,<br />

dc4=c4-13525.0/55296.0,dc6=c6-0.25;<br />

float *ak2,*ak3,*ak4,*ak5,*ak6,*ytemp;<br />

ak2=vector(1,n);<br />

ak3=vector(1,n);<br />

ak4=vector(1,n);<br />

ak5=vector(1,n);<br />

ak6=vector(1,n);<br />

ytemp=vector(1,n);<br />

for (i=1;i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!