Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Sign (mathematics)

From Wikipedia, the free encyclopedia
(Redirected fromNon-negative)
Number property of being positive or negative
Not to be confused withsine function in trigonometry.For symbols named "... sign", seeList of mathematical symbols."Positive and negative" redirects here. For other uses, seePositive and negative (disambiguation).
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Sign" mathematics – news ·newspapers ·books ·scholar ·JSTOR
(August 2020) (Learn how and when to remove this message)
Theplus and minus symbols are used to show the sign of a number.

Inmathematics, thesign of areal number is its property of being either positive,negative, or0. Depending on local conventions, zero may be considered as having its own unique sign, having no sign, or having both positive and negative sign. In some contexts, it makes sense to distinguish betweena positive and a negative zero.

In mathematics and physics, the phrase "change of sign" is associated with exchanging an object for itsadditive inverse (multiplication with−1, negation), an operation which is not restricted to real numbers. It applies among other objects to vectors, matrices, and complex numbers, which are not prescribed to be only either positive, negative, or zero.

The word "sign" is also often used to indicate binary aspects of mathematical or scientific objects, such as odd and even (sign of a permutation), sense oforientation or rotation (cw/ccw),one sided limits, and other concepts described in§ Other meanings below.

Sign of a number

[edit]

Numbers from various number systems, likeintegers,rationals,complex numbers,quaternions,octonions, ... may have multiple attributes, that fix certain properties of a number. A number system that bears the structure of anordered ring contains a unique number that when added with any number leaves the latter unchanged. This unique number is known as the system's additiveidentity element. For example, the integers has the structure of an ordered ring. This number is generally denoted as0. Because of thetotal order in this ring, there are numbers greater than zero, called thepositive numbers. Another property required for a ring to be ordered is that, for each positive number, there exists a unique corresponding number less than0 whose sum with the original positive number is0. These numbers less than0 are called thenegative numbers. The numbers in each such pair are their respectiveadditive inverses. This attribute of a number, being exclusively eitherzero(0),positive(+), ornegative(−), is called itssign, and is often encoded to the real numbers0,1, and−1, respectively (similar to the way thesign function is defined).[1] Since rational and real numbers are also ordered rings (in fact orderedfields), thesign attribute also applies to these number systems.

When a minus sign is used in between two numbers, it represents the binary operation of subtraction. When a minus sign is written before a single number, it represents theunary operation of yielding theadditive inverse (sometimes callednegation) of the operand. Abstractly then, the difference of two number is the sum of the minuend with the additive inverse of the subtrahend. While0 is its own additive inverse (−0 = 0), the additive inverse of a positive number is negative, and the additive inverse of a negative number is positive. A double application of this operation is written as−(−3) = 3. The plus sign is predominantly used in algebra to denote the binary operation of addition, and only rarely to emphasize the positivity of an expression.

In commonnumeral notation (used inarithmetic and elsewhere), the sign of a number is often made explicit by placinga plus or a minus sign before the number. For example,+3 denotes "positive three", and−3 denotes "negative three" (algebraically: the additive inverse of3). Without specific context (or when no explicit sign is given), a number is interpreted per default as positive. This notation establishes a strong association of the minus sign "" with negative numbers, and the plus sign "+" with positive numbers.

Sign of zero

[edit]

Within the convention ofzero being neither positive nor negative, a specific sign-value0 may be assigned to the number value0. This is exploited in thesgn{\displaystyle \operatorname {sgn} }-function, as defined for real numbers.[1] In arithmetic,+0 and−0 both denote the same number0. There is generally no danger of confusing the value with its sign, although the convention of assigning both signs to0 does not immediately allow for this discrimination.

In certain European countries, e.g. in Belgium and France,0 is considered to beboth positive and negative following the convention set forth byNicolas Bourbaki.[2]

In some contexts, such asfloating-point representations of real numbers within computers, it is useful to consider signed versions of zero, withsigned zeros referring to different, discrete number representations (seesigned number representations for more).

The symbols+0 and−0 rarely appear as substitutes for0+ and0, used incalculus andmathematical analysis forone-sided limits (right-sided limit and left-sided limit, respectively). This notation refers to the behaviour of a function as its real input variable approaches0 along positive (resp., negative) values; the two limits need not exist or agree.

Terminology for signs

[edit]

When0 is said to be neither positive nor negative, the following phrases may refer to the sign of a number:

  • A number ispositive if it is greater than zero.
  • A number isnegative if it is less than zero.
  • A number isnon-negative if it is greater than or equal to zero.
  • A number isnon-positive if it is less than or equal to zero.

When0 is said to be both positive and negative,[2][verification needed] modified phrases are used to refer to the sign of a number:

  • A number isstrictly positive if it is greater than zero.
  • A number isstrictly negative if it is less than zero.
  • A number ispositive if it is greater than or equal to zero.
  • A number isnegative if it is less than or equal to zero.

For example, theabsolute value of a real number is always "non-negative", but is not necessarily "positive" in the first interpretation, whereas in the second interpretation, it is called "positive"—though not necessarily "strictly positive".

