Branching: if-then-else and case
Christopher Creutzig and
Walter Oevel
Additional contact information
Christopher Creutzig: Universität Paderborn, Fakultät EIM-M
Walter Oevel: SciFace Software GmbH & Co.KG
Chapter 17 in MuPAD Tutorial, 2004, pp 295-300 from Springer
Abstract:
Abstract Branching instructions are an important element of every programming language. Depending on the value or the meaning of variables, different commands are executed. The simplest variant in MuPAD is the if statement:» for i from 2 to 4 do if isprime(i) then print(expr2text(i).″ is prime″) else print(expr2text(i).″ is not prime″) end_if end_for: ″2 is prime″ ″3 is prime″ ″4 is not prime″
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-59304-8_17
Ordering information: This item can be ordered from
http://www.springer.com/9783642593048
DOI: 10.1007/978-3-642-59304-8_17
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 ().