Real-time calculation of arithmetic, exponentiation, and square roots in rectangular and polar forms. Draw vectors on the Argand diagram and animate AC circuit impedance (ZR/ZL/ZC) with phasor rotation.
Input
Input mode
Z₁
Z₂
Operation
Exponent n
AC circuit mode
Auto-calculate from frequency and component values
Results
—
Rectangular a+jb
—
Polar r∠θ°
—
Magnitude |Z|
—
Phase angle arg(Z) °
Visualization
Calculating results...
CAE Applications
Forced response of structural vibration:$H(\omega) = 1/(k - \omega^2 m + j\omega c)$(complex frequency response function). The argument of impedance represents phase lag/lead; at resonance,$|H(\omega)|$is maximum (real part of denominator = 0). In electromagnetic field analysis, skin depthδ=√(2/(ωμσ))is also derived from complex permeability.
Theory & Key Formulas
Relationship between rectangular and polar forms:
$$z = a + jb = r e^{j\theta}= r(\cos\theta + j\sin\theta)$$
What exactly is a "complex number"? It sounds... complicated.
🎓
Basically, it's a number with two parts: a regular real number and an "imaginary" part, written with a $j$ (where $j^2 = -1$). Think of it as a 2D point: the real part is the x-coordinate, and the imaginary part is the y-coordinate. In this simulator, you can switch the "Input mode" to "Rectangular" and type in numbers like `3 + j4` to see this.
🙋
Wait, really? So what's the polar form I see in the other "Input mode"?
🎓
Great question! That's the same 2D point, but described by its length and angle. For instance, `3 + j4` has a length (magnitude) of 5 and an angle of about 53 degrees. Switch the "Input mode" to "Polar" and enter `5 ∠ 53°`—you'll see it's the same point on the Argand diagram. This is incredibly useful for rotation and oscillation.
🙋
Okay, that makes sense as a point. But why is there an "AC circuit mode"? What's the connection?
🎓
In practice, that's where phasors come in! A sinusoidally oscillating voltage or current, like $V(t) = A\cos(\omega t + \phi)$, can be represented as a rotating complex number—a phasor. Its magnitude is $A$ and its angle is $\phi$. The "AC circuit mode" treats your inputs as these phasors, so when you use the "Operation" dropdown to multiply, you're modeling how circuits combine AC signals, which is fundamental to electrical engineering.
Physical Model & Key Equations
The core relationship defines how to move between the rectangular (Cartesian) and polar (magnitude/angle) representations of a complex number $z$.
$$z = a + jb = r e^{j\theta}= r(\cos\theta + j\sin\theta)$$
$a, b$: Real and imaginary parts (rectangular coordinates). $r, \theta$: Magnitude (or modulus) and argument (angle) in polar form.
The conversions are: $r = \sqrt{a^2+b^2}$ and $\theta = \arctan(b/a)$.
For analyzing oscillations and AC circuits, we use the complex frequency response. A key application is modeling a damped, forced harmonic oscillator (like a car suspension or building vibration).
$$H(\omega) = \frac{1}{k - \omega^2 m + j\omega c}$$
$H(\omega)$: Complex frequency response function (output/input). $k, m, c$: Stiffness, mass, and damping coefficients. $\omega$: Driving frequency.
The denominator is a complex impedance. Its magnitude $|H(\omega)|$ peaks at resonance, and its argument gives the phase lag between the force and the system's response.
Frequently Asked Questions
Click the 'Format Switch' button next to the numerical input field, or enter values in either real/imaginary parts (a+jb) or magnitude/angle (r∠θ), and the other format will be automatically converted and displayed. The angle unit can be selected from the settings menu as degrees (°) or radians (rad).
Enter coils in the form 'jωL' and capacitors in the form '1/(jωC)'. By selecting the 'RLC Series/Parallel' mode in the tool, you can individually input the resistance R, inductance L, capacitance C, and frequency f, and the complex impedance will be automatically calculated.
It visualizes the instantaneous value of an AC signal as a rotating vector (phasor) on the complex plane. The animation speed can be adjusted with a slider, and multiple phasors can be displayed simultaneously to intuitively understand phase differences and the resulting waveform.
Check if the input values involve division by zero (e.g., angle calculation with r=0 in polar form) or extremely large numbers. Be especially careful with square roots and divisions to ensure the denominator is not zero. Reset the values and re-enter them, or reload the browser to restore normal operation.
Real-World Applications
AC Circuit Analysis: Every time you plug in a device, the power grid delivers alternating current (AC). Engineers use phasor calculations, like those in the simulator's "AC circuit mode", to design transformers, motors, and filters, ensuring efficient and safe power delivery to your home.
Structural Vibration Control: When designing skyscrapers or bridges, engineers must model how they shake in the wind or during an earthquake. The complex frequency response $H(\omega)$ helps predict resonance frequencies so dampers can be installed to prevent catastrophic vibrations.
Signal Processing & Communications: Your smartphone's ability to send and receive clear audio relies on representing signals as complex numbers. Operations like filtering and modulation are essentially complex multiplications and rotations, allowing your call to be separated from millions of others.
Control Systems & Robotics: To make a robotic arm move smoothly to a precise location, its control system constantly calculates complex transfer functions. These calculations determine how much power to send to each motor and correct for errors in real-time, ensuring stable and accurate movement.
Common Misconceptions and Points to Note
First, the point of "treating j as just a symbol during calculation." While j is an operator that mathematically satisfies $j^2=-1$, in electrical engineering it carries the physical meaning of "an operator that advances the phase by 90 degrees." For example, the j in $Z_L = j\omega L$ signifies that "the voltage phase leads the current phase by 90 degrees." Without grasping this meaning, you might be able to perform calculations, but you won't connect them to an understanding of the phenomenon.
Next, mishaps with the calculator's "angle mode" setting. When calculating the argument (phase angle), always check whether the default is set to "degrees" or "radians." For instance, $\arctan(1)$ is 45° in degree mode and approximately 0.785 rad in radian mode. Getting this wrong completely skews the interpretation of phase difference. Make it a habit to check the angle unit in the corner of your tool's screen before you start.
Also, be wary of the oversimplified interpretation that "a larger magnitude means a larger impedance." The magnitude $|Z| = \sqrt{R^2+X^2}$ of a complex impedance $Z = R + jX$ indeed represents the combined magnitude, but only the real part (the resistance R) is involved in power consumption. For example, comparing $Z_1 = 1 + j100$ and $Z_2 = 100 + j1$, their magnitudes are both roughly 100Ω, but $Z_1$ consumes almost no real power (it's predominantly reactive), while $Z_2$ consumes significant power. On an Argand diagram, you can immediately see that the vector directions (arguments) are vastly different.
What is Complex Number & Phasor Calculator?
Complex Number & Phasor Calculator is a fundamental topic in engineering and applied physics. This interactive simulator lets you explore the key behaviors and relationships by directly manipulating parameters and observing real-time results.
By combining numerical computation with visual feedback, the simulator bridges the gap between abstract theory and physical intuition — making it an effective learning tool for students and a rapid-verification tool for practicing engineers.