Bug in power function #1406
CognitiveGrowth
started this conversation in
Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
x=normal(0,1)
pow(x,2)
yields the error message
Distribution Math Error: Operation returned complex result
This doesn't make sense because the square of a real number is always a positive real number and never a complex number.
I encountered this error while testing my own implementation of a function for calculating the standard deviation of a random variable. I was very surprised that stdev and other elementary functions haven't been implemented yet.
Beta Was this translation helpful? Give feedback.
All reactions