EGXPhys

Functions

template<typename T >
EGXMath::SignedLog (const T &x)
 Signed Log. Gives the signed (keeps sign on number) log base e of a number.

\[signedLog(x)= sign(x)*Log_e(|x|)\]

\[signedLog(x)= sign(x)*\int_{1}^{|x|}\frac{1}{t} dt\]

. More...

 
template<typename T >
EGXMath::SignedLog (const T &x, const T &base)
 Signed Log. Gives the signed (keeps sign on number) log of a number in a base of your choice.

\[signedLog(x)= sign(x)*\frac{Log_e(|x|)}{Log_e(base)}\]

. More...

 

Detailed Description

Function Documentation

◆ SignedLog() [1/2]

template<typename T >
T EGXMath::SignedLog ( const T &  x)

Signed Log. Gives the signed (keeps sign on number) log base e of a number.

\[signedLog(x)= sign(x)*Log_e(|x|)\]

\[signedLog(x)= sign(x)*\int_{1}^{|x|}\frac{1}{t} dt\]

.

See https://en.wikipedia.org/wiki/Logarithm and http://mathworld.wolfram.com/NaturalLogarithm.html

Parameters
x\(x\ (dimensionless)\) is the argument of the function. Inputting 0 results in an error.
Returns
\(signedLog(x)\ (dimensionless)\) is the signed log of x in base e.

◆ SignedLog() [2/2]

template<typename T >
T EGXMath::SignedLog ( const T &  x,
const T &  base 
)

Signed Log. Gives the signed (keeps sign on number) log of a number in a base of your choice.

\[signedLog(x)= sign(x)*\frac{Log_e(|x|)}{Log_e(base)}\]

.

See https://en.wikipedia.org/wiki/Logarithm and http://mathworld.wolfram.com/NaturalLogarithm.html

Parameters
x\(x\ (dimensionless)\) is the argument of the function. Inputting 0 results in an error.
base\(base\ (dimensionless)\) is the base that the log is taken in. Base is a positive real number.
Returns
\(signedLog(x)\ (dimensionless)\) is the signed log of x in base.