Extract the imaginary component from real and complex values.
Numeric.complex.imag(value)Reads the imaginary component of each nested entry.
- Parameters:
value: Complex or real values to inspect
- Returns: Imaginary parts matching the input nesting shape
- NumPy: Covers
np.imag,ndarray.imagthrough a single Numerix method.
import Numeric from '@neabyte/numerix'
const part = Numeric.complex.imag(5)
console.log(part)
// 0import Numeric from '@neabyte/numerix'
const part = Numeric.complex.imag({ re: 3, im: 4 })
console.log(part)
// 4import Numeric from '@neabyte/numerix'
const parts = Numeric.complex.imag([1, 2])
console.log(parts)
// [0,0]import Numeric from '@neabyte/numerix'
const parts = Numeric.complex.imag([
{ re: 1, im: 2 },
{ re: 3, im: 4 }
])
console.log(parts)
// [2,4]