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
CopySign - return x with the sign of y
Calling Sequence
CopySign(x, y)
Parameters
x
-
numeric type
y
Description
The CopySign(x, y) function returns x with its sign changed to that of y. No multiplication is performed on x if its sign is changed in the result.
If x is real, abs(x) = CopySign(x,1) and the sign of x can be obtained by using CopySign(1,x).
If x is undefined, CopySign(x,y) returns x and no event is signaled.
If y is real, CopySign maps onto complex numerics. If y is unordered with 0 but it is not a real undefined, an invalid_operation event is signaled.
If y is a real undefined (i.e., y is undefined or Float(undefined)), CopySign(x,y) returns y*x and no event is signaled (unless a prior rule applies).
If symbolic data is used in the calling sequence, this function returns unevaluated.
Thread Safety
The CopySign command is thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
Examples
See Also
exceptions, float, numeric_types
Download Help Document