"ComplexNumber" (Interpreter Type)
Complex number in a standard format.
Details
- "ComplexNumber" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "ComplexNumber" does not require connectivity to the Wolfram Cloud.
Allowed Forms
- The real and imaginary parts can be in the number formats allowed by "Number".
Restriction Specifications
-
Restricted["ComplexNumber",{{choice1,…}}] one among choices Restricted["ComplexNumber",region] a complex number within a region of the complex plane Restricted["ComplexNumber",Automatic,n] a complex number with n-digit precision
Options
- The following options can be used for the real and imaginary parts:
-
DigitBlock Infinity number of digits between breaks NumberPoint "." decimal point string NumberSeparator {",",""} string to insert at breaks between blocks NumberSigns {"-",""} strings to use for signs of negative and positive numbers
Interpretation
- "ComplexNumber" yields a Complex.
Examples
Basic Examples (5)
Use the options to customize the number format:
Restrict the result to the unit circle:
Restrict the result to any region of the complex plane:
Otherwise, $MachinePrecision is implied: