Complex128—Wolfram Documentation

  • Import can read any binary data as a sequence of 128-bit complex numbers.
  • Export converts a list of integer, real, or complex numbers to a sequence of binary 128-bit complex numbers.
  • IEEE single-precision numbers can be imported and exported using the "Complex64" format.

Background & Context

    • Uniform sequence of IEEE double-precision complex numbers.
    • Binary data format.

Import & Export

  • Import["file","Complex128"] imports any file as IEEE double-precision complex numbers, returning a packed array of real numbers.
  • Export["file",list,"Complex128"] exports a list of complex numbers to file.
  • Import["file",{"Complex128",elem}] or Import["file",elem ] imports the specified element from file.
  • Import["file",{"Complex128",{elem1,elem2,}}] imports multiple elements.
  • See the following reference pages for full general information:
  • Import, Exportimport from or export to a file
    CloudImport, CloudExportimport from or export to a cloud object
    ImportString, ExportStringimport from or export to a string
    ImportByteArray, ExportByteArrayimport from or export to a byte array

Options

Examples

Basic Examples  (1)

Convert a list of numbers to IEEE double-precision complex numbers:

Convert the previous output back to Wolfram Language numbers:

History

Introduced in 2004 (5.1) | Updated in 2007 (6.0)