method

log

Importance_1
v2_2_9 - Show latest stable - 0 notes - Class: CMath
log(*args) private

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.