(adsbygoogle = window.adsbygoogle || []).push({});

I have the code.

What should I put as Ax and Ay??Code (Text):

program star

implicit none

real (kind=8) :: x

integer :: i

dt=0.001

pi=4*(atan1.0)

do i=1, Nsteps

t = n*dt

!calculate acceleration

ax=

ay=...

!calculate values at next step

vy=vy+ay*dt

vx=vx+ax*dt

x=x+vx*dt

y=y+vy*dt

end do

print *, "vx= ", vx

end program star

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Machine Problem in Fortran 90

**Physics Forums | Science Articles, Homework Help, Discussion**