EconPapers    
Economics at your fingertips  
 

Programming in MuPAD — Control Structures

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

Chapter Chapter 4 in MuPAD Pro Computing Essentials, 2004, pp 45-74 from Springer

Abstract: Abstract In the previous chapter we started talking about programming in MuPAD. However, so far we haven’t written anything that would deserve to be called a program. Well, perhaps these four lines can be called a program: \begin{gathered} \cdot x : = 12: \hfill \\ y : = x + 2: \hfill \\ u : = x/y*3: \hfill \\ z : = x\^2 + y \^ (x + y + 1) + 1/u \hfill \\ \end{gathered} $$ Of course, we cannot do too much with just the assignment operator:= and selected arithmetical operations. In this chapter, I will show you the most important MuPAD control structures. You will learn how to implement decisions in MuPAD programs, how to program iterations and finally how to program situations with multiple choices. This is our goal for the next few pages. Let us begin with decisions.

Keywords: Control Structure; Arithmetic Progression; Error Message; Decimal Number; Assignment Operator (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_4

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

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

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-01
Handle: RePEc:spr:sprchp:978-3-642-18760-5_4