15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SciPy Reference Guide, Release 0.8.dev<br />

Energy<br />

Examples<br />

>>> from <strong>scipy</strong>.constants.constants import K2F<br />

>>> K2F(np.array([233.15, 313.15]))<br />

array([ -40., 104.])<br />

eV one electron volt in Joules<br />

calorie one calorie (thermochemical) in Joules<br />

calorie_IT one calorie (International Steam Table calorie, 1956) in Joules<br />

erg one erg in Joules<br />

Btu one British thermal unit (International Steam Table) in Joules<br />

Btu_th one British thermal unit (thermochemical) in Joules<br />

ton_TNT one ton of TNT in Joules<br />

Power<br />

hp one horsepower in watts<br />

Force<br />

dyn one dyne in watts<br />

lbf one pound force in watts<br />

kgf one kilogram force in watts<br />

Optics<br />

lambda2nu(lambda_) Convert wavelength to optical frequency<br />

nu2lambda(nu) Convert optical frequency to wavelength.<br />

lambda2nu(lambda_)<br />

Convert wavelength to optical frequency<br />

Notes<br />

Parameters<br />

lambda : float-like scalar or array-like<br />

Wavelength(s) to be converted<br />

Returns<br />

nu : float or a numpy array of floats, corresponding to type of Parameters<br />

Equivalent optical frequency(ies)<br />

Computes ν = c/λ where c = 299792458.0, i.e., the (vacuum) speed of light in meters/second.<br />

Examples<br />

>>> from <strong>scipy</strong>.constants.constants import lambda2nu<br />

>>> lambda2nu(np.array((1, speed_of_light)))<br />

array([ 2.99792458e+08, 1.00000000e+00])<br />

166 Chapter 3. Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!