Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 14 years ago

kcrisman gravatar image

Your error is

ValueError: arctan2(0,0) undefined

Well, that is true! Is it possible that you want

[amp(State=r).n() for r in srange(1,Tst)]

instead? (This doesn't raise an error.)

Remember, Python and Sage ranges start at zero.

click to hide/show revision 2
No.2 Revision

Your error is

ValueError: arctan2(0,0) undefined

Well, that is true! The arctan of 0/0 doesn't really make sense. Is it possible that you want

[amp(State=r).n() for r in srange(1,Tst)]

instead? (This doesn't raise an error.)

Remember, Python and Sage ranges start at zero.