Skip to content

Signed (negative) double factorial#5

Open
berquist wants to merge 20 commits intothomwiggers:mainfrom
berquist:signed-double-factorial
Open

Signed (negative) double factorial#5
berquist wants to merge 20 commits intothomwiggers:mainfrom
berquist:signed-double-factorial

Conversation

@berquist
Copy link
Contributor

@berquist berquist commented Oct 8, 2020

This implements:

  • signed (int and float) double factorial, extended to negative arguments
  • signed factorial

I also implemented supertraits to clean up the trait proliferation (I think it's done properly).

Things this PR still needs:

  • Documentation, at least pointing to the relevant parts of Wikipedia.
    - [ ] Some structuring of unit tests, maybe grouping within submodules for (double) factorial?
    - [ ] Integration tests to make sure the supertraits work, if you want to keep the supertraits.

@berquist berquist force-pushed the signed-double-factorial branch from ece0ec6 to 0500498 Compare December 26, 2021 23:21
@berquist berquist marked this pull request as ready for review December 27, 2021 00:33
@berquist
Copy link
Contributor Author

I'm sorry I left this hanging for so long. I also realize now that this is two things in one: all the double factorial changes, and introducing distinction for (un)signed factorial. Let me know if I should leave that out.

@thomwiggers
Copy link
Owner

Hi, I've also left this one hanging for a very long time; I forgot about this and when the #9 merge request woke me up it seemed to have a bit of a higher priority.

Do you think you can rebase this PR on top of the prime swing algorithm changes?

@Rudxain
Copy link

Rudxain commented Dec 22, 2022

I'm not sure if this is a good idea. Negative factorials have many conflicting definitions, so choosing just 1 as "the standard" is bad practice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants