- #1
nard
- 16
- 0
can somebody help me on writting a program that displays yo
to yn+1 when n=100 and store them in a file.
y"=cos(t)*y+y
y(0)=1
y'(0)=0
h=0.1
y'=z
z'=z'*cos(t)+y
yn+1=zn+h*zn*(cos(tn))+yn)
tn=t+nh
to yn+1 when n=100 and store them in a file.
y"=cos(t)*y+y
y(0)=1
y'(0)=0
h=0.1
y'=z
z'=z'*cos(t)+y
yn+1=zn+h*zn*(cos(tn))+yn)
tn=t+nh