Author Topic: Angstrom vs Ang  (Read 4285 times)

0 Members and 1 Guest are viewing this topic.

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
Angstrom vs Ang
« on: January 16, 2012, 21:22 »
Maybe I am just not familiar with the unit "Ang", but when I try to modify values that are in Angstroms the program keeps giving me errors that I am not using Ang units ... How do we know when to use "Ang" and when to use "Angstrom"?   I tested 1*Ang == 1*Angstrom and it returned true, so ... are they the same or not?



Offline Nordland

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 812
  • Reputation: 18
    • View Profile
Re: Angstrom vs Ang
« Reply #1 on: January 16, 2012, 22:40 »
They are so much the same that they share address.  ;D Try running:
Code: python
print id(Ang)
print id(Angstrom)
This will show that both point to the same point in memory. So there is no difference in any respect if you use Angstrom or Ang. It is just a convenience if you want to be more or less explicit with your units. There is a long list of dual names. Like Rydberg/Ry and Ha/Hartree.