Home

14j

14j is a numeric literal used in some programming languages to denote a purely imaginary number. In mathematics and engineering, the symbol j is commonly used as the imaginary unit, equal to the square root of minus one, so 14j represents 14 times the imaginary unit, i.e., 0 + 14i (or 14j, depending on convention). In programming, 14j appears as a literal representing the complex number with real part zero and imaginary part fourteen.

In Python, 14j is a complex number literal. Its value is 0+14j, and its type is complex.

Limitations and usage notes: Not all programming languages support a trailing j suffix for imaginary literals;

See also: Complex number, Imaginary unit, Complex arithmetic.

Arithmetic
examples
include
14j
+
2j
=
16j,
and
14j
*
1j
=
-14.
The
real
and
imaginary
parts
can
be
accessed
as
14j.real
(0.0)
and
14j.imag
(14.0).
The
built-in
str(14j)
yields
'14j',
and
complex
numbers
can
also
be
created
using
complex(0,
14).
Python
is
among
the
most
widely
known
that
do.
In
broader
mathematics
and
signal
processing
contexts,
j
is
used
interchangeably
with
i
to
denote
the
imaginary
unit,
with
notation
differing
by
field
or
convention.