Verzweigungen: if-then-else und case
Christopher Creutzig,
Kai Gehrs and
Walter Oevel
Additional contact information
Christopher Creutzig: Universität Paderborn, Fakultät EIM-M
Kai Gehrs: Universität Paderborn, Fakultät EIM-M
Walter Oevel: SciFace Software GmbH & Co.KG
Chapter 17 in Das MuPAD Tutorium, 2004, pp 315-320 from Springer
Abstract:
Zusammenfassung Ein wichtiges Element einer Programmiersprache sind so genannte Verzweigungen, wo je nach Wert oder Bedeutung von Variablen unterschiedliche Befehle auszuführen sind. MuPAD stellt dazu als einfachste Variante ein if-Konstrukt zur Verfügung: >> for i from 2 to 4 do if isprime(i) then print(expr2text(i).“ ist eine Primzahl”) else print(expr2text(i).“ ist keine Primzahl”) end_if end_for: “2 ist eine Primzahl” “3 ist eine Primzahl” “4 ist keine Primzahl”
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-59306-2_17
Ordering information: This item can be ordered from
http://www.springer.com/9783642593062
DOI: 10.1007/978-3-642-59306-2_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 ().