We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
std
Initial report by Ingo Dahn at:
Minimal example:
sage: version() 'SageMath version 9.0, Release Date: 2020-01-01' sage: sage: std([float(3.2), float(3.4)]) Traceback (most recent call last) ... AttributeError: 'float' object has no attribute 'sqrt'
Fix this by changing the function std(v, bias) at line 219 of src/sage/stats/basic_stats.py:
std(v, bias)
src/sage/stats/basic_stats.py
- return variance(v, bias=bias).sqrt() + try: + return variance(v, bias=bias).sqrt() + except AttributeError: + from sage.functions.other import sqrt + return sqrt(variance(v, bias=bias))
It turns out this was already fixed at #29184, merged in Sage 9.1.beta5.
CC: @fchapoton @slel
Component: statistics
Keywords: float, std, sqrt
Issue created by migration from https://trac.sagemath.org/ticket/29232
The text was updated successfully, but these errors were encountered:
what about #29184 ?
Sorry, something went wrong.
Sorry, missed that. Please close as duplicate.
No branches or pull requests
Initial report by Ingo Dahn at:
Minimal example:
Fix this by changing the function
std(v, bias)
at line 219 ofsrc/sage/stats/basic_stats.py
:It turns out this was already fixed at #29184, merged in Sage 9.1.beta5.
CC: @fchapoton @slel
Component: statistics
Keywords: float, std, sqrt
Issue created by migration from https://trac.sagemath.org/ticket/29232
The text was updated successfully, but these errors were encountered: