OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Interpret complex numbers:

Interpreter["ComputedComplexNumber"]["2i+1"]

Interpreter["ComputedComplexNumber"]["-2i+10^3"]

Interpret complex numbers derived by computation:

Interpreter["ComputedComplexNumber"]["sqrt -2"]

Interpreter["ComputedComplexNumber"]["exp(2/3 pi i)"]

Set the precision:

Interpreter[Restricted["ComputedComplexNumber",Automatic,3]]["1.23456 I + 4.56789"]

Otherwise, (RefLink[$MachinePrecision, paclet:ref/$MachinePrecision]) is implied:

Interpreter["ComputedComplexNumber"]["1.23456i"]//Precision

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[SemanticImport, paclet:ref/SemanticImport])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])  ▪  (RefLink[Complex, paclet:ref/Complex])  ▪  (RefLink[N, paclet:ref/N])}, {Related Interpreter Types:  (RefLink[ComplexNumber, paclet:ref/interpreter/ComplexNumber])  ▪  (RefLink[SemanticComplexNumber, paclet:ref/interpreter/SemanticComplexNumber])  ▪  (RefLink[Number, paclet:ref/interpreter/Number])  ▪  (RefLink[Integer, paclet:ref/interpreter/Integer])  ▪  (RefLink[Real, paclet:ref/interpreter/Real])  ▪  (RefLink[OrdinalNumber, paclet:ref/interpreter/OrdinalNumber])  ▪  (RefLink[SemanticNumber, paclet:ref/interpreter/SemanticNumber])  ▪  (RefLink[ComputedNumber, paclet:ref/interpreter/ComputedNumber])  ▪  (RefLink[SemanticInteger, paclet:ref/interpreter/SemanticInteger])  ▪  (RefLink[ComputedInteger, paclet:ref/interpreter/ComputedInteger])  ▪  (RefLink[SemanticReal, paclet:ref/interpreter/SemanticReal])  ▪  (RefLink[ComputedReal, paclet:ref/interpreter/ComputedReal])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})