Skip to content
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

stats.std for error propegation does not return #21649

Open
loworbitmoonsun opened this issue Jun 22, 2021 · 1 comment
Open

stats.std for error propegation does not return #21649

loworbitmoonsun opened this issue Jun 22, 2021 · 1 comment

Comments

@loworbitmoonsun
Copy link

The following code to implement error propegation does not work. Sympy hangs on the calculation of the standard deviation without returning error. Seems to be looping internally as can be seen with pdb.

Is this a known issue? Any help would be appreciated.

import sympy.stats
import scipy

v0 = 200
x0 = 100
y0 = 50
g = 9.81

V = sp.stats.Normal('v', v0, 1)
T = sp.stats.Normal('t', sp.pi/4, sp.pi/180)
xmax = V**2*sp.sin(T)*sp.cos(T)/g + x0
Sx = sp.stats.std(xmax)
print(Sx)
@oscarbenjamin
Copy link
Contributor

Looks like it gets stuck in the heurisch integration routine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants