-
Notifications
You must be signed in to change notification settings - Fork 2
Implement power with float exponents #6
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needednix incompatibilitySome function works differently or doesn't work in the Nix targetSome function works differently or doesn't work in the Nix target
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needednix incompatibilitySome function works differently or doesn't work in the Nix targetSome function works differently or doesn't work in the Nix target
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently,
int.power(a, b)andfloat.power(a, b)use recursive implementations, and thus only support integers forb. As an exception, I've explicitly added an algorithm for square root taken fromnix-math, which applies whenb == 0.5, so that thesquare_rootfunction still works. Still, would be nice to have a more general algorithm, which can be hard as Nix doesn't have built-in power.