test_constants.py 338 B

12345678910111213
  1. from sympy.core.numbers import Float
  2. from sympy.physics.quantum.constants import hbar
  3. def test_hbar():
  4. assert hbar.is_commutative is True
  5. assert hbar.is_real is True
  6. assert hbar.is_positive is True
  7. assert hbar.is_negative is False
  8. assert hbar.is_irrational is True
  9. assert hbar.evalf() == Float(1.05457162e-34)