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

Implement power with float exponents #6

Open
PgBiel opened this issue Apr 27, 2024 · 0 comments
Open

Implement power with float exponents #6

PgBiel opened this issue Apr 27, 2024 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed nix incompatibility Some function works differently or doesn't work in the Nix target

Comments

@PgBiel
Copy link
Member

PgBiel commented Apr 27, 2024

Currently, int.power(a, b) and float.power(a, b) use recursive implementations, and thus only support integers for b. As an exception, I've explicitly added an algorithm for square root taken from nix-math, which applies when b == 0.5, so that the square_root function still works. Still, would be nice to have a more general algorithm, which can be hard as Nix doesn't have built-in power.

@PgBiel PgBiel added good first issue Good for newcomers help wanted Extra attention is needed nix incompatibility Some function works differently or doesn't work in the Nix target labels Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed nix incompatibility Some function works differently or doesn't work in the Nix target
Projects
None yet
Development

No branches or pull requests

1 participant