100 Days of Code Log R1D6

Today had been two part work. Initially, I did some Data Structures lessons from Udacity course. Then, at night, I tried to implement the Single objective optimisation method called fibonacci method using Fortran. There is some mistake that I need to correct. I will share the updated code tmw.

100 Days of Code Log R1D5

Today I was able to cover a lot of stuff - mainly the exercises and some Gnuplot basics. I’ve already made a blog post on the first exercise I worked on - Generate Logistic Map in Fortran. It was fun. Also, later I took a look at the solution available at the mooc’s repository.

Generate Logistic Map in Fortran

I had been following the MOOC “Scientific Computing with Fortran” for a week and currently doing the exercises. This is one of the assignments which has piqued my interests - Logistic map. Here’s a neat animation from Wikimedia for the same. As Wikipedia states it, “The logistic map is a polynomial mapping (equivalently, recurrence relation) of degree 2, often cited as an archetypal example of how complex, chaotic behaviour can arise from very simple non-linear dynamical equations”.

100 Days of Code Log R1D4

Today, I was introduced to I/O in Fortran. Its a little complex for seemingly simple task. But, its good to have all the bells and whistles known upfront. Here is a sample program on input output. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 program inputoutput use, intrinsic :: iso_fortran_env, only : sp=>real32, dp=>real64, error_unit, input_unit implicit none integer :: unit_nr, istat integer :: a, b character(len=1024) :: msg !

100 Days of Code Log R1D3

Today I had learnt about the procedures and intrinsic procedures in Fortran. Basically, a procedure can be of two types function subroutine Functions The functions are procedures which return a value which can either be Given the same name as function name in which case the syntax will be.