# mathFunctions (skrf.mathFunctions)¶

Provides commonly used mathematical functions.

## Complex Component Conversion¶

 complex_2_reim(z) returns real and imaginary parts of a complex number. 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 Nepers (Np) to decibel (dB). db_2_np(x) Converts a value in decibel (dB) to neper (Np).

## 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.