Albert Einstein is the scientific genius that the world worships whether they understand his works or not. The change in perspective he brought is so mind boggling that it’s difficult to believe that he is actually a human. But, he is truly a human and the book The World as I see it is a proof of that.Today’s learning can be split mainly into the following two sections.
I/O Formatting The formatting string in fortran is passed as a string to print or write statements.
1 2 3 4 character(len=10) :: fmt_str fmt_str = '(*(i3))' print fmt_str, 900 write (*, fmt_str) 900 The following formats are availableContinuing with the lessons on fortran, the following stuff were covered today.
Procedures in detail Intents: A fortran function’s parameters may have three possible intents
in out inout 1 2 3 4 5 6 function one(x) result (y) real, intent(inout) :: x(:) logical :: y x = 1.Today has been the beginning of Week 2 in Fortran for scientific Computing course. This had the introduction to arrays, mainly, along with elemental procedures. A word or two were mentioned about “pure functions” but those remain a mystery for now. But, here are some highlights.Today, I found this amazing site for Fortran tutorials - https://masuday.github.io/fortran_tutorial/index.html
I went through the tutorials which was organized in a very neat way. Then I proceeded to implement the following simple code.
Make a tridiagonal matrix with 1 on diagonal and 0 or on off-diagonal with an arbitrary $n$.