# HMRES_realimaginarytomagnitudephase()

Use to convert a complex number in real/imaginary format to magnitude/phase format. This function modifies the values passed.

## Syntax

`void HMRES_realimaginarytomagnitudephase(double *real, double *imaginary);`

## Type

HyperMesh hmreslib Function

## Description

Use to convert a complex number in real/imaginary format to magnitude/phase format. This function modifies the values passed.

## Inputs

`real`- The real component of a complex number.
`imaginary`- The imaginary component of a complex number.

## Errors

None.