🌐
Unacademy
unacademy.com › question & answer › mathematics questions › is modulus always positive?
Is Modulus Always Positive?
August 26, 2022 - The value of the modulus of any number, regardless of what that number is, is always positive.
computational operation
In computing and mathematics, the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another, the latter being called the modulus of the operation. … Wikipedia
🌐
Wikipedia
en.wikipedia.org › wiki › Modulo
Modulo - Wikipedia
3 weeks ago - This still leaves a sign ambiguity ... determines which of the two consecutive quotients must be used to satisfy equation (1). In number theory, the positive remainder is always chosen, but in computing, programming languages choose depending on the language and the signs of ...
Discussions

modular arithmetic - Can modulus be negative? - Mathematics Stack Exchange
For example, if I compute $18 \bmod 5$, the result will be $3$. This will be because of $5\cdot3+3=18$, but can I have $5\cdot4-2=18$ which gives me $-2$? More on math.stackexchange.com
🌐 math.stackexchange.com
c - Modulo operation with negative numbers - Stack Overflow
That isn't true. 1 mod 5 is always 1. -4 mod 5 might be 1 too, but they are different things. 2019-06-05T07:35:08.313Z+00:00 ... Modulus operator gives the remainder. Modulus operator in c usually takes the sign of the numerator · x = 5 % (-3) - here numerator is positive hence it results in 2 More on stackoverflow.com
🌐 stackoverflow.com
Trying to understand modulus with negative numbers. Can't seem to grasp negative numbers. Can someone help?
If i%n is j, then (i+1) will either be j+1 or 0 (if j == n-1). Similarly, (i-1) % n will either be j-1 or n-1 (if j==0). i | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | i%3 | 2 | 0 | 1 | 2 | 0 | 1 | 2 | 0 | 1 If -1%3 were 1, there'd be a break in the pattern when going from -1 to 0. PS: Note that there is a not-insignificant number of languages where -1%3 is -1, which does introduce a break in the pattern, but at least it's still an ascending sequence until it wraps it around. More on reddit.com
🌐 r/computerscience
16
8
June 21, 2024
The Modulus of a Complex Number is a) Always Positiveb) Always Negativec) Maybe Positive or Negatived) $0$
The Modulus of a Complex Number is a Always Positive b Always Negative c Maybe Positive or Negative d 0 More on vedantu.com
🌐 vedantu.com
1
0
May 9, 2024
🌐
Quora
quora.com › Why-does-the-modulus-of-any-value-give-positive-answers
Why does the modulus of any value give positive answers? - Quora
Answer (1 of 2): The modulus function is defined as \left|x\right|=\left\{\begin{array}{cc}x & x \geq 0 \\ -x & x
🌐
Cuemath
cuemath.com › calculus › modulus-function
Modulus Function - Formula, Graph, Properties, Domain, Range
The modulus function, which is also called the absolute value function gives the magnitude or absolute value of a number irrespective of the number being positive or negative. It always gives a non-negative value of any number or variable.
Find elsewhere
🌐
Reddit
reddit.com › r/computerscience › trying to understand modulus with negative numbers. can't seem to grasp negative numbers. can someone help?
r/computerscience on Reddit: Trying to understand modulus with negative numbers. Can't seem to grasp negative numbers. Can someone help?
June 21, 2024 -

In the below examples, the modulus with the positive integers makes sense. I've almost been programmed my whole life with division and remainders. However, the negative numbers don't make sense. I've looked at difference formulas, but I can't seem to make them work in my head or on paper. (Using the Window calculator for results)

-4 mod 3 = 2 but 4 mod 3 = 1
-5 mod 3 = 1 but 5 mod 3 = 2
🌐
Vedantu
vedantu.com › question-answer › the-modulus-of-a-complex-number-is-a-always-class-11-maths-cbse-612da440c47e901fb0fd8a90
The Modulus of a Complex Number is a Always Positive class 11 maths CBSE
May 9, 2024 - Hence, the correct option is (A). Note: If the Complex number is a real number then the Modulus of the complex number is equal to the Modulus of the real part. A complex number's modulus is always a non-negative real value. Hence, the modulus is always positive for all complex numbers.
Top answer
1 of 2
12

If the bulk modulus were negative, the system would be in an unstable configuration. (Thermodynamically, this means that it is not a minimum of the free energy. However, the instability is really just purely mechanical; no references to $S$ and $T$ are requried.) Consider a system (for simplicity and definiteness, make it a fluid) with negative bulk modulus $B$ at a given pressure $P$ and volume $V$. What happens if we compress (by applying an external force) the system, so that $V\rightarrow V+\Delta V$, with $\Delta V<0$?

If $B$ is negative, then the pressure drops by a positive amount, $|\Delta P|$, where the actual $\Delta P<0$. In a realistic system, the pressure would increase as the system is compressed, so that it would eventually come back to equilibrium, when the increased pressure balances the applied external force. However, here the volume decreases and the pressure drops, which means that as the system shrinks, it becomes less and less able to resist the external force, meaning that it will continue to shrink even more! The reverse happens if we start out by allowing the system to expand a little and increase its pressure, which would cause it to expand even further. Either way, a miniscule change in volume leads to a runaway effect, with volume either increasing or decreasing until the equation of state changes enough to make $B$ positive again.

It is possible, in principle, to have a nonequilibrium system with a negative $B$, but the configuration is unstable. For example, direct application of the van der Waals equation of state, $$\left(P+\frac{an^{2}}{V^{2}}\right)(V-nb)=nRT,$$ predicts than when $T$ is small enough (less than the critical point temperature $T_{c}$) there a region where the bulk modulus is negative (as shown in this image from Wikipedia).

If a fluid is quickly supercooled into the region with negative $B$, the anomalous behavior can be directly observed, but only briefly. What happens after a very short period of time is that the instabilities take over. Some regions of the fluid (where the local pressure happened to be lower) rapidly expand and other regions (where the pressure was randomly a little higher) rapidly contract. These become regions of gas and liquid, respectively! The instability is resolved by a phase separation; a system with negative $B$ has greater free energy than the same system split into separate liquid and gas components.

2 of 2
6

As requested, a simpler version of the excellent answer by Buzz: If you pulled on this hypothetical material, it would shrink. We just don’t see that behavior in passive materials.

Alternatively, if you squeezed it in a vise, it would expand, which would pressurize it even more, which would cause further expansion. This is called an explosion and again is not seen in passive materials.

And a nonsimple, math-intensive supplement: The ultimate reason for positive bulk moduli in passive materials arises from the Second Law; materials at equilibrium tend to minimize, not maximize, their stored strain energy.

Top answer
1 of 3
1

In the complex numbers, no. $|z|$ is defined to be $\sqrt{z*\overline z}$ which is non negative as $z\overline z = \Re(z)^2 + \Im(z)^2$ is always non-negative real.

I suspect you are asking as we extended the reals to the complex (depending upon your philsophy) by allowing square roots of negatives which as a consequence allowed for logarithms of negative numbers, you are asking if we can create another number system that will allow $|z| < 0$.

It's hard for me to imagine how or why we would do so. There are no numbers that "want to exist but can't" because if they existed there modulus would have to be negative. And as modulus was defined to be non-neg real, it's hard to imagine in what sense we'd define another meaning for it that satisfy any condition associated with it. Primarily the condition that the modulus represents the quantitative measure of the absolute non-negative size of something.

=====

Okay, more.

In the reals $|x|$ is defined as $|x| = x$ if $x \ge 0$ and $|x| = -x$ if $x < 0$.

In extending to the complex numbers we could have kept that definition as close as possible by saying $|a+ib| = a+ib$ if $a \ge 0$ and $|a+ib| = -a-ib$ if $a < 0$. Admittedly we wouldn't ever have $|z| < 0$ but we would have $|z| \not \ge 0$. We could define, god knows why we'd want to but we could, $|a+ib| = a+b$ and the we could have $|z| < 0$.

So we don't we? Why instead to we replace the simple $|x| = \pm x$ with the scary looking $|a+bi| = \sqrt{(a+bi)(a-bi)} = \sqrt{a^2 + b^2}$?

Well, BECAUSE $|a+bi|= \sqrt{a^2 + b^2}$ IS greater than or equal to $0$. That $|z| \ge 0$ is a requirement of the definition of anything that we wish to call a "modulus".

Y2H in his/her answer lists some of the requirements for what something we call a "modulus" must obey. Why must we obey it to call it a modulus? Because if we didn't there wouldn't be any meaning to the word "modulus".

(Why is an elephant large, gray and wrinkly? Because if it were small, white and smooth it would be an aspirin.)

The very first requirement is ... that the "modulus" is real, and non-negative.

The modulus is essentially the "size" of a number. And size is positive value (or zero if and only if the number is zero). That's just.... axiomatic.

There are other conditions. By definition:

In an algebra, If $a,b \in F$, a field, $|a|$ is called the modulus, we must have:

i)$|a| \in \mathbb R; |a| \ge 0$.

