Status: Accepted
Owner: vlada.pe...@gmail.com
CC: asmeurer
Labels: Type-Defect Priority-Medium Documentation Python3

New issue 2610 by vlada.pe...@gmail.com: Wavefunction documentation errors under Python 3
http://code.google.com/p/sympy/issues/detail?id=2610

It seems that some doctests expect an int but get a float instead (0 is a special case, so it works). All the types here are actually SymPy Floats, so I'm not sure why integers are printed. I couldn't even reproduce this behavior in IPython. Not sure what is up here, could it be something related to our doctest runner? Aaron, thoughts?

___________________ sympy.physics.quantum.state.Wavefunction ___________________ File "/home/vperic/devel/sympy/sympy/physics/quantum/state.py", line 600, in sympy.physics.quantum.state.Wavefunction
Failed example:
    f.norm
Expected:
    1
Got:
    1.00000000000000
**********************************************************************
File "/home/vperic/devel/sympy/sympy/physics/quantum/state.py", line 609, in sympy.physics.quantum.state.Wavefunction
Failed example:
    p(0.5)
Expected:
    2
Got:
    2.00000000000000
**********************************************************************
File "/home/vperic/devel/sympy/sympy/physics/quantum/state.py", line 611, in sympy.physics.quantum.state.Wavefunction
Failed example:
    p(0.85*L)
Expected:
    2*sin(0.85*pi)**2
Got:
    2.0*sin(0.85*pi)**2

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to