nraonrao
 
NRAO Home > CASA > CasaRef
quanta.compare - Function

1.4.1 compare dimensionality of units
Description

compare compares the dimensionality of units of two qauntities

Arguments





Inputs

v

value

allowed:

any

Default:

variant

a

value

allowed:

any

Default:

variant

Returns
bool

Example

"""  
#  
print "\t----\t compare Ex 1 \t----"  
print qa.compare(’5yd/a’, ’6m/s’)   # equal dimensions  
#True  
print qa.compare(’5yd’, ’5s’) # unequal dimensions  
#False  
#  
"""

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search

Updated daily during alpha development.