Fortran Converting equations to Fortran code

  • Thread starter Thread starter jf22901
  • Start date Start date
  • Tags Tags
    Code Fortran
AI Thread Summary
The discussion centers on the transition from theoretical mathematics to practical programming for solving initial and boundary value problems. The individual seeks resources that provide comprehensive explanations and examples of numerical methods, specifically looking for insights into the coding process and the rationale behind method selection, rather than just pre-written codes. Recommendations highlight that many numerical analysis books include sample programs and tutorials that simplify the programming of mathematical problems, such as using loops in FORTRAN to calculate areas under curves. Emphasis is placed on understanding the underlying principles of numerical methods like Euler’s and Runge-Kutta, along with the importance of step size in achieving accuracy.
jf22901
Messages
55
Reaction score
1
Hi everyone

I've been doing maths for quite a while now, but have never done any programming until recently. What I'm finding difficult is how you go from an initial value/boundary value problem on a bit of paper to a piece of code that will approximate the equation. I've done a bit of book work on numerical methods (Euler’s midpoint/trapezoidal methods, Runge–Kutta methods) so understand the basics, but would like a more thorough knowledge.

Can anyone suggest any good sites/documents/books that give examples or explanations? Searching online brings up loads of pre-prepared Fortran codes to solve all sorts of things, but I want to know how these codes were created, why they chose the methods they did etc.

Thanks very much in advance. :smile:
 
Technology news on Phys.org
Most numerical analysis books offer pretty easy sample programs and tutorials on how to program those exact problems. Finding the area under the curve via an integral is simply a do-loop in FORTRAN. If you narrow your step size, you should get a reasonably accurate result.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

Replies
9
Views
2K
Replies
8
Views
2K
Replies
2
Views
2K
Replies
4
Views
17K
Replies
13
Views
4K
Replies
34
Views
4K
Replies
54
Views
5K
Back
Top