Programming in MuPAD - Procedures

Author First name, Last name, Institution

Miroslaw Majewski

Document Type

Book Chapter

Source of Publication

MuPAD Pro Computing Essentials

Publication Date

1-1-2004

Abstract

When working with MuPAD, we often deal with situations where the same piece of code will be reused in many parts of our notebook. For example, the code used to solve quadratic equations in the previous chapter could be used to solve many different equations. The major question that arises, then, is whether we will have to type in or copy and paste the quadratic equation code every time we need to use it. Imagine a student having to solve ten or more quadratic equations. Will he need to put the same code in ten different places in his notebook? Certainly, that would look silly. There are much more efficient methods to do it. Do you remember how we declared functions in MuPAD? We had to develop a single declaration for a function and then, every time we needed it, we simply called its name. Like this:

Publisher

Springer Berlin Heidelberg

First Page

75

Last Page

135

Disciplines

Computer Sciences

Indexed in Scopus

no

Open Access

no

Share

COinS