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

std.complex: Add complex norm() and proj() #7475

Merged
merged 1 commit into from
May 16, 2020

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented May 9, 2020

A couple more trivial additions to std.complex, all that remain (future PRs) are a(sin|cos|tan), (sin|cos|tan)h, and possibly isClose.

N.B: should norm be named toNorm?

@ibuclaw ibuclaw added the math label May 9, 2020
@ibuclaw ibuclaw requested a review from kyllingstad as a code owner May 9, 2020 22:39
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + phobos#7475"

@ibuclaw ibuclaw force-pushed the stdcomplex/normproj branch from 42b6e4e to 3965b7f Compare May 10, 2020 15:25
@ibuclaw
Copy link
Member Author

ibuclaw commented May 13, 2020

@n8sh - I take that to mean the current names are fine then. :-)

@ibuclaw ibuclaw requested a review from thewilsonator May 14, 2020 13:12
std/complex.d Outdated Show resolved Hide resolved
@ibuclaw ibuclaw force-pushed the stdcomplex/normproj branch from 3965b7f to 91f4e2f Compare May 15, 2020 07:13
@ibuclaw
Copy link
Member Author

ibuclaw commented May 15, 2020

@thewilsonator - all fine here? Also, norm or toNorm ? I know this is pedantic, as I'm only considering fromPolar as maybe being a precedent.

@thewilsonator
Copy link
Contributor

norm is my choice.

@ibuclaw
Copy link
Member Author

ibuclaw commented May 16, 2020

norm is my choice.

Ready to merge then, can buildkite be retriggered?

@dlang-bot dlang-bot merged commit 149a75f into dlang:master May 16, 2020
@ibuclaw ibuclaw deleted the stdcomplex/normproj branch May 16, 2020 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants