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

1.5.1 raise quantity to power


Description

pow raises a quantity to an integer power

Arguments





Inputs

v

value

allowed:

any

Default:

variant

a

power

allowed:

int

Default:

1

Returns
record

Example

 
 
"""  
#  
print "\t----\t pow Ex 1 \t----"  
print qa.pow(’7.2km/s’, -3)  
#{’value’: 0.0026791838134430724, ’unit’: ’(km/s)-3’}  
#  
"""  
 

__________________________________________________________________


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