The same terminology is sometimes used forfunctions that yield real or other signed values. For example, a function would be called apositive function if its values are positive for all arguments of its domain, or anon-negative function if all of its values are non-negative.

Complex numbers

[edit]

Complex numbers are impossible to order, so they cannot carry the structure of an ordered ring, and, accordingly, cannot be partitioned into positive and negative complex numbers. They do, however, share an attribute with the reals, which is calledabsolute value ormagnitude. Magnitudes are always non-negative real numbers, and to any non-zero number there belongs a positive real number, itsabsolute value.

For example, the absolute value of−3 and the absolute value of3 are both equal to3. This is written in symbols as|−3| = 3 and|3| = 3.

In general, any arbitrary real value can be specified by its magnitude and its sign. Using the standard encoding, any real value is given by the product of the magnitude and the sign in standard encoding. This relation can be generalized to define asign for complex numbers.

Since the real and complex numbers both form a field and contain the positive reals, they also contain the reciprocals of the magnitudes of all non-zero numbers. This means that any non-zero number may be multiplied with the reciprocal of its magnitude, that is, divided by its magnitude. It is immediate that the quotient of any non-zero real number by its magnitude yields exactly its sign. By analogy, thesign of a complex numberz can be defined as the quotientofz and itsmagnitude|z|. The sign of a complex number is the exponential of the product of its argument with the imaginary unit. represents in some sense its complex argument. This is to be compared to the sign of real numbers, except witheiπ=1.{\displaystyle e^{i\pi }=-1.} For the definition of a complex sign-function. see§ Complex sign function below.

Sign functions

[edit]
Real sign functiony = sgn(x)
Main article:sign function

When dealing with numbers, it is often convenient to have their sign available as a number. This is accomplished by functions that extract the sign of any number, and map it to a predefined value before making it available for further calculations. For example, it might be advantageous to formulate an intricate algorithm for positive values only, and take care of the sign only afterwards.

Real sign function

[edit]

