EconPapers    
Economics at your fingertips  
 

Programming in MuPAD — Procedures

Miroslaw Majewski
Additional contact information
Miroslaw Majewski: Zayed University, College of Information Systems

Chapter Chapter 5 in MuPAD Pro Computing Essentials, 2004, pp 75-135 from Springer

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

Keywords: Input Parameter; Quadratic Equation; Global Variable; Magic Number; Error Message (search for similar items in EconPapers)
Date: 2004
References: Add references at CitEc
Citations:

There are no downloads for this item, see the EconPapers FAQ for hints about obtaining it.

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:spr:sprchp:978-3-642-18760-5_5

Ordering information: This item can be ordered from
http://www.springer.com/9783642187605

DOI: 10.1007/978-3-642-18760-5_5

Access Statistics for this chapter

More chapters in Springer Books from Springer
Bibliographic data for series maintained by Sonal Shukla () and Springer Nature Abstracting and Indexing ().

 
Page updated 2026-06-19
Handle: RePEc:spr:sprchp:978-3-642-18760-5_5