{"id":25425,"date":"2021-11-13T14:59:37","date_gmt":"2021-11-13T09:29:37","guid":{"rendered":"https:\/\/python-programs.com\/?p=25425"},"modified":"2021-11-14T15:01:47","modified_gmt":"2021-11-14T09:31:47","slug":"python-cmath-log-method-with-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-cmath-log-method-with-examples\/","title":{"rendered":"Python cmath.log() Method with Examples"},"content":{"rendered":"

cmath.log() Method in Python:<\/strong><\/p>\n

The logarithm of a complex value is returned by the cmath.log() method.<\/p>\n

This method takes a single argument and returns the natural logarithm of that argument with base e.<\/p>\n

This method takes two arguments and returns the logarithm of the first argument (x) multiplied by the base of the second argument (base).<\/p>\n

Syntax:<\/strong><\/p>\n

cmath.log(x, base)<\/pre>\n

Parameters<\/strong><\/p>\n

x:<\/strong> This is Required. Specifies the value for which the logarithm should be calculated.<\/p>\n