Fortran

You are currently browsing articles tagged Fortran.

Introduction

The factorial of n, n!, is given by

    \[n! = \begin{cases} n \times (n-1) \times (n-2) \times \cdots \times 2 \times 1, & \text{if } n = 1, 2, 3, \ldots; \\ 1, & \text{if } n = 0. \end{cases}\]

In Fortran, there is no intrinsic function for factorial, so we must write our own.

Read the rest of this entry »

Tags:

These notes were developed as I was learning how to program in Fortran 90. Matlab is a great scripting language; however, when you need to do a lot of numerical computations, nothing beats Fortran (or C).

Read the rest of this entry »

Tags: ,