HyperMath

Real

Real

Previous topic Next topic No expanding text in this topic  

Real

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Extracts the real part of a complex number.

Syntax

r = Real(m)

Argument

Name

Description

 

m

A scalar, vector, or a matrix.

Output

Name

Description

 

r

A scalar, vector, or a matrix of the real part of each entry.

Example

Extract the real part of each element in a vector:

 

Syntax

 

M = Real([1,2+3i])

 

Result

 

M =

[Matrix] (1 x 2)

1 2

See Also:

Comp

Conj

Imag