{ } Raw JSON

bundles / scipy latest / scipy / stats / _distribution_infrastructure / _log_real_standardize

function

scipy.stats._distribution_infrastructure:_log_real_standardize

source: /scipy/stats/_distribution_infrastructure.py :1304

Signature

def   _log_real_standardize ( x )

Summary

Standardizes the (complex) logarithm of a real number.

Extended Summary

The logarithm of a real number may be represented by a complex number with imaginary part that is a multiple of pi*1j. Even multiples correspond with a positive real and odd multiples correspond with a negative real.

Given a logarithm of a real number x, this function returns an equivalent representation in a standard form: the log of a positive real has imaginary part 0 and the log of a negative real has imaginary part pi.

Aliases

  • scipy.stats._distribution_infrastructure._log_real_standardize