Skip to content

ERROR: DomainError with -1 #51

@Sinansi

Description

@Sinansi

Can someone explain what is needed here please?
I am already passing a float variable of which all elements are already in decimal points.

this statement wpt(x, wt, maketree(x)) return the following error

ERROR: DomainError with -1:
Cannot raise an integer x to a negative power -1.
Make x or -1 a float by adding a zero decimal (e.g., 2.0^-1 or 2^-1.0 instead of 2^-1), or write 1/x^1, float(x)^-1, x^float(-1) or (x//1)^-1

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions