This is my first day in the 100 Days of Code challenge. Today, I had started with the “Fortran for Scientific Computing” course in Future Learn. It had been a great start.
I had learnt about the precision available in fortran for various number data types. For example, the follow program deals with the single and double precision for real numbers.
|
|
It gives out the following result when compiled(gfortran -0 sqrt_2 sqrt_2.f90
) and run(./sqrt_2
).
1.41421354 1.41421354
T
F
F
2.0000000000000004
1.99999988
1.1920928999487046E-007
Next, I’ll be looking into the strings and related operations in Fortran.