-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: DomainError with -1 #51
Comments
Is this still a problem? Can you provide complete example code? |
This seems to be a similar problem
|
I think the error produced is a bit misleading. Based on your code, If you tried |
Ah - thanks for pointing that out. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!
The text was updated successfully, but these errors were encountered: