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
Units[Converter][AddUnit] - add a unit to or modify a unit in the Unit Converter
Calling Sequence
AddUnit(unit, opts)
Parameters
unit
-
symbol; unit name
opts
equation(s) of the form option=value where option is one of 'display', 'default', or 'make'; specify options for the unit
Description
The AddUnit(unit, opts) function adds a new unit to or modifies options of an existing unit in the Unit Converter.
If the dimension corresponding to unit is not in the Unit Converter, the command Units[Converter][AddDimension](convert(unit, 'dimensions', 'base')) is executed automatically.
This procedure accepts symbols and variations in spelling. For example, , meters/second, and metre/second represent the same unit in the Unit Converter.
You describe the options of the unit by using the optional arguments. The opts argument can contain one or more of the following equations.
'display'=string
This option gives the text that appears in the drop-down boxes in the Unit Converter dialog box. If this option is not given, the entry is unit.
'default'=From, To, or a set of these
This option specifies whether the unit appears as the default unit in the From: or To: drop-down box when the corresponding dimension is selected in the Unit Converter dialog box.
'make'=truefalse
This option specifies whether the conversion tables are rebuilt after the unit has been added to the Unit Converter. By default, this option is set to true. If or more dimensions or units are being added to or removed from the Unit Converter in the same execution group, it is recommended that you execute the Units[Converter][MakeConverter]() calling sequence afterward.
Examples
Change the spelling in the text of 'centimeters per second'
Set the already existing unit of kilowatt hour as the default 'From' unit
See Also
Units, Units/Converter, Units[AddUnit], Units[Converter][AddDimension], Units[Converter][GetUnit], Units[Converter][GetUnits], Units[Converter][HasUnit], Units[Converter][MakeConverter], Units[Converter][RemoveUnit]
Download Help Document