ii) $|a| = 0$ if and only if $a$ is the multiplicative identity of $F$.

iii) $|ab| = |a||b|$

iv) $|a+b| \le |a| + |b|$

In vector spaces, $|x|$ is a norm and we must have (by definition) where $V,W$ are vectors in a vector space and $a$ is an element of a field:

i) $|V| \ge 0; |V| \in \mathbb R$

ii) $|V| = 0 \iff V = 0$

iii) $|aV| = |a||V|$ where $|a|$ is a modulus of $a$.

iv) $|V + W| \le |V| + |W|$.

2 of 3
1

The modulus, by definition, is a positive number as it represents a concept similar to the "magnitude" in Physics. So the fact that the value of a modulus is always positive does not depend on the complex number you are considering at all but is in fact an attribute of the modulus itself.

In $\mathbb C$, given a complex number $x = a + ib$ (with $a$, $b ∈ \mathbb R$) the modulus is defined as

$$\sqrt{x² + y²} $$

Since $y$ itself real, the number under the square root is always positive, hence the modulus is always real and positive.

From a more general and abstract point of view, the modulus is a special case of the norm in $\mathbb C$. By definition, for any vector space, the norm satisfies the below conditions:

  • Must be real and positive
  • Separation
  • Absolute homogeneity
  • Subadditivity
🌐
Unacademy
unacademy.com › jee main 2026 preparation: question papers, solutions, mock tests & strategy unacademy › jee study material › mathematics › modulus function
Modulus function - Mathematics
April 14, 2022 - Ans: The modulus function, also known as the absolute value of a function, determines the magnitude or absolute value of a number, regardless of whether it is positive or negative. Any number or variable will always have a non-negative value.
🌐
GitHub
github.com › dotnet › csharplang › issues › 1408
Proposal: New operator %% for positive-result Modulus operations · Issue #1408 · dotnet/csharplang
March 22, 2018 - For example, -5 % 8 is -5 with the Remainder operation but it is 3 with the Modulus operation (proposed syntax: -5 %% 8 returns 3). Modulus always returns between 0 (inclusive) and the second argument (exclusive).
Author   aaronfranke
🌐
Medium
thomaspoignant.medium.com › how-to-get-always-a-positive-modulo-remainder-9ac965361ff4
How to always get a positive modulo remainder | by Thomas Poignant | Medium
July 10, 2020 - Here it is really easy, but to get the previous element of NORTH it’s tricky. If I just do minus one, I get -1 and there is no element with -1 in the enum. That’s why need to use modulo and that’s why we need a positive number.
🌐
Physics Forums
physicsforums.com › mathematics › general math
Can we have modulo a negative number? • Physics Forums
October 1, 2018 - Ultimately, the choice to use positive moduli is based on convention rather than mathematical necessity.
🌐
Quora
quora.com › How-does-a-negative-number-modulus-a-positive-number-work
How does a negative number modulus a positive number work? - Quora
Answer (1 of 2): Basically the same way as a positive number modulus a positive number: 1) Get the remainder. 2) Apply clock arithmetic (add modulus) if remainder is negative (I show with -> symbol) to get into primary range.