|
EGXPhys
|
Functions | |
| 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\] . More... | |
| 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)}\] . More... | |
| 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
| x | \(x\ (dimensionless)\) is the argument of the function. Inputting 0 results in an error. |
| 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
| 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. |