-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add csc
, sec
, cot
, and friends
#50
Conversation
aed2b13
to
f9912d8
Compare
f9912d8
to
bd75513
Compare
Thank you for the updates. The roundtrip-style tests (f_inverse(f(x)) == x && f(f_inverse(y)) == y) sound like a great idea! |
I think I'm going to have to stop my work for now, since real life is catching up with me. I won't be doing any work for around a month and a half, so feel free to pick up this PR and complete it, or wait for me till I come back. Your call. :) |
Of course. There's never any rush on anything, please take your time. And yes, otherwise someone else can pick it up in the meantime. |
bd75513
to
06f39b5
Compare
06f39b5
to
4b94099
Compare
2ce20e1
to
1fa4855
Compare
I guess having some individual function tests with negative and positive arguments (as you mentoined before) would also be a good idea? |
Maybe at least for the functions with multiple (explicit) branches in the implementation ( |
I just realized there's no reason not to have these functions in |
I personally don't depend on purescript-decimals in any other project, so I'm also fine with leaving them here. But it makes a lot of sense, of course. Unless we consider purescript-decimals to be just a thin wrapper around Decimal.js. Which is also a reasonable point of view, IMO. |
Yeah, but I can imagine it might be useful for other people.
It is definitely a reasonable point of view, but I'm leaning toward the earlier opinion. What about you? |
Ok, fine with me! |
901bb1d
to
b84d049
Compare
The package set was upgraded in this commit to get these functions in the new `purescript-decimals` version, and PureScript was upgraded with the package set accordingly.
b84d049
to
a01b6b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update.
@sharkdp can you cut a new release 12.1.0/13.0.0 (not sure which one)? maybe I should learn how to create releases myself |
Feel free to try! And let me know if I need to set up any permissions. So far, I simply set a Git tag and then called |
So I went ahead and followed https://github.com/purescript/spago#publish-my-library, and I think I've done everything correctly. |
Thank you! |
For sharkdp/insect#212 (comment). I also added some other functions.
What shall I do for tests?