Absolute Value (Modulus) Calculator
Solve absolute value expressions step-by-step. Supports integers, complex numbers, vectors, and linear equations with graphing.
About
The absolute value represents the distance of a number or vector from the origin (zero point) regardless of direction. While trivial for integers the concept expands into the "Modulus" for complex numbers and the "Norm" for vectors in linear algebra. This tool is designed for students and engineers needing precise calculations for |x|.
It handles multiple domains. For real numbers it returns the non-negative value. For complex numbers a + bi it calculates the magnitude using the Pythagorean theorem. For vectors it computes the Euclidean norm (L2 norm). Additionally it includes an algebraic solver for equations like |ax + b| = c splitting the problem into its positive and negative cases to find all valid solutions.
Formulas
The calculation depends strictly on the input domain.
Complex Modulus: For z = 3 − 4i
|z| = √32 + (−4)2 = 5
For algebraic equations we must isolate the absolute value term and then bifurcate the equation into two linear equations to solve for the unknown variable.
Reference Data
| Type | Notation | Formula |
|---|---|---|
| Real Number | |x| | { x if x ≥ 0−x if x < 0 |
| Complex Number | |z| | √a2 + b2 |
| Vector (2D) | |v| | √x2 + y2 |
| Vector (3D) | |v| | √x2 + y2 + z2 |
| Equation | |x| = a | x = a ∨ x = −a |