As the title says... Chat on...

User avatar
By slayseb
#34904 I tryed with an equivalent of logarithm

Code: Select allfunction loge (z,resol)
    --resol: number of iterations in the sum, default 20
    local sum=0
    if (not resol) then resol = 20 end
    for n=0,resol do
        sum = sum + (1/(2*n+1))*((z-1)/(z+1))^(2*n+1)
    end
    return 2*sum
end


But i get this error:

LUA interpreter error detected
stdin:1: attempt to call global 'loge' (a nil value)
stack traceback:
stdin:1: in main chunk