Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
csgn - sign function for real and complex expressions
Calling Sequence
csgn(x)
csgn(1, x)
csgn(0, x, y)
Parameters
x
-
any algebraic expression
y
Description
The csgn function is used to determine in which half-plane ("left" or "right") the complex-valued expression or number x lies. It is defined by
The value of csgn(0) is controlled by the environment variable _Envsignum0. The 3-argument calling sequence csgn(0, x, y) sets _Envsignum0 = y for the duration of the call to csgn. See signum for further information.
The decision of whether or not to perform many of the automatic symmetry transformations in maple is based on the value of csgn. For example, if csgn(x) = -1, the transformation is done.
csgn uses signum to determine the signs of and .
The derivative of csgn is denoted by csgn(1, x). This is 0 for all non-purely-imaginary numbers, and is undefined otherwise.
For mathematical consistency, the value of csgn(0), as determined either by the value of _Envsignum0 or by the third argument to csgn, should be either 0 (the default) or one of 1, -1, or undefined.
Examples
See Also
assume, evalc, initialfunctions, sign, signum
Download Help Document