Source: https://www3.nd.edu/~atassi/Teaching/AME%2060633/Notes/Octave.pdf