Thesign function orsignum function extracts the sign of a real number, by mapping the set of real numbers to the set of the three reals{1,0,1}.{\displaystyle \{-1,\;0,\;1\}.} It can be defined as follows:[1]sgn:R{1,0,1}xsgn(x)={1if x<0,  0if x=0,  1if x>0.{\displaystyle {\begin{aligned}\operatorname {sgn} :{}&\mathbb {R} \to \{-1,0,1\}\\&x\mapsto \operatorname {sgn}(x)={\begin{cases}-1&{\text{if }}x<0,\\~~\,0&{\text{if }}x=0,\\~~\,1&{\text{if }}x>0.\end{cases}}\end{aligned}}}Thussgn(x) is 1 whenx is positive, andsgn(x) is −1 whenx is negative. For non-zero values ofx, this function can also be defined by the formulasgn(x)=x|x|=|x|x,{\displaystyle \operatorname {sgn}(x)={\frac {x}{|x|}}={\frac {|x|}{x}},}where|x| is theabsolute value ofx.

Complex sign function

[edit]

While a real number has a 1-dimensional direction, a complex number has a 2-dimensional direction. The complex sign function requires themagnitude of its argumentz =x +iy, which can be calculated as|z|=zz¯=x2+y2.{\displaystyle |z|={\sqrt {z{\bar {z}}}}={\sqrt {x^{2}+y^{2}}}.}

Analogous to above, thecomplex sign function extracts the complex sign of a complex number by mapping the set of non-zero complex numbers to the set of unimodular complex numbers, and0 to0:{zC:|z|=1}{0}.{\displaystyle \{z\in \mathbb {C} :|z|=1\}\cup \{0\}.} It may be defined as follows:

Letz be also expressed by its magnitude and one of its argumentsφ asz = |z|⋅e, then[3]sgn(z)={0for z=0z|z|=eiφotherwise.{\displaystyle \operatorname {sgn}(z)={\begin{cases}0&{\text{for }}z=0\\{\dfrac {z}{|z|}}=e^{i\varphi }&{\text{otherwise}}.\end{cases}}}

This definition may also be recognized as a normalized vector, that is, a vector whose direction is unchanged, and whose length is fixed tounity. If the original value was R,θ in polar form, then sign(R, θ) is 1 θ. Extension of sign() or signum() to any number of dimensions is obvious, but this has already been defined as normalizing a vector.

Signs per convention

[edit]
Main article:Sign convention

In situations where there are exactly two possibilities on equal footing for an attribute, these are often labelled by convention asplus andminus, respectively. In some contexts, the choice of this assignment (i.e., which range of values is considered positive and which negative) is natural, whereas in other contexts, the choice is arbitrary, making an explicit sign convention necessary, the only requirement being consistent use of the convention.

Sign of an angle

[edit]
Main article:Angle § Sign
Measuring from thex-axis, angles on theunit circle count as positive in thecounterclockwise direction, and negative in theclockwise direction.

In many contexts, it is common to associate a sign with the measure of anangle, particularly an oriented angle or anangle of rotation. In such a situation, the sign indicates whether the angle is in theclockwise or counterclockwise direction. Though different conventions can be used, it is common inmathematics to have counterclockwise angles count as positive, and clockwise angles count as negative.[4]

It is also possible to associate a sign to an angle of rotation in three dimensions, assuming that theaxis of rotation has been oriented. Specifically, aright-handed rotation around an oriented axis typically counts as positive, while a left-handed rotation counts as negative.

An angle which is the negative of a given angle has an equal arc, but theopposite axis.[5]

Sign of a change

[edit]

When a quantityx changes over time, thechange in the value ofx is typically defined by the equationΔx=xfinalxinitial.{\displaystyle \Delta x=x_{\text{final}}-x_{\text{initial}}.}

Using this convention, an increase inx counts as positive change, while a decrease ofx counts as negative change. Incalculus, this same convention is used in the definition of thederivative. As a result, anyincreasing function has positive derivative, while any decreasing function has negative derivative.

Sign of a direction

[edit]

When studying one-dimensionaldisplacements andmotions inanalytic geometry andphysics, it is common to label the two possibledirections as positive and negative. Because thenumber line is usually drawn with positive numbers to the right, and negative numbers to the left, a common convention is for motions to the right to be given a positive sign, and for motions to the left to be given a negative sign.

On theCartesian plane, the rightward and upward directions are usually thought of as positive, with rightward being the positivex-direction, and upward being the positivey-direction. If a displacementvector is separated into itsvector components, then the horizontal part will be positive for motion to the right and negative for motion to the left, while the vertical part will be positive for motion upward and negative for motion downward.

Likewise, a negativespeed (rate of change of displacement) implies avelocity in theopposite direction, i.e., receding instead of advancing; a special case is theradial speed.

In3D space, notions related to sign can be found in the twonormal orientations andorientability in general.

Signedness in computing

[edit]
most-significant bit
01111111=127
01111110=126
00000010=2
00000001=1
00000000=0
11111111=−1
11111110=−2
10000001=−127
10000000=−128
Most computers usetwo's complement to represent the sign of an integer.
Main article:Signedness

Incomputing, an integer value may be either signed or unsigned, depending on whether the computer is keeping track of a sign for the number. By restricting an integervariable to non-negative values only, one morebit can be used for storing the value of a number. Because of the way integer arithmetic is done within computers,signed number representations usually do not store the sign as a single independent bit, instead using e.g.two's complement.

In contrast, real numbers are stored and manipulated asfloating point values. The floating point values are represented using three separate values, mantissa, exponent, and sign. Given this separate sign bit, it is possible to represent both positive and negative zero. Most programming languages normally treat positive zero and negative zero as equivalent values, albeit, they provide means by which the distinction can be detected.

Other meanings

[edit]
Electric charge may be positive or negative.

In addition to the sign of a real number, the word sign is also used in various related ways throughout mathematics and other sciences:

  • Wordsup to sign mean that, for a quantityq, it is known that eitherq =Q orq = −Q for certainQ. It is often expressed asq =±Q. For real numbers, it means that only theabsolute value|q| of the quantity is known. Forcomplex numbers andvectors, a quantity known up to sign is a stronger condition than a quantity with knownmagnitude: asideQ andQ, there are many other possible values ofq such that|q| = |Q|.
  • Thesign of a permutation is defined to be positive if the permutation is even, and negative if the permutation is odd.
  • Ingraph theory, asigned graph is a graph in which each edge has been marked with a positive or negative sign.
  • Inmathematical analysis, asigned measure is a generalization of the concept ofmeasure in which the measure of a set may have positive or negative values.
    • The concept ofsigned distance is used to conveyside, inside or out.
    • The ideas ofsigned area andsigned volume are sometimes used when it is convenient for certain areas or volumes to count as negative. This is particularly true in the theory ofdeterminants. In an (abstract)oriented vector space, each ordered basis for the vector space can be classified as either positively or negatively oriented.
  • In asigned-digit representation, each digit of a number may have a positive or negative sign.
  • Inphysics, anyelectric charge comes with a sign, either positive or negative. By convention, a positive charge is a charge with the same sign as that of aproton, and a negative charge is a charge with the same sign as that of anelectron.

See also

[edit]

References

[edit]
  1. ^abcWeisstein, Eric W."Sign".mathworld.wolfram.com. Retrieved2020-08-26.
  2. ^abBourbaki, Nicolas.Éléments de mathématique: Algèbre. p. A VI.4..
  3. ^"SignumFunction".www.cs.cas.cz. Retrieved2020-08-26.
  4. ^"Sign of Angles | What is An Angle? | Positive Angle | Negative Angle".Math Only Math. Retrieved2020-08-26.
  5. ^Alexander Macfarlane (1894) "Fundamental theorems of analysis generalized for space", page 3,link via Internet Archive
Retrieved from "https://en.wikipedia.org/w/index.php?title=Sign_(mathematics)&oldid=1336215445#non-negative_and_non-positive"
Category:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp