NRAO Home > CASA > CASA Toolkit Reference Manual
quanta.compare - Function

1.5.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  
#  
"""  
 

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright 2016 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