Questions tagged as 'fortran'

2
answers

A Good Fortran Random Number Generator

The FORTRAN GNA (rand ()) seems to be bad, this is because it is proved to be worse than very simple random number generators. For example, in my simulations the GNA below SUBROUTINE GNA(iiseed) USE Variaveis parameter (ia=843314861,ib=4538166...
asked by 22.10.2015 / 01:30
1
answer

Error in averaging from inmet data using a Fortran program

I'm starting in Fortran, and I set up the following program to get the 4th column of data from an INMET data file. The calculated mean being 0 (zero). Could someone tell me where the error is in the program? program inmet implicit none integ...
asked by 22.08.2018 / 21:15
1
answer

Read files with ";" in FORTRAN

I'm trying to read an array, but it gets error because the data is separated by ";" such as: //EstacaoCodigo;NivelConsistencia;Data;Hora;MediaDiaria;MetodoObtencaoVazoes;Maxima;Minima;Media;DiaMaxima;DiaMinima;MaximaStatus;MinimaStatus;MediaSt...
asked by 21.01.2016 / 22:55
1
answer

Interoperability FORTRAN and C

Each language has a characteristic that makes it unique, this is fact! However, how do you work with code C in FORTRAN and vice versa? Is it possible to insert the code FORTRAN into C with the # include <>...
asked by 06.06.2015 / 19:35
1
answer

Fortran Variables 77

I took a code in fortran 77 where it has a line like this: DATA ZERO/0D0/,HALF/0.5D0/,ONE/1D0/,TWO/2D0/,THREE/3D0/,FOUR/4D0/ I'm transponder it to PHP. I would like to know what D0 are after assigning the values? Here - > ZERO / 0 D0...
asked by 26.10.2018 / 21:12
1
answer

Read files with ";" in FORTRAN

I'm trying to read an array, but it gets error because the data is separated by ";" such as: //EstacaoCodigo;NivelConsistencia;Data;Hora;MediaDiaria;MetodoObtencaoVazoes;Maxima;Minima;Media;DiaMaxima;DiaMinima;MaximaStatus;MinimaStatus;MediaSt...
asked by 21.01.2016 / 22:55
0
answers

How to do python only read the file when it is complete

I'm doing a program that reads a .txt file that updates itself in the execution of another program in fortran and creates a real-time animation of the temperature map of a board, however it is giving an error because the fortran is updating the...
asked by 31.08.2018 / 15:29
2
answers

Method of finding roots of a function in Fortran

I have created a code that uses 3 methods to determine the roots of a function, the direct method of kicking values of x, Newton-Raphson and secants. In the direct method, I set values of x close to the roots, and I used the while to add increme...
asked by 29.04.2017 / 23:13
0
answers

How do I run fortran from matlab?

I need to run a fortran file from matlab. What is the best compiler when I use windows What are the steps to create an executable file. Thanks for the help,     
asked by 04.06.2016 / 14:37
1
answer

What is the Fortran language used for? [closed]

On what occasions are the Fortran language used today? What is your strength and purpose?     
asked by 10.10.2018 / 17:04