method

log

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: CMath
log(z, b=::Math::E) public

Returns the natural logarithm of Complex. If a second argument is given, it will be the base of logarithm.

CMath.log(1 + 4i)     #=> (1.416606672028108+1.3258176636680326i)
CMath.log(1 + 4i, 10) #=> (0.6152244606891369+0.5757952953408879i)
Show source
Register or log in to add new notes.