# mathFunctions (skrf.mathFunctions)¶

Provides commonly used mathematical functions.

## Complex Component Conversion¶

 complex_2_reim(z) takes: input: complex number or array :returns: real part of input imag: imaginary part of input :rtype: real complex_2_magnitude(input) returns the magnitude of a complex number. complex_2_db(input) returns the magnitude in dB of a complex number. complex_2_radian(input) returns the angle complex number in radians. complex_2_degree(input) returns the angle complex number in radians. complex_2_magnitude(input) returns the magnitude of a complex number.

## Phase Unwrapping¶

 unwrap_rad(input) unwraps a phase given in radians sqrt_phase_unwrap(input) takes the square root of a complex number with unwrapped phase

## Unit Conversion¶

 radian_2_degree(rad) degree_2_radian(deg) np_2_db(x) converts a value in dB to Nepers db_2_np(x) converts a value in Nepers to dB

## Scalar-Complex Conversion¶

These conversions are useful for wrapping other functions that don’t support complex numbers.

 complex2Scalar(input) Serializes a list/arary of complex numbers scalar2Complex(input) inverse of complex2Scalar

## Special Functions¶

 dirac_delta(x) the Dirac function. neuman(x) neumans number null(A[, eps]) calculates the null space of matrix A.