Skip to content

Implement power with float exponents #6

Open
@PgBiel

Description

@PgBiel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedExtra attention is needednix incompatibilitySome function works differently or doesn't work in the Nix target

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions