Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex division:when divisor is 0+0im #47999

Closed
wang-zh opened this issue Dec 26, 2022 · 3 comments
Closed

Complex division:when divisor is 0+0im #47999

wang-zh opened this issue Dec 26, 2022 · 3 comments
Labels
complex Complex numbers

Comments

@wang-zh
Copy link

wang-zh commented Dec 26, 2022

why (3+0im)/(0+0im) is equal to NaN + NaN*im Instead of Inf+0im
image

@KristofferC
Copy link
Sponsor Member

Ref #5234

@brenhinkeller brenhinkeller added the complex Complex numbers label Dec 27, 2022
@brenhinkeller
Copy link
Sponsor Contributor

Looks like this can be closed as duplicate if no objections

@hyrodium
Copy link
Sponsor Contributor

why (3+0im)/(0+0im) is equal to NaN + NaN*im Instead of Inf+0im

This is because the limit does not exist.

$$\begin{aligned} \frac{1}{a+bi} &= \frac{a}{a^2+b^2} + i \frac{-b}{a^2+b^2} \\\ \lim_{a \to +0}\lim_{b \to +0}\frac{a}{a^2+b^2} &= +\infty \\\ \lim_{b \to +0}\lim_{a \to +0}\frac{a}{a^2+b^2} &= 0 \\\ \lim_{a \to +0}\lim_{b \to +0}\frac{-b}{a^2+b^2} &= 0 \\\ \lim_{b \to +0}\lim_{a \to +0}\frac{-b}{a^2+b^2} &= -\infty \end{aligned}$$

Related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complex Complex numbers
Projects
None yet
Development

No branches or pull requests

4 participants