Implement power
with float exponents
#6
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
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_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.The text was updated successfully, but these errors were encountered: