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

New functions for Calc #695

Open
rlwhitcomb opened this issue Nov 21, 2024 · 1 comment
Open

New functions for Calc #695

rlwhitcomb opened this issue Nov 21, 2024 · 1 comment
Assignees

Comments

@rlwhitcomb
Copy link
Owner

rlwhitcomb commented Nov 21, 2024

As in Raku:
msb, lsb: return index of most, least significant one bit
expmod, polymod: as explained here: https://docs.raku.org/type/Int
Also this blog post: https://blogs.perl.org/users/zoffix_znet/2016/05/perl-6-polymod-break-up-a-number-into-denominations.html

@rlwhitcomb rlwhitcomb self-assigned this Nov 21, 2024
@rlwhitcomb
Copy link
Owner Author

rlwhitcomb commented Dec 21, 2024

Here's another one: hypot(x,y) = sqrt(x²+y²)
This is from math.h in the standard C library.

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

No branches or pull requests

1 participant