For mathematical questions about Python; questions purely about the language, syntax, or runtime errors are off-topic here and would likely be better received on Stack Overflow.
Questions tagged [python]
952 questions
-3
votes
1 answer
Why is np.exp(5*1j)**1j not equal to np.exp(1j*5*1j)?
I'm trying to get theta in $\exp (i \theta)$ without wrapping it back to $-\pi$. Couldn't I simply raise it to $i$? I'm thinking $-(\ln((\exp(i\theta))^i))$ should give me $\theta$? What am I doing wrong here. For example using Python's numpy…
saintimp
- 1
-3
votes
2 answers
Calculate specific angle between two lines
I have some problem with math today :) Could you tell me how should I calculate $P$ angle?
I know first and last point of each line. So I have:
L1 = [(10,10),(15,15)]
L2 = [(15,15),(20,8)]
But I don't have idea how calculate this angle. If I…
MlodyPL
- 1