I
I
igoodmood2015-09-23 17:21:52
Python
igoodmood, 2015-09-23 17:21:52

How to write arctg(ln z) in python?

How can you write arctg(ln z) in python. The expression below does not help.

import math
from cmath import arctan

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Moseychuk, 2015-09-23
@fshp

Because there is no arctan function in cmath library. There is atan and log.

V
Vitaly, 2015-09-23
@denshi

Maybe because it's called atan. Was it difficult to look into the documentation?
In general, at least study the dir function. For example,

import cmath
dir(cmath)

will output all functions from the given module.

A
abcd0x00, 2015-09-26
@abcd0x00

>>> import cmath
>>> 
>>> z = 1+2j
>>> cmath.atan(cmath.log(z))
(1.033986973480417+0.5109415873513905j)
>>>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question