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
ScientificErrorAnalysis[AddRule] - add a new rounding rule
Calling Sequence
AddRule( name = action, opts )
Parameters
name
-
symbol; name of the new rule
action
procedure
opts
(optional) equation of the form check= true or false; allows overwrite of existing rule
Description
The AddRule( name=action, opts ) command adds a new rule to the collection of rounding rules available to the ScientificErrorAnalysis package for the current session.
To add a rule to all future Maple sessions, add the AddRule command to your Maple initialization file. For more information, see Create Maple Initialization File.
The name argument is a Maple symbol that specifies the name of the new rule.
If check=true, the name of the new rule cannot be the same as that of an existing rule. The default value of check is true. If check=false, the name of the new rule can be the same as that of an existing rule, in which case the existing rule is overwritten.
The rule 'digits' cannot be added nor overwritten.
The action argument is a procedure that specifies a new rounding rule.
The action procedure must accept two arguments where is understood to be the central value of a quantity-with-error and is its absolute uncertainty. The procedure must return an expression sequence of two values where is the central value of the rounded quantity-with-error and is its absolute uncertainty.
The action procedure can also accept an index (for example, an integer specifying a number of digits), which is detected and accessed in the usual way. That is, when a procedure is assigned to a symbol, calling the procedure with an index on the symbol can be detected by observing the index on procname, and the index can be accessed by .
The action procedure can be written to check for an index, perhaps accept a default, or ignore any index. It can throw an error in unacceptable cases. Such an error is triggered if the rule indexing is unacceptably specified in a rule=name option to another function, or unacceptably specified in the UseRule function.
For more information on predefined rules in ScientificErrorAnalysis, see Predefined Rounding Rules.
Examples
See Also
Create Maple Initialization File, op, Rounding rules, ScientificErrorAnalysis, ScientificErrorAnalysis[ApplyRule], ScientificErrorAnalysis[GetRule], ScientificErrorAnalysis[GetRules], ScientificErrorAnalysis[HasRule], ScientificErrorAnalysis[Quantity], ScientificErrorAnalysis[UseRule]
Download Help Document