Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
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