reverted fix in angle(), adapted log() fct

Hi @furgalep 

Thanks for the previous comment. Are we correct this time?