Implement `power` with float exponents
Open
good first issue
help wanted
nix incompatibility
- Dominant language
- Gleam
- Stars
- 5
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
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`](https://github.com/xddxdd/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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.