Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
The Constant FAIL
Description
FAIL is a simple name in Maple which has several special properties.
FAIL is used by the boolean logic to mean an unknown or undetermined value. When used inside boolean expressions with and, or and not, it behaves like standard 3-valued logic.
Many functions return FAIL when they are unable to compute. For example, is, testeq, etc. will return FAIL when it cannot be determined with certainty whether the value is true or false.
As a boolean condition in an if or while statement or `if` expression, a FAIL has the same effect as a false. I.e. the if will take the else branch and the while will stop the iteration. Notice that when a FAIL value is possible, then
if expr then a else b end if;
is not equivalent to
if not expr then b else a end if;
Arithmetic with FAIL is valid but limited, and the value of FAIL is contagious over the basic arithmetic operations. In other words, expressions such as 2 + FAIL, FAIL - FAIL and FAIL/FAIL will all return FAIL.
Examples
See Also
boolean, initialconstants
Download Help Document