Last active
May 21, 2020 02:19
-
-
Save ismaeldamiao/890367569c152c890e1fcf59ab92ab0e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGRAM plotar | |
IMPLICIT none | |
REAL(8) :: x, y, theta = 0.0d0, dt = 0.01d0 | |
INTEGER, PARAMETER :: arquivo = 10 | |
OPEN(arquivo, FILE="pontos.dat") | |
DO; IF(theta > 2.0d0 * 3.1415d0) EXIT | |
x = 2.0d0 * cos(2.0d0 * theta) * cos(theta) | |
y = 2.0d0 * cos(2.0d0 * theta) * sin(theta) | |
WRITE(arquivo, FMT=*) x, y | |
theta = theta + dt | |
END DO | |
CLOSE(arquivo) | |
END PROGRAM plotar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment