Programming

You are currently browsing the archive for the Programming category.

This is based off of the misterioso color theme in Emacs. It’s predominantly blue/cyan faces on a dark cyan background.

Here are my color theme settings in Matlab.

Read the rest of this entry »

Tags: ,

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: ,