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
Scale10 - scale a number by a power of 10
Scale2 - scale a number by a power of 2
Calling Sequence
Scale10(x, N)
Scale2(x, N)
Parameters
x
-
numeric type
N
integer
Description
The Scale10(x, N) function returns x * 10^N.
The operation is carried out in the computation domain determined by x, and the result is a member of this computation domain. The UseHardwareFloats mode is not checked.
This function can signal either overflow or underflow.
If x is undefined, the result is x. If N is undefined, the result is undefined in the computation domain of x.
If x is a software floating-point number, Scale10(x,N) just adds N to the exponent of x (that is, no multiplication is required).
The Scale2(x, N) function returns x * 2^N.
For special values, Scale2 returns the following results. Similar results are returned in the case of Scale10.
1. Scale2(undefined, N) = undefined
the input undefined
2. Scale2(x, undefined) = undefined
in the domain of x
3. Scale2(0, infinity) = undefined
in the domain of the first argument; signals Invalid
4. Scale2(x, infinity) = sgn(x)*infinity
no signal
5. Scale2(+-infinity, -infinity) = undefined
6. Scale2(+-infinity, N) = +-infinity
7. Scale2(x, -infinity) = sgn(x)*0
the 0 of the domain of x; no signal
Thread Safety
The Scale10 and Scale2 commands are thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
Examples
See Also
exceptions, float, ilog10, ilog2, numeric_types
Download Help Document